@agravity/private 7.3.1 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +29 -4
  4. package/api/assetIconRuleManagement.agravity.ts +344 -150
  5. package/api/assetManagement.agravity.ts +709 -389
  6. package/api/assetOperations.agravity.ts +1414 -650
  7. package/api/assetPublishing.agravity.ts +562 -255
  8. package/api/assetVersioning.agravity.ts +598 -278
  9. package/api/authenticationManagement.agravity.ts +731 -274
  10. package/api/collectionManagement.agravity.ts +618 -309
  11. package/api/collectionShareManagement.agravity.ts +256 -121
  12. package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
  13. package/api/collectionTypeManagement.agravity.ts +519 -250
  14. package/api/commentsManagement.agravity.ts +284 -90
  15. package/api/configurationManagement.agravity.ts +311 -128
  16. package/api/dashboardWidgetManagement.agravity.ts +342 -124
  17. package/api/dataImportExportManagement.agravity.ts +378 -148
  18. package/api/downloadFormatManagement.agravity.ts +450 -152
  19. package/api/downloadZip.agravity.ts +75 -30
  20. package/api/generalManagement.agravity.ts +374 -164
  21. package/api/helperTools.agravity.ts +804 -273
  22. package/api/historyEntryManagement.agravity.ts +75 -33
  23. package/api/iccProfileManagement.agravity.ts +64 -23
  24. package/api/listBlobs.agravity.ts +125 -47
  25. package/api/listQueues.agravity.ts +68 -24
  26. package/api/listTables.agravity.ts +68 -25
  27. package/api/permissionsManagement.agravity.ts +174 -77
  28. package/api/portalManagement.agravity.ts +511 -198
  29. package/api/publishing.agravity.ts +69 -38
  30. package/api/quickshareManagement.agravity.ts +349 -138
  31. package/api/savedSearchManagement.agravity.ts +205 -92
  32. package/api/searchManagement.agravity.ts +517 -297
  33. package/api/secureUpload.agravity.ts +325 -126
  34. package/api/signalRConnectionManagement.agravity.ts +175 -56
  35. package/api/staticDefinedListManagement.agravity.ts +342 -162
  36. package/api/stockImport.agravity.ts +138 -74
  37. package/api/structureImport.agravity.ts +68 -25
  38. package/api/translationManagement.agravity.ts +357 -206
  39. package/api/webAppData.agravity.ts +278 -88
  40. package/api/widgetLayoutManagement.agravity.ts +131 -47
  41. package/api/wordpressManagement.agravity.ts +152 -108
  42. package/api/workspaceManagement.agravity.ts +456 -197
  43. package/api.module.ts +0 -40
  44. package/configuration.ts +42 -0
  45. package/git_push.sh +3 -4
  46. package/index.ts +1 -0
  47. package/model/agravityErrorResponse.agravity.ts +3 -4
  48. package/model/agravityInfoResponse.agravity.ts +3 -4
  49. package/model/agravityUser.agravity.ts +16 -17
  50. package/model/agravityUserDto.agravity.ts +3 -4
  51. package/model/agravityVersion.agravity.ts +8 -9
  52. package/model/allWebAppData.agravity.ts +4 -5
  53. package/model/apiKeyResponse.agravity.ts +2 -3
  54. package/model/appConfigTableEntity.agravity.ts +8 -9
  55. package/model/artificialIntelligenceGroup.agravity.ts +3 -4
  56. package/model/asset.agravity.ts +22 -23
  57. package/model/assetAvailability.agravity.ts +1 -2
  58. package/model/assetBlob.agravity.ts +27 -28
  59. package/model/assetBulkUpdate.agravity.ts +2 -3
  60. package/model/assetCollectionLink.agravity.ts +2 -3
  61. package/model/assetIconRule.agravity.ts +17 -18
  62. package/model/assetIdFormat.agravity.ts +3 -4
  63. package/model/assetPageResult.agravity.ts +4 -5
  64. package/model/assetTextContent.agravity.ts +2 -3
  65. package/model/assetsOperationBody.agravity.ts +3 -4
  66. package/model/azSearchOptions.agravity.ts +8 -9
  67. package/model/azureIdentity.agravity.ts +4 -5
  68. package/model/blobInfoObj.agravity.ts +0 -1
  69. package/model/collTypeItem.agravity.ts +16 -17
  70. package/model/collTypeItemBlueprint.agravity.ts +12 -13
  71. package/model/collection.agravity.ts +15 -16
  72. package/model/collectionType.agravity.ts +14 -15
  73. package/model/collectionUDL.agravity.ts +4 -5
  74. package/model/collectionUDLListEntity.agravity.ts +9 -10
  75. package/model/collectionUDLReference.agravity.ts +3 -4
  76. package/model/comment.agravity.ts +9 -10
  77. package/model/createSftpUserResult.agravity.ts +2 -3
  78. package/model/dashboardWidget.agravity.ts +11 -12
  79. package/model/dataResult.agravity.ts +4 -5
  80. package/model/deletedEntities.agravity.ts +4 -5
  81. package/model/distZipResponse.agravity.ts +3 -4
  82. package/model/downloadFormat.agravity.ts +18 -16
  83. package/model/downloadObject.agravity.ts +16 -16
  84. package/model/downloadZipRequest.agravity.ts +9 -10
  85. package/model/dynamicImageOperation.agravity.ts +2 -3
  86. package/model/emailAddress.agravity.ts +2 -3
  87. package/model/entityId.agravity.ts +1 -2
  88. package/model/entityIdName.agravity.ts +3 -4
  89. package/model/entityTranslations.agravity.ts +2 -3
  90. package/model/excelExportTableEntity.agravity.ts +5 -5
  91. package/model/frontendAppConfig.agravity.ts +0 -1
  92. package/model/groupAllAppData.agravity.ts +5 -6
  93. package/model/historyEntry.agravity.ts +9 -10
  94. package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
  95. package/model/metadata.agravity.ts +3 -4
  96. package/model/models.ts +0 -1
  97. package/model/moveCollectionBody.agravity.ts +3 -4
  98. package/model/permissionChange.agravity.ts +1 -2
  99. package/model/permissionEntity.agravity.ts +1 -2
  100. package/model/permissionSetting.agravity.ts +8 -9
  101. package/model/portal.agravity.ts +18 -20
  102. package/model/portalLinks.agravity.ts +3 -4
  103. package/model/portalTheme.agravity.ts +6 -7
  104. package/model/portalZipRequest.agravity.ts +14 -15
  105. package/model/publishEntity.agravity.ts +9 -10
  106. package/model/publishedAsset.agravity.ts +12 -13
  107. package/model/quickShare.agravity.ts +12 -13
  108. package/model/quickShareFull.agravity.ts +15 -16
  109. package/model/sasToken.agravity.ts +6 -7
  110. package/model/savedSearch.agravity.ts +13 -14
  111. package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
  112. package/model/searchAdminIndexStatus.agravity.ts +3 -4
  113. package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
  114. package/model/searchAdminIndexerStatus.agravity.ts +4 -5
  115. package/model/searchAdminSkillStatus.agravity.ts +2 -3
  116. package/model/searchAdminStatistics.agravity.ts +2 -3
  117. package/model/searchAdminStatus.agravity.ts +4 -5
  118. package/model/searchFacet.agravity.ts +2 -3
  119. package/model/searchFacetEntity.agravity.ts +2 -3
  120. package/model/searchResult.agravity.ts +3 -4
  121. package/model/searchableItem.agravity.ts +3 -4
  122. package/model/secureUploadEntity.agravity.ts +10 -11
  123. package/model/sharedAllowedFormat.agravity.ts +2 -3
  124. package/model/sharedAsset.agravity.ts +5 -6
  125. package/model/sharedCollection.agravity.ts +15 -16
  126. package/model/sharedCollectionFull.agravity.ts +18 -19
  127. package/model/signalRConnectionInfo.agravity.ts +0 -1
  128. package/model/simpleAsset.agravity.ts +10 -11
  129. package/model/staticDefinedList.agravity.ts +12 -13
  130. package/model/translation.agravity.ts +2 -3
  131. package/model/translationRequest.agravity.ts +3 -4
  132. package/model/uiTutorials.agravity.ts +0 -1
  133. package/model/versionEntity.agravity.ts +9 -10
  134. package/model/versionedAsset.agravity.ts +5 -6
  135. package/model/whereParam.agravity.ts +0 -1
  136. package/model/widgetLayout.agravity.ts +8 -9
  137. package/model/widgetProperties.agravity.ts +6 -7
  138. package/model/workspace.agravity.ts +14 -15
  139. package/package.json +16 -17
  140. package/param.ts +44 -0
  141. package/model/portalLanguages.agravity.ts +0 -16
@@ -2,7 +2,6 @@
2
2
  * Agravity OpenAPI Documentation - Private Functions
3
3
  * <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 7.3.1
6
5
  * Contact: office@agravity.io
7
6
  *
8
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,18 +11,88 @@
12
11
  /* tslint:disable:no-unused-variable member-ordering */
13
12
 
14
13
  import { Inject, Injectable, Optional } from '@angular/core';
15
- import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
14
+ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
16
15
  import { CustomHttpParameterCodec } from '../encoder';
17
16
  import { Observable } from 'rxjs';
18
17
 
19
- import { AgravityErrorResponse } from '../model/models';
20
- import { AgravityInfoResponse } from '../model/models';
21
- import { PublishEntity } from '../model/models';
22
- import { PublishedAsset } from '../model/models';
18
+ // @ts-ignore
19
+ import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
20
+ // @ts-ignore
21
+ import { AgravityInfoResponse } from '../model/agravityInfoResponse.agravity';
22
+ // @ts-ignore
23
+ import { PublishEntity } from '../model/publishEntity.agravity';
24
+ // @ts-ignore
25
+ import { PublishedAsset } from '../model/publishedAsset.agravity';
23
26
 
27
+ // @ts-ignore
24
28
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
25
29
  import { AgravityConfiguration } from '../configuration';
26
30
 
31
+ export interface GetPublishedAssetByIdRequestParams {
32
+ /** The ID of the asset. */
33
+ id: string;
34
+ /** The published asset ID. */
35
+ pid: string;
36
+ }
37
+
38
+ export interface GetPublishedAssetDetailsRequestParams {
39
+ /** The ID of the asset. */
40
+ id: string;
41
+ /** The published asset ID. */
42
+ pid: string;
43
+ }
44
+
45
+ export interface HttpPublishedAssetsCheckStatusRequestParams {
46
+ /** The ID of translation export */
47
+ id: string;
48
+ /** The published asset ID. */
49
+ pid: string;
50
+ }
51
+
52
+ export interface HttpPublishedAssetsCreateRequestParams {
53
+ /** The ID of the asset. */
54
+ id: string;
55
+ /** This creates / adds an unique published asset ID and adds the information to the asset (in DB). */
56
+ publishedAsset: PublishedAsset;
57
+ }
58
+
59
+ export interface HttpPublishedAssetsDeleteAllRequestParams {
60
+ /** The ID of the asset. */
61
+ id: string;
62
+ }
63
+
64
+ export interface HttpPublishedAssetsDeleteByIdRequestParams {
65
+ /** The ID of the asset. */
66
+ id: string;
67
+ /** The published asset ID. */
68
+ pid: string;
69
+ /** Even if the unpublish in the third party system is not successful, the published asset should be removed. */
70
+ force?: boolean;
71
+ }
72
+
73
+ export interface HttpPublishedAssetsGetRequestParams {
74
+ /** The ID of the asset. */
75
+ id: string;
76
+ }
77
+
78
+ export interface HttpPublishedAssetsRepublishByIdRequestParams {
79
+ /** The ID of the asset. */
80
+ id: string;
81
+ /** The published asset ID. */
82
+ pid: string;
83
+ /** The body has to contain a valid PublishedAsset in json format. Not fitting properties are ignored. */
84
+ publishedAsset: PublishedAsset;
85
+ }
86
+
87
+ export interface HttpPublishedAssetsUpdateByIdRequestParams {
88
+ /** The ID of the asset. */
89
+ id: string;
90
+ /** The published asset ID. */
91
+ pid: string;
92
+ /** The body has to contain a valid PublishedAsset in json format. Not fitting properties are ignored. */
93
+ publishedAsset: PublishedAsset;
94
+ }
95
+
27
96
  @Injectable({
28
97
  providedIn: 'root'
29
98
  })
@@ -35,13 +104,18 @@ export class AssetPublishingService {
35
104
 
36
105
  constructor(
37
106
  protected httpClient: HttpClient,
38
- @Optional() @Inject(BASE_PATH) basePath: string,
107
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
39
108
  @Optional() configuration: AgravityConfiguration
40
109
  ) {
41
110
  if (configuration) {
42
111
  this.configuration = configuration;
43
112
  }
44
113
  if (typeof this.configuration.basePath !== 'string') {
114
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
115
+ if (firstBasePath != undefined) {
116
+ basePath = firstBasePath;
117
+ }
118
+
45
119
  if (typeof basePath !== 'string') {
46
120
  basePath = this.basePath;
47
121
  }
@@ -50,6 +124,7 @@ export class AssetPublishingService {
50
124
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
51
125
  }
52
126
 
127
+ // @ts-ignore
53
128
  private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
54
129
  if (typeof value === 'object' && value instanceof Date === false) {
55
130
  httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -69,7 +144,7 @@ export class AssetPublishingService {
69
144
  (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
70
145
  } else if (value instanceof Date) {
71
146
  if (key != null) {
72
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
147
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
73
148
  } else {
74
149
  throw Error('key may not be null if value is Date');
75
150
  }
@@ -86,618 +161,850 @@ export class AssetPublishingService {
86
161
 
87
162
  /**
88
163
  * This endpoint returns one single published asset (from ID)
89
- * @param id The ID of the asset.
90
- * @param pid The published asset ID.
164
+ * @param requestParameters
91
165
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
92
166
  * @param reportProgress flag to report request and response progress.
93
167
  */
94
- public getPublishedAssetById(id: string, pid: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<PublishedAsset>;
95
168
  public getPublishedAssetById(
96
- id: string,
97
- pid: string,
169
+ requestParameters?: GetPublishedAssetByIdRequestParams,
170
+ observe?: 'body',
171
+ reportProgress?: boolean,
172
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
173
+ ): Observable<PublishedAsset>;
174
+ public getPublishedAssetById(
175
+ requestParameters?: GetPublishedAssetByIdRequestParams,
98
176
  observe?: 'response',
99
177
  reportProgress?: boolean,
100
- options?: { httpHeaderAccept?: 'application/json' }
178
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
101
179
  ): Observable<HttpResponse<PublishedAsset>>;
102
- public getPublishedAssetById(id: string, pid: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<PublishedAsset>>;
103
- public getPublishedAssetById(id: string, pid: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
180
+ public getPublishedAssetById(
181
+ requestParameters?: GetPublishedAssetByIdRequestParams,
182
+ observe?: 'events',
183
+ reportProgress?: boolean,
184
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
185
+ ): Observable<HttpEvent<PublishedAsset>>;
186
+ public getPublishedAssetById(
187
+ requestParameters?: GetPublishedAssetByIdRequestParams,
188
+ observe: any = 'body',
189
+ reportProgress: boolean = false,
190
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
191
+ ): Observable<any> {
192
+ const id = requestParameters?.id;
104
193
  if (id === null || id === undefined) {
105
194
  throw new Error('Required parameter id was null or undefined when calling getPublishedAssetById.');
106
195
  }
196
+ const pid = requestParameters?.pid;
107
197
  if (pid === null || pid === undefined) {
108
198
  throw new Error('Required parameter pid was null or undefined when calling getPublishedAssetById.');
109
199
  }
110
200
 
111
- let headers = this.defaultHeaders;
201
+ let localVarHeaders = this.defaultHeaders;
112
202
 
113
- let credential: string | undefined;
203
+ let localVarCredential: string | undefined;
114
204
  // authentication (msal_auth) required
115
- credential = this.configuration.lookupCredential('msal_auth');
116
- if (credential) {
117
- headers = headers.set('Authorization', 'Bearer ' + credential);
205
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
206
+ if (localVarCredential) {
207
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
118
208
  }
119
209
 
120
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
121
- if (httpHeaderAcceptSelected === undefined) {
210
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
211
+ if (localVarHttpHeaderAcceptSelected === undefined) {
122
212
  // to determine the Accept header
123
213
  const httpHeaderAccepts: string[] = ['application/json'];
124
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
214
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
215
+ }
216
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
217
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
218
+ }
219
+
220
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
221
+ if (localVarHttpContext === undefined) {
222
+ localVarHttpContext = new HttpContext();
125
223
  }
126
- if (httpHeaderAcceptSelected !== undefined) {
127
- headers = headers.set('Accept', httpHeaderAcceptSelected);
224
+
225
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
226
+ if (localVarTransferCache === undefined) {
227
+ localVarTransferCache = true;
128
228
  }
129
229
 
130
- let responseType_: 'text' | 'json' = 'json';
131
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
132
- responseType_ = 'text';
230
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
231
+ if (localVarHttpHeaderAcceptSelected) {
232
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
233
+ responseType_ = 'text';
234
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
235
+ responseType_ = 'json';
236
+ } else {
237
+ responseType_ = 'blob';
238
+ }
133
239
  }
134
240
 
135
- return this.httpClient.get<PublishedAsset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish/${encodeURIComponent(String(pid))}`, {
241
+ 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 })}`;
242
+ return this.httpClient.request<PublishedAsset>('get', `${this.configuration.basePath}${localVarPath}`, {
243
+ context: localVarHttpContext,
136
244
  responseType: <any>responseType_,
137
245
  withCredentials: this.configuration.withCredentials,
138
- headers: headers,
246
+ headers: localVarHeaders,
139
247
  observe: observe,
248
+ transferCache: localVarTransferCache,
140
249
  reportProgress: reportProgress
141
250
  });
142
251
  }
143
252
 
144
253
  /**
145
254
  * This endpoint fetches specific information (e.g. statistics) of the published asset (from ID) from the target platform
146
- * @param id The ID of the asset.
147
- * @param pid The published asset ID.
255
+ * @param requestParameters
148
256
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
149
257
  * @param reportProgress flag to report request and response progress.
150
258
  */
151
- public getPublishedAssetDetails(id: string, pid: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<{ [key: string]: object }>;
152
259
  public getPublishedAssetDetails(
153
- id: string,
154
- pid: string,
260
+ requestParameters?: GetPublishedAssetDetailsRequestParams,
261
+ observe?: 'body',
262
+ reportProgress?: boolean,
263
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
264
+ ): Observable<{ [key: string]: object }>;
265
+ public getPublishedAssetDetails(
266
+ requestParameters?: GetPublishedAssetDetailsRequestParams,
155
267
  observe?: 'response',
156
268
  reportProgress?: boolean,
157
- options?: { httpHeaderAccept?: 'application/json' }
269
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
158
270
  ): Observable<HttpResponse<{ [key: string]: object }>>;
159
271
  public getPublishedAssetDetails(
160
- id: string,
161
- pid: string,
272
+ requestParameters?: GetPublishedAssetDetailsRequestParams,
162
273
  observe?: 'events',
163
274
  reportProgress?: boolean,
164
- options?: { httpHeaderAccept?: 'application/json' }
275
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
165
276
  ): Observable<HttpEvent<{ [key: string]: object }>>;
166
- public getPublishedAssetDetails(id: string, pid: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
277
+ public getPublishedAssetDetails(
278
+ requestParameters?: GetPublishedAssetDetailsRequestParams,
279
+ observe: any = 'body',
280
+ reportProgress: boolean = false,
281
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
282
+ ): Observable<any> {
283
+ const id = requestParameters?.id;
167
284
  if (id === null || id === undefined) {
168
285
  throw new Error('Required parameter id was null or undefined when calling getPublishedAssetDetails.');
169
286
  }
287
+ const pid = requestParameters?.pid;
170
288
  if (pid === null || pid === undefined) {
171
289
  throw new Error('Required parameter pid was null or undefined when calling getPublishedAssetDetails.');
172
290
  }
173
291
 
174
- let headers = this.defaultHeaders;
292
+ let localVarHeaders = this.defaultHeaders;
175
293
 
176
- let credential: string | undefined;
294
+ let localVarCredential: string | undefined;
177
295
  // authentication (msal_auth) required
178
- credential = this.configuration.lookupCredential('msal_auth');
179
- if (credential) {
180
- headers = headers.set('Authorization', 'Bearer ' + credential);
296
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
297
+ if (localVarCredential) {
298
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
181
299
  }
182
300
 
183
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
184
- if (httpHeaderAcceptSelected === undefined) {
301
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
302
+ if (localVarHttpHeaderAcceptSelected === undefined) {
185
303
  // to determine the Accept header
186
304
  const httpHeaderAccepts: string[] = ['application/json'];
187
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
305
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
188
306
  }
189
- if (httpHeaderAcceptSelected !== undefined) {
190
- headers = headers.set('Accept', httpHeaderAcceptSelected);
307
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
308
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
309
+ }
310
+
311
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
312
+ if (localVarHttpContext === undefined) {
313
+ localVarHttpContext = new HttpContext();
191
314
  }
192
315
 
193
- let responseType_: 'text' | 'json' = 'json';
194
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
195
- responseType_ = 'text';
316
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
317
+ if (localVarTransferCache === undefined) {
318
+ localVarTransferCache = true;
196
319
  }
197
320
 
198
- return this.httpClient.get<{ [key: string]: object }>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish/${encodeURIComponent(String(pid))}/info`, {
321
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
322
+ if (localVarHttpHeaderAcceptSelected) {
323
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
324
+ responseType_ = 'text';
325
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
326
+ responseType_ = 'json';
327
+ } else {
328
+ responseType_ = 'blob';
329
+ }
330
+ }
331
+
332
+ 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 })}/info`;
333
+ return this.httpClient.request<{ [key: string]: object }>('get', `${this.configuration.basePath}${localVarPath}`, {
334
+ context: localVarHttpContext,
199
335
  responseType: <any>responseType_,
200
336
  withCredentials: this.configuration.withCredentials,
201
- headers: headers,
337
+ headers: localVarHeaders,
202
338
  observe: observe,
339
+ transferCache: localVarTransferCache,
203
340
  reportProgress: reportProgress
204
341
  });
205
342
  }
206
343
 
207
344
  /**
208
345
  * This endpoint retrieves the status of the published entity i.e. vimeo video upload
209
- * @param id The ID of translation export
210
- * @param pid The published asset ID.
346
+ * @param requestParameters
211
347
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
212
348
  * @param reportProgress flag to report request and response progress.
213
349
  */
214
- public httpPublishedAssetsCheckStatus(id: string, pid: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
215
350
  public httpPublishedAssetsCheckStatus(
216
- id: string,
217
- pid: string,
351
+ requestParameters?: HttpPublishedAssetsCheckStatusRequestParams,
352
+ observe?: 'body',
353
+ reportProgress?: boolean,
354
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
355
+ ): Observable<AgravityInfoResponse>;
356
+ public httpPublishedAssetsCheckStatus(
357
+ requestParameters?: HttpPublishedAssetsCheckStatusRequestParams,
218
358
  observe?: 'response',
219
359
  reportProgress?: boolean,
220
- options?: { httpHeaderAccept?: 'application/json' }
360
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
221
361
  ): Observable<HttpResponse<AgravityInfoResponse>>;
222
362
  public httpPublishedAssetsCheckStatus(
223
- id: string,
224
- pid: string,
363
+ requestParameters?: HttpPublishedAssetsCheckStatusRequestParams,
225
364
  observe?: 'events',
226
365
  reportProgress?: boolean,
227
- options?: { httpHeaderAccept?: 'application/json' }
366
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
228
367
  ): Observable<HttpEvent<AgravityInfoResponse>>;
229
- public httpPublishedAssetsCheckStatus(id: string, pid: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
368
+ public httpPublishedAssetsCheckStatus(
369
+ requestParameters?: HttpPublishedAssetsCheckStatusRequestParams,
370
+ observe: any = 'body',
371
+ reportProgress: boolean = false,
372
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
373
+ ): Observable<any> {
374
+ const id = requestParameters?.id;
230
375
  if (id === null || id === undefined) {
231
376
  throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsCheckStatus.');
232
377
  }
378
+ const pid = requestParameters?.pid;
233
379
  if (pid === null || pid === undefined) {
234
380
  throw new Error('Required parameter pid was null or undefined when calling httpPublishedAssetsCheckStatus.');
235
381
  }
236
382
 
237
- let headers = this.defaultHeaders;
383
+ let localVarHeaders = this.defaultHeaders;
238
384
 
239
- let credential: string | undefined;
385
+ let localVarCredential: string | undefined;
240
386
  // authentication (msal_auth) required
241
- credential = this.configuration.lookupCredential('msal_auth');
242
- if (credential) {
243
- headers = headers.set('Authorization', 'Bearer ' + credential);
387
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
388
+ if (localVarCredential) {
389
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
244
390
  }
245
391
 
246
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
247
- if (httpHeaderAcceptSelected === undefined) {
392
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
393
+ if (localVarHttpHeaderAcceptSelected === undefined) {
248
394
  // to determine the Accept header
249
395
  const httpHeaderAccepts: string[] = ['application/json'];
250
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
396
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
251
397
  }
252
- if (httpHeaderAcceptSelected !== undefined) {
253
- headers = headers.set('Accept', httpHeaderAcceptSelected);
398
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
399
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
254
400
  }
255
401
 
256
- let responseType_: 'text' | 'json' = 'json';
257
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
258
- responseType_ = 'text';
402
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
403
+ if (localVarHttpContext === undefined) {
404
+ localVarHttpContext = new HttpContext();
259
405
  }
260
406
 
261
- return this.httpClient.get<AgravityInfoResponse>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish/${encodeURIComponent(String(pid))}/status`, {
407
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
408
+ if (localVarTransferCache === undefined) {
409
+ localVarTransferCache = true;
410
+ }
411
+
412
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
413
+ if (localVarHttpHeaderAcceptSelected) {
414
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
415
+ responseType_ = 'text';
416
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
417
+ responseType_ = 'json';
418
+ } else {
419
+ responseType_ = 'blob';
420
+ }
421
+ }
422
+
423
+ 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 })}/status`;
424
+ return this.httpClient.request<AgravityInfoResponse>('get', `${this.configuration.basePath}${localVarPath}`, {
425
+ context: localVarHttpContext,
262
426
  responseType: <any>responseType_,
263
427
  withCredentials: this.configuration.withCredentials,
264
- headers: headers,
428
+ headers: localVarHeaders,
265
429
  observe: observe,
430
+ transferCache: localVarTransferCache,
266
431
  reportProgress: reportProgress
267
432
  });
268
433
  }
269
434
 
270
435
  /**
271
436
  * This endpoint creates an additional published asset
272
- * @param id The ID of the asset.
273
- * @param publishedAsset This creates / adds an unique published asset ID and adds the information to the asset (in DB).
437
+ * @param requestParameters
274
438
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
275
439
  * @param reportProgress flag to report request and response progress.
276
440
  */
277
441
  public httpPublishedAssetsCreate(
278
- id: string,
279
- publishedAsset: PublishedAsset,
442
+ requestParameters?: HttpPublishedAssetsCreateRequestParams,
280
443
  observe?: 'body',
281
444
  reportProgress?: boolean,
282
- options?: { httpHeaderAccept?: 'application/json' }
445
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
283
446
  ): Observable<PublishedAsset>;
284
447
  public httpPublishedAssetsCreate(
285
- id: string,
286
- publishedAsset: PublishedAsset,
448
+ requestParameters?: HttpPublishedAssetsCreateRequestParams,
287
449
  observe?: 'response',
288
450
  reportProgress?: boolean,
289
- options?: { httpHeaderAccept?: 'application/json' }
451
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
290
452
  ): Observable<HttpResponse<PublishedAsset>>;
291
453
  public httpPublishedAssetsCreate(
292
- id: string,
293
- publishedAsset: PublishedAsset,
454
+ requestParameters?: HttpPublishedAssetsCreateRequestParams,
294
455
  observe?: 'events',
295
456
  reportProgress?: boolean,
296
- options?: { httpHeaderAccept?: 'application/json' }
457
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
297
458
  ): Observable<HttpEvent<PublishedAsset>>;
298
459
  public httpPublishedAssetsCreate(
299
- id: string,
300
- publishedAsset: PublishedAsset,
460
+ requestParameters?: HttpPublishedAssetsCreateRequestParams,
301
461
  observe: any = 'body',
302
462
  reportProgress: boolean = false,
303
- options?: { httpHeaderAccept?: 'application/json' }
463
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
304
464
  ): Observable<any> {
465
+ const id = requestParameters?.id;
305
466
  if (id === null || id === undefined) {
306
467
  throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsCreate.');
307
468
  }
469
+ const publishedAsset = requestParameters?.publishedAsset;
308
470
  if (publishedAsset === null || publishedAsset === undefined) {
309
471
  throw new Error('Required parameter publishedAsset was null or undefined when calling httpPublishedAssetsCreate.');
310
472
  }
311
473
 
312
- let headers = this.defaultHeaders;
474
+ let localVarHeaders = this.defaultHeaders;
313
475
 
314
- let credential: string | undefined;
476
+ let localVarCredential: string | undefined;
315
477
  // authentication (msal_auth) required
316
- credential = this.configuration.lookupCredential('msal_auth');
317
- if (credential) {
318
- headers = headers.set('Authorization', 'Bearer ' + credential);
478
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
479
+ if (localVarCredential) {
480
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
319
481
  }
320
482
 
321
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
322
- if (httpHeaderAcceptSelected === undefined) {
483
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
484
+ if (localVarHttpHeaderAcceptSelected === undefined) {
323
485
  // to determine the Accept header
324
486
  const httpHeaderAccepts: string[] = ['application/json'];
325
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
487
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
488
+ }
489
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
490
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
491
+ }
492
+
493
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
494
+ if (localVarHttpContext === undefined) {
495
+ localVarHttpContext = new HttpContext();
326
496
  }
327
- if (httpHeaderAcceptSelected !== undefined) {
328
- headers = headers.set('Accept', httpHeaderAcceptSelected);
497
+
498
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
499
+ if (localVarTransferCache === undefined) {
500
+ localVarTransferCache = true;
329
501
  }
330
502
 
331
503
  // to determine the Content-Type header
332
504
  const consumes: string[] = ['application/json'];
333
505
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
334
506
  if (httpContentTypeSelected !== undefined) {
335
- headers = headers.set('Content-Type', httpContentTypeSelected);
507
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
336
508
  }
337
509
 
338
- let responseType_: 'text' | 'json' = 'json';
339
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
340
- responseType_ = 'text';
510
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
511
+ if (localVarHttpHeaderAcceptSelected) {
512
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
513
+ responseType_ = 'text';
514
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
515
+ responseType_ = 'json';
516
+ } else {
517
+ responseType_ = 'blob';
518
+ }
341
519
  }
342
520
 
343
- return this.httpClient.post<PublishedAsset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish`, publishedAsset, {
521
+ let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish`;
522
+ return this.httpClient.request<PublishedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
523
+ context: localVarHttpContext,
524
+ body: publishedAsset,
344
525
  responseType: <any>responseType_,
345
526
  withCredentials: this.configuration.withCredentials,
346
- headers: headers,
527
+ headers: localVarHeaders,
347
528
  observe: observe,
529
+ transferCache: localVarTransferCache,
348
530
  reportProgress: reportProgress
349
531
  });
350
532
  }
351
533
 
352
534
  /**
353
535
  * This endpoint deletes the published asset with the given ID.
354
- * @param id The ID of the asset.
536
+ * @param requestParameters
355
537
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
356
538
  * @param reportProgress flag to report request and response progress.
357
539
  */
358
- public httpPublishedAssetsDeleteAll(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
359
- public httpPublishedAssetsDeleteAll(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<any>>;
360
- public httpPublishedAssetsDeleteAll(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
361
- public httpPublishedAssetsDeleteAll(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
540
+ public httpPublishedAssetsDeleteAll(
541
+ requestParameters?: HttpPublishedAssetsDeleteAllRequestParams,
542
+ observe?: 'body',
543
+ reportProgress?: boolean,
544
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
545
+ ): Observable<any>;
546
+ public httpPublishedAssetsDeleteAll(
547
+ requestParameters?: HttpPublishedAssetsDeleteAllRequestParams,
548
+ observe?: 'response',
549
+ reportProgress?: boolean,
550
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
551
+ ): Observable<HttpResponse<any>>;
552
+ public httpPublishedAssetsDeleteAll(
553
+ requestParameters?: HttpPublishedAssetsDeleteAllRequestParams,
554
+ observe?: 'events',
555
+ reportProgress?: boolean,
556
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
557
+ ): Observable<HttpEvent<any>>;
558
+ public httpPublishedAssetsDeleteAll(
559
+ requestParameters?: HttpPublishedAssetsDeleteAllRequestParams,
560
+ observe: any = 'body',
561
+ reportProgress: boolean = false,
562
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
563
+ ): Observable<any> {
564
+ const id = requestParameters?.id;
362
565
  if (id === null || id === undefined) {
363
566
  throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsDeleteAll.');
364
567
  }
365
568
 
366
- let headers = this.defaultHeaders;
569
+ let localVarHeaders = this.defaultHeaders;
367
570
 
368
- let credential: string | undefined;
571
+ let localVarCredential: string | undefined;
369
572
  // authentication (msal_auth) required
370
- credential = this.configuration.lookupCredential('msal_auth');
371
- if (credential) {
372
- headers = headers.set('Authorization', 'Bearer ' + credential);
573
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
574
+ if (localVarCredential) {
575
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
373
576
  }
374
577
 
375
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
376
- if (httpHeaderAcceptSelected === undefined) {
578
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
579
+ if (localVarHttpHeaderAcceptSelected === undefined) {
377
580
  // to determine the Accept header
378
581
  const httpHeaderAccepts: string[] = ['application/json'];
379
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
582
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
583
+ }
584
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
585
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
380
586
  }
381
- if (httpHeaderAcceptSelected !== undefined) {
382
- headers = headers.set('Accept', httpHeaderAcceptSelected);
587
+
588
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
589
+ if (localVarHttpContext === undefined) {
590
+ localVarHttpContext = new HttpContext();
383
591
  }
384
592
 
385
- let responseType_: 'text' | 'json' = 'json';
386
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
387
- responseType_ = 'text';
593
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
594
+ if (localVarTransferCache === undefined) {
595
+ localVarTransferCache = true;
388
596
  }
389
597
 
390
- return this.httpClient.delete<any>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish`, {
598
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
599
+ if (localVarHttpHeaderAcceptSelected) {
600
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
601
+ responseType_ = 'text';
602
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
603
+ responseType_ = 'json';
604
+ } else {
605
+ responseType_ = 'blob';
606
+ }
607
+ }
608
+
609
+ let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish`;
610
+ return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
611
+ context: localVarHttpContext,
391
612
  responseType: <any>responseType_,
392
613
  withCredentials: this.configuration.withCredentials,
393
- headers: headers,
614
+ headers: localVarHeaders,
394
615
  observe: observe,
616
+ transferCache: localVarTransferCache,
395
617
  reportProgress: reportProgress
396
618
  });
397
619
  }
398
620
 
399
621
  /**
400
622
  * This endpoint deletes the published asset with the given ID.
401
- * @param id The ID of the asset.
402
- * @param pid The published asset ID.
403
- * @param force Even if the unpublish in the third party system is not successful, the published asset should be removed.
623
+ * @param requestParameters
404
624
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
405
625
  * @param reportProgress flag to report request and response progress.
406
626
  */
407
- public httpPublishedAssetsDeleteById(id: string, pid: string, force?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
408
627
  public httpPublishedAssetsDeleteById(
409
- id: string,
410
- pid: string,
411
- force?: boolean,
628
+ requestParameters?: HttpPublishedAssetsDeleteByIdRequestParams,
629
+ observe?: 'body',
630
+ reportProgress?: boolean,
631
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
632
+ ): Observable<any>;
633
+ public httpPublishedAssetsDeleteById(
634
+ requestParameters?: HttpPublishedAssetsDeleteByIdRequestParams,
412
635
  observe?: 'response',
413
636
  reportProgress?: boolean,
414
- options?: { httpHeaderAccept?: 'application/json' }
637
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
415
638
  ): Observable<HttpResponse<any>>;
416
639
  public httpPublishedAssetsDeleteById(
417
- id: string,
418
- pid: string,
419
- force?: boolean,
640
+ requestParameters?: HttpPublishedAssetsDeleteByIdRequestParams,
420
641
  observe?: 'events',
421
642
  reportProgress?: boolean,
422
- options?: { httpHeaderAccept?: 'application/json' }
643
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
423
644
  ): Observable<HttpEvent<any>>;
424
645
  public httpPublishedAssetsDeleteById(
425
- id: string,
426
- pid: string,
427
- force?: boolean,
646
+ requestParameters?: HttpPublishedAssetsDeleteByIdRequestParams,
428
647
  observe: any = 'body',
429
648
  reportProgress: boolean = false,
430
- options?: { httpHeaderAccept?: 'application/json' }
649
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
431
650
  ): Observable<any> {
651
+ const id = requestParameters?.id;
432
652
  if (id === null || id === undefined) {
433
653
  throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsDeleteById.');
434
654
  }
655
+ const pid = requestParameters?.pid;
435
656
  if (pid === null || pid === undefined) {
436
657
  throw new Error('Required parameter pid was null or undefined when calling httpPublishedAssetsDeleteById.');
437
658
  }
659
+ const force = requestParameters?.force;
438
660
 
439
- let queryParameters = new HttpParams({ encoder: this.encoder });
661
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
440
662
  if (force !== undefined && force !== null) {
441
- queryParameters = this.addToHttpParams(queryParameters, <any>force, 'force');
663
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>force, 'force');
442
664
  }
443
665
 
444
- let headers = this.defaultHeaders;
666
+ let localVarHeaders = this.defaultHeaders;
445
667
 
446
- let credential: string | undefined;
668
+ let localVarCredential: string | undefined;
447
669
  // authentication (msal_auth) required
448
- credential = this.configuration.lookupCredential('msal_auth');
449
- if (credential) {
450
- headers = headers.set('Authorization', 'Bearer ' + credential);
670
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
671
+ if (localVarCredential) {
672
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
451
673
  }
452
674
 
453
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
454
- if (httpHeaderAcceptSelected === undefined) {
675
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
676
+ if (localVarHttpHeaderAcceptSelected === undefined) {
455
677
  // to determine the Accept header
456
678
  const httpHeaderAccepts: string[] = ['application/json'];
457
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
679
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
458
680
  }
459
- if (httpHeaderAcceptSelected !== undefined) {
460
- headers = headers.set('Accept', httpHeaderAcceptSelected);
681
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
682
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
461
683
  }
462
684
 
463
- let responseType_: 'text' | 'json' = 'json';
464
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
465
- responseType_ = 'text';
685
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
686
+ if (localVarHttpContext === undefined) {
687
+ localVarHttpContext = new HttpContext();
466
688
  }
467
689
 
468
- return this.httpClient.delete<any>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish/${encodeURIComponent(String(pid))}`, {
469
- params: queryParameters,
690
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
691
+ if (localVarTransferCache === undefined) {
692
+ localVarTransferCache = true;
693
+ }
694
+
695
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
696
+ if (localVarHttpHeaderAcceptSelected) {
697
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
698
+ responseType_ = 'text';
699
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
700
+ responseType_ = 'json';
701
+ } else {
702
+ responseType_ = 'blob';
703
+ }
704
+ }
705
+
706
+ 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 })}`;
707
+ return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
708
+ context: localVarHttpContext,
709
+ params: localVarQueryParameters,
470
710
  responseType: <any>responseType_,
471
711
  withCredentials: this.configuration.withCredentials,
472
- headers: headers,
712
+ headers: localVarHeaders,
473
713
  observe: observe,
714
+ transferCache: localVarTransferCache,
474
715
  reportProgress: reportProgress
475
716
  });
476
717
  }
477
718
 
478
719
  /**
479
720
  * This endpoint lists all the published assets which are stored in the database if asset is still valid.
480
- * @param id The ID of the asset.
721
+ * @param requestParameters
481
722
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
482
723
  * @param reportProgress flag to report request and response progress.
483
724
  */
484
- public httpPublishedAssetsGet(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<PublishEntity>;
485
- public httpPublishedAssetsGet(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<PublishEntity>>;
486
- public httpPublishedAssetsGet(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<PublishEntity>>;
487
- public httpPublishedAssetsGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
725
+ public httpPublishedAssetsGet(
726
+ requestParameters?: HttpPublishedAssetsGetRequestParams,
727
+ observe?: 'body',
728
+ reportProgress?: boolean,
729
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
730
+ ): Observable<PublishEntity>;
731
+ public httpPublishedAssetsGet(
732
+ requestParameters?: HttpPublishedAssetsGetRequestParams,
733
+ observe?: 'response',
734
+ reportProgress?: boolean,
735
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
736
+ ): Observable<HttpResponse<PublishEntity>>;
737
+ public httpPublishedAssetsGet(
738
+ requestParameters?: HttpPublishedAssetsGetRequestParams,
739
+ observe?: 'events',
740
+ reportProgress?: boolean,
741
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
742
+ ): Observable<HttpEvent<PublishEntity>>;
743
+ public httpPublishedAssetsGet(
744
+ requestParameters?: HttpPublishedAssetsGetRequestParams,
745
+ observe: any = 'body',
746
+ reportProgress: boolean = false,
747
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
748
+ ): Observable<any> {
749
+ const id = requestParameters?.id;
488
750
  if (id === null || id === undefined) {
489
751
  throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsGet.');
490
752
  }
491
753
 
492
- let headers = this.defaultHeaders;
754
+ let localVarHeaders = this.defaultHeaders;
493
755
 
494
- let credential: string | undefined;
756
+ let localVarCredential: string | undefined;
495
757
  // authentication (msal_auth) required
496
- credential = this.configuration.lookupCredential('msal_auth');
497
- if (credential) {
498
- headers = headers.set('Authorization', 'Bearer ' + credential);
758
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
759
+ if (localVarCredential) {
760
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
499
761
  }
500
762
 
501
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
502
- if (httpHeaderAcceptSelected === undefined) {
763
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
764
+ if (localVarHttpHeaderAcceptSelected === undefined) {
503
765
  // to determine the Accept header
504
766
  const httpHeaderAccepts: string[] = ['application/json'];
505
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
767
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
768
+ }
769
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
770
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
771
+ }
772
+
773
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
774
+ if (localVarHttpContext === undefined) {
775
+ localVarHttpContext = new HttpContext();
506
776
  }
507
- if (httpHeaderAcceptSelected !== undefined) {
508
- headers = headers.set('Accept', httpHeaderAcceptSelected);
777
+
778
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
779
+ if (localVarTransferCache === undefined) {
780
+ localVarTransferCache = true;
509
781
  }
510
782
 
511
- let responseType_: 'text' | 'json' = 'json';
512
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
513
- responseType_ = 'text';
783
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
784
+ if (localVarHttpHeaderAcceptSelected) {
785
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
786
+ responseType_ = 'text';
787
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
788
+ responseType_ = 'json';
789
+ } else {
790
+ responseType_ = 'blob';
791
+ }
514
792
  }
515
793
 
516
- return this.httpClient.get<PublishEntity>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish`, {
794
+ let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/publish`;
795
+ return this.httpClient.request<PublishEntity>('get', `${this.configuration.basePath}${localVarPath}`, {
796
+ context: localVarHttpContext,
517
797
  responseType: <any>responseType_,
518
798
  withCredentials: this.configuration.withCredentials,
519
- headers: headers,
799
+ headers: localVarHeaders,
520
800
  observe: observe,
801
+ transferCache: localVarTransferCache,
521
802
  reportProgress: reportProgress
522
803
  });
523
804
  }
524
805
 
525
806
  /**
526
807
  * This endpoint currently republished the published asset with the given ID.
527
- * @param id The ID of the asset.
528
- * @param pid The published asset ID.
529
- * @param publishedAsset The body has to contain a valid PublishedAsset in json format. Not fitting properties are ignored.
808
+ * @param requestParameters
530
809
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
531
810
  * @param reportProgress flag to report request and response progress.
532
811
  */
533
812
  public httpPublishedAssetsRepublishById(
534
- id: string,
535
- pid: string,
536
- publishedAsset: PublishedAsset,
813
+ requestParameters?: HttpPublishedAssetsRepublishByIdRequestParams,
537
814
  observe?: 'body',
538
815
  reportProgress?: boolean,
539
- options?: { httpHeaderAccept?: 'application/json' }
816
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
540
817
  ): Observable<PublishedAsset>;
541
818
  public httpPublishedAssetsRepublishById(
542
- id: string,
543
- pid: string,
544
- publishedAsset: PublishedAsset,
819
+ requestParameters?: HttpPublishedAssetsRepublishByIdRequestParams,
545
820
  observe?: 'response',
546
821
  reportProgress?: boolean,
547
- options?: { httpHeaderAccept?: 'application/json' }
822
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
548
823
  ): Observable<HttpResponse<PublishedAsset>>;
549
824
  public httpPublishedAssetsRepublishById(
550
- id: string,
551
- pid: string,
552
- publishedAsset: PublishedAsset,
825
+ requestParameters?: HttpPublishedAssetsRepublishByIdRequestParams,
553
826
  observe?: 'events',
554
827
  reportProgress?: boolean,
555
- options?: { httpHeaderAccept?: 'application/json' }
828
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
556
829
  ): Observable<HttpEvent<PublishedAsset>>;
557
830
  public httpPublishedAssetsRepublishById(
558
- id: string,
559
- pid: string,
560
- publishedAsset: PublishedAsset,
831
+ requestParameters?: HttpPublishedAssetsRepublishByIdRequestParams,
561
832
  observe: any = 'body',
562
833
  reportProgress: boolean = false,
563
- options?: { httpHeaderAccept?: 'application/json' }
834
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
564
835
  ): Observable<any> {
836
+ const id = requestParameters?.id;
565
837
  if (id === null || id === undefined) {
566
838
  throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsRepublishById.');
567
839
  }
840
+ const pid = requestParameters?.pid;
568
841
  if (pid === null || pid === undefined) {
569
842
  throw new Error('Required parameter pid was null or undefined when calling httpPublishedAssetsRepublishById.');
570
843
  }
844
+ const publishedAsset = requestParameters?.publishedAsset;
571
845
  if (publishedAsset === null || publishedAsset === undefined) {
572
846
  throw new Error('Required parameter publishedAsset was null or undefined when calling httpPublishedAssetsRepublishById.');
573
847
  }
574
848
 
575
- let headers = this.defaultHeaders;
849
+ let localVarHeaders = this.defaultHeaders;
576
850
 
577
- let credential: string | undefined;
851
+ let localVarCredential: string | undefined;
578
852
  // authentication (msal_auth) required
579
- credential = this.configuration.lookupCredential('msal_auth');
580
- if (credential) {
581
- headers = headers.set('Authorization', 'Bearer ' + credential);
853
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
854
+ if (localVarCredential) {
855
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
582
856
  }
583
857
 
584
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
585
- if (httpHeaderAcceptSelected === undefined) {
858
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
859
+ if (localVarHttpHeaderAcceptSelected === undefined) {
586
860
  // to determine the Accept header
587
861
  const httpHeaderAccepts: string[] = ['application/json'];
588
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
862
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
863
+ }
864
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
865
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
589
866
  }
590
- if (httpHeaderAcceptSelected !== undefined) {
591
- headers = headers.set('Accept', httpHeaderAcceptSelected);
867
+
868
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
869
+ if (localVarHttpContext === undefined) {
870
+ localVarHttpContext = new HttpContext();
871
+ }
872
+
873
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
874
+ if (localVarTransferCache === undefined) {
875
+ localVarTransferCache = true;
592
876
  }
593
877
 
594
878
  // to determine the Content-Type header
595
879
  const consumes: string[] = ['application/json'];
596
880
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
597
881
  if (httpContentTypeSelected !== undefined) {
598
- headers = headers.set('Content-Type', httpContentTypeSelected);
882
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
599
883
  }
600
884
 
601
- let responseType_: 'text' | 'json' = 'json';
602
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
603
- responseType_ = 'text';
885
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
886
+ if (localVarHttpHeaderAcceptSelected) {
887
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
888
+ responseType_ = 'text';
889
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
890
+ responseType_ = 'json';
891
+ } else {
892
+ responseType_ = 'blob';
893
+ }
604
894
  }
605
895
 
606
- return this.httpClient.patch<PublishedAsset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish/${encodeURIComponent(String(pid))}/republish`, publishedAsset, {
896
+ 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 })}/republish`;
897
+ return this.httpClient.request<PublishedAsset>('patch', `${this.configuration.basePath}${localVarPath}`, {
898
+ context: localVarHttpContext,
899
+ body: publishedAsset,
607
900
  responseType: <any>responseType_,
608
901
  withCredentials: this.configuration.withCredentials,
609
- headers: headers,
902
+ headers: localVarHeaders,
610
903
  observe: observe,
904
+ transferCache: localVarTransferCache,
611
905
  reportProgress: reportProgress
612
906
  });
613
907
  }
614
908
 
615
909
  /**
616
910
  * This endpoint currently updates only the description of the published asset with the given ID.
617
- * @param id The ID of the asset.
618
- * @param pid The published asset ID.
619
- * @param publishedAsset The body has to contain a valid PublishedAsset in json format. Not fitting properties are ignored.
911
+ * @param requestParameters
620
912
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
621
913
  * @param reportProgress flag to report request and response progress.
622
914
  */
623
915
  public httpPublishedAssetsUpdateById(
624
- id: string,
625
- pid: string,
626
- publishedAsset: PublishedAsset,
916
+ requestParameters?: HttpPublishedAssetsUpdateByIdRequestParams,
627
917
  observe?: 'body',
628
918
  reportProgress?: boolean,
629
- options?: { httpHeaderAccept?: 'application/json' }
919
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
630
920
  ): Observable<PublishedAsset>;
631
921
  public httpPublishedAssetsUpdateById(
632
- id: string,
633
- pid: string,
634
- publishedAsset: PublishedAsset,
922
+ requestParameters?: HttpPublishedAssetsUpdateByIdRequestParams,
635
923
  observe?: 'response',
636
924
  reportProgress?: boolean,
637
- options?: { httpHeaderAccept?: 'application/json' }
925
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
638
926
  ): Observable<HttpResponse<PublishedAsset>>;
639
927
  public httpPublishedAssetsUpdateById(
640
- id: string,
641
- pid: string,
642
- publishedAsset: PublishedAsset,
928
+ requestParameters?: HttpPublishedAssetsUpdateByIdRequestParams,
643
929
  observe?: 'events',
644
930
  reportProgress?: boolean,
645
- options?: { httpHeaderAccept?: 'application/json' }
931
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
646
932
  ): Observable<HttpEvent<PublishedAsset>>;
647
933
  public httpPublishedAssetsUpdateById(
648
- id: string,
649
- pid: string,
650
- publishedAsset: PublishedAsset,
934
+ requestParameters?: HttpPublishedAssetsUpdateByIdRequestParams,
651
935
  observe: any = 'body',
652
936
  reportProgress: boolean = false,
653
- options?: { httpHeaderAccept?: 'application/json' }
937
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
654
938
  ): Observable<any> {
939
+ const id = requestParameters?.id;
655
940
  if (id === null || id === undefined) {
656
941
  throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsUpdateById.');
657
942
  }
943
+ const pid = requestParameters?.pid;
658
944
  if (pid === null || pid === undefined) {
659
945
  throw new Error('Required parameter pid was null or undefined when calling httpPublishedAssetsUpdateById.');
660
946
  }
947
+ const publishedAsset = requestParameters?.publishedAsset;
661
948
  if (publishedAsset === null || publishedAsset === undefined) {
662
949
  throw new Error('Required parameter publishedAsset was null or undefined when calling httpPublishedAssetsUpdateById.');
663
950
  }
664
951
 
665
- let headers = this.defaultHeaders;
952
+ let localVarHeaders = this.defaultHeaders;
666
953
 
667
- let credential: string | undefined;
954
+ let localVarCredential: string | undefined;
668
955
  // authentication (msal_auth) required
669
- credential = this.configuration.lookupCredential('msal_auth');
670
- if (credential) {
671
- headers = headers.set('Authorization', 'Bearer ' + credential);
956
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
957
+ if (localVarCredential) {
958
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
672
959
  }
673
960
 
674
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
675
- if (httpHeaderAcceptSelected === undefined) {
961
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
962
+ if (localVarHttpHeaderAcceptSelected === undefined) {
676
963
  // to determine the Accept header
677
964
  const httpHeaderAccepts: string[] = ['application/json'];
678
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
965
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
966
+ }
967
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
968
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
679
969
  }
680
- if (httpHeaderAcceptSelected !== undefined) {
681
- headers = headers.set('Accept', httpHeaderAcceptSelected);
970
+
971
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
972
+ if (localVarHttpContext === undefined) {
973
+ localVarHttpContext = new HttpContext();
974
+ }
975
+
976
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
977
+ if (localVarTransferCache === undefined) {
978
+ localVarTransferCache = true;
682
979
  }
683
980
 
684
981
  // to determine the Content-Type header
685
982
  const consumes: string[] = ['application/json'];
686
983
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
687
984
  if (httpContentTypeSelected !== undefined) {
688
- headers = headers.set('Content-Type', httpContentTypeSelected);
985
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
689
986
  }
690
987
 
691
- let responseType_: 'text' | 'json' = 'json';
692
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
693
- responseType_ = 'text';
988
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
989
+ if (localVarHttpHeaderAcceptSelected) {
990
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
991
+ responseType_ = 'text';
992
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
993
+ responseType_ = 'json';
994
+ } else {
995
+ responseType_ = 'blob';
996
+ }
694
997
  }
695
998
 
696
- return this.httpClient.post<PublishedAsset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish/${encodeURIComponent(String(pid))}`, publishedAsset, {
999
+ 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 })}`;
1000
+ return this.httpClient.request<PublishedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
1001
+ context: localVarHttpContext,
1002
+ body: publishedAsset,
697
1003
  responseType: <any>responseType_,
698
1004
  withCredentials: this.configuration.withCredentials,
699
- headers: headers,
1005
+ headers: localVarHeaders,
700
1006
  observe: observe,
1007
+ transferCache: localVarTransferCache,
701
1008
  reportProgress: reportProgress
702
1009
  });
703
1010
  }