@agravity/public 7.3.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/.openapi-generator/FILES +2 -3
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +29 -4
  4. package/api/publicAssetManagement.pub.agravity.ts +389 -265
  5. package/api/publicAssetOperations.pub.agravity.ts +636 -425
  6. package/api/publicAssetPublishing.pub.agravity.ts +195 -82
  7. package/api/publicAssetVersioning.pub.agravity.ts +469 -239
  8. package/api/publicAuthenticationManagement.pub.agravity.ts +66 -24
  9. package/api/publicCollectionManagement.pub.agravity.ts +525 -295
  10. package/api/publicCollectionSecureUpload.pub.agravity.ts +142 -69
  11. package/api/publicCollectionTypeManagement.pub.agravity.ts +211 -95
  12. package/api/publicConfigurationManagement.pub.agravity.ts +69 -26
  13. package/api/publicDownloadFormatManagement.pub.agravity.ts +139 -53
  14. package/api/publicEndpoints.pub.agravity.ts +63 -43
  15. package/api/publicGeneralManagement.pub.agravity.ts +253 -104
  16. package/api/publicHelperTools.pub.agravity.ts +270 -106
  17. package/api/publicPortalManagement.pub.agravity.ts +323 -124
  18. package/api/publicPublishing.pub.agravity.ts +69 -38
  19. package/api/publicSavedSearch.pub.agravity.ts +75 -38
  20. package/api/publicSearchManagement.pub.agravity.ts +265 -194
  21. package/api/publicSharingManagement.pub.agravity.ts +246 -157
  22. package/api/publicSignalRConnectionManagement.pub.agravity.ts +68 -24
  23. package/api/publicStaticDefinedListManagement.pub.agravity.ts +212 -107
  24. package/api/publicTranslationManagement.pub.agravity.ts +189 -115
  25. package/api/publicWebAppData.pub.agravity.ts +146 -47
  26. package/api/publicWorkspaceManagement.pub.agravity.ts +158 -57
  27. package/api.module.ts +0 -24
  28. package/configuration.ts +42 -0
  29. package/git_push.sh +3 -4
  30. package/index.ts +1 -0
  31. package/model/agravityErrorResponse.pub.agravity.ts +3 -4
  32. package/model/{badRequestResult.pub.agravity.ts → agravityInfoResponse.pub.agravity.ts} +4 -3
  33. package/model/agravityVersion.pub.agravity.ts +8 -9
  34. package/model/allWebAppData.pub.agravity.ts +4 -5
  35. package/model/artificialIntelligenceGroup.pub.agravity.ts +3 -4
  36. package/model/asset.pub.agravity.ts +22 -23
  37. package/model/assetAvailability.pub.agravity.ts +1 -2
  38. package/model/assetBlob.pub.agravity.ts +27 -28
  39. package/model/assetIdFormat.pub.agravity.ts +3 -4
  40. package/model/assetPageResult.pub.agravity.ts +4 -5
  41. package/model/azSearchOptions.pub.agravity.ts +8 -9
  42. package/model/collTypeItem.pub.agravity.ts +16 -17
  43. package/model/collection.pub.agravity.ts +15 -16
  44. package/model/collectionType.pub.agravity.ts +14 -15
  45. package/model/collectionUDL.pub.agravity.ts +4 -5
  46. package/model/createSftpUserResult.pub.agravity.ts +2 -3
  47. package/model/dataResult.pub.agravity.ts +4 -5
  48. package/model/deletedEntities.pub.agravity.ts +4 -5
  49. package/model/distZipResponse.pub.agravity.ts +3 -4
  50. package/model/downloadFormat.pub.agravity.ts +18 -16
  51. package/model/dynamicImageOperation.pub.agravity.ts +2 -3
  52. package/model/entityId.pub.agravity.ts +1 -2
  53. package/model/entityIdName.pub.agravity.ts +3 -4
  54. package/model/frontendAppConfig.pub.agravity.ts +0 -1
  55. package/model/groupAllAppData.pub.agravity.ts +5 -6
  56. package/model/models.ts +1 -3
  57. package/model/moveCollectionBody.pub.agravity.ts +3 -4
  58. package/model/permissionEntity.pub.agravity.ts +1 -2
  59. package/model/portal.pub.agravity.ts +18 -20
  60. package/model/portalConfiguration.pub.agravity.ts +23 -25
  61. package/model/portalLinks.pub.agravity.ts +3 -4
  62. package/model/portalTheme.pub.agravity.ts +6 -7
  63. package/model/portalZipRequest.pub.agravity.ts +14 -15
  64. package/model/publishEntity.pub.agravity.ts +9 -10
  65. package/model/publishedAsset.pub.agravity.ts +12 -13
  66. package/model/quickShareFull.pub.agravity.ts +15 -16
  67. package/model/sasToken.pub.agravity.ts +6 -7
  68. package/model/savedSearch.pub.agravity.ts +13 -14
  69. package/model/searchAdminDataSourceStatus.pub.agravity.ts +2 -3
  70. package/model/searchAdminIndexStatus.pub.agravity.ts +3 -4
  71. package/model/searchAdminIndexerLastRun.pub.agravity.ts +3 -4
  72. package/model/searchAdminIndexerStatus.pub.agravity.ts +4 -5
  73. package/model/searchAdminSkillStatus.pub.agravity.ts +2 -3
  74. package/model/searchAdminStatistics.pub.agravity.ts +2 -3
  75. package/model/searchAdminStatus.pub.agravity.ts +4 -5
  76. package/model/searchFacet.pub.agravity.ts +2 -3
  77. package/model/searchFacetEntity.pub.agravity.ts +2 -3
  78. package/model/searchResult.pub.agravity.ts +3 -4
  79. package/model/searchableItem.pub.agravity.ts +3 -4
  80. package/model/secureUploadEntity.pub.agravity.ts +10 -11
  81. package/model/sharedAllowedFormat.pub.agravity.ts +2 -3
  82. package/model/sharedAsset.pub.agravity.ts +5 -6
  83. package/model/sharedCollectionFull.pub.agravity.ts +18 -19
  84. package/model/sharedCollectionZipRequest.pub.agravity.ts +14 -15
  85. package/model/signalRConnectionInfo.pub.agravity.ts +0 -1
  86. package/model/staticDefinedList.pub.agravity.ts +12 -13
  87. package/model/versionEntity.pub.agravity.ts +9 -10
  88. package/model/versionedAsset.pub.agravity.ts +5 -6
  89. package/model/whereParam.pub.agravity.ts +0 -1
  90. package/model/workspace.pub.agravity.ts +14 -15
  91. package/package.json +16 -17
  92. package/param.ts +44 -0
  93. package/model/okResult.pub.agravity.ts +0 -15
  94. package/model/portalLanguages.pub.agravity.ts +0 -16
@@ -2,7 +2,6 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 7.3.1
6
5
  * Contact: office@agravity.io
7
6
  *
8
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,17 +11,37 @@
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 { Asset } from '../model/models';
21
- import { SecureUploadEntity } from '../model/models';
18
+ // @ts-ignore
19
+ import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
20
+ // @ts-ignore
21
+ import { Asset } from '../model/asset.pub.agravity';
22
+ // @ts-ignore
23
+ import { SecureUploadEntity } from '../model/secureUploadEntity.pub.agravity';
22
24
 
25
+ // @ts-ignore
23
26
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
27
  import { AgravityPublicConfiguration } from '../configuration';
25
28
 
29
+ export interface HttpSecureUploadEntityCheckByIdRequestParams {
30
+ /** The ID of the secure upload collection. */
31
+ id: string;
32
+ /** The API key to access this endpoint. (Alternative using header x-function-keys with same value) */
33
+ code: string;
34
+ }
35
+
36
+ export interface HttpSecureUploadFileByIdRequestParams {
37
+ /** The ID of the secure upload collection. */
38
+ id: string;
39
+ /** The API key to access this endpoint. (Alternative using header x-function-keys with same value) */
40
+ code: string;
41
+ /** This endpoint allows to upload one asset which is put onto the storage (INBOX). Object has to be FormData (Add file). */
42
+ body: object;
43
+ }
44
+
26
45
  @Injectable({
27
46
  providedIn: 'root'
28
47
  })
@@ -34,13 +53,18 @@ export class PublicCollectionSecureUploadService {
34
53
 
35
54
  constructor(
36
55
  protected httpClient: HttpClient,
37
- @Optional() @Inject(BASE_PATH) basePath: string,
56
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
38
57
  @Optional() configuration: AgravityPublicConfiguration
39
58
  ) {
40
59
  if (configuration) {
41
60
  this.configuration = configuration;
42
61
  }
43
62
  if (typeof this.configuration.basePath !== 'string') {
63
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
64
+ if (firstBasePath != undefined) {
65
+ basePath = firstBasePath;
66
+ }
67
+
44
68
  if (typeof basePath !== 'string') {
45
69
  basePath = this.basePath;
46
70
  }
@@ -49,6 +73,7 @@ export class PublicCollectionSecureUploadService {
49
73
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
50
74
  }
51
75
 
76
+ // @ts-ignore
52
77
  private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
53
78
  if (typeof value === 'object' && value instanceof Date === false) {
54
79
  httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -68,7 +93,7 @@ export class PublicCollectionSecureUploadService {
68
93
  (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
69
94
  } else if (value instanceof Date) {
70
95
  if (key != null) {
71
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
96
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
72
97
  } else {
73
98
  throw Error('key may not be null if value is Date');
74
99
  }
@@ -85,138 +110,176 @@ export class PublicCollectionSecureUploadService {
85
110
 
86
111
  /**
87
112
  * Searchs for one single secure upload entity of an user and returns simple OK if found.
88
- * @param id The ID of the secure upload collection.
89
- * @param code The API key to access this endpoint. (Alternative using header x-function-keys with same value)
113
+ * @param requestParameters
90
114
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
91
115
  * @param reportProgress flag to report request and response progress.
92
116
  */
93
- public httpSecureUploadEntityCheckById(id: string, code: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<SecureUploadEntity>;
94
117
  public httpSecureUploadEntityCheckById(
95
- id: string,
96
- code: string,
118
+ requestParameters?: HttpSecureUploadEntityCheckByIdRequestParams,
119
+ observe?: 'body',
120
+ reportProgress?: boolean,
121
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
122
+ ): Observable<SecureUploadEntity>;
123
+ public httpSecureUploadEntityCheckById(
124
+ requestParameters?: HttpSecureUploadEntityCheckByIdRequestParams,
97
125
  observe?: 'response',
98
126
  reportProgress?: boolean,
99
- options?: { httpHeaderAccept?: 'application/json' }
127
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
100
128
  ): Observable<HttpResponse<SecureUploadEntity>>;
101
129
  public httpSecureUploadEntityCheckById(
102
- id: string,
103
- code: string,
130
+ requestParameters?: HttpSecureUploadEntityCheckByIdRequestParams,
104
131
  observe?: 'events',
105
132
  reportProgress?: boolean,
106
- options?: { httpHeaderAccept?: 'application/json' }
133
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
107
134
  ): Observable<HttpEvent<SecureUploadEntity>>;
108
- public httpSecureUploadEntityCheckById(id: string, code: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
135
+ public httpSecureUploadEntityCheckById(
136
+ requestParameters?: HttpSecureUploadEntityCheckByIdRequestParams,
137
+ observe: any = 'body',
138
+ reportProgress: boolean = false,
139
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
140
+ ): Observable<any> {
141
+ const id = requestParameters?.id;
109
142
  if (id === null || id === undefined) {
110
143
  throw new Error('Required parameter id was null or undefined when calling httpSecureUploadEntityCheckById.');
111
144
  }
145
+ const code = requestParameters?.code;
112
146
  if (code === null || code === undefined) {
113
147
  throw new Error('Required parameter code was null or undefined when calling httpSecureUploadEntityCheckById.');
114
148
  }
115
149
 
116
- let queryParameters = new HttpParams({ encoder: this.encoder });
150
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
117
151
  if (code !== undefined && code !== null) {
118
- queryParameters = this.addToHttpParams(queryParameters, <any>code, 'code');
152
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>code, 'code');
119
153
  }
120
154
 
121
- let headers = this.defaultHeaders;
155
+ let localVarHeaders = this.defaultHeaders;
122
156
 
123
- let credential: string | undefined;
157
+ let localVarCredential: string | undefined;
124
158
  // authentication (function_key) required
125
- credential = this.configuration.lookupCredential('function_key');
126
- if (credential) {
127
- headers = headers.set('x-functions-key', credential);
159
+ localVarCredential = this.configuration.lookupCredential('function_key');
160
+ if (localVarCredential) {
161
+ localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
128
162
  }
129
163
 
130
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
131
- if (httpHeaderAcceptSelected === undefined) {
164
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
165
+ if (localVarHttpHeaderAcceptSelected === undefined) {
132
166
  // to determine the Accept header
133
167
  const httpHeaderAccepts: string[] = ['application/json'];
134
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
168
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
169
+ }
170
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
171
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
135
172
  }
136
- if (httpHeaderAcceptSelected !== undefined) {
137
- headers = headers.set('Accept', httpHeaderAcceptSelected);
173
+
174
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
175
+ if (localVarHttpContext === undefined) {
176
+ localVarHttpContext = new HttpContext();
138
177
  }
139
178
 
140
- let responseType_: 'text' | 'json' = 'json';
141
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
142
- responseType_ = 'text';
179
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
180
+ if (localVarTransferCache === undefined) {
181
+ localVarTransferCache = true;
143
182
  }
144
183
 
145
- return this.httpClient.get<SecureUploadEntity>(`${this.configuration.basePath}/secureupload/${encodeURIComponent(String(id))}`, {
146
- params: queryParameters,
184
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
185
+ if (localVarHttpHeaderAcceptSelected) {
186
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
187
+ responseType_ = 'text';
188
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
189
+ responseType_ = 'json';
190
+ } else {
191
+ responseType_ = 'blob';
192
+ }
193
+ }
194
+
195
+ let localVarPath = `/secureupload/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
196
+ return this.httpClient.request<SecureUploadEntity>('get', `${this.configuration.basePath}${localVarPath}`, {
197
+ context: localVarHttpContext,
198
+ params: localVarQueryParameters,
147
199
  responseType: <any>responseType_,
148
200
  withCredentials: this.configuration.withCredentials,
149
- headers: headers,
201
+ headers: localVarHeaders,
150
202
  observe: observe,
203
+ transferCache: localVarTransferCache,
151
204
  reportProgress: reportProgress
152
205
  });
153
206
  }
154
207
 
155
208
  /**
156
209
  * This endpoint allows to securly upload one asset which is put onto the storage (INBOX). Object has to be FormData (Add file).
157
- * @param id The ID of the secure upload collection.
158
- * @param code The API key to access this endpoint. (Alternative using header x-function-keys with same value)
159
- * @param body This endpoint allows to upload one asset which is put onto the storage (INBOX). Object has to be FormData (Add file).
210
+ * @param requestParameters
160
211
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
161
212
  * @param reportProgress flag to report request and response progress.
162
213
  */
163
- public httpSecureUploadFileById(id: string, code: string, body: object, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Asset>;
164
214
  public httpSecureUploadFileById(
165
- id: string,
166
- code: string,
167
- body: object,
215
+ requestParameters?: HttpSecureUploadFileByIdRequestParams,
216
+ observe?: 'body',
217
+ reportProgress?: boolean,
218
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
219
+ ): Observable<Asset>;
220
+ public httpSecureUploadFileById(
221
+ requestParameters?: HttpSecureUploadFileByIdRequestParams,
168
222
  observe?: 'response',
169
223
  reportProgress?: boolean,
170
- options?: { httpHeaderAccept?: 'application/json' }
224
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
171
225
  ): Observable<HttpResponse<Asset>>;
172
226
  public httpSecureUploadFileById(
173
- id: string,
174
- code: string,
175
- body: object,
227
+ requestParameters?: HttpSecureUploadFileByIdRequestParams,
176
228
  observe?: 'events',
177
229
  reportProgress?: boolean,
178
- options?: { httpHeaderAccept?: 'application/json' }
230
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
179
231
  ): Observable<HttpEvent<Asset>>;
180
232
  public httpSecureUploadFileById(
181
- id: string,
182
- code: string,
183
- body: object,
233
+ requestParameters?: HttpSecureUploadFileByIdRequestParams,
184
234
  observe: any = 'body',
185
235
  reportProgress: boolean = false,
186
- options?: { httpHeaderAccept?: 'application/json' }
236
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
187
237
  ): Observable<any> {
238
+ const id = requestParameters?.id;
188
239
  if (id === null || id === undefined) {
189
240
  throw new Error('Required parameter id was null or undefined when calling httpSecureUploadFileById.');
190
241
  }
242
+ const code = requestParameters?.code;
191
243
  if (code === null || code === undefined) {
192
244
  throw new Error('Required parameter code was null or undefined when calling httpSecureUploadFileById.');
193
245
  }
246
+ const body = requestParameters?.body;
194
247
  if (body === null || body === undefined) {
195
248
  throw new Error('Required parameter body was null or undefined when calling httpSecureUploadFileById.');
196
249
  }
197
250
 
198
- let queryParameters = new HttpParams({ encoder: this.encoder });
251
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
199
252
  if (code !== undefined && code !== null) {
200
- queryParameters = this.addToHttpParams(queryParameters, <any>code, 'code');
253
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>code, 'code');
201
254
  }
202
255
 
203
- let headers = this.defaultHeaders;
256
+ let localVarHeaders = this.defaultHeaders;
204
257
 
205
- let credential: string | undefined;
258
+ let localVarCredential: string | undefined;
206
259
  // authentication (function_key) required
207
- credential = this.configuration.lookupCredential('function_key');
208
- if (credential) {
209
- headers = headers.set('x-functions-key', credential);
260
+ localVarCredential = this.configuration.lookupCredential('function_key');
261
+ if (localVarCredential) {
262
+ localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
210
263
  }
211
264
 
212
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
213
- if (httpHeaderAcceptSelected === undefined) {
265
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
266
+ if (localVarHttpHeaderAcceptSelected === undefined) {
214
267
  // to determine the Accept header
215
268
  const httpHeaderAccepts: string[] = ['application/json'];
216
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
269
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
217
270
  }
218
- if (httpHeaderAcceptSelected !== undefined) {
219
- headers = headers.set('Accept', httpHeaderAcceptSelected);
271
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
272
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
273
+ }
274
+
275
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
276
+ if (localVarHttpContext === undefined) {
277
+ localVarHttpContext = new HttpContext();
278
+ }
279
+
280
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
281
+ if (localVarTransferCache === undefined) {
282
+ localVarTransferCache = true;
220
283
  }
221
284
 
222
285
  // to determine the Content-Type header
@@ -226,17 +289,27 @@ export class PublicCollectionSecureUploadService {
226
289
  // headers = headers.set('Content-Type', httpContentTypeSelected);
227
290
  }
228
291
 
229
- let responseType_: 'text' | 'json' = 'json';
230
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
231
- responseType_ = 'text';
292
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
293
+ if (localVarHttpHeaderAcceptSelected) {
294
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
295
+ responseType_ = 'text';
296
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
297
+ responseType_ = 'json';
298
+ } else {
299
+ responseType_ = 'blob';
300
+ }
232
301
  }
233
302
 
234
- return this.httpClient.post<Asset>(`${this.configuration.basePath}/secureupload/${encodeURIComponent(String(id))}/upload`, body, {
235
- params: queryParameters,
303
+ let localVarPath = `/secureupload/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/upload`;
304
+ return this.httpClient.request<Asset>('post', `${this.configuration.basePath}${localVarPath}`, {
305
+ context: localVarHttpContext,
306
+ body: body,
307
+ params: localVarQueryParameters,
236
308
  responseType: <any>responseType_,
237
309
  withCredentials: this.configuration.withCredentials,
238
- headers: headers,
310
+ headers: localVarHeaders,
239
311
  observe: observe,
312
+ transferCache: localVarTransferCache,
240
313
  reportProgress: reportProgress
241
314
  });
242
315
  }