@agravity/public 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 (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 +19 -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.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,17 +11,40 @@
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 { PublishEntity } from '../model/models';
21
- import { PublishedAsset } from '../model/models';
18
+ // @ts-ignore
19
+ import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
20
+ // @ts-ignore
21
+ import { PublishEntity } from '../model/publishEntity.pub.agravity';
22
+ // @ts-ignore
23
+ import { PublishedAsset } from '../model/publishedAsset.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 HttpPublishedAssetsCreateRequestParams {
30
+ /** The ID of the asset. */
31
+ id: string;
32
+ /** This creates / adds an unique published asset ID and adds the information to the asset (in DB). */
33
+ publishedAsset: PublishedAsset;
34
+ }
35
+
36
+ export interface HttpPublishedAssetsGetRequestParams {
37
+ /** The ID of the asset. */
38
+ id: string;
39
+ }
40
+
41
+ export interface HttpPublishedAssetsGetByIdRequestParams {
42
+ /** The ID of the asset. */
43
+ id: string;
44
+ /** The published asset ID. */
45
+ pid: string;
46
+ }
47
+
26
48
  @Injectable({
27
49
  providedIn: 'root'
28
50
  })
@@ -34,13 +56,18 @@ export class PublicAssetPublishingService {
34
56
 
35
57
  constructor(
36
58
  protected httpClient: HttpClient,
37
- @Optional() @Inject(BASE_PATH) basePath: string,
59
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
38
60
  @Optional() configuration: AgravityPublicConfiguration
39
61
  ) {
40
62
  if (configuration) {
41
63
  this.configuration = configuration;
42
64
  }
43
65
  if (typeof this.configuration.basePath !== 'string') {
66
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
67
+ if (firstBasePath != undefined) {
68
+ basePath = firstBasePath;
69
+ }
70
+
44
71
  if (typeof basePath !== 'string') {
45
72
  basePath = this.basePath;
46
73
  }
@@ -49,6 +76,7 @@ export class PublicAssetPublishingService {
49
76
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
50
77
  }
51
78
 
79
+ // @ts-ignore
52
80
  private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
53
81
  if (typeof value === 'object' && value instanceof Date === false) {
54
82
  httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -68,7 +96,7 @@ export class PublicAssetPublishingService {
68
96
  (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
69
97
  } else if (value instanceof Date) {
70
98
  if (key != null) {
71
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
99
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
72
100
  } else {
73
101
  throw Error('key may not be null if value is Date');
74
102
  }
@@ -85,192 +113,277 @@ export class PublicAssetPublishingService {
85
113
 
86
114
  /**
87
115
  * This endpoint creates an additional published asset
88
- * @param id The ID of the asset.
89
- * @param publishedAsset This creates / adds an unique published asset ID and adds the information to the asset (in DB).
116
+ * @param requestParameters
90
117
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
91
118
  * @param reportProgress flag to report request and response progress.
92
119
  */
93
120
  public httpPublishedAssetsCreate(
94
- id: string,
95
- publishedAsset: PublishedAsset,
121
+ requestParameters?: HttpPublishedAssetsCreateRequestParams,
96
122
  observe?: 'body',
97
123
  reportProgress?: boolean,
98
- options?: { httpHeaderAccept?: 'application/json' }
124
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
99
125
  ): Observable<PublishedAsset>;
100
126
  public httpPublishedAssetsCreate(
101
- id: string,
102
- publishedAsset: PublishedAsset,
127
+ requestParameters?: HttpPublishedAssetsCreateRequestParams,
103
128
  observe?: 'response',
104
129
  reportProgress?: boolean,
105
- options?: { httpHeaderAccept?: 'application/json' }
130
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
106
131
  ): Observable<HttpResponse<PublishedAsset>>;
107
132
  public httpPublishedAssetsCreate(
108
- id: string,
109
- publishedAsset: PublishedAsset,
133
+ requestParameters?: HttpPublishedAssetsCreateRequestParams,
110
134
  observe?: 'events',
111
135
  reportProgress?: boolean,
112
- options?: { httpHeaderAccept?: 'application/json' }
136
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
113
137
  ): Observable<HttpEvent<PublishedAsset>>;
114
138
  public httpPublishedAssetsCreate(
115
- id: string,
116
- publishedAsset: PublishedAsset,
139
+ requestParameters?: HttpPublishedAssetsCreateRequestParams,
117
140
  observe: any = 'body',
118
141
  reportProgress: boolean = false,
119
- options?: { httpHeaderAccept?: 'application/json' }
142
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
120
143
  ): Observable<any> {
144
+ const id = requestParameters?.id;
121
145
  if (id === null || id === undefined) {
122
146
  throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsCreate.');
123
147
  }
148
+ const publishedAsset = requestParameters?.publishedAsset;
124
149
  if (publishedAsset === null || publishedAsset === undefined) {
125
150
  throw new Error('Required parameter publishedAsset was null or undefined when calling httpPublishedAssetsCreate.');
126
151
  }
127
152
 
128
- let headers = this.defaultHeaders;
153
+ let localVarHeaders = this.defaultHeaders;
129
154
 
130
- let credential: string | undefined;
155
+ let localVarCredential: string | undefined;
131
156
  // authentication (function_key) required
132
- credential = this.configuration.lookupCredential('function_key');
133
- if (credential) {
134
- headers = headers.set('x-functions-key', credential);
157
+ localVarCredential = this.configuration.lookupCredential('function_key');
158
+ if (localVarCredential) {
159
+ localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
135
160
  }
136
161
 
137
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
138
- if (httpHeaderAcceptSelected === undefined) {
162
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
163
+ if (localVarHttpHeaderAcceptSelected === undefined) {
139
164
  // to determine the Accept header
140
165
  const httpHeaderAccepts: string[] = ['application/json'];
141
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
166
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
167
+ }
168
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
169
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
170
+ }
171
+
172
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
173
+ if (localVarHttpContext === undefined) {
174
+ localVarHttpContext = new HttpContext();
142
175
  }
143
- if (httpHeaderAcceptSelected !== undefined) {
144
- headers = headers.set('Accept', httpHeaderAcceptSelected);
176
+
177
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
178
+ if (localVarTransferCache === undefined) {
179
+ localVarTransferCache = true;
145
180
  }
146
181
 
147
182
  // to determine the Content-Type header
148
183
  const consumes: string[] = ['application/json'];
149
184
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
150
185
  if (httpContentTypeSelected !== undefined) {
151
- headers = headers.set('Content-Type', httpContentTypeSelected);
186
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
152
187
  }
153
188
 
154
- let responseType_: 'text' | 'json' = 'json';
155
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
156
- responseType_ = 'text';
189
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
190
+ if (localVarHttpHeaderAcceptSelected) {
191
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
192
+ responseType_ = 'text';
193
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
194
+ responseType_ = 'json';
195
+ } else {
196
+ responseType_ = 'blob';
197
+ }
157
198
  }
158
199
 
159
- return this.httpClient.post<PublishedAsset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish`, publishedAsset, {
200
+ let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish`;
201
+ return this.httpClient.request<PublishedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
202
+ context: localVarHttpContext,
203
+ body: publishedAsset,
160
204
  responseType: <any>responseType_,
161
205
  withCredentials: this.configuration.withCredentials,
162
- headers: headers,
206
+ headers: localVarHeaders,
163
207
  observe: observe,
208
+ transferCache: localVarTransferCache,
164
209
  reportProgress: reportProgress
165
210
  });
166
211
  }
167
212
 
168
213
  /**
169
214
  * This endpoint lists all the published assets which are stored in the database if asset is still valid.
170
- * @param id The ID of the asset.
215
+ * @param requestParameters
171
216
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
172
217
  * @param reportProgress flag to report request and response progress.
173
218
  */
174
- public httpPublishedAssetsGet(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<PublishEntity>;
175
- public httpPublishedAssetsGet(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<PublishEntity>>;
176
- public httpPublishedAssetsGet(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<PublishEntity>>;
177
- public httpPublishedAssetsGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
219
+ public httpPublishedAssetsGet(
220
+ requestParameters?: HttpPublishedAssetsGetRequestParams,
221
+ observe?: 'body',
222
+ reportProgress?: boolean,
223
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
224
+ ): Observable<PublishEntity>;
225
+ public httpPublishedAssetsGet(
226
+ requestParameters?: HttpPublishedAssetsGetRequestParams,
227
+ observe?: 'response',
228
+ reportProgress?: boolean,
229
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
230
+ ): Observable<HttpResponse<PublishEntity>>;
231
+ public httpPublishedAssetsGet(
232
+ requestParameters?: HttpPublishedAssetsGetRequestParams,
233
+ observe?: 'events',
234
+ reportProgress?: boolean,
235
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
236
+ ): Observable<HttpEvent<PublishEntity>>;
237
+ public httpPublishedAssetsGet(
238
+ requestParameters?: HttpPublishedAssetsGetRequestParams,
239
+ observe: any = 'body',
240
+ reportProgress: boolean = false,
241
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
242
+ ): Observable<any> {
243
+ const id = requestParameters?.id;
178
244
  if (id === null || id === undefined) {
179
245
  throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsGet.');
180
246
  }
181
247
 
182
- let headers = this.defaultHeaders;
248
+ let localVarHeaders = this.defaultHeaders;
183
249
 
184
- let credential: string | undefined;
250
+ let localVarCredential: string | undefined;
185
251
  // authentication (function_key) required
186
- credential = this.configuration.lookupCredential('function_key');
187
- if (credential) {
188
- headers = headers.set('x-functions-key', credential);
252
+ localVarCredential = this.configuration.lookupCredential('function_key');
253
+ if (localVarCredential) {
254
+ localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
189
255
  }
190
256
 
191
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
192
- if (httpHeaderAcceptSelected === undefined) {
257
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
258
+ if (localVarHttpHeaderAcceptSelected === undefined) {
193
259
  // to determine the Accept header
194
260
  const httpHeaderAccepts: string[] = ['application/json'];
195
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
261
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
262
+ }
263
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
264
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
196
265
  }
197
- if (httpHeaderAcceptSelected !== undefined) {
198
- headers = headers.set('Accept', httpHeaderAcceptSelected);
266
+
267
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
268
+ if (localVarHttpContext === undefined) {
269
+ localVarHttpContext = new HttpContext();
199
270
  }
200
271
 
201
- let responseType_: 'text' | 'json' = 'json';
202
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
203
- responseType_ = 'text';
272
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
273
+ if (localVarTransferCache === undefined) {
274
+ localVarTransferCache = true;
204
275
  }
205
276
 
206
- return this.httpClient.get<PublishEntity>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish`, {
277
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
278
+ if (localVarHttpHeaderAcceptSelected) {
279
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
280
+ responseType_ = 'text';
281
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
282
+ responseType_ = 'json';
283
+ } else {
284
+ responseType_ = 'blob';
285
+ }
286
+ }
287
+
288
+ let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish`;
289
+ return this.httpClient.request<PublishEntity>('get', `${this.configuration.basePath}${localVarPath}`, {
290
+ context: localVarHttpContext,
207
291
  responseType: <any>responseType_,
208
292
  withCredentials: this.configuration.withCredentials,
209
- headers: headers,
293
+ headers: localVarHeaders,
210
294
  observe: observe,
295
+ transferCache: localVarTransferCache,
211
296
  reportProgress: reportProgress
212
297
  });
213
298
  }
214
299
 
215
300
  /**
216
301
  * This endpoint returns one single published asset (from ID). Not checked if assetId is not deleted!
217
- * @param id The ID of the asset.
218
- * @param pid The published asset ID.
302
+ * @param requestParameters
219
303
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
220
304
  * @param reportProgress flag to report request and response progress.
221
305
  */
222
- public httpPublishedAssetsGetById(id: string, pid: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<PublishedAsset>;
223
306
  public httpPublishedAssetsGetById(
224
- id: string,
225
- pid: string,
307
+ requestParameters?: HttpPublishedAssetsGetByIdRequestParams,
308
+ observe?: 'body',
309
+ reportProgress?: boolean,
310
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
311
+ ): Observable<PublishedAsset>;
312
+ public httpPublishedAssetsGetById(
313
+ requestParameters?: HttpPublishedAssetsGetByIdRequestParams,
226
314
  observe?: 'response',
227
315
  reportProgress?: boolean,
228
- options?: { httpHeaderAccept?: 'application/json' }
316
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
229
317
  ): Observable<HttpResponse<PublishedAsset>>;
230
318
  public httpPublishedAssetsGetById(
231
- id: string,
232
- pid: string,
319
+ requestParameters?: HttpPublishedAssetsGetByIdRequestParams,
233
320
  observe?: 'events',
234
321
  reportProgress?: boolean,
235
- options?: { httpHeaderAccept?: 'application/json' }
322
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
236
323
  ): Observable<HttpEvent<PublishedAsset>>;
237
- public httpPublishedAssetsGetById(id: string, pid: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
324
+ public httpPublishedAssetsGetById(
325
+ requestParameters?: HttpPublishedAssetsGetByIdRequestParams,
326
+ observe: any = 'body',
327
+ reportProgress: boolean = false,
328
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
329
+ ): Observable<any> {
330
+ const id = requestParameters?.id;
238
331
  if (id === null || id === undefined) {
239
332
  throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsGetById.');
240
333
  }
334
+ const pid = requestParameters?.pid;
241
335
  if (pid === null || pid === undefined) {
242
336
  throw new Error('Required parameter pid was null or undefined when calling httpPublishedAssetsGetById.');
243
337
  }
244
338
 
245
- let headers = this.defaultHeaders;
339
+ let localVarHeaders = this.defaultHeaders;
246
340
 
247
- let credential: string | undefined;
341
+ let localVarCredential: string | undefined;
248
342
  // authentication (function_key) required
249
- credential = this.configuration.lookupCredential('function_key');
250
- if (credential) {
251
- headers = headers.set('x-functions-key', credential);
343
+ localVarCredential = this.configuration.lookupCredential('function_key');
344
+ if (localVarCredential) {
345
+ localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
252
346
  }
253
347
 
254
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
255
- if (httpHeaderAcceptSelected === undefined) {
348
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
349
+ if (localVarHttpHeaderAcceptSelected === undefined) {
256
350
  // to determine the Accept header
257
351
  const httpHeaderAccepts: string[] = ['application/json'];
258
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
352
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
353
+ }
354
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
355
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
259
356
  }
260
- if (httpHeaderAcceptSelected !== undefined) {
261
- headers = headers.set('Accept', httpHeaderAcceptSelected);
357
+
358
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
359
+ if (localVarHttpContext === undefined) {
360
+ localVarHttpContext = new HttpContext();
361
+ }
362
+
363
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
364
+ if (localVarTransferCache === undefined) {
365
+ localVarTransferCache = true;
262
366
  }
263
367
 
264
- let responseType_: 'text' | 'json' = 'json';
265
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
266
- responseType_ = 'text';
368
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
369
+ if (localVarHttpHeaderAcceptSelected) {
370
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
371
+ responseType_ = 'text';
372
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
373
+ responseType_ = 'json';
374
+ } else {
375
+ responseType_ = 'blob';
376
+ }
267
377
  }
268
378
 
269
- return this.httpClient.get<PublishedAsset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish/${encodeURIComponent(String(pid))}`, {
379
+ let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish/${this.configuration.encodeParam({ name: 'pid', value: pid, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
380
+ return this.httpClient.request<PublishedAsset>('get', `${this.configuration.basePath}${localVarPath}`, {
381
+ context: localVarHttpContext,
270
382
  responseType: <any>responseType_,
271
383
  withCredentials: this.configuration.withCredentials,
272
- headers: headers,
384
+ headers: localVarHeaders,
273
385
  observe: observe,
386
+ transferCache: localVarTransferCache,
274
387
  reportProgress: reportProgress
275
388
  });
276
389
  }