@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,19 +11,128 @@
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 { Asset } from '../model/models';
22
- import { AssetBulkUpdate } from '../model/models';
23
- import { AssetPageResult } from '../model/models';
24
-
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 { Asset } from '../model/asset.agravity';
24
+ // @ts-ignore
25
+ import { AssetBulkUpdate } from '../model/assetBulkUpdate.agravity';
26
+ // @ts-ignore
27
+ import { AssetPageResult } from '../model/assetPageResult.agravity';
28
+
29
+ // @ts-ignore
25
30
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
26
31
  import { AgravityConfiguration } from '../configuration';
27
32
 
33
+ export interface HttpAssetUploadFileRequestParams {
34
+ /** The requested language of the response. If not matching it falls back to default language. */
35
+ acceptLanguage?: string;
36
+ name?: string;
37
+ collectionId?: string;
38
+ file?: Blob;
39
+ filename?: string;
40
+ previewof?: string;
41
+ }
42
+
43
+ export interface HttpAssetsBulkDeleteUpdateRequestParams {
44
+ /** The body has to be valid json which contains the reference asset, which for which collection (reference for collection type items) and which assets are to update. The containing keywords (tags) will be removed. Only custom values are replaces if they are part of the given collection id. */
45
+ assetBulkUpdate: AssetBulkUpdate;
46
+ }
47
+
48
+ export interface HttpAssetsBulkPostUpdateRequestParams {
49
+ /** The body has to be valid json which contains the reference asset, which for which collection (reference for collection type items) and which assets are to update. The containing keywords (tags) will be distinctly added (no removal). Only custom values are replaces if they are part of the given collection id. */
50
+ assetBulkUpdate: AssetBulkUpdate;
51
+ /** The requested language of the response. If not matching it falls back to default language. */
52
+ acceptLanguage?: string;
53
+ }
54
+
55
+ export interface HttpAssetsBulkPutUpdateRequestParams {
56
+ /** The body has to be valid json which contains the reference asset, a collection (used as reference for collection type items) and which asset ids are to update. The containing keywords (tags) will be fully replaced. ONLY custom items are replaced which are in body (others in same collection will be ignored)!Only custom values are replaces if they are part of the given collection id. */
57
+ assetBulkUpdate: AssetBulkUpdate;
58
+ /** The requested language of the response. If not matching it falls back to default language. */
59
+ acceptLanguage?: string;
60
+ }
61
+
62
+ export interface HttpAssetsCreateRequestParams {
63
+ /** The ID of the collection where this assets should be assigned. */
64
+ collectionid: string;
65
+ /** This endpoint creates an unique asset ID and adds the information to the database. */
66
+ asset: Asset;
67
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
68
+ translations?: boolean;
69
+ /** The requested language of the response. If not matching it falls back to default language. */
70
+ acceptLanguage?: string;
71
+ }
72
+
73
+ export interface HttpAssetsDeleteAllRequestParams {
74
+ /** The filter of assets */
75
+ filter?: string;
76
+ /** The ID of the collection. */
77
+ collectionId?: string;
78
+ }
79
+
80
+ export interface HttpAssetsDeleteByIdRequestParams {
81
+ /** The ID of the asset. */
82
+ id: string;
83
+ }
84
+
85
+ export interface HttpAssetsGetRequestParams {
86
+ /** The ID of the collection where these assets should come from. (Is not required when \&#39;collectiontypeid\&#39; is set.) */
87
+ collectionid?: string;
88
+ /** The ID of the collection type where these assets should come from. (Is not required when \&#39;collectionid\&#39; is set.) CAUTION: The assets returned are not distinct &#x3D;&gt; Duplicates are possible if assets are in multiple collections in this collection type! */
89
+ collectiontypeid?: string;
90
+ /** This limits the fields which are returned, separated by comma (\&#39;,\&#39;). Blobs can be limited with \&#39;.\&#39; on their container. (i.e. fields&#x3D;blobs.thumbnails). Only if \&#39;thumbnails\&#39; is set, the placeholder of this asset type are returned if no thumbnail blob is found. */
91
+ fields?: string;
92
+ /** This indicates if the given blobs should have URLs where these can be requested. (If not limited through \&#39;fields\&#39; parameter it will expose all URLs of all blobs.) */
93
+ expose?: boolean;
94
+ /** Each result returns the continous token if more results are available than requested. With this token, the next page could be fetched. (URL encoded!) */
95
+ continuationToken?: string;
96
+ /** This number limits the page result of assets. */
97
+ limit?: number;
98
+ /** How the return assets are sorted. Default is property: modified_date (newest first). */
99
+ orderby?: string;
100
+ /** This will limit the output on specific parameters which are separated by \&#39;:\&#39;, \&#39;!:\&#39;, \&#39;&gt;\&#39;, \&#39;&gt;&#x3D;\&#39;, \&#39;&lt;\&#39;, \&#39;&lt;&#x3D;\&#39; */
101
+ filter?: string;
102
+ /** The items can be extended to fully filled items. */
103
+ items?: boolean;
104
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
105
+ translations?: boolean;
106
+ /** The requested language of the response. If not matching it falls back to default language. */
107
+ acceptLanguage?: string;
108
+ }
109
+
110
+ export interface HttpAssetsGetByIdRequestParams {
111
+ /** The ID of the asset. */
112
+ id: string;
113
+ /** Which fields are need to be filled out with comma separated. If one is set all non mandatory fields are left out. No validation if field exist. */
114
+ fields?: string;
115
+ /** This indicates if the given blobs should have URLs where these can be requested. It will expose placeholder blobs if no \&#39;thumbnail\&#39; is found.) */
116
+ expose?: boolean;
117
+ /** The items can be extended to fully filled items. */
118
+ items?: boolean;
119
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
120
+ translations?: boolean;
121
+ /** The requested language of the response. If not matching it falls back to default language. */
122
+ acceptLanguage?: string;
123
+ }
124
+
125
+ export interface HttpAssetsUpdateByIdRequestParams {
126
+ /** The ID of the asset. */
127
+ id: string;
128
+ /** The body has to contain one of the mentioned elements and a valid json. Not fitting properties are ignored. */
129
+ asset: Asset;
130
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
131
+ translations?: boolean;
132
+ /** The requested language of the response. If not matching it falls back to default language. */
133
+ acceptLanguage?: string;
134
+ }
135
+
28
136
  @Injectable({
29
137
  providedIn: 'root'
30
138
  })
@@ -36,13 +144,18 @@ export class AssetManagementService {
36
144
 
37
145
  constructor(
38
146
  protected httpClient: HttpClient,
39
- @Optional() @Inject(BASE_PATH) basePath: string,
147
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
40
148
  @Optional() configuration: AgravityConfiguration
41
149
  ) {
42
150
  if (configuration) {
43
151
  this.configuration = configuration;
44
152
  }
45
153
  if (typeof this.configuration.basePath !== 'string') {
154
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
155
+ if (firstBasePath != undefined) {
156
+ basePath = firstBasePath;
157
+ }
158
+
46
159
  if (typeof basePath !== 'string') {
47
160
  basePath = this.basePath;
48
161
  }
@@ -65,6 +178,7 @@ export class AssetManagementService {
65
178
  return false;
66
179
  }
67
180
 
181
+ // @ts-ignore
68
182
  private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
69
183
  if (typeof value === 'object' && value instanceof Date === false) {
70
184
  httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -84,7 +198,7 @@ export class AssetManagementService {
84
198
  (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
85
199
  } else if (value instanceof Date) {
86
200
  if (key != null) {
87
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
201
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
88
202
  } else {
89
203
  throw Error('key may not be null if value is Date');
90
204
  }
@@ -101,64 +215,64 @@ export class AssetManagementService {
101
215
 
102
216
  /**
103
217
  * This endpoint allows to upload one asset which is put onto the storage (INBOX). Collection ID is mandatory on asset upload. Previewof can be used alone.
104
- * @param name
105
- * @param collectionId
106
- * @param file
107
- * @param filename
108
- * @param previewof
218
+ * @param requestParameters
109
219
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
110
220
  * @param reportProgress flag to report request and response progress.
111
221
  */
112
222
  public httpAssetUploadFile(
113
- name?: string,
114
- collectionId?: string,
115
- file?: Blob,
116
- filename?: string,
117
- previewof?: string,
223
+ requestParameters?: HttpAssetUploadFileRequestParams,
118
224
  observe?: 'body',
119
225
  reportProgress?: boolean,
120
- options?: { httpHeaderAccept?: 'application/json' }
226
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
121
227
  ): Observable<Asset>;
122
228
  public httpAssetUploadFile(
123
- name?: string,
124
- collectionId?: string,
125
- file?: Blob,
126
- filename?: string,
127
- previewof?: string,
229
+ requestParameters?: HttpAssetUploadFileRequestParams,
128
230
  observe?: 'response',
129
231
  reportProgress?: boolean,
130
- options?: { httpHeaderAccept?: 'application/json' }
232
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
131
233
  ): Observable<HttpResponse<Asset>>;
132
234
  public httpAssetUploadFile(
133
- name?: string,
134
- collectionId?: string,
135
- file?: Blob,
136
- filename?: string,
137
- previewof?: string,
235
+ requestParameters?: HttpAssetUploadFileRequestParams,
138
236
  observe?: 'events',
139
237
  reportProgress?: boolean,
140
- options?: { httpHeaderAccept?: 'application/json' }
238
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
141
239
  ): Observable<HttpEvent<Asset>>;
142
240
  public httpAssetUploadFile(
143
- name?: string,
144
- collectionId?: string,
145
- file?: Blob,
146
- filename?: string,
147
- previewof?: string,
241
+ requestParameters?: HttpAssetUploadFileRequestParams,
148
242
  observe: any = 'body',
149
243
  reportProgress: boolean = false,
150
- options?: { httpHeaderAccept?: 'application/json' }
244
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
151
245
  ): Observable<any> {
152
- let headers = this.defaultHeaders;
246
+ const acceptLanguage = requestParameters?.acceptLanguage;
247
+ const name = requestParameters?.name;
248
+ const collectionId = requestParameters?.collectionId;
249
+ const file = requestParameters?.file;
250
+ const filename = requestParameters?.filename;
251
+ const previewof = requestParameters?.previewof;
252
+
253
+ let localVarHeaders = this.defaultHeaders;
254
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
255
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
256
+ }
153
257
 
154
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
155
- if (httpHeaderAcceptSelected === undefined) {
258
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
259
+ if (localVarHttpHeaderAcceptSelected === undefined) {
156
260
  // to determine the Accept header
157
261
  const httpHeaderAccepts: string[] = ['application/json'];
158
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
262
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
159
263
  }
160
- if (httpHeaderAcceptSelected !== undefined) {
161
- headers = headers.set('Accept', httpHeaderAcceptSelected);
264
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
265
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
266
+ }
267
+
268
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
269
+ if (localVarHttpContext === undefined) {
270
+ localVarHttpContext = new HttpContext();
271
+ }
272
+
273
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
274
+ if (localVarTransferCache === undefined) {
275
+ localVarTransferCache = true;
162
276
  }
163
277
 
164
278
  // to determine the Content-Type header
@@ -166,770 +280,976 @@ export class AssetManagementService {
166
280
 
167
281
  const canConsumeForm = this.canConsumeForm(consumes);
168
282
 
169
- let formParams: { append(param: string, value: any): any };
170
- let useForm = false;
171
- let convertFormParamsToString = false;
283
+ let localVarFormParams: { append(param: string, value: any): any };
284
+ let localVarUseForm = false;
285
+ let localVarConvertFormParamsToString = false;
172
286
  // use FormData to transmit files using content-type "multipart/form-data"
173
287
  // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
174
- useForm = canConsumeForm;
175
- if (useForm) {
176
- formParams = new FormData();
288
+ localVarUseForm = canConsumeForm;
289
+ if (localVarUseForm) {
290
+ localVarFormParams = new FormData();
177
291
  } else {
178
- formParams = new HttpParams({ encoder: this.encoder });
292
+ localVarFormParams = new HttpParams({ encoder: this.encoder });
179
293
  }
180
294
 
181
295
  if (name !== undefined) {
182
- formParams = (formParams.append('name', <any>name) as any) || formParams;
296
+ localVarFormParams = (localVarFormParams.append('name', <any>name) as any) || localVarFormParams;
183
297
  }
184
298
  if (collectionId !== undefined) {
185
- formParams = (formParams.append('collectionId', <any>collectionId) as any) || formParams;
299
+ localVarFormParams = (localVarFormParams.append('collectionId', <any>collectionId) as any) || localVarFormParams;
186
300
  }
187
301
  if (file !== undefined) {
188
- formParams = (formParams.append('file', <any>file) as any) || formParams;
302
+ localVarFormParams = (localVarFormParams.append('file', <any>file) as any) || localVarFormParams;
189
303
  }
190
304
  if (filename !== undefined) {
191
- formParams = (formParams.append('filename', <any>filename) as any) || formParams;
305
+ localVarFormParams = (localVarFormParams.append('filename', <any>filename) as any) || localVarFormParams;
192
306
  }
193
307
  if (previewof !== undefined) {
194
- formParams = (formParams.append('previewof', <any>previewof) as any) || formParams;
308
+ localVarFormParams = (localVarFormParams.append('previewof', <any>previewof) as any) || localVarFormParams;
195
309
  }
196
310
 
197
- let responseType_: 'text' | 'json' = 'json';
198
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
199
- responseType_ = 'text';
311
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
312
+ if (localVarHttpHeaderAcceptSelected) {
313
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
314
+ responseType_ = 'text';
315
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
316
+ responseType_ = 'json';
317
+ } else {
318
+ responseType_ = 'blob';
319
+ }
200
320
  }
201
321
 
202
- return this.httpClient.post<Asset>(`${this.configuration.basePath}/assetsupload`, convertFormParamsToString ? formParams.toString() : formParams, {
322
+ let localVarPath = `/assetsupload`;
323
+ return this.httpClient.request<Asset>('post', `${this.configuration.basePath}${localVarPath}`, {
324
+ context: localVarHttpContext,
325
+ body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
203
326
  responseType: <any>responseType_,
204
327
  withCredentials: this.configuration.withCredentials,
205
- headers: headers,
328
+ headers: localVarHeaders,
206
329
  observe: observe,
330
+ transferCache: localVarTransferCache,
207
331
  reportProgress: reportProgress
208
332
  });
209
333
  }
210
334
 
211
335
  /**
212
- * @param assetBulkUpdate The body has to be valid json which contains the reference asset, which for which collection (reference for collection type items) and which assets are to update. The containing keywords (tags) will be removed. Only custom values are replaces if they are part of the given collection id.
336
+ * @param requestParameters
213
337
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
214
338
  * @param reportProgress flag to report request and response progress.
215
339
  */
216
340
  public httpAssetsBulkDeleteUpdate(
217
- assetBulkUpdate: AssetBulkUpdate,
341
+ requestParameters?: HttpAssetsBulkDeleteUpdateRequestParams,
218
342
  observe?: 'body',
219
343
  reportProgress?: boolean,
220
- options?: { httpHeaderAccept?: 'application/json' }
344
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
221
345
  ): Observable<AgravityInfoResponse>;
222
346
  public httpAssetsBulkDeleteUpdate(
223
- assetBulkUpdate: AssetBulkUpdate,
347
+ requestParameters?: HttpAssetsBulkDeleteUpdateRequestParams,
224
348
  observe?: 'response',
225
349
  reportProgress?: boolean,
226
- options?: { httpHeaderAccept?: 'application/json' }
350
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
227
351
  ): Observable<HttpResponse<AgravityInfoResponse>>;
228
352
  public httpAssetsBulkDeleteUpdate(
229
- assetBulkUpdate: AssetBulkUpdate,
353
+ requestParameters?: HttpAssetsBulkDeleteUpdateRequestParams,
230
354
  observe?: 'events',
231
355
  reportProgress?: boolean,
232
- options?: { httpHeaderAccept?: 'application/json' }
356
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
233
357
  ): Observable<HttpEvent<AgravityInfoResponse>>;
234
- public httpAssetsBulkDeleteUpdate(assetBulkUpdate: AssetBulkUpdate, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
358
+ public httpAssetsBulkDeleteUpdate(
359
+ requestParameters?: HttpAssetsBulkDeleteUpdateRequestParams,
360
+ observe: any = 'body',
361
+ reportProgress: boolean = false,
362
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
363
+ ): Observable<any> {
364
+ const assetBulkUpdate = requestParameters?.assetBulkUpdate;
235
365
  if (assetBulkUpdate === null || assetBulkUpdate === undefined) {
236
366
  throw new Error('Required parameter assetBulkUpdate was null or undefined when calling httpAssetsBulkDeleteUpdate.');
237
367
  }
238
368
 
239
- let headers = this.defaultHeaders;
369
+ let localVarHeaders = this.defaultHeaders;
240
370
 
241
- let credential: string | undefined;
371
+ let localVarCredential: string | undefined;
242
372
  // authentication (msal_auth) required
243
- credential = this.configuration.lookupCredential('msal_auth');
244
- if (credential) {
245
- headers = headers.set('Authorization', 'Bearer ' + credential);
373
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
374
+ if (localVarCredential) {
375
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
246
376
  }
247
377
 
248
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
249
- if (httpHeaderAcceptSelected === undefined) {
378
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
379
+ if (localVarHttpHeaderAcceptSelected === undefined) {
250
380
  // to determine the Accept header
251
381
  const httpHeaderAccepts: string[] = ['application/json'];
252
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
382
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
383
+ }
384
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
385
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
253
386
  }
254
- if (httpHeaderAcceptSelected !== undefined) {
255
- headers = headers.set('Accept', httpHeaderAcceptSelected);
387
+
388
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
389
+ if (localVarHttpContext === undefined) {
390
+ localVarHttpContext = new HttpContext();
391
+ }
392
+
393
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
394
+ if (localVarTransferCache === undefined) {
395
+ localVarTransferCache = true;
256
396
  }
257
397
 
258
398
  // to determine the Content-Type header
259
399
  const consumes: string[] = ['application/json'];
260
400
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
261
401
  if (httpContentTypeSelected !== undefined) {
262
- headers = headers.set('Content-Type', httpContentTypeSelected);
402
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
263
403
  }
264
404
 
265
- let responseType_: 'text' | 'json' = 'json';
266
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
267
- responseType_ = 'text';
405
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
406
+ if (localVarHttpHeaderAcceptSelected) {
407
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
408
+ responseType_ = 'text';
409
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
410
+ responseType_ = 'json';
411
+ } else {
412
+ responseType_ = 'blob';
413
+ }
268
414
  }
269
415
 
270
- return this.httpClient.delete<AgravityInfoResponse>(`${this.configuration.basePath}/assetsbulkupdate`, {
416
+ let localVarPath = `/assetsbulkupdate`;
417
+ return this.httpClient.request<AgravityInfoResponse>('delete', `${this.configuration.basePath}${localVarPath}`, {
418
+ context: localVarHttpContext,
419
+ body: assetBulkUpdate,
271
420
  responseType: <any>responseType_,
272
421
  withCredentials: this.configuration.withCredentials,
273
- headers: headers,
422
+ headers: localVarHeaders,
274
423
  observe: observe,
275
- reportProgress: reportProgress,
276
- body: assetBulkUpdate
424
+ transferCache: localVarTransferCache,
425
+ reportProgress: reportProgress
277
426
  });
278
427
  }
279
428
 
280
429
  /**
281
- * @param assetBulkUpdate The body has to be valid json which contains the reference asset, which for which collection (reference for collection type items) and which assets are to update. The containing keywords (tags) will be distinctly added (no removal). Only custom values are replaces if they are part of the given collection id.
430
+ * @param requestParameters
282
431
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
283
432
  * @param reportProgress flag to report request and response progress.
284
433
  */
285
434
  public httpAssetsBulkPostUpdate(
286
- assetBulkUpdate: AssetBulkUpdate,
435
+ requestParameters?: HttpAssetsBulkPostUpdateRequestParams,
287
436
  observe?: 'body',
288
437
  reportProgress?: boolean,
289
- options?: { httpHeaderAccept?: 'application/json' }
438
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
290
439
  ): Observable<AgravityInfoResponse>;
291
440
  public httpAssetsBulkPostUpdate(
292
- assetBulkUpdate: AssetBulkUpdate,
441
+ requestParameters?: HttpAssetsBulkPostUpdateRequestParams,
293
442
  observe?: 'response',
294
443
  reportProgress?: boolean,
295
- options?: { httpHeaderAccept?: 'application/json' }
444
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
296
445
  ): Observable<HttpResponse<AgravityInfoResponse>>;
297
446
  public httpAssetsBulkPostUpdate(
298
- assetBulkUpdate: AssetBulkUpdate,
447
+ requestParameters?: HttpAssetsBulkPostUpdateRequestParams,
299
448
  observe?: 'events',
300
449
  reportProgress?: boolean,
301
- options?: { httpHeaderAccept?: 'application/json' }
450
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
302
451
  ): Observable<HttpEvent<AgravityInfoResponse>>;
303
- public httpAssetsBulkPostUpdate(assetBulkUpdate: AssetBulkUpdate, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
452
+ public httpAssetsBulkPostUpdate(
453
+ requestParameters?: HttpAssetsBulkPostUpdateRequestParams,
454
+ observe: any = 'body',
455
+ reportProgress: boolean = false,
456
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
457
+ ): Observable<any> {
458
+ const assetBulkUpdate = requestParameters?.assetBulkUpdate;
304
459
  if (assetBulkUpdate === null || assetBulkUpdate === undefined) {
305
460
  throw new Error('Required parameter assetBulkUpdate was null or undefined when calling httpAssetsBulkPostUpdate.');
306
461
  }
462
+ const acceptLanguage = requestParameters?.acceptLanguage;
307
463
 
308
- let headers = this.defaultHeaders;
464
+ let localVarHeaders = this.defaultHeaders;
465
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
466
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
467
+ }
309
468
 
310
- let credential: string | undefined;
469
+ let localVarCredential: string | undefined;
311
470
  // authentication (msal_auth) required
312
- credential = this.configuration.lookupCredential('msal_auth');
313
- if (credential) {
314
- headers = headers.set('Authorization', 'Bearer ' + credential);
471
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
472
+ if (localVarCredential) {
473
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
315
474
  }
316
475
 
317
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
318
- if (httpHeaderAcceptSelected === undefined) {
476
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
477
+ if (localVarHttpHeaderAcceptSelected === undefined) {
319
478
  // to determine the Accept header
320
479
  const httpHeaderAccepts: string[] = ['application/json'];
321
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
480
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
322
481
  }
323
- if (httpHeaderAcceptSelected !== undefined) {
324
- headers = headers.set('Accept', httpHeaderAcceptSelected);
482
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
483
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
484
+ }
485
+
486
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
487
+ if (localVarHttpContext === undefined) {
488
+ localVarHttpContext = new HttpContext();
489
+ }
490
+
491
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
492
+ if (localVarTransferCache === undefined) {
493
+ localVarTransferCache = true;
325
494
  }
326
495
 
327
496
  // to determine the Content-Type header
328
497
  const consumes: string[] = ['application/json'];
329
498
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
330
499
  if (httpContentTypeSelected !== undefined) {
331
- headers = headers.set('Content-Type', httpContentTypeSelected);
500
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
332
501
  }
333
502
 
334
- let responseType_: 'text' | 'json' = 'json';
335
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
336
- responseType_ = 'text';
503
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
504
+ if (localVarHttpHeaderAcceptSelected) {
505
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
506
+ responseType_ = 'text';
507
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
508
+ responseType_ = 'json';
509
+ } else {
510
+ responseType_ = 'blob';
511
+ }
337
512
  }
338
513
 
339
- return this.httpClient.post<AgravityInfoResponse>(`${this.configuration.basePath}/assetsbulkupdate`, assetBulkUpdate, {
514
+ let localVarPath = `/assetsbulkupdate`;
515
+ return this.httpClient.request<AgravityInfoResponse>('post', `${this.configuration.basePath}${localVarPath}`, {
516
+ context: localVarHttpContext,
517
+ body: assetBulkUpdate,
340
518
  responseType: <any>responseType_,
341
519
  withCredentials: this.configuration.withCredentials,
342
- headers: headers,
520
+ headers: localVarHeaders,
343
521
  observe: observe,
522
+ transferCache: localVarTransferCache,
344
523
  reportProgress: reportProgress
345
524
  });
346
525
  }
347
526
 
348
527
  /**
349
- * @param assetBulkUpdate The body has to be valid json which contains the reference asset, a collection (used as reference for collection type items) and which asset ids are to update. The containing keywords (tags) will be fully replaced. ONLY custom items are replaced which are in body (others in same collection will be ignored)!Only custom values are replaces if they are part of the given collection id.
528
+ * @param requestParameters
350
529
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
351
530
  * @param reportProgress flag to report request and response progress.
352
531
  */
353
- public httpAssetsBulkPutUpdate(assetBulkUpdate: AssetBulkUpdate, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
354
532
  public httpAssetsBulkPutUpdate(
355
- assetBulkUpdate: AssetBulkUpdate,
533
+ requestParameters?: HttpAssetsBulkPutUpdateRequestParams,
534
+ observe?: 'body',
535
+ reportProgress?: boolean,
536
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
537
+ ): Observable<AgravityInfoResponse>;
538
+ public httpAssetsBulkPutUpdate(
539
+ requestParameters?: HttpAssetsBulkPutUpdateRequestParams,
356
540
  observe?: 'response',
357
541
  reportProgress?: boolean,
358
- options?: { httpHeaderAccept?: 'application/json' }
542
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
359
543
  ): Observable<HttpResponse<AgravityInfoResponse>>;
360
544
  public httpAssetsBulkPutUpdate(
361
- assetBulkUpdate: AssetBulkUpdate,
545
+ requestParameters?: HttpAssetsBulkPutUpdateRequestParams,
362
546
  observe?: 'events',
363
547
  reportProgress?: boolean,
364
- options?: { httpHeaderAccept?: 'application/json' }
548
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
365
549
  ): Observable<HttpEvent<AgravityInfoResponse>>;
366
- public httpAssetsBulkPutUpdate(assetBulkUpdate: AssetBulkUpdate, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
550
+ public httpAssetsBulkPutUpdate(
551
+ requestParameters?: HttpAssetsBulkPutUpdateRequestParams,
552
+ observe: any = 'body',
553
+ reportProgress: boolean = false,
554
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
555
+ ): Observable<any> {
556
+ const assetBulkUpdate = requestParameters?.assetBulkUpdate;
367
557
  if (assetBulkUpdate === null || assetBulkUpdate === undefined) {
368
558
  throw new Error('Required parameter assetBulkUpdate was null or undefined when calling httpAssetsBulkPutUpdate.');
369
559
  }
560
+ const acceptLanguage = requestParameters?.acceptLanguage;
370
561
 
371
- let headers = this.defaultHeaders;
562
+ let localVarHeaders = this.defaultHeaders;
563
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
564
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
565
+ }
372
566
 
373
- let credential: string | undefined;
567
+ let localVarCredential: string | undefined;
374
568
  // authentication (msal_auth) required
375
- credential = this.configuration.lookupCredential('msal_auth');
376
- if (credential) {
377
- headers = headers.set('Authorization', 'Bearer ' + credential);
569
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
570
+ if (localVarCredential) {
571
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
378
572
  }
379
573
 
380
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
381
- if (httpHeaderAcceptSelected === undefined) {
574
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
575
+ if (localVarHttpHeaderAcceptSelected === undefined) {
382
576
  // to determine the Accept header
383
577
  const httpHeaderAccepts: string[] = ['application/json'];
384
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
578
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
579
+ }
580
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
581
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
385
582
  }
386
- if (httpHeaderAcceptSelected !== undefined) {
387
- headers = headers.set('Accept', httpHeaderAcceptSelected);
583
+
584
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
585
+ if (localVarHttpContext === undefined) {
586
+ localVarHttpContext = new HttpContext();
587
+ }
588
+
589
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
590
+ if (localVarTransferCache === undefined) {
591
+ localVarTransferCache = true;
388
592
  }
389
593
 
390
594
  // to determine the Content-Type header
391
595
  const consumes: string[] = ['application/json'];
392
596
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
393
597
  if (httpContentTypeSelected !== undefined) {
394
- headers = headers.set('Content-Type', httpContentTypeSelected);
598
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
395
599
  }
396
600
 
397
- let responseType_: 'text' | 'json' = 'json';
398
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
399
- responseType_ = 'text';
601
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
602
+ if (localVarHttpHeaderAcceptSelected) {
603
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
604
+ responseType_ = 'text';
605
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
606
+ responseType_ = 'json';
607
+ } else {
608
+ responseType_ = 'blob';
609
+ }
400
610
  }
401
611
 
402
- return this.httpClient.put<AgravityInfoResponse>(`${this.configuration.basePath}/assetsbulkupdate`, assetBulkUpdate, {
612
+ let localVarPath = `/assetsbulkupdate`;
613
+ return this.httpClient.request<AgravityInfoResponse>('put', `${this.configuration.basePath}${localVarPath}`, {
614
+ context: localVarHttpContext,
615
+ body: assetBulkUpdate,
403
616
  responseType: <any>responseType_,
404
617
  withCredentials: this.configuration.withCredentials,
405
- headers: headers,
618
+ headers: localVarHeaders,
406
619
  observe: observe,
620
+ transferCache: localVarTransferCache,
407
621
  reportProgress: reportProgress
408
622
  });
409
623
  }
410
624
 
411
625
  /**
412
626
  * This endpoint creates one asset entry in the database.
413
- * @param collectionid The ID of the collection where this assets should be assigned.
414
- * @param asset This endpoint creates an unique asset ID and adds the information to the database.
415
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
627
+ * @param requestParameters
416
628
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
417
629
  * @param reportProgress flag to report request and response progress.
418
630
  */
419
631
  public httpAssetsCreate(
420
- collectionid: string,
421
- asset: Asset,
422
- translations?: boolean,
632
+ requestParameters?: HttpAssetsCreateRequestParams,
423
633
  observe?: 'body',
424
634
  reportProgress?: boolean,
425
- options?: { httpHeaderAccept?: 'application/json' }
635
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
426
636
  ): Observable<Asset>;
427
637
  public httpAssetsCreate(
428
- collectionid: string,
429
- asset: Asset,
430
- translations?: boolean,
638
+ requestParameters?: HttpAssetsCreateRequestParams,
431
639
  observe?: 'response',
432
640
  reportProgress?: boolean,
433
- options?: { httpHeaderAccept?: 'application/json' }
641
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
434
642
  ): Observable<HttpResponse<Asset>>;
435
643
  public httpAssetsCreate(
436
- collectionid: string,
437
- asset: Asset,
438
- translations?: boolean,
644
+ requestParameters?: HttpAssetsCreateRequestParams,
439
645
  observe?: 'events',
440
646
  reportProgress?: boolean,
441
- options?: { httpHeaderAccept?: 'application/json' }
647
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
442
648
  ): Observable<HttpEvent<Asset>>;
443
649
  public httpAssetsCreate(
444
- collectionid: string,
445
- asset: Asset,
446
- translations?: boolean,
650
+ requestParameters?: HttpAssetsCreateRequestParams,
447
651
  observe: any = 'body',
448
652
  reportProgress: boolean = false,
449
- options?: { httpHeaderAccept?: 'application/json' }
653
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
450
654
  ): Observable<any> {
655
+ const collectionid = requestParameters?.collectionid;
451
656
  if (collectionid === null || collectionid === undefined) {
452
657
  throw new Error('Required parameter collectionid was null or undefined when calling httpAssetsCreate.');
453
658
  }
659
+ const asset = requestParameters?.asset;
454
660
  if (asset === null || asset === undefined) {
455
661
  throw new Error('Required parameter asset was null or undefined when calling httpAssetsCreate.');
456
662
  }
663
+ const translations = requestParameters?.translations;
664
+ const acceptLanguage = requestParameters?.acceptLanguage;
457
665
 
458
- let queryParameters = new HttpParams({ encoder: this.encoder });
666
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
459
667
  if (collectionid !== undefined && collectionid !== null) {
460
- queryParameters = this.addToHttpParams(queryParameters, <any>collectionid, 'collectionid');
668
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
461
669
  }
462
670
  if (translations !== undefined && translations !== null) {
463
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
671
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
464
672
  }
465
673
 
466
- let headers = this.defaultHeaders;
674
+ let localVarHeaders = this.defaultHeaders;
675
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
676
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
677
+ }
467
678
 
468
- let credential: string | undefined;
679
+ let localVarCredential: string | undefined;
469
680
  // authentication (msal_auth) required
470
- credential = this.configuration.lookupCredential('msal_auth');
471
- if (credential) {
472
- headers = headers.set('Authorization', 'Bearer ' + credential);
681
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
682
+ if (localVarCredential) {
683
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
473
684
  }
474
685
 
475
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
476
- if (httpHeaderAcceptSelected === undefined) {
686
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
687
+ if (localVarHttpHeaderAcceptSelected === undefined) {
477
688
  // to determine the Accept header
478
689
  const httpHeaderAccepts: string[] = ['application/json'];
479
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
690
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
480
691
  }
481
- if (httpHeaderAcceptSelected !== undefined) {
482
- headers = headers.set('Accept', httpHeaderAcceptSelected);
692
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
693
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
694
+ }
695
+
696
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
697
+ if (localVarHttpContext === undefined) {
698
+ localVarHttpContext = new HttpContext();
699
+ }
700
+
701
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
702
+ if (localVarTransferCache === undefined) {
703
+ localVarTransferCache = true;
483
704
  }
484
705
 
485
706
  // to determine the Content-Type header
486
707
  const consumes: string[] = ['application/json'];
487
708
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
488
709
  if (httpContentTypeSelected !== undefined) {
489
- headers = headers.set('Content-Type', httpContentTypeSelected);
710
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
490
711
  }
491
712
 
492
- let responseType_: 'text' | 'json' = 'json';
493
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
494
- responseType_ = 'text';
713
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
714
+ if (localVarHttpHeaderAcceptSelected) {
715
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
716
+ responseType_ = 'text';
717
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
718
+ responseType_ = 'json';
719
+ } else {
720
+ responseType_ = 'blob';
721
+ }
495
722
  }
496
723
 
497
- return this.httpClient.post<Asset>(`${this.configuration.basePath}/assets`, asset, {
498
- params: queryParameters,
724
+ let localVarPath = `/assets`;
725
+ return this.httpClient.request<Asset>('post', `${this.configuration.basePath}${localVarPath}`, {
726
+ context: localVarHttpContext,
727
+ body: asset,
728
+ params: localVarQueryParameters,
499
729
  responseType: <any>responseType_,
500
730
  withCredentials: this.configuration.withCredentials,
501
- headers: headers,
731
+ headers: localVarHeaders,
502
732
  observe: observe,
733
+ transferCache: localVarTransferCache,
503
734
  reportProgress: reportProgress
504
735
  });
505
736
  }
506
737
 
507
738
  /**
508
- * @param filter The filter of assets
509
- * @param collectionId The ID of the collection.
739
+ * @param requestParameters
510
740
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
511
741
  * @param reportProgress flag to report request and response progress.
512
742
  */
513
- public httpAssetsDeleteAll(filter: string, collectionId: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
514
743
  public httpAssetsDeleteAll(
515
- filter: string,
516
- collectionId: string,
744
+ requestParameters?: HttpAssetsDeleteAllRequestParams,
745
+ observe?: 'body',
746
+ reportProgress?: boolean,
747
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
748
+ ): Observable<any>;
749
+ public httpAssetsDeleteAll(
750
+ requestParameters?: HttpAssetsDeleteAllRequestParams,
517
751
  observe?: 'response',
518
752
  reportProgress?: boolean,
519
- options?: { httpHeaderAccept?: 'application/json' }
753
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
520
754
  ): Observable<HttpResponse<any>>;
521
- public httpAssetsDeleteAll(filter: string, collectionId: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
522
- public httpAssetsDeleteAll(filter: string, collectionId: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
523
- if (filter === null || filter === undefined) {
524
- throw new Error('Required parameter filter was null or undefined when calling httpAssetsDeleteAll.');
525
- }
526
- if (collectionId === null || collectionId === undefined) {
527
- throw new Error('Required parameter collectionId was null or undefined when calling httpAssetsDeleteAll.');
528
- }
755
+ public httpAssetsDeleteAll(
756
+ requestParameters?: HttpAssetsDeleteAllRequestParams,
757
+ observe?: 'events',
758
+ reportProgress?: boolean,
759
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
760
+ ): Observable<HttpEvent<any>>;
761
+ public httpAssetsDeleteAll(
762
+ requestParameters?: HttpAssetsDeleteAllRequestParams,
763
+ observe: any = 'body',
764
+ reportProgress: boolean = false,
765
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
766
+ ): Observable<any> {
767
+ const filter = requestParameters?.filter;
768
+ const collectionId = requestParameters?.collectionId;
529
769
 
530
- let headers = this.defaultHeaders;
770
+ let localVarHeaders = this.defaultHeaders;
531
771
 
532
- let credential: string | undefined;
772
+ let localVarCredential: string | undefined;
533
773
  // authentication (msal_auth) required
534
- credential = this.configuration.lookupCredential('msal_auth');
535
- if (credential) {
536
- headers = headers.set('Authorization', 'Bearer ' + credential);
774
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
775
+ if (localVarCredential) {
776
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
537
777
  }
538
778
 
539
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
540
- if (httpHeaderAcceptSelected === undefined) {
779
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
780
+ if (localVarHttpHeaderAcceptSelected === undefined) {
541
781
  // to determine the Accept header
542
782
  const httpHeaderAccepts: string[] = ['application/json'];
543
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
783
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
544
784
  }
545
- if (httpHeaderAcceptSelected !== undefined) {
546
- headers = headers.set('Accept', httpHeaderAcceptSelected);
785
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
786
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
787
+ }
788
+
789
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
790
+ if (localVarHttpContext === undefined) {
791
+ localVarHttpContext = new HttpContext();
547
792
  }
548
793
 
549
- let responseType_: 'text' | 'json' = 'json';
550
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
551
- responseType_ = 'text';
794
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
795
+ if (localVarTransferCache === undefined) {
796
+ localVarTransferCache = true;
797
+ }
798
+
799
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
800
+ if (localVarHttpHeaderAcceptSelected) {
801
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
802
+ responseType_ = 'text';
803
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
804
+ responseType_ = 'json';
805
+ } else {
806
+ responseType_ = 'blob';
807
+ }
552
808
  }
553
809
 
554
- return this.httpClient.delete<any>(`${this.configuration.basePath}/assets`, {
810
+ let localVarPath = `/assets`;
811
+ return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
812
+ context: localVarHttpContext,
555
813
  responseType: <any>responseType_,
556
814
  withCredentials: this.configuration.withCredentials,
557
- headers: headers,
815
+ headers: localVarHeaders,
558
816
  observe: observe,
817
+ transferCache: localVarTransferCache,
559
818
  reportProgress: reportProgress
560
819
  });
561
820
  }
562
821
 
563
822
  /**
564
- * @param id The ID of the asset.
823
+ * @param requestParameters
565
824
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
566
825
  * @param reportProgress flag to report request and response progress.
567
826
  */
568
- public httpAssetsDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
569
- public httpAssetsDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<any>>;
570
- public httpAssetsDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
571
- public httpAssetsDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
827
+ public httpAssetsDeleteById(
828
+ requestParameters?: HttpAssetsDeleteByIdRequestParams,
829
+ observe?: 'body',
830
+ reportProgress?: boolean,
831
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
832
+ ): Observable<any>;
833
+ public httpAssetsDeleteById(
834
+ requestParameters?: HttpAssetsDeleteByIdRequestParams,
835
+ observe?: 'response',
836
+ reportProgress?: boolean,
837
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
838
+ ): Observable<HttpResponse<any>>;
839
+ public httpAssetsDeleteById(
840
+ requestParameters?: HttpAssetsDeleteByIdRequestParams,
841
+ observe?: 'events',
842
+ reportProgress?: boolean,
843
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
844
+ ): Observable<HttpEvent<any>>;
845
+ public httpAssetsDeleteById(
846
+ requestParameters?: HttpAssetsDeleteByIdRequestParams,
847
+ observe: any = 'body',
848
+ reportProgress: boolean = false,
849
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
850
+ ): Observable<any> {
851
+ const id = requestParameters?.id;
572
852
  if (id === null || id === undefined) {
573
853
  throw new Error('Required parameter id was null or undefined when calling httpAssetsDeleteById.');
574
854
  }
575
855
 
576
- let headers = this.defaultHeaders;
856
+ let localVarHeaders = this.defaultHeaders;
577
857
 
578
- let credential: string | undefined;
858
+ let localVarCredential: string | undefined;
579
859
  // authentication (msal_auth) required
580
- credential = this.configuration.lookupCredential('msal_auth');
581
- if (credential) {
582
- headers = headers.set('Authorization', 'Bearer ' + credential);
860
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
861
+ if (localVarCredential) {
862
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
583
863
  }
584
864
 
585
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
586
- if (httpHeaderAcceptSelected === undefined) {
865
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
866
+ if (localVarHttpHeaderAcceptSelected === undefined) {
587
867
  // to determine the Accept header
588
868
  const httpHeaderAccepts: string[] = ['application/json'];
589
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
869
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
590
870
  }
591
- if (httpHeaderAcceptSelected !== undefined) {
592
- headers = headers.set('Accept', httpHeaderAcceptSelected);
871
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
872
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
593
873
  }
594
874
 
595
- let responseType_: 'text' | 'json' = 'json';
596
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
597
- responseType_ = 'text';
875
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
876
+ if (localVarHttpContext === undefined) {
877
+ localVarHttpContext = new HttpContext();
598
878
  }
599
879
 
600
- return this.httpClient.delete<any>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}`, {
880
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
881
+ if (localVarTransferCache === undefined) {
882
+ localVarTransferCache = true;
883
+ }
884
+
885
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
886
+ if (localVarHttpHeaderAcceptSelected) {
887
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
888
+ responseType_ = 'text';
889
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
890
+ responseType_ = 'json';
891
+ } else {
892
+ responseType_ = 'blob';
893
+ }
894
+ }
895
+
896
+ let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
897
+ return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
898
+ context: localVarHttpContext,
601
899
  responseType: <any>responseType_,
602
900
  withCredentials: this.configuration.withCredentials,
603
- headers: headers,
901
+ headers: localVarHeaders,
604
902
  observe: observe,
903
+ transferCache: localVarTransferCache,
605
904
  reportProgress: reportProgress
606
905
  });
607
906
  }
608
907
 
609
908
  /**
610
- * @param collectionid The ID of the collection where these assets should come from. (Is not required when \&#39;collectiontypeid\&#39; is set.)
611
- * @param collectiontypeid The ID of the collection type where these assets should come from. (Is not required when \&#39;collectionid\&#39; is set.) CAUTION: The assets returned are not distinct &#x3D;&gt; Duplicates are possible if assets are in multiple collections in this collection type!
612
- * @param fields This limits the fields which are returned, separated by comma (\&#39;,\&#39;). Blobs can be limited with \&#39;.\&#39; on their container. (i.e. fields&#x3D;blobs.thumbnails). Only if \&#39;thumbnails\&#39; is set, the placeholder of this asset type are returned if no thumbnail blob is found.
613
- * @param expose This indicates if the given blobs should have URLs where these can be requested. (If not limited through \&#39;fields\&#39; parameter it will expose all URLs of all blobs.)
614
- * @param continuationToken Each result returns the continous token if more results are available than requested. With this token, the next page could be fetched. (URL encoded!)
615
- * @param limit This number limits the page result of assets.
616
- * @param orderby How the return assets are sorted. Default is property: modified_date (newest first).
617
- * @param filter This will limit the output on specific parameters which are separated by \&#39;:\&#39;, \&#39;!:\&#39;, \&#39;&gt;\&#39;, \&#39;&gt;&#x3D;\&#39;, \&#39;&lt;\&#39;, \&#39;&lt;&#x3D;\&#39;
618
- * @param items The items can be extended to fully filled items.
619
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
909
+ * @param requestParameters
620
910
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
621
911
  * @param reportProgress flag to report request and response progress.
622
912
  */
623
913
  public httpAssetsGet(
624
- collectionid?: string,
625
- collectiontypeid?: string,
626
- fields?: string,
627
- expose?: boolean,
628
- continuationToken?: string,
629
- limit?: number,
630
- orderby?: string,
631
- filter?: string,
632
- items?: boolean,
633
- translations?: boolean,
914
+ requestParameters?: HttpAssetsGetRequestParams,
634
915
  observe?: 'body',
635
916
  reportProgress?: boolean,
636
- options?: { httpHeaderAccept?: 'application/json' }
917
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
637
918
  ): Observable<AssetPageResult>;
638
919
  public httpAssetsGet(
639
- collectionid?: string,
640
- collectiontypeid?: string,
641
- fields?: string,
642
- expose?: boolean,
643
- continuationToken?: string,
644
- limit?: number,
645
- orderby?: string,
646
- filter?: string,
647
- items?: boolean,
648
- translations?: boolean,
920
+ requestParameters?: HttpAssetsGetRequestParams,
649
921
  observe?: 'response',
650
922
  reportProgress?: boolean,
651
- options?: { httpHeaderAccept?: 'application/json' }
923
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
652
924
  ): Observable<HttpResponse<AssetPageResult>>;
653
925
  public httpAssetsGet(
654
- collectionid?: string,
655
- collectiontypeid?: string,
656
- fields?: string,
657
- expose?: boolean,
658
- continuationToken?: string,
659
- limit?: number,
660
- orderby?: string,
661
- filter?: string,
662
- items?: boolean,
663
- translations?: boolean,
926
+ requestParameters?: HttpAssetsGetRequestParams,
664
927
  observe?: 'events',
665
928
  reportProgress?: boolean,
666
- options?: { httpHeaderAccept?: 'application/json' }
929
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
667
930
  ): Observable<HttpEvent<AssetPageResult>>;
668
931
  public httpAssetsGet(
669
- collectionid?: string,
670
- collectiontypeid?: string,
671
- fields?: string,
672
- expose?: boolean,
673
- continuationToken?: string,
674
- limit?: number,
675
- orderby?: string,
676
- filter?: string,
677
- items?: boolean,
678
- translations?: boolean,
932
+ requestParameters?: HttpAssetsGetRequestParams,
679
933
  observe: any = 'body',
680
934
  reportProgress: boolean = false,
681
- options?: { httpHeaderAccept?: 'application/json' }
935
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
682
936
  ): Observable<any> {
683
- let queryParameters = new HttpParams({ encoder: this.encoder });
937
+ const collectionid = requestParameters?.collectionid;
938
+ const collectiontypeid = requestParameters?.collectiontypeid;
939
+ const fields = requestParameters?.fields;
940
+ const expose = requestParameters?.expose;
941
+ const continuationToken = requestParameters?.continuationToken;
942
+ const limit = requestParameters?.limit;
943
+ const orderby = requestParameters?.orderby;
944
+ const filter = requestParameters?.filter;
945
+ const items = requestParameters?.items;
946
+ const translations = requestParameters?.translations;
947
+ const acceptLanguage = requestParameters?.acceptLanguage;
948
+
949
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
684
950
  if (collectionid !== undefined && collectionid !== null) {
685
- queryParameters = this.addToHttpParams(queryParameters, <any>collectionid, 'collectionid');
951
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
686
952
  }
687
953
  if (collectiontypeid !== undefined && collectiontypeid !== null) {
688
- queryParameters = this.addToHttpParams(queryParameters, <any>collectiontypeid, 'collectiontypeid');
954
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectiontypeid, 'collectiontypeid');
689
955
  }
690
956
  if (fields !== undefined && fields !== null) {
691
- queryParameters = this.addToHttpParams(queryParameters, <any>fields, 'fields');
957
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
692
958
  }
693
959
  if (expose !== undefined && expose !== null) {
694
- queryParameters = this.addToHttpParams(queryParameters, <any>expose, 'expose');
960
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>expose, 'expose');
695
961
  }
696
962
  if (continuationToken !== undefined && continuationToken !== null) {
697
- queryParameters = this.addToHttpParams(queryParameters, <any>continuationToken, 'continuation_token');
963
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>continuationToken, 'continuation_token');
698
964
  }
699
965
  if (limit !== undefined && limit !== null) {
700
- queryParameters = this.addToHttpParams(queryParameters, <any>limit, 'limit');
966
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>limit, 'limit');
701
967
  }
702
968
  if (orderby !== undefined && orderby !== null) {
703
- queryParameters = this.addToHttpParams(queryParameters, <any>orderby, 'orderby');
969
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>orderby, 'orderby');
704
970
  }
705
971
  if (filter !== undefined && filter !== null) {
706
- queryParameters = this.addToHttpParams(queryParameters, <any>filter, 'filter');
972
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
707
973
  }
708
974
  if (items !== undefined && items !== null) {
709
- queryParameters = this.addToHttpParams(queryParameters, <any>items, 'items');
975
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
710
976
  }
711
977
  if (translations !== undefined && translations !== null) {
712
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
978
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
713
979
  }
714
980
 
715
- let headers = this.defaultHeaders;
981
+ let localVarHeaders = this.defaultHeaders;
982
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
983
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
984
+ }
716
985
 
717
- let credential: string | undefined;
986
+ let localVarCredential: string | undefined;
718
987
  // authentication (msal_auth) required
719
- credential = this.configuration.lookupCredential('msal_auth');
720
- if (credential) {
721
- headers = headers.set('Authorization', 'Bearer ' + credential);
988
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
989
+ if (localVarCredential) {
990
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
722
991
  }
723
992
 
724
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
725
- if (httpHeaderAcceptSelected === undefined) {
993
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
994
+ if (localVarHttpHeaderAcceptSelected === undefined) {
726
995
  // to determine the Accept header
727
996
  const httpHeaderAccepts: string[] = ['application/json'];
728
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
997
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
729
998
  }
730
- if (httpHeaderAcceptSelected !== undefined) {
731
- headers = headers.set('Accept', httpHeaderAcceptSelected);
999
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1000
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
732
1001
  }
733
1002
 
734
- let responseType_: 'text' | 'json' = 'json';
735
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
736
- responseType_ = 'text';
1003
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
1004
+ if (localVarHttpContext === undefined) {
1005
+ localVarHttpContext = new HttpContext();
737
1006
  }
738
1007
 
739
- return this.httpClient.get<AssetPageResult>(`${this.configuration.basePath}/assets`, {
740
- params: queryParameters,
1008
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
1009
+ if (localVarTransferCache === undefined) {
1010
+ localVarTransferCache = true;
1011
+ }
1012
+
1013
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
1014
+ if (localVarHttpHeaderAcceptSelected) {
1015
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1016
+ responseType_ = 'text';
1017
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1018
+ responseType_ = 'json';
1019
+ } else {
1020
+ responseType_ = 'blob';
1021
+ }
1022
+ }
1023
+
1024
+ let localVarPath = `/assets`;
1025
+ return this.httpClient.request<AssetPageResult>('get', `${this.configuration.basePath}${localVarPath}`, {
1026
+ context: localVarHttpContext,
1027
+ params: localVarQueryParameters,
741
1028
  responseType: <any>responseType_,
742
1029
  withCredentials: this.configuration.withCredentials,
743
- headers: headers,
1030
+ headers: localVarHeaders,
744
1031
  observe: observe,
1032
+ transferCache: localVarTransferCache,
745
1033
  reportProgress: reportProgress
746
1034
  });
747
1035
  }
748
1036
 
749
1037
  /**
750
1038
  * This endpoint returns one single asset (from ID). If the returned asset is from a special asset type (e.g. \&quot;AssetImage\&quot;) it returns the full entity.
751
- * @param id The ID of the asset.
752
- * @param fields Which fields are need to be filled out with comma separated. If one is set all non mandatory fields are left out. No validation if field exist.
753
- * @param expose This indicates if the given blobs should have URLs where these can be requested. It will expose placeholder blobs if no \&#39;thumbnail\&#39; is found.)
754
- * @param items The items can be extended to fully filled items.
755
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
1039
+ * @param requestParameters
756
1040
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
757
1041
  * @param reportProgress flag to report request and response progress.
758
1042
  */
759
1043
  public httpAssetsGetById(
760
- id: string,
761
- fields?: string,
762
- expose?: boolean,
763
- items?: boolean,
764
- translations?: boolean,
1044
+ requestParameters?: HttpAssetsGetByIdRequestParams,
765
1045
  observe?: 'body',
766
1046
  reportProgress?: boolean,
767
- options?: { httpHeaderAccept?: 'application/json' }
1047
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
768
1048
  ): Observable<Asset>;
769
1049
  public httpAssetsGetById(
770
- id: string,
771
- fields?: string,
772
- expose?: boolean,
773
- items?: boolean,
774
- translations?: boolean,
1050
+ requestParameters?: HttpAssetsGetByIdRequestParams,
775
1051
  observe?: 'response',
776
1052
  reportProgress?: boolean,
777
- options?: { httpHeaderAccept?: 'application/json' }
1053
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
778
1054
  ): Observable<HttpResponse<Asset>>;
779
1055
  public httpAssetsGetById(
780
- id: string,
781
- fields?: string,
782
- expose?: boolean,
783
- items?: boolean,
784
- translations?: boolean,
1056
+ requestParameters?: HttpAssetsGetByIdRequestParams,
785
1057
  observe?: 'events',
786
1058
  reportProgress?: boolean,
787
- options?: { httpHeaderAccept?: 'application/json' }
1059
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
788
1060
  ): Observable<HttpEvent<Asset>>;
789
1061
  public httpAssetsGetById(
790
- id: string,
791
- fields?: string,
792
- expose?: boolean,
793
- items?: boolean,
794
- translations?: boolean,
1062
+ requestParameters?: HttpAssetsGetByIdRequestParams,
795
1063
  observe: any = 'body',
796
1064
  reportProgress: boolean = false,
797
- options?: { httpHeaderAccept?: 'application/json' }
1065
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
798
1066
  ): Observable<any> {
1067
+ const id = requestParameters?.id;
799
1068
  if (id === null || id === undefined) {
800
1069
  throw new Error('Required parameter id was null or undefined when calling httpAssetsGetById.');
801
1070
  }
1071
+ const fields = requestParameters?.fields;
1072
+ const expose = requestParameters?.expose;
1073
+ const items = requestParameters?.items;
1074
+ const translations = requestParameters?.translations;
1075
+ const acceptLanguage = requestParameters?.acceptLanguage;
802
1076
 
803
- let queryParameters = new HttpParams({ encoder: this.encoder });
1077
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
804
1078
  if (fields !== undefined && fields !== null) {
805
- queryParameters = this.addToHttpParams(queryParameters, <any>fields, 'fields');
1079
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
806
1080
  }
807
1081
  if (expose !== undefined && expose !== null) {
808
- queryParameters = this.addToHttpParams(queryParameters, <any>expose, 'expose');
1082
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>expose, 'expose');
809
1083
  }
810
1084
  if (items !== undefined && items !== null) {
811
- queryParameters = this.addToHttpParams(queryParameters, <any>items, 'items');
1085
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
812
1086
  }
813
1087
  if (translations !== undefined && translations !== null) {
814
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
1088
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
815
1089
  }
816
1090
 
817
- let headers = this.defaultHeaders;
1091
+ let localVarHeaders = this.defaultHeaders;
1092
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
1093
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
1094
+ }
818
1095
 
819
- let credential: string | undefined;
1096
+ let localVarCredential: string | undefined;
820
1097
  // authentication (msal_auth) required
821
- credential = this.configuration.lookupCredential('msal_auth');
822
- if (credential) {
823
- headers = headers.set('Authorization', 'Bearer ' + credential);
1098
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
1099
+ if (localVarCredential) {
1100
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
824
1101
  }
825
1102
 
826
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
827
- if (httpHeaderAcceptSelected === undefined) {
1103
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1104
+ if (localVarHttpHeaderAcceptSelected === undefined) {
828
1105
  // to determine the Accept header
829
1106
  const httpHeaderAccepts: string[] = ['application/json'];
830
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1107
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
831
1108
  }
832
- if (httpHeaderAcceptSelected !== undefined) {
833
- headers = headers.set('Accept', httpHeaderAcceptSelected);
1109
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1110
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
834
1111
  }
835
1112
 
836
- let responseType_: 'text' | 'json' = 'json';
837
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
838
- responseType_ = 'text';
1113
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
1114
+ if (localVarHttpContext === undefined) {
1115
+ localVarHttpContext = new HttpContext();
839
1116
  }
840
1117
 
841
- return this.httpClient.get<Asset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}`, {
842
- params: queryParameters,
1118
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
1119
+ if (localVarTransferCache === undefined) {
1120
+ localVarTransferCache = true;
1121
+ }
1122
+
1123
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
1124
+ if (localVarHttpHeaderAcceptSelected) {
1125
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1126
+ responseType_ = 'text';
1127
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1128
+ responseType_ = 'json';
1129
+ } else {
1130
+ responseType_ = 'blob';
1131
+ }
1132
+ }
1133
+
1134
+ let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
1135
+ return this.httpClient.request<Asset>('get', `${this.configuration.basePath}${localVarPath}`, {
1136
+ context: localVarHttpContext,
1137
+ params: localVarQueryParameters,
843
1138
  responseType: <any>responseType_,
844
1139
  withCredentials: this.configuration.withCredentials,
845
- headers: headers,
1140
+ headers: localVarHeaders,
846
1141
  observe: observe,
1142
+ transferCache: localVarTransferCache,
847
1143
  reportProgress: reportProgress
848
1144
  });
849
1145
  }
850
1146
 
851
1147
  /**
852
1148
  * This endpoint updates one single asset (from ID)
853
- * @param id The ID of the asset.
854
- * @param asset The body has to contain one of the mentioned elements and a valid json. Not fitting properties are ignored.
855
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
1149
+ * @param requestParameters
856
1150
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
857
1151
  * @param reportProgress flag to report request and response progress.
858
1152
  */
859
- public httpAssetsUpdateById(id: string, asset: Asset, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Asset>;
860
1153
  public httpAssetsUpdateById(
861
- id: string,
862
- asset: Asset,
863
- translations?: boolean,
1154
+ requestParameters?: HttpAssetsUpdateByIdRequestParams,
1155
+ observe?: 'body',
1156
+ reportProgress?: boolean,
1157
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1158
+ ): Observable<Asset>;
1159
+ public httpAssetsUpdateById(
1160
+ requestParameters?: HttpAssetsUpdateByIdRequestParams,
864
1161
  observe?: 'response',
865
1162
  reportProgress?: boolean,
866
- options?: { httpHeaderAccept?: 'application/json' }
1163
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
867
1164
  ): Observable<HttpResponse<Asset>>;
868
1165
  public httpAssetsUpdateById(
869
- id: string,
870
- asset: Asset,
871
- translations?: boolean,
1166
+ requestParameters?: HttpAssetsUpdateByIdRequestParams,
872
1167
  observe?: 'events',
873
1168
  reportProgress?: boolean,
874
- options?: { httpHeaderAccept?: 'application/json' }
1169
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
875
1170
  ): Observable<HttpEvent<Asset>>;
876
1171
  public httpAssetsUpdateById(
877
- id: string,
878
- asset: Asset,
879
- translations?: boolean,
1172
+ requestParameters?: HttpAssetsUpdateByIdRequestParams,
880
1173
  observe: any = 'body',
881
1174
  reportProgress: boolean = false,
882
- options?: { httpHeaderAccept?: 'application/json' }
1175
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
883
1176
  ): Observable<any> {
1177
+ const id = requestParameters?.id;
884
1178
  if (id === null || id === undefined) {
885
1179
  throw new Error('Required parameter id was null or undefined when calling httpAssetsUpdateById.');
886
1180
  }
1181
+ const asset = requestParameters?.asset;
887
1182
  if (asset === null || asset === undefined) {
888
1183
  throw new Error('Required parameter asset was null or undefined when calling httpAssetsUpdateById.');
889
1184
  }
1185
+ const translations = requestParameters?.translations;
1186
+ const acceptLanguage = requestParameters?.acceptLanguage;
890
1187
 
891
- let queryParameters = new HttpParams({ encoder: this.encoder });
1188
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
892
1189
  if (translations !== undefined && translations !== null) {
893
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
1190
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
894
1191
  }
895
1192
 
896
- let headers = this.defaultHeaders;
1193
+ let localVarHeaders = this.defaultHeaders;
1194
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
1195
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
1196
+ }
897
1197
 
898
- let credential: string | undefined;
1198
+ let localVarCredential: string | undefined;
899
1199
  // authentication (msal_auth) required
900
- credential = this.configuration.lookupCredential('msal_auth');
901
- if (credential) {
902
- headers = headers.set('Authorization', 'Bearer ' + credential);
1200
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
1201
+ if (localVarCredential) {
1202
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
903
1203
  }
904
1204
 
905
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
906
- if (httpHeaderAcceptSelected === undefined) {
1205
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1206
+ if (localVarHttpHeaderAcceptSelected === undefined) {
907
1207
  // to determine the Accept header
908
1208
  const httpHeaderAccepts: string[] = ['application/json'];
909
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1209
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1210
+ }
1211
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1212
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1213
+ }
1214
+
1215
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
1216
+ if (localVarHttpContext === undefined) {
1217
+ localVarHttpContext = new HttpContext();
910
1218
  }
911
- if (httpHeaderAcceptSelected !== undefined) {
912
- headers = headers.set('Accept', httpHeaderAcceptSelected);
1219
+
1220
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
1221
+ if (localVarTransferCache === undefined) {
1222
+ localVarTransferCache = true;
913
1223
  }
914
1224
 
915
1225
  // to determine the Content-Type header
916
1226
  const consumes: string[] = ['application/json'];
917
1227
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
918
1228
  if (httpContentTypeSelected !== undefined) {
919
- headers = headers.set('Content-Type', httpContentTypeSelected);
1229
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
920
1230
  }
921
1231
 
922
- let responseType_: 'text' | 'json' = 'json';
923
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
924
- responseType_ = 'text';
1232
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
1233
+ if (localVarHttpHeaderAcceptSelected) {
1234
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1235
+ responseType_ = 'text';
1236
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1237
+ responseType_ = 'json';
1238
+ } else {
1239
+ responseType_ = 'blob';
1240
+ }
925
1241
  }
926
1242
 
927
- return this.httpClient.post<Asset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}`, asset, {
928
- params: queryParameters,
1243
+ let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
1244
+ return this.httpClient.request<Asset>('post', `${this.configuration.basePath}${localVarPath}`, {
1245
+ context: localVarHttpContext,
1246
+ body: asset,
1247
+ params: localVarQueryParameters,
929
1248
  responseType: <any>responseType_,
930
1249
  withCredentials: this.configuration.withCredentials,
931
- headers: headers,
1250
+ headers: localVarHeaders,
932
1251
  observe: observe,
1252
+ transferCache: localVarTransferCache,
933
1253
  reportProgress: reportProgress
934
1254
  });
935
1255
  }