@agravity/private 7.3.0 → 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 +19 -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.0
6
5
  * Contact: office@agravity.io
7
6
  *
8
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,16 +11,71 @@
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 { DownloadFormat } from '../model/models';
18
+ // @ts-ignore
19
+ import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
20
+ // @ts-ignore
21
+ import { AgravityInfoResponse } from '../model/agravityInfoResponse.agravity';
22
+ // @ts-ignore
23
+ import { DownloadFormat } from '../model/downloadFormat.agravity';
24
+ // @ts-ignore
25
+ import { PermissionChange } from '../model/permissionChange.agravity';
21
26
 
27
+ // @ts-ignore
22
28
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23
29
  import { AgravityConfiguration } from '../configuration';
24
30
 
31
+ export interface HttpDownloadFormatsCreateRequestParams {
32
+ /** This endpoint creates an unique download format ID and adds the information to the database. */
33
+ downloadFormat: DownloadFormat;
34
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
35
+ translations?: boolean;
36
+ /** The requested language of the response. If not matching it falls back to default language. */
37
+ acceptLanguage?: string;
38
+ }
39
+
40
+ export interface HttpDownloadFormatsDeleteByIdRequestParams {
41
+ /** The ID of the download format. */
42
+ id: string;
43
+ }
44
+
45
+ export interface HttpDownloadFormatsGetAllRequestParams {
46
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
47
+ translations?: boolean;
48
+ /** The requested language of the response. If not matching it falls back to default language. */
49
+ acceptLanguage?: string;
50
+ }
51
+
52
+ export interface HttpDownloadFormatsGetByIdRequestParams {
53
+ /** The ID of the download format. */
54
+ id: string;
55
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
56
+ translations?: boolean;
57
+ /** The requested language of the response. If not matching it falls back to default language. */
58
+ acceptLanguage?: string;
59
+ }
60
+
61
+ export interface HttpDownloadFormatsUpdatePermissionsByIdRequestParams {
62
+ /** The ID of the download format. */
63
+ id: string;
64
+ /** The changes which ids and how they should be added / removed / replaced / etc. */
65
+ permissionChange: PermissionChange;
66
+ }
67
+
68
+ export interface HttpDownloadFormatsUpdateWithIdRequestParams {
69
+ /** The ID of the download format. */
70
+ id: string;
71
+ /** This endpoint updates a download format with ID and adds the information to the database. */
72
+ downloadFormat: DownloadFormat;
73
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
74
+ translations?: boolean;
75
+ /** The requested language of the response. If not matching it falls back to default language. */
76
+ acceptLanguage?: string;
77
+ }
78
+
25
79
  @Injectable({
26
80
  providedIn: 'root'
27
81
  })
@@ -33,13 +87,18 @@ export class DownloadFormatManagementService {
33
87
 
34
88
  constructor(
35
89
  protected httpClient: HttpClient,
36
- @Optional() @Inject(BASE_PATH) basePath: string,
90
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
37
91
  @Optional() configuration: AgravityConfiguration
38
92
  ) {
39
93
  if (configuration) {
40
94
  this.configuration = configuration;
41
95
  }
42
96
  if (typeof this.configuration.basePath !== 'string') {
97
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
98
+ if (firstBasePath != undefined) {
99
+ basePath = firstBasePath;
100
+ }
101
+
43
102
  if (typeof basePath !== 'string') {
44
103
  basePath = this.basePath;
45
104
  }
@@ -48,6 +107,7 @@ export class DownloadFormatManagementService {
48
107
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
49
108
  }
50
109
 
110
+ // @ts-ignore
51
111
  private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
52
112
  if (typeof value === 'object' && value instanceof Date === false) {
53
113
  httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -67,7 +127,7 @@ export class DownloadFormatManagementService {
67
127
  (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
68
128
  } else if (value instanceof Date) {
69
129
  if (key != null) {
70
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
130
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
71
131
  } else {
72
132
  throw Error('key may not be null if value is Date');
73
133
  }
@@ -84,356 +144,594 @@ export class DownloadFormatManagementService {
84
144
 
85
145
  /**
86
146
  * This endpoint creates one download format entry in the database.
87
- * @param downloadFormat This endpoint creates an unique download format ID and adds the information to the database.
88
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
147
+ * @param requestParameters
89
148
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
90
149
  * @param reportProgress flag to report request and response progress.
91
150
  */
92
151
  public httpDownloadFormatsCreate(
93
- downloadFormat: DownloadFormat,
94
- translations?: boolean,
152
+ requestParameters?: HttpDownloadFormatsCreateRequestParams,
95
153
  observe?: 'body',
96
154
  reportProgress?: boolean,
97
- options?: { httpHeaderAccept?: 'application/json' }
155
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
98
156
  ): Observable<DownloadFormat>;
99
157
  public httpDownloadFormatsCreate(
100
- downloadFormat: DownloadFormat,
101
- translations?: boolean,
158
+ requestParameters?: HttpDownloadFormatsCreateRequestParams,
102
159
  observe?: 'response',
103
160
  reportProgress?: boolean,
104
- options?: { httpHeaderAccept?: 'application/json' }
161
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
105
162
  ): Observable<HttpResponse<DownloadFormat>>;
106
163
  public httpDownloadFormatsCreate(
107
- downloadFormat: DownloadFormat,
108
- translations?: boolean,
164
+ requestParameters?: HttpDownloadFormatsCreateRequestParams,
109
165
  observe?: 'events',
110
166
  reportProgress?: boolean,
111
- options?: { httpHeaderAccept?: 'application/json' }
167
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
112
168
  ): Observable<HttpEvent<DownloadFormat>>;
113
169
  public httpDownloadFormatsCreate(
114
- downloadFormat: DownloadFormat,
115
- translations?: boolean,
170
+ requestParameters?: HttpDownloadFormatsCreateRequestParams,
116
171
  observe: any = 'body',
117
172
  reportProgress: boolean = false,
118
- options?: { httpHeaderAccept?: 'application/json' }
173
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
119
174
  ): Observable<any> {
175
+ const downloadFormat = requestParameters?.downloadFormat;
120
176
  if (downloadFormat === null || downloadFormat === undefined) {
121
177
  throw new Error('Required parameter downloadFormat was null or undefined when calling httpDownloadFormatsCreate.');
122
178
  }
179
+ const translations = requestParameters?.translations;
180
+ const acceptLanguage = requestParameters?.acceptLanguage;
123
181
 
124
- let queryParameters = new HttpParams({ encoder: this.encoder });
182
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
125
183
  if (translations !== undefined && translations !== null) {
126
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
184
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
127
185
  }
128
186
 
129
- let headers = this.defaultHeaders;
187
+ let localVarHeaders = this.defaultHeaders;
188
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
189
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
190
+ }
130
191
 
131
- let credential: string | undefined;
192
+ let localVarCredential: string | undefined;
132
193
  // authentication (msal_auth) required
133
- credential = this.configuration.lookupCredential('msal_auth');
134
- if (credential) {
135
- headers = headers.set('Authorization', 'Bearer ' + credential);
194
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
195
+ if (localVarCredential) {
196
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
136
197
  }
137
198
 
138
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
139
- if (httpHeaderAcceptSelected === undefined) {
199
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
200
+ if (localVarHttpHeaderAcceptSelected === undefined) {
140
201
  // to determine the Accept header
141
202
  const httpHeaderAccepts: string[] = ['application/json'];
142
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
203
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
143
204
  }
144
- if (httpHeaderAcceptSelected !== undefined) {
145
- headers = headers.set('Accept', httpHeaderAcceptSelected);
205
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
206
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
207
+ }
208
+
209
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
210
+ if (localVarHttpContext === undefined) {
211
+ localVarHttpContext = new HttpContext();
212
+ }
213
+
214
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
215
+ if (localVarTransferCache === undefined) {
216
+ localVarTransferCache = true;
146
217
  }
147
218
 
148
219
  // to determine the Content-Type header
149
220
  const consumes: string[] = ['application/json'];
150
221
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
151
222
  if (httpContentTypeSelected !== undefined) {
152
- headers = headers.set('Content-Type', httpContentTypeSelected);
223
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
153
224
  }
154
225
 
155
- let responseType_: 'text' | 'json' = 'json';
156
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
157
- responseType_ = 'text';
226
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
227
+ if (localVarHttpHeaderAcceptSelected) {
228
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
229
+ responseType_ = 'text';
230
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
231
+ responseType_ = 'json';
232
+ } else {
233
+ responseType_ = 'blob';
234
+ }
158
235
  }
159
236
 
160
- return this.httpClient.post<DownloadFormat>(`${this.configuration.basePath}/downloadformats`, downloadFormat, {
161
- params: queryParameters,
237
+ let localVarPath = `/downloadformats`;
238
+ return this.httpClient.request<DownloadFormat>('post', `${this.configuration.basePath}${localVarPath}`, {
239
+ context: localVarHttpContext,
240
+ body: downloadFormat,
241
+ params: localVarQueryParameters,
162
242
  responseType: <any>responseType_,
163
243
  withCredentials: this.configuration.withCredentials,
164
- headers: headers,
244
+ headers: localVarHeaders,
165
245
  observe: observe,
246
+ transferCache: localVarTransferCache,
166
247
  reportProgress: reportProgress
167
248
  });
168
249
  }
169
250
 
170
251
  /**
171
252
  * This endpoint deletes a single download format.
172
- * @param id The ID of the download format.
253
+ * @param requestParameters
173
254
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
174
255
  * @param reportProgress flag to report request and response progress.
175
256
  */
176
- public httpDownloadFormatsDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
177
- public httpDownloadFormatsDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<any>>;
178
- public httpDownloadFormatsDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
179
- public httpDownloadFormatsDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
257
+ public httpDownloadFormatsDeleteById(
258
+ requestParameters?: HttpDownloadFormatsDeleteByIdRequestParams,
259
+ observe?: 'body',
260
+ reportProgress?: boolean,
261
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
262
+ ): Observable<any>;
263
+ public httpDownloadFormatsDeleteById(
264
+ requestParameters?: HttpDownloadFormatsDeleteByIdRequestParams,
265
+ observe?: 'response',
266
+ reportProgress?: boolean,
267
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
268
+ ): Observable<HttpResponse<any>>;
269
+ public httpDownloadFormatsDeleteById(
270
+ requestParameters?: HttpDownloadFormatsDeleteByIdRequestParams,
271
+ observe?: 'events',
272
+ reportProgress?: boolean,
273
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
274
+ ): Observable<HttpEvent<any>>;
275
+ public httpDownloadFormatsDeleteById(
276
+ requestParameters?: HttpDownloadFormatsDeleteByIdRequestParams,
277
+ observe: any = 'body',
278
+ reportProgress: boolean = false,
279
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
280
+ ): Observable<any> {
281
+ const id = requestParameters?.id;
180
282
  if (id === null || id === undefined) {
181
283
  throw new Error('Required parameter id was null or undefined when calling httpDownloadFormatsDeleteById.');
182
284
  }
183
285
 
184
- let headers = this.defaultHeaders;
286
+ let localVarHeaders = this.defaultHeaders;
185
287
 
186
- let credential: string | undefined;
288
+ let localVarCredential: string | undefined;
187
289
  // authentication (msal_auth) required
188
- credential = this.configuration.lookupCredential('msal_auth');
189
- if (credential) {
190
- headers = headers.set('Authorization', 'Bearer ' + credential);
290
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
291
+ if (localVarCredential) {
292
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
191
293
  }
192
294
 
193
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
194
- if (httpHeaderAcceptSelected === undefined) {
295
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
296
+ if (localVarHttpHeaderAcceptSelected === undefined) {
195
297
  // to determine the Accept header
196
298
  const httpHeaderAccepts: string[] = ['application/json'];
197
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
299
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
300
+ }
301
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
302
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
303
+ }
304
+
305
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
306
+ if (localVarHttpContext === undefined) {
307
+ localVarHttpContext = new HttpContext();
198
308
  }
199
- if (httpHeaderAcceptSelected !== undefined) {
200
- headers = headers.set('Accept', httpHeaderAcceptSelected);
309
+
310
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
311
+ if (localVarTransferCache === undefined) {
312
+ localVarTransferCache = true;
201
313
  }
202
314
 
203
- let responseType_: 'text' | 'json' = 'json';
204
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
205
- responseType_ = 'text';
315
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
316
+ if (localVarHttpHeaderAcceptSelected) {
317
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
318
+ responseType_ = 'text';
319
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
320
+ responseType_ = 'json';
321
+ } else {
322
+ responseType_ = 'blob';
323
+ }
206
324
  }
207
325
 
208
- return this.httpClient.delete<any>(`${this.configuration.basePath}/downloadformats/${encodeURIComponent(String(id))}`, {
326
+ let localVarPath = `/downloadformats/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
327
+ return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
328
+ context: localVarHttpContext,
209
329
  responseType: <any>responseType_,
210
330
  withCredentials: this.configuration.withCredentials,
211
- headers: headers,
331
+ headers: localVarHeaders,
212
332
  observe: observe,
333
+ transferCache: localVarTransferCache,
213
334
  reportProgress: reportProgress
214
335
  });
215
336
  }
216
337
 
217
338
  /**
218
339
  * This endpoint lists all download formats in database.
219
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
340
+ * @param requestParameters
220
341
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
221
342
  * @param reportProgress flag to report request and response progress.
222
343
  */
223
- public httpDownloadFormatsGetAll(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<DownloadFormat>>;
224
344
  public httpDownloadFormatsGetAll(
225
- translations?: boolean,
345
+ requestParameters?: HttpDownloadFormatsGetAllRequestParams,
346
+ observe?: 'body',
347
+ reportProgress?: boolean,
348
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
349
+ ): Observable<Array<DownloadFormat>>;
350
+ public httpDownloadFormatsGetAll(
351
+ requestParameters?: HttpDownloadFormatsGetAllRequestParams,
226
352
  observe?: 'response',
227
353
  reportProgress?: boolean,
228
- options?: { httpHeaderAccept?: 'application/json' }
354
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
229
355
  ): Observable<HttpResponse<Array<DownloadFormat>>>;
230
356
  public httpDownloadFormatsGetAll(
231
- translations?: boolean,
357
+ requestParameters?: HttpDownloadFormatsGetAllRequestParams,
232
358
  observe?: 'events',
233
359
  reportProgress?: boolean,
234
- options?: { httpHeaderAccept?: 'application/json' }
360
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
235
361
  ): Observable<HttpEvent<Array<DownloadFormat>>>;
236
- public httpDownloadFormatsGetAll(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
237
- let queryParameters = new HttpParams({ encoder: this.encoder });
362
+ public httpDownloadFormatsGetAll(
363
+ requestParameters?: HttpDownloadFormatsGetAllRequestParams,
364
+ observe: any = 'body',
365
+ reportProgress: boolean = false,
366
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
367
+ ): Observable<any> {
368
+ const translations = requestParameters?.translations;
369
+ const acceptLanguage = requestParameters?.acceptLanguage;
370
+
371
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
238
372
  if (translations !== undefined && translations !== null) {
239
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
373
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
240
374
  }
241
375
 
242
- let headers = this.defaultHeaders;
376
+ let localVarHeaders = this.defaultHeaders;
377
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
378
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
379
+ }
243
380
 
244
- let credential: string | undefined;
381
+ let localVarCredential: string | undefined;
245
382
  // authentication (msal_auth) required
246
- credential = this.configuration.lookupCredential('msal_auth');
247
- if (credential) {
248
- headers = headers.set('Authorization', 'Bearer ' + credential);
383
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
384
+ if (localVarCredential) {
385
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
249
386
  }
250
387
 
251
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
252
- if (httpHeaderAcceptSelected === undefined) {
388
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
389
+ if (localVarHttpHeaderAcceptSelected === undefined) {
253
390
  // to determine the Accept header
254
391
  const httpHeaderAccepts: string[] = ['application/json'];
255
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
392
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
256
393
  }
257
- if (httpHeaderAcceptSelected !== undefined) {
258
- headers = headers.set('Accept', httpHeaderAcceptSelected);
394
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
395
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
396
+ }
397
+
398
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
399
+ if (localVarHttpContext === undefined) {
400
+ localVarHttpContext = new HttpContext();
259
401
  }
260
402
 
261
- let responseType_: 'text' | 'json' = 'json';
262
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
263
- responseType_ = 'text';
403
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
404
+ if (localVarTransferCache === undefined) {
405
+ localVarTransferCache = true;
406
+ }
407
+
408
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
409
+ if (localVarHttpHeaderAcceptSelected) {
410
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
411
+ responseType_ = 'text';
412
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
413
+ responseType_ = 'json';
414
+ } else {
415
+ responseType_ = 'blob';
416
+ }
264
417
  }
265
418
 
266
- return this.httpClient.get<Array<DownloadFormat>>(`${this.configuration.basePath}/downloadformats`, {
267
- params: queryParameters,
419
+ let localVarPath = `/downloadformats`;
420
+ return this.httpClient.request<Array<DownloadFormat>>('get', `${this.configuration.basePath}${localVarPath}`, {
421
+ context: localVarHttpContext,
422
+ params: localVarQueryParameters,
268
423
  responseType: <any>responseType_,
269
424
  withCredentials: this.configuration.withCredentials,
270
- headers: headers,
425
+ headers: localVarHeaders,
271
426
  observe: observe,
427
+ transferCache: localVarTransferCache,
272
428
  reportProgress: reportProgress
273
429
  });
274
430
  }
275
431
 
276
432
  /**
277
433
  * This endpoint get a single download format.
278
- * @param id The ID of the download format.
279
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
434
+ * @param requestParameters
280
435
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
281
436
  * @param reportProgress flag to report request and response progress.
282
437
  */
283
- public httpDownloadFormatsGetById(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
284
438
  public httpDownloadFormatsGetById(
285
- id: string,
286
- translations?: boolean,
439
+ requestParameters?: HttpDownloadFormatsGetByIdRequestParams,
440
+ observe?: 'body',
441
+ reportProgress?: boolean,
442
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
443
+ ): Observable<any>;
444
+ public httpDownloadFormatsGetById(
445
+ requestParameters?: HttpDownloadFormatsGetByIdRequestParams,
287
446
  observe?: 'response',
288
447
  reportProgress?: boolean,
289
- options?: { httpHeaderAccept?: 'application/json' }
448
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
290
449
  ): Observable<HttpResponse<any>>;
291
450
  public httpDownloadFormatsGetById(
292
- id: string,
293
- translations?: boolean,
451
+ requestParameters?: HttpDownloadFormatsGetByIdRequestParams,
294
452
  observe?: 'events',
295
453
  reportProgress?: boolean,
296
- options?: { httpHeaderAccept?: 'application/json' }
454
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
297
455
  ): Observable<HttpEvent<any>>;
298
456
  public httpDownloadFormatsGetById(
299
- id: string,
300
- translations?: boolean,
457
+ requestParameters?: HttpDownloadFormatsGetByIdRequestParams,
301
458
  observe: any = 'body',
302
459
  reportProgress: boolean = false,
303
- options?: { httpHeaderAccept?: 'application/json' }
460
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
304
461
  ): Observable<any> {
462
+ const id = requestParameters?.id;
305
463
  if (id === null || id === undefined) {
306
464
  throw new Error('Required parameter id was null or undefined when calling httpDownloadFormatsGetById.');
307
465
  }
466
+ const translations = requestParameters?.translations;
467
+ const acceptLanguage = requestParameters?.acceptLanguage;
308
468
 
309
- let queryParameters = new HttpParams({ encoder: this.encoder });
469
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
310
470
  if (translations !== undefined && translations !== null) {
311
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
471
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
312
472
  }
313
473
 
314
- let headers = this.defaultHeaders;
474
+ let localVarHeaders = this.defaultHeaders;
475
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
476
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
477
+ }
315
478
 
316
- let credential: string | undefined;
479
+ let localVarCredential: string | undefined;
317
480
  // authentication (msal_auth) required
318
- credential = this.configuration.lookupCredential('msal_auth');
319
- if (credential) {
320
- headers = headers.set('Authorization', 'Bearer ' + credential);
481
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
482
+ if (localVarCredential) {
483
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
321
484
  }
322
485
 
323
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
324
- if (httpHeaderAcceptSelected === undefined) {
486
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
487
+ if (localVarHttpHeaderAcceptSelected === undefined) {
325
488
  // to determine the Accept header
326
489
  const httpHeaderAccepts: string[] = ['application/json'];
327
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
490
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
491
+ }
492
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
493
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
328
494
  }
329
- if (httpHeaderAcceptSelected !== undefined) {
330
- headers = headers.set('Accept', httpHeaderAcceptSelected);
495
+
496
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
497
+ if (localVarHttpContext === undefined) {
498
+ localVarHttpContext = new HttpContext();
331
499
  }
332
500
 
333
- let responseType_: 'text' | 'json' = 'json';
334
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
335
- responseType_ = 'text';
501
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
502
+ if (localVarTransferCache === undefined) {
503
+ localVarTransferCache = true;
336
504
  }
337
505
 
338
- return this.httpClient.get<any>(`${this.configuration.basePath}/downloadformats/${encodeURIComponent(String(id))}`, {
339
- params: queryParameters,
506
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
507
+ if (localVarHttpHeaderAcceptSelected) {
508
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
509
+ responseType_ = 'text';
510
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
511
+ responseType_ = 'json';
512
+ } else {
513
+ responseType_ = 'blob';
514
+ }
515
+ }
516
+
517
+ let localVarPath = `/downloadformats/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
518
+ return this.httpClient.request<any>('get', `${this.configuration.basePath}${localVarPath}`, {
519
+ context: localVarHttpContext,
520
+ params: localVarQueryParameters,
521
+ responseType: <any>responseType_,
522
+ withCredentials: this.configuration.withCredentials,
523
+ headers: localVarHeaders,
524
+ observe: observe,
525
+ transferCache: localVarTransferCache,
526
+ reportProgress: reportProgress
527
+ });
528
+ }
529
+
530
+ /**
531
+ * This endpoint updates the permissions of the download format. The modifier tells the system what to do with the list of ids.
532
+ * @param requestParameters
533
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
534
+ * @param reportProgress flag to report request and response progress.
535
+ */
536
+ public httpDownloadFormatsUpdatePermissionsById(
537
+ requestParameters?: HttpDownloadFormatsUpdatePermissionsByIdRequestParams,
538
+ observe?: 'body',
539
+ reportProgress?: boolean,
540
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
541
+ ): Observable<AgravityInfoResponse>;
542
+ public httpDownloadFormatsUpdatePermissionsById(
543
+ requestParameters?: HttpDownloadFormatsUpdatePermissionsByIdRequestParams,
544
+ observe?: 'response',
545
+ reportProgress?: boolean,
546
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
547
+ ): Observable<HttpResponse<AgravityInfoResponse>>;
548
+ public httpDownloadFormatsUpdatePermissionsById(
549
+ requestParameters?: HttpDownloadFormatsUpdatePermissionsByIdRequestParams,
550
+ observe?: 'events',
551
+ reportProgress?: boolean,
552
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
553
+ ): Observable<HttpEvent<AgravityInfoResponse>>;
554
+ public httpDownloadFormatsUpdatePermissionsById(
555
+ requestParameters?: HttpDownloadFormatsUpdatePermissionsByIdRequestParams,
556
+ observe: any = 'body',
557
+ reportProgress: boolean = false,
558
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
559
+ ): Observable<any> {
560
+ const id = requestParameters?.id;
561
+ if (id === null || id === undefined) {
562
+ throw new Error('Required parameter id was null or undefined when calling httpDownloadFormatsUpdatePermissionsById.');
563
+ }
564
+ const permissionChange = requestParameters?.permissionChange;
565
+ if (permissionChange === null || permissionChange === undefined) {
566
+ throw new Error('Required parameter permissionChange was null or undefined when calling httpDownloadFormatsUpdatePermissionsById.');
567
+ }
568
+
569
+ let localVarHeaders = this.defaultHeaders;
570
+
571
+ let localVarCredential: string | undefined;
572
+ // authentication (msal_auth) required
573
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
574
+ if (localVarCredential) {
575
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
576
+ }
577
+
578
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
579
+ if (localVarHttpHeaderAcceptSelected === undefined) {
580
+ // to determine the Accept header
581
+ const httpHeaderAccepts: string[] = ['application/json'];
582
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
583
+ }
584
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
585
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
586
+ }
587
+
588
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
589
+ if (localVarHttpContext === undefined) {
590
+ localVarHttpContext = new HttpContext();
591
+ }
592
+
593
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
594
+ if (localVarTransferCache === undefined) {
595
+ localVarTransferCache = true;
596
+ }
597
+
598
+ // to determine the Content-Type header
599
+ const consumes: string[] = ['application/json'];
600
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
601
+ if (httpContentTypeSelected !== undefined) {
602
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
603
+ }
604
+
605
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
606
+ if (localVarHttpHeaderAcceptSelected) {
607
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
608
+ responseType_ = 'text';
609
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
610
+ responseType_ = 'json';
611
+ } else {
612
+ responseType_ = 'blob';
613
+ }
614
+ }
615
+
616
+ let localVarPath = `/downloadformats/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/permissions`;
617
+ return this.httpClient.request<AgravityInfoResponse>('post', `${this.configuration.basePath}${localVarPath}`, {
618
+ context: localVarHttpContext,
619
+ body: permissionChange,
340
620
  responseType: <any>responseType_,
341
621
  withCredentials: this.configuration.withCredentials,
342
- headers: headers,
622
+ headers: localVarHeaders,
343
623
  observe: observe,
624
+ transferCache: localVarTransferCache,
344
625
  reportProgress: reportProgress
345
626
  });
346
627
  }
347
628
 
348
629
  /**
349
630
  * This endpoint updates a download format entry in the database.
350
- * @param id The ID of the download format.
351
- * @param downloadFormat This endpoint updates a download format with ID and adds the information to the database.
352
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
631
+ * @param requestParameters
353
632
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
354
633
  * @param reportProgress flag to report request and response progress.
355
634
  */
356
635
  public httpDownloadFormatsUpdateWithId(
357
- id: string,
358
- downloadFormat: DownloadFormat,
359
- translations?: boolean,
636
+ requestParameters?: HttpDownloadFormatsUpdateWithIdRequestParams,
360
637
  observe?: 'body',
361
638
  reportProgress?: boolean,
362
- options?: { httpHeaderAccept?: 'application/json' }
639
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
363
640
  ): Observable<DownloadFormat>;
364
641
  public httpDownloadFormatsUpdateWithId(
365
- id: string,
366
- downloadFormat: DownloadFormat,
367
- translations?: boolean,
642
+ requestParameters?: HttpDownloadFormatsUpdateWithIdRequestParams,
368
643
  observe?: 'response',
369
644
  reportProgress?: boolean,
370
- options?: { httpHeaderAccept?: 'application/json' }
645
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
371
646
  ): Observable<HttpResponse<DownloadFormat>>;
372
647
  public httpDownloadFormatsUpdateWithId(
373
- id: string,
374
- downloadFormat: DownloadFormat,
375
- translations?: boolean,
648
+ requestParameters?: HttpDownloadFormatsUpdateWithIdRequestParams,
376
649
  observe?: 'events',
377
650
  reportProgress?: boolean,
378
- options?: { httpHeaderAccept?: 'application/json' }
651
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
379
652
  ): Observable<HttpEvent<DownloadFormat>>;
380
653
  public httpDownloadFormatsUpdateWithId(
381
- id: string,
382
- downloadFormat: DownloadFormat,
383
- translations?: boolean,
654
+ requestParameters?: HttpDownloadFormatsUpdateWithIdRequestParams,
384
655
  observe: any = 'body',
385
656
  reportProgress: boolean = false,
386
- options?: { httpHeaderAccept?: 'application/json' }
657
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
387
658
  ): Observable<any> {
659
+ const id = requestParameters?.id;
388
660
  if (id === null || id === undefined) {
389
661
  throw new Error('Required parameter id was null or undefined when calling httpDownloadFormatsUpdateWithId.');
390
662
  }
663
+ const downloadFormat = requestParameters?.downloadFormat;
391
664
  if (downloadFormat === null || downloadFormat === undefined) {
392
665
  throw new Error('Required parameter downloadFormat was null or undefined when calling httpDownloadFormatsUpdateWithId.');
393
666
  }
667
+ const translations = requestParameters?.translations;
668
+ const acceptLanguage = requestParameters?.acceptLanguage;
394
669
 
395
- let queryParameters = new HttpParams({ encoder: this.encoder });
670
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
396
671
  if (translations !== undefined && translations !== null) {
397
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
672
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
398
673
  }
399
674
 
400
- let headers = this.defaultHeaders;
675
+ let localVarHeaders = this.defaultHeaders;
676
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
677
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
678
+ }
401
679
 
402
- let credential: string | undefined;
680
+ let localVarCredential: string | undefined;
403
681
  // authentication (msal_auth) required
404
- credential = this.configuration.lookupCredential('msal_auth');
405
- if (credential) {
406
- headers = headers.set('Authorization', 'Bearer ' + credential);
682
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
683
+ if (localVarCredential) {
684
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
407
685
  }
408
686
 
409
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
410
- if (httpHeaderAcceptSelected === undefined) {
687
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
688
+ if (localVarHttpHeaderAcceptSelected === undefined) {
411
689
  // to determine the Accept header
412
690
  const httpHeaderAccepts: string[] = ['application/json'];
413
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
691
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
692
+ }
693
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
694
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
414
695
  }
415
- if (httpHeaderAcceptSelected !== undefined) {
416
- headers = headers.set('Accept', httpHeaderAcceptSelected);
696
+
697
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
698
+ if (localVarHttpContext === undefined) {
699
+ localVarHttpContext = new HttpContext();
700
+ }
701
+
702
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
703
+ if (localVarTransferCache === undefined) {
704
+ localVarTransferCache = true;
417
705
  }
418
706
 
419
707
  // to determine the Content-Type header
420
708
  const consumes: string[] = ['application/json'];
421
709
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
422
710
  if (httpContentTypeSelected !== undefined) {
423
- headers = headers.set('Content-Type', httpContentTypeSelected);
711
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
424
712
  }
425
713
 
426
- let responseType_: 'text' | 'json' = 'json';
427
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
428
- responseType_ = 'text';
714
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
715
+ if (localVarHttpHeaderAcceptSelected) {
716
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
717
+ responseType_ = 'text';
718
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
719
+ responseType_ = 'json';
720
+ } else {
721
+ responseType_ = 'blob';
722
+ }
429
723
  }
430
724
 
431
- return this.httpClient.post<DownloadFormat>(`${this.configuration.basePath}/downloadformats/${encodeURIComponent(String(id))}`, downloadFormat, {
432
- params: queryParameters,
725
+ let localVarPath = `/downloadformats/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
726
+ return this.httpClient.request<DownloadFormat>('post', `${this.configuration.basePath}${localVarPath}`, {
727
+ context: localVarHttpContext,
728
+ body: downloadFormat,
729
+ params: localVarQueryParameters,
433
730
  responseType: <any>responseType_,
434
731
  withCredentials: this.configuration.withCredentials,
435
- headers: headers,
732
+ headers: localVarHeaders,
436
733
  observe: observe,
734
+ transferCache: localVarTransferCache,
437
735
  reportProgress: reportProgress
438
736
  });
439
737
  }