@agravity/private 5.3.0 → 5.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +2 -2
  2. package/api/api.ts +101 -67
  3. package/api/assetIconRuleManagement.agravity.ts +434 -400
  4. package/api/assetManagement.agravity.ts +856 -737
  5. package/api/assetOperations.agravity.ts +1415 -1309
  6. package/api/assetPublishing.agravity.ts +549 -511
  7. package/api/assetVersioning.agravity.ts +707 -657
  8. package/api/authenticationManagement.agravity.ts +473 -502
  9. package/api/collectionManagement.agravity.ts +731 -618
  10. package/api/collectionSharing.agravity.ts +359 -329
  11. package/api/collectionTypeItemBlueprintManagement.agravity.ts +373 -340
  12. package/api/collectionTypeManagement.agravity.ts +609 -533
  13. package/api/configurationManagement.agravity.ts +316 -311
  14. package/api/downloadFormatManagement.agravity.ts +440 -400
  15. package/api/downloadZip.agravity.ts +149 -151
  16. package/api/generalManagement.agravity.ts +328 -348
  17. package/api/helperTools.agravity.ts +619 -682
  18. package/api/historyEntryManagement.agravity.ts +149 -139
  19. package/api/iccProfileManagement.agravity.ts +123 -134
  20. package/api/listBlobs.agravity.ts +168 -185
  21. package/api/listQueues.agravity.ts +123 -134
  22. package/api/permissionsManagement.agravity.ts +276 -262
  23. package/api/publishing.agravity.ts +160 -148
  24. package/api/quickshareManagement.agravity.ts +378 -385
  25. package/api/savedSearchManagement.agravity.ts +293 -271
  26. package/api/searchManagement.agravity.ts +365 -345
  27. package/api/secureUpload.agravity.ts +375 -371
  28. package/api/signalRConnectionManagement.agravity.ts +200 -218
  29. package/api/staticDefinedListManagement.agravity.ts +457 -408
  30. package/api/stockImport.agravity.ts +242 -221
  31. package/api/structureImport.agravity.ts +126 -137
  32. package/api/translationManagement.agravity.ts +490 -404
  33. package/api/webAppData.agravity.ts +274 -300
  34. package/api/wordpressManagement.agravity.ts +326 -282
  35. package/api/workspaceManagement.agravity.ts +543 -513
  36. package/api.module.ts +61 -63
  37. package/configuration.ts +125 -130
  38. package/encoder.ts +20 -20
  39. package/index.ts +5 -5
  40. package/model/agravityErrorResponse.agravity.ts +17 -19
  41. package/model/agravityInfoResponse.agravity.ts +17 -19
  42. package/model/agravityUser.agravity.ts +35 -37
  43. package/model/agravityVersion.agravity.ts +22 -24
  44. package/model/allWebAppData.agravity.ts +22 -24
  45. package/model/apiKeyResponse.agravity.ts +16 -18
  46. package/model/appConfigTableEntity.agravity.ts +23 -25
  47. package/model/artificialIntelligenceGroup.agravity.ts +18 -20
  48. package/model/asset.agravity.ts +45 -47
  49. package/model/assetAvailability.agravity.ts +17 -19
  50. package/model/assetBlob.agravity.ts +79 -82
  51. package/model/assetBulkUpdate.agravity.ts +18 -20
  52. package/model/assetCollectionLink.agravity.ts +16 -18
  53. package/model/assetIconRule.agravity.ts +33 -35
  54. package/model/assetIdFormat.agravity.ts +17 -19
  55. package/model/assetPageResult.agravity.ts +21 -23
  56. package/model/assetsOperationBody.agravity.ts +18 -20
  57. package/model/azSearchOptions.agravity.ts +23 -25
  58. package/model/azureIdentity.agravity.ts +27 -30
  59. package/model/blobInfoObj.agravity.ts +21 -23
  60. package/model/collTypeItem.agravity.ts +36 -38
  61. package/model/collTypeItemBlueprint.agravity.ts +29 -31
  62. package/model/collection.agravity.ts +33 -35
  63. package/model/collectionType.agravity.ts +33 -35
  64. package/model/collectionUDL.agravity.ts +19 -21
  65. package/model/createSftpUserResult.agravity.ts +16 -18
  66. package/model/dataResult.agravity.ts +20 -22
  67. package/model/distZipResponse.agravity.ts +17 -19
  68. package/model/downloadFormat.agravity.ts +32 -34
  69. package/model/downloadObject.agravity.ts +30 -32
  70. package/model/downloadZipRequest.agravity.ts +23 -25
  71. package/model/dynamicImageOperation.agravity.ts +16 -18
  72. package/model/emailAddress.agravity.ts +16 -18
  73. package/model/entityId.agravity.ts +15 -17
  74. package/model/entityIdName.agravity.ts +17 -19
  75. package/model/entityTranslations.agravity.ts +16 -18
  76. package/model/frontendAppConfig.agravity.ts +19 -21
  77. package/model/groupAllAppData.agravity.ts +24 -26
  78. package/model/historyEntry.agravity.ts +40 -43
  79. package/model/infoEntitySkillEnhanced.agravity.ts +23 -25
  80. package/model/metadata.agravity.ts +17 -19
  81. package/model/models.ts +73 -73
  82. package/model/moveCollectionBody.agravity.ts +17 -19
  83. package/model/permissionChange.agravity.ts +26 -29
  84. package/model/permissionSetting.agravity.ts +25 -27
  85. package/model/publishEntity.agravity.ts +26 -28
  86. package/model/publishedAsset.agravity.ts +23 -25
  87. package/model/quickShare.agravity.ts +30 -32
  88. package/model/quickShareFull.agravity.ts +35 -37
  89. package/model/sasToken.agravity.ts +20 -22
  90. package/model/savedSearch.agravity.ts +29 -31
  91. package/model/searchAdminDataSourceStatus.agravity.ts +16 -18
  92. package/model/searchAdminIndexStatus.agravity.ts +18 -20
  93. package/model/searchAdminIndexerLastRun.agravity.ts +19 -21
  94. package/model/searchAdminIndexerStatus.agravity.ts +18 -20
  95. package/model/searchAdminSkillStatus.agravity.ts +16 -18
  96. package/model/searchAdminStatistics.agravity.ts +16 -18
  97. package/model/searchAdminStatus.agravity.ts +22 -24
  98. package/model/searchFacet.agravity.ts +17 -19
  99. package/model/searchFacetEntity.agravity.ts +17 -19
  100. package/model/searchResult.agravity.ts +21 -23
  101. package/model/searchableItem.agravity.ts +24 -26
  102. package/model/secureUploadEntity.agravity.ts +25 -27
  103. package/model/sharedAsset.agravity.ts +23 -25
  104. package/model/sharedCollection.agravity.ts +22 -24
  105. package/model/sharedCollectionFull.agravity.ts +27 -29
  106. package/model/signalRConnectionInfo.agravity.ts +16 -18
  107. package/model/simpleAsset.agravity.ts +24 -26
  108. package/model/staticDefinedList.agravity.ts +28 -30
  109. package/model/uiTutorials.agravity.ts +23 -26
  110. package/model/versionEntity.agravity.ts +26 -28
  111. package/model/versionedAsset.agravity.ts +18 -20
  112. package/model/whereParam.agravity.ts +40 -43
  113. package/model/workspace.agravity.ts +32 -34
  114. package/ng-package.json +6 -6
  115. package/package.json +45 -45
  116. package/tsconfig.json +20 -28
  117. package/variables.ts +9 -9
@@ -1,408 +1,457 @@
1
- /**
2
- * Agravity OpenAPI Documentation - Private Functions
3
- * <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2023. All Rights Reserved
4
- *
5
- * The version of the OpenAPI document: 5.3.0
6
- * Contact: office@agravity.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /* tslint:disable:no-unused-variable member-ordering */
13
-
14
- import { Inject, Injectable, Optional } from '@angular/core';
15
- import { HttpClient, HttpHeaders, HttpParams,
16
- HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
17
- import { CustomHttpParameterCodec } from '../encoder';
18
- import { Observable } from 'rxjs';
19
-
20
- import { AgravityErrorResponse } from '../model/models';
21
- import { StaticDefinedList } from '../model/models';
22
-
23
- import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
- import { AgravityConfiguration } from '../configuration';
25
-
26
-
27
-
28
- @Injectable({
29
- providedIn: 'root'
30
- })
31
- export class StaticDefinedListManagementService {
32
-
33
- protected basePath = 'http://localhost:7071/api';
34
- public defaultHeaders = new HttpHeaders();
35
- public configuration = new AgravityConfiguration();
36
- public encoder: HttpParameterCodec;
37
-
38
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
39
- if (configuration) {
40
- this.configuration = configuration;
41
- }
42
- if (typeof this.configuration.basePath !== 'string') {
43
- if (typeof basePath !== 'string') {
44
- basePath = this.basePath;
45
- }
46
- this.configuration.basePath = basePath;
47
- }
48
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
49
- }
50
-
51
-
52
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
53
- if (typeof value === "object" && value instanceof Date === false) {
54
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
55
- } else {
56
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
57
- }
58
- return httpParams;
59
- }
60
-
61
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
62
- if (value == null) {
63
- return httpParams;
64
- }
65
-
66
- if (typeof value === "object") {
67
- if (Array.isArray(value)) {
68
- (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
69
- } else if (value instanceof Date) {
70
- if (key != null) {
71
- httpParams = httpParams.append(key,
72
- (value as Date).toISOString().substr(0, 10));
73
- } else {
74
- throw Error("key may not be null if value is Date");
75
- }
76
- } else {
77
- Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
78
- httpParams, value[k], key != null ? `${key}.${k}` : k));
79
- }
80
- } else if (key != null) {
81
- httpParams = httpParams.append(key, value);
82
- } else {
83
- throw Error("key may not be null if value is not object or array");
84
- }
85
- return httpParams;
86
- }
87
-
88
- /**
89
- * This endpoint creates one static defined list entry in the database.
90
- * @param staticDefinedList This endpoint creates an unique static defined list ID and adds the information to the database.
91
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
92
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
93
- * @param reportProgress flag to report request and response progress.
94
- */
95
- public httpStaticDefinedListsCreate(staticDefinedList: StaticDefinedList, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<StaticDefinedList>;
96
- public httpStaticDefinedListsCreate(staticDefinedList: StaticDefinedList, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<StaticDefinedList>>;
97
- public httpStaticDefinedListsCreate(staticDefinedList: StaticDefinedList, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<StaticDefinedList>>;
98
- public httpStaticDefinedListsCreate(staticDefinedList: StaticDefinedList, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
99
- if (staticDefinedList === null || staticDefinedList === undefined) {
100
- throw new Error('Required parameter staticDefinedList was null or undefined when calling httpStaticDefinedListsCreate.');
101
- }
102
-
103
- let queryParameters = new HttpParams({encoder: this.encoder});
104
- if (translations !== undefined && translations !== null) {
105
- queryParameters = this.addToHttpParams(queryParameters,
106
- <any>translations, 'translations');
107
- }
108
-
109
- let headers = this.defaultHeaders;
110
-
111
- let credential: string | undefined;
112
- // authentication (msal_auth) required
113
- credential = this.configuration.lookupCredential('msal_auth');
114
- if (credential) {
115
- headers = headers.set('Authorization', 'Bearer ' + credential);
116
- }
117
-
118
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
119
- if (httpHeaderAcceptSelected === undefined) {
120
- // to determine the Accept header
121
- const httpHeaderAccepts: string[] = [
122
- 'application/json'
123
- ];
124
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
125
- }
126
- if (httpHeaderAcceptSelected !== undefined) {
127
- headers = headers.set('Accept', httpHeaderAcceptSelected);
128
- }
129
-
130
-
131
- // to determine the Content-Type header
132
- const consumes: string[] = [
133
- 'application/json'
134
- ];
135
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
136
- if (httpContentTypeSelected !== undefined) {
137
- headers = headers.set('Content-Type', httpContentTypeSelected);
138
- }
139
-
140
- let responseType_: 'text' | 'json' = 'json';
141
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
142
- responseType_ = 'text';
143
- }
144
-
145
- return this.httpClient.post<StaticDefinedList>(`${this.configuration.basePath}/staticdefinedlists`,
146
- staticDefinedList,
147
- {
148
- params: queryParameters,
149
- responseType: <any>responseType_,
150
- withCredentials: this.configuration.withCredentials,
151
- headers: headers,
152
- observe: observe,
153
- reportProgress: reportProgress
154
- }
155
- );
156
- }
157
-
158
- /**
159
- * This endpoint deletes a single static defined list.
160
- * @param id The ID of the static defined list.
161
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
162
- * @param reportProgress flag to report request and response progress.
163
- */
164
- public httpStaticDefinedListsDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<any>;
165
- public httpStaticDefinedListsDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<any>>;
166
- public httpStaticDefinedListsDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<any>>;
167
- public httpStaticDefinedListsDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
168
- if (id === null || id === undefined) {
169
- throw new Error('Required parameter id was null or undefined when calling httpStaticDefinedListsDeleteById.');
170
- }
171
-
172
- let headers = this.defaultHeaders;
173
-
174
- let credential: string | undefined;
175
- // authentication (msal_auth) required
176
- credential = this.configuration.lookupCredential('msal_auth');
177
- if (credential) {
178
- headers = headers.set('Authorization', 'Bearer ' + credential);
179
- }
180
-
181
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
182
- if (httpHeaderAcceptSelected === undefined) {
183
- // to determine the Accept header
184
- const httpHeaderAccepts: string[] = [
185
- 'application/json'
186
- ];
187
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
188
- }
189
- if (httpHeaderAcceptSelected !== undefined) {
190
- headers = headers.set('Accept', httpHeaderAcceptSelected);
191
- }
192
-
193
-
194
- let responseType_: 'text' | 'json' = 'json';
195
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
196
- responseType_ = 'text';
197
- }
198
-
199
- return this.httpClient.delete<any>(`${this.configuration.basePath}/staticdefinedlists/${encodeURIComponent(String(id))}`,
200
- {
201
- responseType: <any>responseType_,
202
- withCredentials: this.configuration.withCredentials,
203
- headers: headers,
204
- observe: observe,
205
- reportProgress: reportProgress
206
- }
207
- );
208
- }
209
-
210
- /**
211
- * This endpoint lists all static defined lists in database.
212
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
213
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
214
- * @param reportProgress flag to report request and response progress.
215
- */
216
- public httpStaticDefinedListsGetAll(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<StaticDefinedList>>;
217
- public httpStaticDefinedListsGetAll(translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<StaticDefinedList>>>;
218
- public httpStaticDefinedListsGetAll(translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<StaticDefinedList>>>;
219
- public httpStaticDefinedListsGetAll(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
220
-
221
- let queryParameters = new HttpParams({encoder: this.encoder});
222
- if (translations !== undefined && translations !== null) {
223
- queryParameters = this.addToHttpParams(queryParameters,
224
- <any>translations, 'translations');
225
- }
226
-
227
- let headers = this.defaultHeaders;
228
-
229
- let credential: string | undefined;
230
- // authentication (msal_auth) required
231
- credential = this.configuration.lookupCredential('msal_auth');
232
- if (credential) {
233
- headers = headers.set('Authorization', 'Bearer ' + credential);
234
- }
235
-
236
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
237
- if (httpHeaderAcceptSelected === undefined) {
238
- // to determine the Accept header
239
- const httpHeaderAccepts: string[] = [
240
- 'application/json'
241
- ];
242
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
243
- }
244
- if (httpHeaderAcceptSelected !== undefined) {
245
- headers = headers.set('Accept', httpHeaderAcceptSelected);
246
- }
247
-
248
-
249
- let responseType_: 'text' | 'json' = 'json';
250
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
251
- responseType_ = 'text';
252
- }
253
-
254
- return this.httpClient.get<Array<StaticDefinedList>>(`${this.configuration.basePath}/staticdefinedlists`,
255
- {
256
- params: queryParameters,
257
- responseType: <any>responseType_,
258
- withCredentials: this.configuration.withCredentials,
259
- headers: headers,
260
- observe: observe,
261
- reportProgress: reportProgress
262
- }
263
- );
264
- }
265
-
266
- /**
267
- * This endpoint gets a static defined list from database.
268
- * @param id The ID of the static defined list.
269
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
270
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
271
- * @param reportProgress flag to report request and response progress.
272
- */
273
- public httpStaticDefinedListsGetById(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<StaticDefinedList>;
274
- public httpStaticDefinedListsGetById(id: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<StaticDefinedList>>;
275
- public httpStaticDefinedListsGetById(id: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<StaticDefinedList>>;
276
- public httpStaticDefinedListsGetById(id: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
277
- if (id === null || id === undefined) {
278
- throw new Error('Required parameter id was null or undefined when calling httpStaticDefinedListsGetById.');
279
- }
280
-
281
- let queryParameters = new HttpParams({encoder: this.encoder});
282
- if (translations !== undefined && translations !== null) {
283
- queryParameters = this.addToHttpParams(queryParameters,
284
- <any>translations, 'translations');
285
- }
286
-
287
- let headers = this.defaultHeaders;
288
-
289
- let credential: string | undefined;
290
- // authentication (msal_auth) required
291
- credential = this.configuration.lookupCredential('msal_auth');
292
- if (credential) {
293
- headers = headers.set('Authorization', 'Bearer ' + credential);
294
- }
295
-
296
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
297
- if (httpHeaderAcceptSelected === undefined) {
298
- // to determine the Accept header
299
- const httpHeaderAccepts: string[] = [
300
- 'application/json'
301
- ];
302
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
303
- }
304
- if (httpHeaderAcceptSelected !== undefined) {
305
- headers = headers.set('Accept', httpHeaderAcceptSelected);
306
- }
307
-
308
-
309
- let responseType_: 'text' | 'json' = 'json';
310
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
311
- responseType_ = 'text';
312
- }
313
-
314
- return this.httpClient.get<StaticDefinedList>(`${this.configuration.basePath}/staticdefinedlists/${encodeURIComponent(String(id))}`,
315
- {
316
- params: queryParameters,
317
- responseType: <any>responseType_,
318
- withCredentials: this.configuration.withCredentials,
319
- headers: headers,
320
- observe: observe,
321
- reportProgress: reportProgress
322
- }
323
- );
324
- }
325
-
326
- /**
327
- * Updates a static defined list in database.
328
- * @param id The ID of the static defined list.
329
- * @param updatemode The mode how the list should be updated. Available values are: add, delete and replace.
330
- * @param staticDefinedList Body has to be a valid static defined list item.
331
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
332
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
333
- * @param reportProgress flag to report request and response progress.
334
- */
335
- public httpStaticDefinedListsUpdateById(id: string, updatemode: string, staticDefinedList: StaticDefinedList, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<StaticDefinedList>;
336
- public httpStaticDefinedListsUpdateById(id: string, updatemode: string, staticDefinedList: StaticDefinedList, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<StaticDefinedList>>;
337
- public httpStaticDefinedListsUpdateById(id: string, updatemode: string, staticDefinedList: StaticDefinedList, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<StaticDefinedList>>;
338
- public httpStaticDefinedListsUpdateById(id: string, updatemode: string, staticDefinedList: StaticDefinedList, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
339
- if (id === null || id === undefined) {
340
- throw new Error('Required parameter id was null or undefined when calling httpStaticDefinedListsUpdateById.');
341
- }
342
- if (updatemode === null || updatemode === undefined) {
343
- throw new Error('Required parameter updatemode was null or undefined when calling httpStaticDefinedListsUpdateById.');
344
- }
345
- if (staticDefinedList === null || staticDefinedList === undefined) {
346
- throw new Error('Required parameter staticDefinedList was null or undefined when calling httpStaticDefinedListsUpdateById.');
347
- }
348
-
349
- let queryParameters = new HttpParams({encoder: this.encoder});
350
- if (translations !== undefined && translations !== null) {
351
- queryParameters = this.addToHttpParams(queryParameters,
352
- <any>translations, 'translations');
353
- }
354
- if (updatemode !== undefined && updatemode !== null) {
355
- queryParameters = this.addToHttpParams(queryParameters,
356
- <any>updatemode, 'updatemode');
357
- }
358
-
359
- let headers = this.defaultHeaders;
360
-
361
- let credential: string | undefined;
362
- // authentication (msal_auth) required
363
- credential = this.configuration.lookupCredential('msal_auth');
364
- if (credential) {
365
- headers = headers.set('Authorization', 'Bearer ' + credential);
366
- }
367
-
368
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
369
- if (httpHeaderAcceptSelected === undefined) {
370
- // to determine the Accept header
371
- const httpHeaderAccepts: string[] = [
372
- 'application/json'
373
- ];
374
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
375
- }
376
- if (httpHeaderAcceptSelected !== undefined) {
377
- headers = headers.set('Accept', httpHeaderAcceptSelected);
378
- }
379
-
380
-
381
- // to determine the Content-Type header
382
- const consumes: string[] = [
383
- 'application/json'
384
- ];
385
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
386
- if (httpContentTypeSelected !== undefined) {
387
- headers = headers.set('Content-Type', httpContentTypeSelected);
388
- }
389
-
390
- let responseType_: 'text' | 'json' = 'json';
391
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
392
- responseType_ = 'text';
393
- }
394
-
395
- return this.httpClient.post<StaticDefinedList>(`${this.configuration.basePath}/staticdefinedlists/${encodeURIComponent(String(id))}`,
396
- staticDefinedList,
397
- {
398
- params: queryParameters,
399
- responseType: <any>responseType_,
400
- withCredentials: this.configuration.withCredentials,
401
- headers: headers,
402
- observe: observe,
403
- reportProgress: reportProgress
404
- }
405
- );
406
- }
407
-
408
- }
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ * <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2023. All Rights Reserved
4
+ *
5
+ * The version of the OpenAPI document: 5.3.2
6
+ * Contact: office@agravity.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /* tslint:disable:no-unused-variable member-ordering */
13
+
14
+ import { Inject, Injectable, Optional } from '@angular/core';
15
+ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
16
+ import { CustomHttpParameterCodec } from '../encoder';
17
+ import { Observable } from 'rxjs';
18
+
19
+ import { AgravityErrorResponse } from '../model/models';
20
+ import { StaticDefinedList } from '../model/models';
21
+
22
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23
+ import { AgravityConfiguration } from '../configuration';
24
+
25
+ @Injectable({
26
+ providedIn: 'root'
27
+ })
28
+ export class StaticDefinedListManagementService {
29
+ protected basePath = 'http://localhost:7071/api';
30
+ public defaultHeaders = new HttpHeaders();
31
+ public configuration = new AgravityConfiguration();
32
+ public encoder: HttpParameterCodec;
33
+
34
+ constructor(
35
+ protected httpClient: HttpClient,
36
+ @Optional() @Inject(BASE_PATH) basePath: string,
37
+ @Optional() configuration: AgravityConfiguration
38
+ ) {
39
+ if (configuration) {
40
+ this.configuration = configuration;
41
+ }
42
+ if (typeof this.configuration.basePath !== 'string') {
43
+ if (typeof basePath !== 'string') {
44
+ basePath = this.basePath;
45
+ }
46
+ this.configuration.basePath = basePath;
47
+ }
48
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
49
+ }
50
+
51
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
52
+ if (typeof value === 'object' && value instanceof Date === false) {
53
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
54
+ } else {
55
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
56
+ }
57
+ return httpParams;
58
+ }
59
+
60
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
61
+ if (value == null) {
62
+ return httpParams;
63
+ }
64
+
65
+ if (typeof value === 'object') {
66
+ if (Array.isArray(value)) {
67
+ (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
68
+ } else if (value instanceof Date) {
69
+ if (key != null) {
70
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
71
+ } else {
72
+ throw Error('key may not be null if value is Date');
73
+ }
74
+ } else {
75
+ Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
76
+ }
77
+ } else if (key != null) {
78
+ httpParams = httpParams.append(key, value);
79
+ } else {
80
+ throw Error('key may not be null if value is not object or array');
81
+ }
82
+ return httpParams;
83
+ }
84
+
85
+ /**
86
+ * This endpoint creates one static defined list entry in the database.
87
+ * @param staticDefinedList This endpoint creates an unique static defined list 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)
89
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
90
+ * @param reportProgress flag to report request and response progress.
91
+ */
92
+ public httpStaticDefinedListsCreate(
93
+ staticDefinedList: StaticDefinedList,
94
+ translations?: boolean,
95
+ observe?: 'body',
96
+ reportProgress?: boolean,
97
+ options?: { httpHeaderAccept?: 'application/json' }
98
+ ): Observable<StaticDefinedList>;
99
+ public httpStaticDefinedListsCreate(
100
+ staticDefinedList: StaticDefinedList,
101
+ translations?: boolean,
102
+ observe?: 'response',
103
+ reportProgress?: boolean,
104
+ options?: { httpHeaderAccept?: 'application/json' }
105
+ ): Observable<HttpResponse<StaticDefinedList>>;
106
+ public httpStaticDefinedListsCreate(
107
+ staticDefinedList: StaticDefinedList,
108
+ translations?: boolean,
109
+ observe?: 'events',
110
+ reportProgress?: boolean,
111
+ options?: { httpHeaderAccept?: 'application/json' }
112
+ ): Observable<HttpEvent<StaticDefinedList>>;
113
+ public httpStaticDefinedListsCreate(
114
+ staticDefinedList: StaticDefinedList,
115
+ translations?: boolean,
116
+ observe: any = 'body',
117
+ reportProgress: boolean = false,
118
+ options?: { httpHeaderAccept?: 'application/json' }
119
+ ): Observable<any> {
120
+ if (staticDefinedList === null || staticDefinedList === undefined) {
121
+ throw new Error('Required parameter staticDefinedList was null or undefined when calling httpStaticDefinedListsCreate.');
122
+ }
123
+
124
+ let queryParameters = new HttpParams({ encoder: this.encoder });
125
+ if (translations !== undefined && translations !== null) {
126
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
127
+ }
128
+
129
+ let headers = this.defaultHeaders;
130
+
131
+ let credential: string | undefined;
132
+ // authentication (msal_auth) required
133
+ credential = this.configuration.lookupCredential('msal_auth');
134
+ if (credential) {
135
+ headers = headers.set('Authorization', 'Bearer ' + credential);
136
+ }
137
+
138
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
139
+ if (httpHeaderAcceptSelected === undefined) {
140
+ // to determine the Accept header
141
+ const httpHeaderAccepts: string[] = ['application/json'];
142
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
143
+ }
144
+ if (httpHeaderAcceptSelected !== undefined) {
145
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
146
+ }
147
+
148
+ // to determine the Content-Type header
149
+ const consumes: string[] = ['application/json'];
150
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
151
+ if (httpContentTypeSelected !== undefined) {
152
+ headers = headers.set('Content-Type', httpContentTypeSelected);
153
+ }
154
+
155
+ let responseType_: 'text' | 'json' = 'json';
156
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
157
+ responseType_ = 'text';
158
+ }
159
+
160
+ return this.httpClient.post<StaticDefinedList>(`${this.configuration.basePath}/staticdefinedlists`, staticDefinedList, {
161
+ params: queryParameters,
162
+ responseType: <any>responseType_,
163
+ withCredentials: this.configuration.withCredentials,
164
+ headers: headers,
165
+ observe: observe,
166
+ reportProgress: reportProgress
167
+ });
168
+ }
169
+
170
+ /**
171
+ * This endpoint deletes a single static defined list.
172
+ * @param id The ID of the static defined list.
173
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
174
+ * @param reportProgress flag to report request and response progress.
175
+ */
176
+ public httpStaticDefinedListsDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
177
+ public httpStaticDefinedListsDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<any>>;
178
+ public httpStaticDefinedListsDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
179
+ public httpStaticDefinedListsDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
180
+ if (id === null || id === undefined) {
181
+ throw new Error('Required parameter id was null or undefined when calling httpStaticDefinedListsDeleteById.');
182
+ }
183
+
184
+ let headers = this.defaultHeaders;
185
+
186
+ let credential: string | undefined;
187
+ // authentication (msal_auth) required
188
+ credential = this.configuration.lookupCredential('msal_auth');
189
+ if (credential) {
190
+ headers = headers.set('Authorization', 'Bearer ' + credential);
191
+ }
192
+
193
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
194
+ if (httpHeaderAcceptSelected === undefined) {
195
+ // to determine the Accept header
196
+ const httpHeaderAccepts: string[] = ['application/json'];
197
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
198
+ }
199
+ if (httpHeaderAcceptSelected !== undefined) {
200
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
201
+ }
202
+
203
+ let responseType_: 'text' | 'json' = 'json';
204
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
205
+ responseType_ = 'text';
206
+ }
207
+
208
+ return this.httpClient.delete<any>(`${this.configuration.basePath}/staticdefinedlists/${encodeURIComponent(String(id))}`, {
209
+ responseType: <any>responseType_,
210
+ withCredentials: this.configuration.withCredentials,
211
+ headers: headers,
212
+ observe: observe,
213
+ reportProgress: reportProgress
214
+ });
215
+ }
216
+
217
+ /**
218
+ * This endpoint lists all static defined lists in database.
219
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
220
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
221
+ * @param reportProgress flag to report request and response progress.
222
+ */
223
+ public httpStaticDefinedListsGetAll(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<StaticDefinedList>>;
224
+ public httpStaticDefinedListsGetAll(
225
+ translations?: boolean,
226
+ observe?: 'response',
227
+ reportProgress?: boolean,
228
+ options?: { httpHeaderAccept?: 'application/json' }
229
+ ): Observable<HttpResponse<Array<StaticDefinedList>>>;
230
+ public httpStaticDefinedListsGetAll(
231
+ translations?: boolean,
232
+ observe?: 'events',
233
+ reportProgress?: boolean,
234
+ options?: { httpHeaderAccept?: 'application/json' }
235
+ ): Observable<HttpEvent<Array<StaticDefinedList>>>;
236
+ public httpStaticDefinedListsGetAll(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
237
+ let queryParameters = new HttpParams({ encoder: this.encoder });
238
+ if (translations !== undefined && translations !== null) {
239
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
240
+ }
241
+
242
+ let headers = this.defaultHeaders;
243
+
244
+ let credential: string | undefined;
245
+ // authentication (msal_auth) required
246
+ credential = this.configuration.lookupCredential('msal_auth');
247
+ if (credential) {
248
+ headers = headers.set('Authorization', 'Bearer ' + credential);
249
+ }
250
+
251
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
252
+ if (httpHeaderAcceptSelected === undefined) {
253
+ // to determine the Accept header
254
+ const httpHeaderAccepts: string[] = ['application/json'];
255
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
256
+ }
257
+ if (httpHeaderAcceptSelected !== undefined) {
258
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
259
+ }
260
+
261
+ let responseType_: 'text' | 'json' = 'json';
262
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
263
+ responseType_ = 'text';
264
+ }
265
+
266
+ return this.httpClient.get<Array<StaticDefinedList>>(`${this.configuration.basePath}/staticdefinedlists`, {
267
+ params: queryParameters,
268
+ responseType: <any>responseType_,
269
+ withCredentials: this.configuration.withCredentials,
270
+ headers: headers,
271
+ observe: observe,
272
+ reportProgress: reportProgress
273
+ });
274
+ }
275
+
276
+ /**
277
+ * This endpoint gets a static defined list from database.
278
+ * @param id The ID of the static defined list.
279
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
280
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
281
+ * @param reportProgress flag to report request and response progress.
282
+ */
283
+ public httpStaticDefinedListsGetById(
284
+ id: string,
285
+ translations?: boolean,
286
+ observe?: 'body',
287
+ reportProgress?: boolean,
288
+ options?: { httpHeaderAccept?: 'application/json' }
289
+ ): Observable<StaticDefinedList>;
290
+ public httpStaticDefinedListsGetById(
291
+ id: string,
292
+ translations?: boolean,
293
+ observe?: 'response',
294
+ reportProgress?: boolean,
295
+ options?: { httpHeaderAccept?: 'application/json' }
296
+ ): Observable<HttpResponse<StaticDefinedList>>;
297
+ public httpStaticDefinedListsGetById(
298
+ id: string,
299
+ translations?: boolean,
300
+ observe?: 'events',
301
+ reportProgress?: boolean,
302
+ options?: { httpHeaderAccept?: 'application/json' }
303
+ ): Observable<HttpEvent<StaticDefinedList>>;
304
+ public httpStaticDefinedListsGetById(
305
+ id: string,
306
+ translations?: boolean,
307
+ observe: any = 'body',
308
+ reportProgress: boolean = false,
309
+ options?: { httpHeaderAccept?: 'application/json' }
310
+ ): Observable<any> {
311
+ if (id === null || id === undefined) {
312
+ throw new Error('Required parameter id was null or undefined when calling httpStaticDefinedListsGetById.');
313
+ }
314
+
315
+ let queryParameters = new HttpParams({ encoder: this.encoder });
316
+ if (translations !== undefined && translations !== null) {
317
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
318
+ }
319
+
320
+ let headers = this.defaultHeaders;
321
+
322
+ let credential: string | undefined;
323
+ // authentication (msal_auth) required
324
+ credential = this.configuration.lookupCredential('msal_auth');
325
+ if (credential) {
326
+ headers = headers.set('Authorization', 'Bearer ' + credential);
327
+ }
328
+
329
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
330
+ if (httpHeaderAcceptSelected === undefined) {
331
+ // to determine the Accept header
332
+ const httpHeaderAccepts: string[] = ['application/json'];
333
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
334
+ }
335
+ if (httpHeaderAcceptSelected !== undefined) {
336
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
337
+ }
338
+
339
+ let responseType_: 'text' | 'json' = 'json';
340
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
341
+ responseType_ = 'text';
342
+ }
343
+
344
+ return this.httpClient.get<StaticDefinedList>(`${this.configuration.basePath}/staticdefinedlists/${encodeURIComponent(String(id))}`, {
345
+ params: queryParameters,
346
+ responseType: <any>responseType_,
347
+ withCredentials: this.configuration.withCredentials,
348
+ headers: headers,
349
+ observe: observe,
350
+ reportProgress: reportProgress
351
+ });
352
+ }
353
+
354
+ /**
355
+ * Updates a static defined list in database.
356
+ * @param id The ID of the static defined list.
357
+ * @param updatemode The mode how the list should be updated. Available values are: add, delete and replace.
358
+ * @param staticDefinedList Body has to be a valid static defined list item.
359
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
360
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
361
+ * @param reportProgress flag to report request and response progress.
362
+ */
363
+ public httpStaticDefinedListsUpdateById(
364
+ id: string,
365
+ updatemode: string,
366
+ staticDefinedList: StaticDefinedList,
367
+ translations?: boolean,
368
+ observe?: 'body',
369
+ reportProgress?: boolean,
370
+ options?: { httpHeaderAccept?: 'application/json' }
371
+ ): Observable<StaticDefinedList>;
372
+ public httpStaticDefinedListsUpdateById(
373
+ id: string,
374
+ updatemode: string,
375
+ staticDefinedList: StaticDefinedList,
376
+ translations?: boolean,
377
+ observe?: 'response',
378
+ reportProgress?: boolean,
379
+ options?: { httpHeaderAccept?: 'application/json' }
380
+ ): Observable<HttpResponse<StaticDefinedList>>;
381
+ public httpStaticDefinedListsUpdateById(
382
+ id: string,
383
+ updatemode: string,
384
+ staticDefinedList: StaticDefinedList,
385
+ translations?: boolean,
386
+ observe?: 'events',
387
+ reportProgress?: boolean,
388
+ options?: { httpHeaderAccept?: 'application/json' }
389
+ ): Observable<HttpEvent<StaticDefinedList>>;
390
+ public httpStaticDefinedListsUpdateById(
391
+ id: string,
392
+ updatemode: string,
393
+ staticDefinedList: StaticDefinedList,
394
+ translations?: boolean,
395
+ observe: any = 'body',
396
+ reportProgress: boolean = false,
397
+ options?: { httpHeaderAccept?: 'application/json' }
398
+ ): Observable<any> {
399
+ if (id === null || id === undefined) {
400
+ throw new Error('Required parameter id was null or undefined when calling httpStaticDefinedListsUpdateById.');
401
+ }
402
+ if (updatemode === null || updatemode === undefined) {
403
+ throw new Error('Required parameter updatemode was null or undefined when calling httpStaticDefinedListsUpdateById.');
404
+ }
405
+ if (staticDefinedList === null || staticDefinedList === undefined) {
406
+ throw new Error('Required parameter staticDefinedList was null or undefined when calling httpStaticDefinedListsUpdateById.');
407
+ }
408
+
409
+ let queryParameters = new HttpParams({ encoder: this.encoder });
410
+ if (translations !== undefined && translations !== null) {
411
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
412
+ }
413
+ if (updatemode !== undefined && updatemode !== null) {
414
+ queryParameters = this.addToHttpParams(queryParameters, <any>updatemode, 'updatemode');
415
+ }
416
+
417
+ let headers = this.defaultHeaders;
418
+
419
+ let credential: string | undefined;
420
+ // authentication (msal_auth) required
421
+ credential = this.configuration.lookupCredential('msal_auth');
422
+ if (credential) {
423
+ headers = headers.set('Authorization', 'Bearer ' + credential);
424
+ }
425
+
426
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
427
+ if (httpHeaderAcceptSelected === undefined) {
428
+ // to determine the Accept header
429
+ const httpHeaderAccepts: string[] = ['application/json'];
430
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
431
+ }
432
+ if (httpHeaderAcceptSelected !== undefined) {
433
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
434
+ }
435
+
436
+ // to determine the Content-Type header
437
+ const consumes: string[] = ['application/json'];
438
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
439
+ if (httpContentTypeSelected !== undefined) {
440
+ headers = headers.set('Content-Type', httpContentTypeSelected);
441
+ }
442
+
443
+ let responseType_: 'text' | 'json' = 'json';
444
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
445
+ responseType_ = 'text';
446
+ }
447
+
448
+ return this.httpClient.post<StaticDefinedList>(`${this.configuration.basePath}/staticdefinedlists/${encodeURIComponent(String(id))}`, staticDefinedList, {
449
+ params: queryParameters,
450
+ responseType: <any>responseType_,
451
+ withCredentials: this.configuration.withCredentials,
452
+ headers: headers,
453
+ observe: observe,
454
+ reportProgress: reportProgress
455
+ });
456
+ }
457
+ }