@agravity/private 5.2.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 (119) hide show
  1. package/.openapi-generator/FILES +117 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +203 -0
  5. package/api/api.ts +67 -0
  6. package/api/assetIconRuleManagement.agravity.ts +400 -0
  7. package/api/assetManagement.agravity.ts +737 -0
  8. package/api/assetOperations.agravity.ts +1309 -0
  9. package/api/assetPublishing.agravity.ts +511 -0
  10. package/api/assetVersioning.agravity.ts +657 -0
  11. package/api/authenticationManagement.agravity.ts +502 -0
  12. package/api/collectionManagement.agravity.ts +618 -0
  13. package/api/collectionSharing.agravity.ts +329 -0
  14. package/api/collectionTypeItemBlueprintManagement.agravity.ts +340 -0
  15. package/api/collectionTypeManagement.agravity.ts +533 -0
  16. package/api/configurationManagement.agravity.ts +311 -0
  17. package/api/downloadFormatManagement.agravity.ts +400 -0
  18. package/api/downloadZip.agravity.ts +151 -0
  19. package/api/generalManagement.agravity.ts +348 -0
  20. package/api/helperTools.agravity.ts +640 -0
  21. package/api/iccProfileManagement.agravity.ts +134 -0
  22. package/api/listBlobs.agravity.ts +185 -0
  23. package/api/listQueues.agravity.ts +134 -0
  24. package/api/permissionsManagement.agravity.ts +262 -0
  25. package/api/publishing.agravity.ts +148 -0
  26. package/api/quickshareManagement.agravity.ts +385 -0
  27. package/api/savedSearchManagement.agravity.ts +271 -0
  28. package/api/searchManagement.agravity.ts +345 -0
  29. package/api/secureUpload.agravity.ts +371 -0
  30. package/api/signalRConnectionManagement.agravity.ts +218 -0
  31. package/api/staticDefinedListManagement.agravity.ts +408 -0
  32. package/api/stockImport.agravity.ts +221 -0
  33. package/api/structureImport.agravity.ts +137 -0
  34. package/api/translationManagement.agravity.ts +404 -0
  35. package/api/upgradeManagement.agravity.ts +333 -0
  36. package/api/webAppData.agravity.ts +300 -0
  37. package/api/wordpressManagement.agravity.ts +282 -0
  38. package/api/workspaceManagement.agravity.ts +513 -0
  39. package/api.module.ts +63 -0
  40. package/configuration.ts +130 -0
  41. package/encoder.ts +20 -0
  42. package/git_push.sh +58 -0
  43. package/index.ts +5 -0
  44. package/model/agravityErrorResponse.agravity.ts +19 -0
  45. package/model/agravityInfoResponse.agravity.ts +19 -0
  46. package/model/agravityUser.agravity.ts +37 -0
  47. package/model/agravityVersion.agravity.ts +24 -0
  48. package/model/allWebAppData.agravity.ts +24 -0
  49. package/model/apiKeyResponse.agravity.ts +18 -0
  50. package/model/appConfigTableEntity.agravity.ts +25 -0
  51. package/model/artificialIntelligenceGroup.agravity.ts +20 -0
  52. package/model/asset.agravity.ts +47 -0
  53. package/model/assetAvailability.agravity.ts +19 -0
  54. package/model/assetBlob.agravity.ts +82 -0
  55. package/model/assetBulkUpdate.agravity.ts +20 -0
  56. package/model/assetCollectionLink.agravity.ts +18 -0
  57. package/model/assetIconRule.agravity.ts +35 -0
  58. package/model/assetIdContainer.agravity.ts +18 -0
  59. package/model/assetPageResult.agravity.ts +23 -0
  60. package/model/assetsOperationBody.agravity.ts +20 -0
  61. package/model/azSearchOptions.agravity.ts +25 -0
  62. package/model/azureIdentity.agravity.ts +30 -0
  63. package/model/blobInfoObj.agravity.ts +23 -0
  64. package/model/collTypeItem.agravity.ts +38 -0
  65. package/model/collTypeItemBlueprint.agravity.ts +31 -0
  66. package/model/collection.agravity.ts +35 -0
  67. package/model/collectionType.agravity.ts +35 -0
  68. package/model/collectionUDL.agravity.ts +21 -0
  69. package/model/createSftpUserResult.agravity.ts +18 -0
  70. package/model/dataResult.agravity.ts +22 -0
  71. package/model/distZipResponse.agravity.ts +19 -0
  72. package/model/downloadFormat.agravity.ts +34 -0
  73. package/model/downloadObject.agravity.ts +32 -0
  74. package/model/downloadZipRequest.agravity.ts +25 -0
  75. package/model/dynamicImageOperation.agravity.ts +18 -0
  76. package/model/emailAddress.agravity.ts +18 -0
  77. package/model/entityId.agravity.ts +17 -0
  78. package/model/entityIdName.agravity.ts +19 -0
  79. package/model/entityTranslations.agravity.ts +18 -0
  80. package/model/frontendAppConfig.agravity.ts +21 -0
  81. package/model/groupAllAppData.agravity.ts +26 -0
  82. package/model/infoEntitySkillEnhanced.agravity.ts +25 -0
  83. package/model/metadata.agravity.ts +19 -0
  84. package/model/models.ts +73 -0
  85. package/model/moveCollectionBody.agravity.ts +19 -0
  86. package/model/permissionChange.agravity.ts +29 -0
  87. package/model/permissionSetting.agravity.ts +27 -0
  88. package/model/publishEntity.agravity.ts +28 -0
  89. package/model/publishedAsset.agravity.ts +25 -0
  90. package/model/quickShare.agravity.ts +31 -0
  91. package/model/quickShareFull.agravity.ts +36 -0
  92. package/model/sasToken.agravity.ts +22 -0
  93. package/model/savedSearch.agravity.ts +31 -0
  94. package/model/searchAdminDataSourceStatus.agravity.ts +18 -0
  95. package/model/searchAdminIndexStatus.agravity.ts +20 -0
  96. package/model/searchAdminIndexerLastRun.agravity.ts +21 -0
  97. package/model/searchAdminIndexerStatus.agravity.ts +20 -0
  98. package/model/searchAdminSkillStatus.agravity.ts +18 -0
  99. package/model/searchAdminStatistics.agravity.ts +18 -0
  100. package/model/searchAdminStatus.agravity.ts +24 -0
  101. package/model/searchFacet.agravity.ts +19 -0
  102. package/model/searchFacetEntity.agravity.ts +19 -0
  103. package/model/searchResult.agravity.ts +23 -0
  104. package/model/searchableItem.agravity.ts +26 -0
  105. package/model/secureUploadEntity.agravity.ts +27 -0
  106. package/model/sharedAsset.agravity.ts +25 -0
  107. package/model/sharedCollection.agravity.ts +24 -0
  108. package/model/sharedCollectionFull.agravity.ts +29 -0
  109. package/model/signalRConnectionInfo.agravity.ts +18 -0
  110. package/model/simpleAsset.agravity.ts +26 -0
  111. package/model/staticDefinedList.agravity.ts +30 -0
  112. package/model/uiTutorials.agravity.ts +26 -0
  113. package/model/upgradeV2V3CollectionCustomItemTableEntity.agravity.ts +21 -0
  114. package/model/versionEntity.agravity.ts +28 -0
  115. package/model/versionedAsset.agravity.ts +20 -0
  116. package/model/whereParam.agravity.ts +43 -0
  117. package/model/workspace.agravity.ts +34 -0
  118. package/package.json +28 -0
  119. package/variables.ts +9 -0
@@ -0,0 +1,1309 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ * <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2023. All Rights Reserved
4
+ *
5
+ * The version of the OpenAPI document: 5.2.0
6
+ * Contact: office@agravity.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /* tslint:disable:no-unused-variable member-ordering */
13
+
14
+ import { Inject, Injectable, Optional } from '@angular/core';
15
+ import { HttpClient, HttpHeaders, HttpParams,
16
+ HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
17
+ import { CustomHttpParameterCodec } from '../encoder';
18
+ import { Observable } from 'rxjs';
19
+
20
+ import { AgravityErrorResponse } from '../model/models';
21
+ import { AgravityInfoResponse } from '../model/models';
22
+ import { Asset } from '../model/models';
23
+ import { AssetAvailability } from '../model/models';
24
+ import { AssetBlob } from '../model/models';
25
+ import { AssetsOperationBody } from '../model/models';
26
+ import { Collection } from '../model/models';
27
+ import { DynamicImageOperation } from '../model/models';
28
+ import { Metadata } from '../model/models';
29
+ import { MoveCollectionBody } from '../model/models';
30
+
31
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
32
+ import { AgravityConfiguration } from '../configuration';
33
+
34
+
35
+
36
+ @Injectable({
37
+ providedIn: 'root'
38
+ })
39
+ export class AssetOperationsService {
40
+
41
+ protected basePath = 'http://localhost:7071/api';
42
+ public defaultHeaders = new HttpHeaders();
43
+ public configuration = new AgravityConfiguration();
44
+ public encoder: HttpParameterCodec;
45
+
46
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
47
+ if (configuration) {
48
+ this.configuration = configuration;
49
+ }
50
+ if (typeof this.configuration.basePath !== 'string') {
51
+ if (typeof basePath !== 'string') {
52
+ basePath = this.basePath;
53
+ }
54
+ this.configuration.basePath = basePath;
55
+ }
56
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
57
+ }
58
+
59
+
60
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
61
+ if (typeof value === "object" && value instanceof Date === false) {
62
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
63
+ } else {
64
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
65
+ }
66
+ return httpParams;
67
+ }
68
+
69
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
70
+ if (value == null) {
71
+ return httpParams;
72
+ }
73
+
74
+ if (typeof value === "object") {
75
+ if (Array.isArray(value)) {
76
+ (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
77
+ } else if (value instanceof Date) {
78
+ if (key != null) {
79
+ httpParams = httpParams.append(key,
80
+ (value as Date).toISOString().substr(0, 10));
81
+ } else {
82
+ throw Error("key may not be null if value is Date");
83
+ }
84
+ } else {
85
+ Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
86
+ httpParams, value[k], key != null ? `${key}.${k}` : k));
87
+ }
88
+ } else if (key != null) {
89
+ httpParams = httpParams.append(key, value);
90
+ } else {
91
+ throw Error("key may not be null if value is not object or array");
92
+ }
93
+ return httpParams;
94
+ }
95
+
96
+ /**
97
+ * This endpoint lets you resize/modify the image asset according to the given parameter(s).
98
+ * @param id The ID of the asset.
99
+ * @param width The width of the final image.
100
+ * @param height The height of the final image.
101
+ * @param mode The supported modes: contain (default), cover, fill, crop, none
102
+ * @param target The file type which the image should be (i.e. webp, png, jpg, gif)
103
+ * @param bgcolor The color of the background color if background is visible (crop outside, png). RGB(A) in hex code (i.e. 00FFAA or with alpha channel: 44AABB77) and color names (i.e. lightgray) supported - default: transparent
104
+ * @param dpi The density (counts for X and Y) of the target image.
105
+ * @param depth The bit depth of the target image.
106
+ * @param quality The quality of the target image (1-100).
107
+ * @param colorspace The color space of the image (Default: sRGB).
108
+ * @param cropX If mode is crop: The x coordinate of the point (if image is extended (outside) it is negative)
109
+ * @param cropY If mode is crop: The y coordinate of the point (if image is extended (outside) it is negative)
110
+ * @param cropWidth If mode&#x3D;crop: The width of the cropping rectangle (from original pixel)
111
+ * @param cropHeight If mode&#x3D;crop: The height of the cropping rectangle (from original pixel)
112
+ * @param filter Which filter should be applied. To get all filters available use: /api/helper/imageeditfilters
113
+ * @param original If set to true the internal image is used instead of the default original
114
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
115
+ * @param reportProgress flag to report request and response progress.
116
+ */
117
+ public httpAssetImageEdit(id: string, width?: number, height?: number, mode?: string, target?: string, bgcolor?: string, dpi?: number, depth?: number, quality?: number, colorspace?: string, cropX?: number, cropY?: number, cropWidth?: number, cropHeight?: number, filter?: string, original?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<Blob>;
118
+ public httpAssetImageEdit(id: string, width?: number, height?: number, mode?: string, target?: string, bgcolor?: string, dpi?: number, depth?: number, quality?: number, colorspace?: string, cropX?: number, cropY?: number, cropWidth?: number, cropHeight?: number, filter?: string, original?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<HttpResponse<Blob>>;
119
+ public httpAssetImageEdit(id: string, width?: number, height?: number, mode?: string, target?: string, bgcolor?: string, dpi?: number, depth?: number, quality?: number, colorspace?: string, cropX?: number, cropY?: number, cropWidth?: number, cropHeight?: number, filter?: string, original?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<HttpEvent<Blob>>;
120
+ public httpAssetImageEdit(id: string, width?: number, height?: number, mode?: string, target?: string, bgcolor?: string, dpi?: number, depth?: number, quality?: number, colorspace?: string, cropX?: number, cropY?: number, cropWidth?: number, cropHeight?: number, filter?: string, original?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<any> {
121
+ if (id === null || id === undefined) {
122
+ throw new Error('Required parameter id was null or undefined when calling httpAssetImageEdit.');
123
+ }
124
+
125
+ let queryParameters = new HttpParams({encoder: this.encoder});
126
+ if (width !== undefined && width !== null) {
127
+ queryParameters = this.addToHttpParams(queryParameters,
128
+ <any>width, 'width');
129
+ }
130
+ if (height !== undefined && height !== null) {
131
+ queryParameters = this.addToHttpParams(queryParameters,
132
+ <any>height, 'height');
133
+ }
134
+ if (mode !== undefined && mode !== null) {
135
+ queryParameters = this.addToHttpParams(queryParameters,
136
+ <any>mode, 'mode');
137
+ }
138
+ if (target !== undefined && target !== null) {
139
+ queryParameters = this.addToHttpParams(queryParameters,
140
+ <any>target, 'target');
141
+ }
142
+ if (bgcolor !== undefined && bgcolor !== null) {
143
+ queryParameters = this.addToHttpParams(queryParameters,
144
+ <any>bgcolor, 'bgcolor');
145
+ }
146
+ if (dpi !== undefined && dpi !== null) {
147
+ queryParameters = this.addToHttpParams(queryParameters,
148
+ <any>dpi, 'dpi');
149
+ }
150
+ if (depth !== undefined && depth !== null) {
151
+ queryParameters = this.addToHttpParams(queryParameters,
152
+ <any>depth, 'depth');
153
+ }
154
+ if (quality !== undefined && quality !== null) {
155
+ queryParameters = this.addToHttpParams(queryParameters,
156
+ <any>quality, 'quality');
157
+ }
158
+ if (colorspace !== undefined && colorspace !== null) {
159
+ queryParameters = this.addToHttpParams(queryParameters,
160
+ <any>colorspace, 'colorspace');
161
+ }
162
+ if (cropX !== undefined && cropX !== null) {
163
+ queryParameters = this.addToHttpParams(queryParameters,
164
+ <any>cropX, 'crop_x');
165
+ }
166
+ if (cropY !== undefined && cropY !== null) {
167
+ queryParameters = this.addToHttpParams(queryParameters,
168
+ <any>cropY, 'crop_y');
169
+ }
170
+ if (cropWidth !== undefined && cropWidth !== null) {
171
+ queryParameters = this.addToHttpParams(queryParameters,
172
+ <any>cropWidth, 'crop_width');
173
+ }
174
+ if (cropHeight !== undefined && cropHeight !== null) {
175
+ queryParameters = this.addToHttpParams(queryParameters,
176
+ <any>cropHeight, 'crop_height');
177
+ }
178
+ if (filter !== undefined && filter !== null) {
179
+ queryParameters = this.addToHttpParams(queryParameters,
180
+ <any>filter, 'filter');
181
+ }
182
+ if (original !== undefined && original !== null) {
183
+ queryParameters = this.addToHttpParams(queryParameters,
184
+ <any>original, 'original');
185
+ }
186
+
187
+ let headers = this.defaultHeaders;
188
+
189
+ let credential: string | undefined;
190
+ // authentication (msal_auth) required
191
+ credential = this.configuration.lookupCredential('msal_auth');
192
+ if (credential) {
193
+ headers = headers.set('Authorization', 'Bearer ' + credential);
194
+ }
195
+
196
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
197
+ if (httpHeaderAcceptSelected === undefined) {
198
+ // to determine the Accept header
199
+ const httpHeaderAccepts: string[] = [
200
+ 'image/xyz',
201
+ 'application/json'
202
+ ];
203
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
204
+ }
205
+ if (httpHeaderAcceptSelected !== undefined) {
206
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
207
+ }
208
+
209
+
210
+ return this.httpClient.get(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/imageedit`,
211
+ {
212
+ params: queryParameters,
213
+ responseType: "blob",
214
+ withCredentials: this.configuration.withCredentials,
215
+ headers: headers,
216
+ observe: observe,
217
+ reportProgress: reportProgress
218
+ }
219
+ );
220
+ }
221
+
222
+ /**
223
+ * This endpoint lets you rotate an image clockwise in 90 degree steps.
224
+ * @param id The ID of the asset.
225
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
226
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
227
+ * @param reportProgress flag to report request and response progress.
228
+ */
229
+ public httpAssetImageRotateClockwise(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Asset>;
230
+ public httpAssetImageRotateClockwise(id: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Asset>>;
231
+ public httpAssetImageRotateClockwise(id: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Asset>>;
232
+ public httpAssetImageRotateClockwise(id: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
233
+ if (id === null || id === undefined) {
234
+ throw new Error('Required parameter id was null or undefined when calling httpAssetImageRotateClockwise.');
235
+ }
236
+
237
+ let queryParameters = new HttpParams({encoder: this.encoder});
238
+ if (translations !== undefined && translations !== null) {
239
+ queryParameters = this.addToHttpParams(queryParameters,
240
+ <any>translations, 'translations');
241
+ }
242
+
243
+ let headers = this.defaultHeaders;
244
+
245
+ let credential: string | undefined;
246
+ // authentication (msal_auth) required
247
+ credential = this.configuration.lookupCredential('msal_auth');
248
+ if (credential) {
249
+ headers = headers.set('Authorization', 'Bearer ' + credential);
250
+ }
251
+
252
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
253
+ if (httpHeaderAcceptSelected === undefined) {
254
+ // to determine the Accept header
255
+ const httpHeaderAccepts: string[] = [
256
+ 'application/json'
257
+ ];
258
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
259
+ }
260
+ if (httpHeaderAcceptSelected !== undefined) {
261
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
262
+ }
263
+
264
+
265
+ let responseType_: 'text' | 'json' = 'json';
266
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
267
+ responseType_ = 'text';
268
+ }
269
+
270
+ return this.httpClient.post<Asset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/rotate`,
271
+ null,
272
+ {
273
+ params: queryParameters,
274
+ responseType: <any>responseType_,
275
+ withCredentials: this.configuration.withCredentials,
276
+ headers: headers,
277
+ observe: observe,
278
+ reportProgress: reportProgress
279
+ }
280
+ );
281
+ }
282
+
283
+ /**
284
+ * This endpoint lets you resize/modify the image asset according to the given parameter(s).
285
+ * @param id The ID of the asset.
286
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
287
+ * @param reportProgress flag to report request and response progress.
288
+ */
289
+ public httpAssetResize(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<Blob>;
290
+ public httpAssetResize(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<HttpResponse<Blob>>;
291
+ public httpAssetResize(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<HttpEvent<Blob>>;
292
+ public httpAssetResize(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<any> {
293
+ if (id === null || id === undefined) {
294
+ throw new Error('Required parameter id was null or undefined when calling httpAssetResize.');
295
+ }
296
+
297
+ let headers = this.defaultHeaders;
298
+
299
+ let credential: string | undefined;
300
+ // authentication (msal_auth) required
301
+ credential = this.configuration.lookupCredential('msal_auth');
302
+ if (credential) {
303
+ headers = headers.set('Authorization', 'Bearer ' + credential);
304
+ }
305
+
306
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
307
+ if (httpHeaderAcceptSelected === undefined) {
308
+ // to determine the Accept header
309
+ const httpHeaderAccepts: string[] = [
310
+ 'image/xyz',
311
+ 'application/json'
312
+ ];
313
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
314
+ }
315
+ if (httpHeaderAcceptSelected !== undefined) {
316
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
317
+ }
318
+
319
+
320
+ return this.httpClient.get(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/resize`,
321
+ {
322
+ responseType: "blob",
323
+ withCredentials: this.configuration.withCredentials,
324
+ headers: headers,
325
+ observe: observe,
326
+ reportProgress: reportProgress
327
+ }
328
+ );
329
+ }
330
+
331
+ /**
332
+ * This endpoint allows to move/assign from/to another collection with the given operation parameter.
333
+ * @param id The ID of the asset.
334
+ * @param moveCollectionBody Contains information about this operation.
335
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
336
+ * @param reportProgress flag to report request and response progress.
337
+ */
338
+ public httpAssetToCollection(id: string, moveCollectionBody: MoveCollectionBody, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<any>;
339
+ public httpAssetToCollection(id: string, moveCollectionBody: MoveCollectionBody, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<any>>;
340
+ public httpAssetToCollection(id: string, moveCollectionBody: MoveCollectionBody, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<any>>;
341
+ public httpAssetToCollection(id: string, moveCollectionBody: MoveCollectionBody, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
342
+ if (id === null || id === undefined) {
343
+ throw new Error('Required parameter id was null or undefined when calling httpAssetToCollection.');
344
+ }
345
+ if (moveCollectionBody === null || moveCollectionBody === undefined) {
346
+ throw new Error('Required parameter moveCollectionBody was null or undefined when calling httpAssetToCollection.');
347
+ }
348
+
349
+ let headers = this.defaultHeaders;
350
+
351
+ let credential: string | undefined;
352
+ // authentication (msal_auth) required
353
+ credential = this.configuration.lookupCredential('msal_auth');
354
+ if (credential) {
355
+ headers = headers.set('Authorization', 'Bearer ' + credential);
356
+ }
357
+
358
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
359
+ if (httpHeaderAcceptSelected === undefined) {
360
+ // to determine the Accept header
361
+ const httpHeaderAccepts: string[] = [
362
+ 'application/json'
363
+ ];
364
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
365
+ }
366
+ if (httpHeaderAcceptSelected !== undefined) {
367
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
368
+ }
369
+
370
+
371
+ // to determine the Content-Type header
372
+ const consumes: string[] = [
373
+ 'application/json'
374
+ ];
375
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
376
+ if (httpContentTypeSelected !== undefined) {
377
+ headers = headers.set('Content-Type', httpContentTypeSelected);
378
+ }
379
+
380
+ let responseType_: 'text' | 'json' = 'json';
381
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
382
+ responseType_ = 'text';
383
+ }
384
+
385
+ return this.httpClient.post<any>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/tocollection`,
386
+ moveCollectionBody,
387
+ {
388
+ responseType: <any>responseType_,
389
+ withCredentials: this.configuration.withCredentials,
390
+ headers: headers,
391
+ observe: observe,
392
+ reportProgress: reportProgress
393
+ }
394
+ );
395
+ }
396
+
397
+ /**
398
+ * This endpoint allows to move/assign multiple assets from/to another collection with the given operation parameter.
399
+ * @param assetsOperationBody Contains information which assets should be assigned to collection.
400
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
401
+ * @param reportProgress flag to report request and response progress.
402
+ */
403
+ public httpAssetsToCollection(assetsOperationBody: AssetsOperationBody, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<any>;
404
+ public httpAssetsToCollection(assetsOperationBody: AssetsOperationBody, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<any>>;
405
+ public httpAssetsToCollection(assetsOperationBody: AssetsOperationBody, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<any>>;
406
+ public httpAssetsToCollection(assetsOperationBody: AssetsOperationBody, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
407
+ if (assetsOperationBody === null || assetsOperationBody === undefined) {
408
+ throw new Error('Required parameter assetsOperationBody was null or undefined when calling httpAssetsToCollection.');
409
+ }
410
+
411
+ let headers = this.defaultHeaders;
412
+
413
+ let credential: string | undefined;
414
+ // authentication (msal_auth) required
415
+ credential = this.configuration.lookupCredential('msal_auth');
416
+ if (credential) {
417
+ headers = headers.set('Authorization', 'Bearer ' + credential);
418
+ }
419
+
420
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
421
+ if (httpHeaderAcceptSelected === undefined) {
422
+ // to determine the Accept header
423
+ const httpHeaderAccepts: string[] = [
424
+ 'application/json'
425
+ ];
426
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
427
+ }
428
+ if (httpHeaderAcceptSelected !== undefined) {
429
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
430
+ }
431
+
432
+
433
+ // to determine the Content-Type header
434
+ const consumes: string[] = [
435
+ 'application/json'
436
+ ];
437
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
438
+ if (httpContentTypeSelected !== undefined) {
439
+ headers = headers.set('Content-Type', httpContentTypeSelected);
440
+ }
441
+
442
+ let responseType_: 'text' | 'json' = 'json';
443
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
444
+ responseType_ = 'text';
445
+ }
446
+
447
+ return this.httpClient.post<any>(`${this.configuration.basePath}/assetsoperations/tocollection`,
448
+ assetsOperationBody,
449
+ {
450
+ responseType: <any>responseType_,
451
+ withCredentials: this.configuration.withCredentials,
452
+ headers: headers,
453
+ observe: observe,
454
+ reportProgress: reportProgress
455
+ }
456
+ );
457
+ }
458
+
459
+ /**
460
+ * This endpoint deletes a specific blob from the asset (if exists)
461
+ * @param id The ID of the asset.
462
+ * @param name The name of the container where this blob is.
463
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
464
+ * @param reportProgress flag to report request and response progress.
465
+ */
466
+ public httpDeleteSpecificBlob(id: string, name: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
467
+ public httpDeleteSpecificBlob(id: string, name: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
468
+ public httpDeleteSpecificBlob(id: string, name: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
469
+ public httpDeleteSpecificBlob(id: string, name: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
470
+ if (id === null || id === undefined) {
471
+ throw new Error('Required parameter id was null or undefined when calling httpDeleteSpecificBlob.');
472
+ }
473
+ if (name === null || name === undefined) {
474
+ throw new Error('Required parameter name was null or undefined when calling httpDeleteSpecificBlob.');
475
+ }
476
+
477
+ let headers = this.defaultHeaders;
478
+
479
+ let credential: string | undefined;
480
+ // authentication (msal_auth) required
481
+ credential = this.configuration.lookupCredential('msal_auth');
482
+ if (credential) {
483
+ headers = headers.set('Authorization', 'Bearer ' + credential);
484
+ }
485
+
486
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
487
+ if (httpHeaderAcceptSelected === undefined) {
488
+ // to determine the Accept header
489
+ const httpHeaderAccepts: string[] = [
490
+ 'application/json'
491
+ ];
492
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
493
+ }
494
+ if (httpHeaderAcceptSelected !== undefined) {
495
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
496
+ }
497
+
498
+
499
+ let responseType_: 'text' | 'json' = 'json';
500
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
501
+ responseType_ = 'text';
502
+ }
503
+
504
+ return this.httpClient.delete<AgravityInfoResponse>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/blobs/${encodeURIComponent(String(name))}`,
505
+ {
506
+ responseType: <any>responseType_,
507
+ withCredentials: this.configuration.withCredentials,
508
+ headers: headers,
509
+ observe: observe,
510
+ reportProgress: reportProgress
511
+ }
512
+ );
513
+ }
514
+
515
+ /**
516
+ * This endpoint allows to check all assets in system elements with the given criteria are already in the system. Currently supported field: md5
517
+ * @param md5 Give the plain md5 string as parameter to be checked on all assets.
518
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
519
+ * @param reportProgress flag to report request and response progress.
520
+ */
521
+ public httpGetAllAssetsCheckOnCriteria(md5: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<Asset>>;
522
+ public httpGetAllAssetsCheckOnCriteria(md5: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<Asset>>>;
523
+ public httpGetAllAssetsCheckOnCriteria(md5: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<Asset>>>;
524
+ public httpGetAllAssetsCheckOnCriteria(md5: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
525
+ if (md5 === null || md5 === undefined) {
526
+ throw new Error('Required parameter md5 was null or undefined when calling httpGetAllAssetsCheckOnCriteria.');
527
+ }
528
+
529
+ let queryParameters = new HttpParams({encoder: this.encoder});
530
+ if (md5 !== undefined && md5 !== null) {
531
+ queryParameters = this.addToHttpParams(queryParameters,
532
+ <any>md5, 'md5');
533
+ }
534
+
535
+ let headers = this.defaultHeaders;
536
+
537
+ let credential: string | undefined;
538
+ // authentication (msal_auth) required
539
+ credential = this.configuration.lookupCredential('msal_auth');
540
+ if (credential) {
541
+ headers = headers.set('Authorization', 'Bearer ' + credential);
542
+ }
543
+
544
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
545
+ if (httpHeaderAcceptSelected === undefined) {
546
+ // to determine the Accept header
547
+ const httpHeaderAccepts: string[] = [
548
+ 'application/json'
549
+ ];
550
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
551
+ }
552
+ if (httpHeaderAcceptSelected !== undefined) {
553
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
554
+ }
555
+
556
+
557
+ let responseType_: 'text' | 'json' = 'json';
558
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
559
+ responseType_ = 'text';
560
+ }
561
+
562
+ return this.httpClient.get<Array<Asset>>(`${this.configuration.basePath}/assetscheck`,
563
+ {
564
+ params: queryParameters,
565
+ responseType: <any>responseType_,
566
+ withCredentials: this.configuration.withCredentials,
567
+ headers: headers,
568
+ observe: observe,
569
+ reportProgress: reportProgress
570
+ }
571
+ );
572
+ }
573
+
574
+ /**
575
+ * This endpoint checks, if an asset exists and returns the url for the requested blob.
576
+ * @param id The ID of the asset.
577
+ * @param c \&quot;t\&quot; for thumbnail (default); \&quot;o\&quot; for optimized; \&quot;i\&quot; for internal.
578
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
579
+ * @param reportProgress flag to report request and response progress.
580
+ */
581
+ public httpGetAssetBlob(id: string, c?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AssetBlob>;
582
+ public httpGetAssetBlob(id: string, c?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AssetBlob>>;
583
+ public httpGetAssetBlob(id: string, c?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AssetBlob>>;
584
+ public httpGetAssetBlob(id: string, c?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
585
+ if (id === null || id === undefined) {
586
+ throw new Error('Required parameter id was null or undefined when calling httpGetAssetBlob.');
587
+ }
588
+
589
+ let queryParameters = new HttpParams({encoder: this.encoder});
590
+ if (c !== undefined && c !== null) {
591
+ queryParameters = this.addToHttpParams(queryParameters,
592
+ <any>c, 'c');
593
+ }
594
+
595
+ let headers = this.defaultHeaders;
596
+
597
+ let credential: string | undefined;
598
+ // authentication (msal_auth) required
599
+ credential = this.configuration.lookupCredential('msal_auth');
600
+ if (credential) {
601
+ headers = headers.set('Authorization', 'Bearer ' + credential);
602
+ }
603
+
604
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
605
+ if (httpHeaderAcceptSelected === undefined) {
606
+ // to determine the Accept header
607
+ const httpHeaderAccepts: string[] = [
608
+ 'application/json'
609
+ ];
610
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
611
+ }
612
+ if (httpHeaderAcceptSelected !== undefined) {
613
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
614
+ }
615
+
616
+
617
+ let responseType_: 'text' | 'json' = 'json';
618
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
619
+ responseType_ = 'text';
620
+ }
621
+
622
+ return this.httpClient.get<AssetBlob>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/blobs`,
623
+ {
624
+ params: queryParameters,
625
+ responseType: <any>responseType_,
626
+ withCredentials: this.configuration.withCredentials,
627
+ headers: headers,
628
+ observe: observe,
629
+ reportProgress: reportProgress
630
+ }
631
+ );
632
+ }
633
+
634
+ /**
635
+ * This endpoint returns all collections of a specific asset.
636
+ * @param id The ID of the asset.
637
+ * @param fields This limits the fields which are returned, separated by comma (\&#39;,\&#39;).
638
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
639
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
640
+ * @param reportProgress flag to report request and response progress.
641
+ */
642
+ public httpGetAssetCollectionsById(id: string, fields?: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<Collection>>;
643
+ public httpGetAssetCollectionsById(id: string, fields?: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<Collection>>>;
644
+ public httpGetAssetCollectionsById(id: string, fields?: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<Collection>>>;
645
+ public httpGetAssetCollectionsById(id: string, fields?: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
646
+ if (id === null || id === undefined) {
647
+ throw new Error('Required parameter id was null or undefined when calling httpGetAssetCollectionsById.');
648
+ }
649
+
650
+ let queryParameters = new HttpParams({encoder: this.encoder});
651
+ if (fields !== undefined && fields !== null) {
652
+ queryParameters = this.addToHttpParams(queryParameters,
653
+ <any>fields, 'fields');
654
+ }
655
+ if (translations !== undefined && translations !== null) {
656
+ queryParameters = this.addToHttpParams(queryParameters,
657
+ <any>translations, 'translations');
658
+ }
659
+
660
+ let headers = this.defaultHeaders;
661
+
662
+ let credential: string | undefined;
663
+ // authentication (msal_auth) required
664
+ credential = this.configuration.lookupCredential('msal_auth');
665
+ if (credential) {
666
+ headers = headers.set('Authorization', 'Bearer ' + credential);
667
+ }
668
+
669
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
670
+ if (httpHeaderAcceptSelected === undefined) {
671
+ // to determine the Accept header
672
+ const httpHeaderAccepts: string[] = [
673
+ 'application/json'
674
+ ];
675
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
676
+ }
677
+ if (httpHeaderAcceptSelected !== undefined) {
678
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
679
+ }
680
+
681
+
682
+ let responseType_: 'text' | 'json' = 'json';
683
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
684
+ responseType_ = 'text';
685
+ }
686
+
687
+ return this.httpClient.get<Array<Collection>>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/collections`,
688
+ {
689
+ params: queryParameters,
690
+ responseType: <any>responseType_,
691
+ withCredentials: this.configuration.withCredentials,
692
+ headers: headers,
693
+ observe: observe,
694
+ reportProgress: reportProgress
695
+ }
696
+ );
697
+ }
698
+
699
+ /**
700
+ * This endpoint is similar to GetAssetBlob but with ContentDistribution and filename to let browser download the content.
701
+ * @param id The ID of the asset.
702
+ * @param c \&quot;t\&quot; for thumbnail (default); \&quot;o\&quot; for optimized; \&quot;i\&quot; for internal.
703
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
704
+ * @param reportProgress flag to report request and response progress.
705
+ */
706
+ public httpGetAssetDownload(id: string, c?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AssetBlob>;
707
+ public httpGetAssetDownload(id: string, c?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AssetBlob>>;
708
+ public httpGetAssetDownload(id: string, c?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AssetBlob>>;
709
+ public httpGetAssetDownload(id: string, c?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
710
+ if (id === null || id === undefined) {
711
+ throw new Error('Required parameter id was null or undefined when calling httpGetAssetDownload.');
712
+ }
713
+
714
+ let queryParameters = new HttpParams({encoder: this.encoder});
715
+ if (c !== undefined && c !== null) {
716
+ queryParameters = this.addToHttpParams(queryParameters,
717
+ <any>c, 'c');
718
+ }
719
+
720
+ let headers = this.defaultHeaders;
721
+
722
+ let credential: string | undefined;
723
+ // authentication (msal_auth) required
724
+ credential = this.configuration.lookupCredential('msal_auth');
725
+ if (credential) {
726
+ headers = headers.set('Authorization', 'Bearer ' + credential);
727
+ }
728
+
729
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
730
+ if (httpHeaderAcceptSelected === undefined) {
731
+ // to determine the Accept header
732
+ const httpHeaderAccepts: string[] = [
733
+ 'application/json'
734
+ ];
735
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
736
+ }
737
+ if (httpHeaderAcceptSelected !== undefined) {
738
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
739
+ }
740
+
741
+
742
+ let responseType_: 'text' | 'json' = 'json';
743
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
744
+ responseType_ = 'text';
745
+ }
746
+
747
+ return this.httpClient.get<AssetBlob>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/download`,
748
+ {
749
+ params: queryParameters,
750
+ responseType: <any>responseType_,
751
+ withCredentials: this.configuration.withCredentials,
752
+ headers: headers,
753
+ observe: observe,
754
+ reportProgress: reportProgress
755
+ }
756
+ );
757
+ }
758
+
759
+ /**
760
+ * This endpoint returns all technical metadata of an asset.
761
+ * @param id The ID of the asset.
762
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
763
+ * @param reportProgress flag to report request and response progress.
764
+ */
765
+ public httpGetAssetTechDataById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<Metadata>>;
766
+ public httpGetAssetTechDataById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<Metadata>>>;
767
+ public httpGetAssetTechDataById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<Metadata>>>;
768
+ public httpGetAssetTechDataById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
769
+ if (id === null || id === undefined) {
770
+ throw new Error('Required parameter id was null or undefined when calling httpGetAssetTechDataById.');
771
+ }
772
+
773
+ let headers = this.defaultHeaders;
774
+
775
+ let credential: string | undefined;
776
+ // authentication (msal_auth) required
777
+ credential = this.configuration.lookupCredential('msal_auth');
778
+ if (credential) {
779
+ headers = headers.set('Authorization', 'Bearer ' + credential);
780
+ }
781
+
782
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
783
+ if (httpHeaderAcceptSelected === undefined) {
784
+ // to determine the Accept header
785
+ const httpHeaderAccepts: string[] = [
786
+ 'application/json'
787
+ ];
788
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
789
+ }
790
+ if (httpHeaderAcceptSelected !== undefined) {
791
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
792
+ }
793
+
794
+
795
+ let responseType_: 'text' | 'json' = 'json';
796
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
797
+ responseType_ = 'text';
798
+ }
799
+
800
+ return this.httpClient.get<Array<Metadata>>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/techdata`,
801
+ {
802
+ responseType: <any>responseType_,
803
+ withCredentials: this.configuration.withCredentials,
804
+ headers: headers,
805
+ observe: observe,
806
+ reportProgress: reportProgress
807
+ }
808
+ );
809
+ }
810
+
811
+ /**
812
+ * This endpoint lets you use the entire api of Imagemagick to edit the image.
813
+ * @param id The ID of the asset.
814
+ * @param dynamicImageOperation Operations to be performed on the image directly mapped to c# imagemagick sdk
815
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
816
+ * @param reportProgress flag to report request and response progress.
817
+ */
818
+ public httpImageDynamicEdit(id: string, dynamicImageOperation: Array<DynamicImageOperation>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<Blob>;
819
+ public httpImageDynamicEdit(id: string, dynamicImageOperation: Array<DynamicImageOperation>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<HttpResponse<Blob>>;
820
+ public httpImageDynamicEdit(id: string, dynamicImageOperation: Array<DynamicImageOperation>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<HttpEvent<Blob>>;
821
+ public httpImageDynamicEdit(id: string, dynamicImageOperation: Array<DynamicImageOperation>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<any> {
822
+ if (id === null || id === undefined) {
823
+ throw new Error('Required parameter id was null or undefined when calling httpImageDynamicEdit.');
824
+ }
825
+ if (dynamicImageOperation === null || dynamicImageOperation === undefined) {
826
+ throw new Error('Required parameter dynamicImageOperation was null or undefined when calling httpImageDynamicEdit.');
827
+ }
828
+
829
+ let headers = this.defaultHeaders;
830
+
831
+ let credential: string | undefined;
832
+ // authentication (msal_auth) required
833
+ credential = this.configuration.lookupCredential('msal_auth');
834
+ if (credential) {
835
+ headers = headers.set('Authorization', 'Bearer ' + credential);
836
+ }
837
+
838
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
839
+ if (httpHeaderAcceptSelected === undefined) {
840
+ // to determine the Accept header
841
+ const httpHeaderAccepts: string[] = [
842
+ 'image/xyz',
843
+ 'application/json'
844
+ ];
845
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
846
+ }
847
+ if (httpHeaderAcceptSelected !== undefined) {
848
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
849
+ }
850
+
851
+
852
+ // to determine the Content-Type header
853
+ const consumes: string[] = [
854
+ 'application/json'
855
+ ];
856
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
857
+ if (httpContentTypeSelected !== undefined) {
858
+ headers = headers.set('Content-Type', httpContentTypeSelected);
859
+ }
860
+
861
+ return this.httpClient.post(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/imageedit`,
862
+ dynamicImageOperation,
863
+ {
864
+ responseType: "blob",
865
+ withCredentials: this.configuration.withCredentials,
866
+ headers: headers,
867
+ observe: observe,
868
+ reportProgress: reportProgress
869
+ }
870
+ );
871
+ }
872
+
873
+ /**
874
+ * This endpoint returns an image with the requested download format applied.
875
+ * @param id The ID of the asset.
876
+ * @param downloadFormatId The ID of the download format.
877
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
878
+ * @param reportProgress flag to report request and response progress.
879
+ */
880
+ public httpImageDynamicGetFromDownloadId(id: string, downloadFormatId: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<Blob>;
881
+ public httpImageDynamicGetFromDownloadId(id: string, downloadFormatId: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<HttpResponse<Blob>>;
882
+ public httpImageDynamicGetFromDownloadId(id: string, downloadFormatId: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<HttpEvent<Blob>>;
883
+ public httpImageDynamicGetFromDownloadId(id: string, downloadFormatId: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'image/xyz' | 'application/json'}): Observable<any> {
884
+ if (id === null || id === undefined) {
885
+ throw new Error('Required parameter id was null or undefined when calling httpImageDynamicGetFromDownloadId.');
886
+ }
887
+ if (downloadFormatId === null || downloadFormatId === undefined) {
888
+ throw new Error('Required parameter downloadFormatId was null or undefined when calling httpImageDynamicGetFromDownloadId.');
889
+ }
890
+
891
+ let headers = this.defaultHeaders;
892
+
893
+ let credential: string | undefined;
894
+ // authentication (msal_auth) required
895
+ credential = this.configuration.lookupCredential('msal_auth');
896
+ if (credential) {
897
+ headers = headers.set('Authorization', 'Bearer ' + credential);
898
+ }
899
+
900
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
901
+ if (httpHeaderAcceptSelected === undefined) {
902
+ // to determine the Accept header
903
+ const httpHeaderAccepts: string[] = [
904
+ 'image/xyz',
905
+ 'application/json'
906
+ ];
907
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
908
+ }
909
+ if (httpHeaderAcceptSelected !== undefined) {
910
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
911
+ }
912
+
913
+
914
+ return this.httpClient.get(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/imageedit/${encodeURIComponent(String(downloadFormatId))}`,
915
+ {
916
+ responseType: "blob",
917
+ withCredentials: this.configuration.withCredentials,
918
+ headers: headers,
919
+ observe: observe,
920
+ reportProgress: reportProgress
921
+ }
922
+ );
923
+ }
924
+
925
+ /**
926
+ * This endpoint purges all published assets of this asset when CDN is enabled
927
+ * @param id The ID of the asset.
928
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
929
+ * @param reportProgress flag to report request and response progress.
930
+ */
931
+ public httpPatchAssetPurgeCdn(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
932
+ public httpPatchAssetPurgeCdn(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
933
+ public httpPatchAssetPurgeCdn(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
934
+ public httpPatchAssetPurgeCdn(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
935
+ if (id === null || id === undefined) {
936
+ throw new Error('Required parameter id was null or undefined when calling httpPatchAssetPurgeCdn.');
937
+ }
938
+
939
+ let headers = this.defaultHeaders;
940
+
941
+ let credential: string | undefined;
942
+ // authentication (msal_auth) required
943
+ credential = this.configuration.lookupCredential('msal_auth');
944
+ if (credential) {
945
+ headers = headers.set('Authorization', 'Bearer ' + credential);
946
+ }
947
+
948
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
949
+ if (httpHeaderAcceptSelected === undefined) {
950
+ // to determine the Accept header
951
+ const httpHeaderAccepts: string[] = [
952
+ 'application/json'
953
+ ];
954
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
955
+ }
956
+ if (httpHeaderAcceptSelected !== undefined) {
957
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
958
+ }
959
+
960
+
961
+ let responseType_: 'text' | 'json' = 'json';
962
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
963
+ responseType_ = 'text';
964
+ }
965
+
966
+ return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/purgecdn`,
967
+ null,
968
+ {
969
+ responseType: <any>responseType_,
970
+ withCredentials: this.configuration.withCredentials,
971
+ headers: headers,
972
+ observe: observe,
973
+ reportProgress: reportProgress
974
+ }
975
+ );
976
+ }
977
+
978
+ /**
979
+ * This endpoint marks a asset as \&quot;dirty\&quot; (starts a queue to do that) - to trigger search index to re-index the asset
980
+ * @param id The ID of the asset.
981
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
982
+ * @param reportProgress flag to report request and response progress.
983
+ */
984
+ public httpPatchAssetReindex(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
985
+ public httpPatchAssetReindex(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
986
+ public httpPatchAssetReindex(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
987
+ public httpPatchAssetReindex(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
988
+ if (id === null || id === undefined) {
989
+ throw new Error('Required parameter id was null or undefined when calling httpPatchAssetReindex.');
990
+ }
991
+
992
+ let headers = this.defaultHeaders;
993
+
994
+ let credential: string | undefined;
995
+ // authentication (msal_auth) required
996
+ credential = this.configuration.lookupCredential('msal_auth');
997
+ if (credential) {
998
+ headers = headers.set('Authorization', 'Bearer ' + credential);
999
+ }
1000
+
1001
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1002
+ if (httpHeaderAcceptSelected === undefined) {
1003
+ // to determine the Accept header
1004
+ const httpHeaderAccepts: string[] = [
1005
+ 'application/json'
1006
+ ];
1007
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1008
+ }
1009
+ if (httpHeaderAcceptSelected !== undefined) {
1010
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1011
+ }
1012
+
1013
+
1014
+ let responseType_: 'text' | 'json' = 'json';
1015
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
1016
+ responseType_ = 'text';
1017
+ }
1018
+
1019
+ return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/reindex`,
1020
+ null,
1021
+ {
1022
+ responseType: <any>responseType_,
1023
+ withCredentials: this.configuration.withCredentials,
1024
+ headers: headers,
1025
+ observe: observe,
1026
+ reportProgress: reportProgress
1027
+ }
1028
+ );
1029
+ }
1030
+
1031
+ /**
1032
+ * This endpoint runs all configured queues of the asset again (requeue ID at beginning of queues). E.g. Recreation of previews, AI recognition, hash values, ...
1033
+ * @param id The ID of the asset.
1034
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1035
+ * @param reportProgress flag to report request and response progress.
1036
+ */
1037
+ public httpPatchAssetRenew(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
1038
+ public httpPatchAssetRenew(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
1039
+ public httpPatchAssetRenew(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
1040
+ public httpPatchAssetRenew(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
1041
+ if (id === null || id === undefined) {
1042
+ throw new Error('Required parameter id was null or undefined when calling httpPatchAssetRenew.');
1043
+ }
1044
+
1045
+ let headers = this.defaultHeaders;
1046
+
1047
+ let credential: string | undefined;
1048
+ // authentication (msal_auth) required
1049
+ credential = this.configuration.lookupCredential('msal_auth');
1050
+ if (credential) {
1051
+ headers = headers.set('Authorization', 'Bearer ' + credential);
1052
+ }
1053
+
1054
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1055
+ if (httpHeaderAcceptSelected === undefined) {
1056
+ // to determine the Accept header
1057
+ const httpHeaderAccepts: string[] = [
1058
+ 'application/json'
1059
+ ];
1060
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1061
+ }
1062
+ if (httpHeaderAcceptSelected !== undefined) {
1063
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1064
+ }
1065
+
1066
+
1067
+ let responseType_: 'text' | 'json' = 'json';
1068
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
1069
+ responseType_ = 'text';
1070
+ }
1071
+
1072
+ return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/renew`,
1073
+ null,
1074
+ {
1075
+ responseType: <any>responseType_,
1076
+ withCredentials: this.configuration.withCredentials,
1077
+ headers: headers,
1078
+ observe: observe,
1079
+ reportProgress: reportProgress
1080
+ }
1081
+ );
1082
+ }
1083
+
1084
+ /**
1085
+ * This endpoint repairs the items of an asset. Checks all collection type items and assign it to asset.
1086
+ * @param id The ID of the asset.
1087
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1088
+ * @param reportProgress flag to report request and response progress.
1089
+ */
1090
+ public httpPatchAssetRepair(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
1091
+ public httpPatchAssetRepair(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
1092
+ public httpPatchAssetRepair(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
1093
+ public httpPatchAssetRepair(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
1094
+ if (id === null || id === undefined) {
1095
+ throw new Error('Required parameter id was null or undefined when calling httpPatchAssetRepair.');
1096
+ }
1097
+
1098
+ let headers = this.defaultHeaders;
1099
+
1100
+ let credential: string | undefined;
1101
+ // authentication (msal_auth) required
1102
+ credential = this.configuration.lookupCredential('msal_auth');
1103
+ if (credential) {
1104
+ headers = headers.set('Authorization', 'Bearer ' + credential);
1105
+ }
1106
+
1107
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1108
+ if (httpHeaderAcceptSelected === undefined) {
1109
+ // to determine the Accept header
1110
+ const httpHeaderAccepts: string[] = [
1111
+ 'application/json'
1112
+ ];
1113
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1114
+ }
1115
+ if (httpHeaderAcceptSelected !== undefined) {
1116
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1117
+ }
1118
+
1119
+
1120
+ let responseType_: 'text' | 'json' = 'json';
1121
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
1122
+ responseType_ = 'text';
1123
+ }
1124
+
1125
+ return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/repair`,
1126
+ null,
1127
+ {
1128
+ responseType: <any>responseType_,
1129
+ withCredentials: this.configuration.withCredentials,
1130
+ headers: headers,
1131
+ observe: observe,
1132
+ reportProgress: reportProgress
1133
+ }
1134
+ );
1135
+ }
1136
+
1137
+ /**
1138
+ * This endpoint execute a specific queues of the asset. E.g. Recreation of previews, AI recognition, hash values, ...
1139
+ * @param id The ID of the asset.
1140
+ * @param queueInput The name of the queue(s) which should be executed. (Comma separated)
1141
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1142
+ * @param reportProgress flag to report request and response progress.
1143
+ */
1144
+ public httpPatchAssetRunQueue(id: string, queueInput: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
1145
+ public httpPatchAssetRunQueue(id: string, queueInput: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
1146
+ public httpPatchAssetRunQueue(id: string, queueInput: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
1147
+ public httpPatchAssetRunQueue(id: string, queueInput: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
1148
+ if (id === null || id === undefined) {
1149
+ throw new Error('Required parameter id was null or undefined when calling httpPatchAssetRunQueue.');
1150
+ }
1151
+ if (queueInput === null || queueInput === undefined) {
1152
+ throw new Error('Required parameter queueInput was null or undefined when calling httpPatchAssetRunQueue.');
1153
+ }
1154
+
1155
+ let headers = this.defaultHeaders;
1156
+
1157
+ let credential: string | undefined;
1158
+ // authentication (msal_auth) required
1159
+ credential = this.configuration.lookupCredential('msal_auth');
1160
+ if (credential) {
1161
+ headers = headers.set('Authorization', 'Bearer ' + credential);
1162
+ }
1163
+
1164
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1165
+ if (httpHeaderAcceptSelected === undefined) {
1166
+ // to determine the Accept header
1167
+ const httpHeaderAccepts: string[] = [
1168
+ 'application/json'
1169
+ ];
1170
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1171
+ }
1172
+ if (httpHeaderAcceptSelected !== undefined) {
1173
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1174
+ }
1175
+
1176
+
1177
+ let responseType_: 'text' | 'json' = 'json';
1178
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
1179
+ responseType_ = 'text';
1180
+ }
1181
+
1182
+ return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/runqueue/${encodeURIComponent(String(queueInput))}`,
1183
+ null,
1184
+ {
1185
+ responseType: <any>responseType_,
1186
+ withCredentials: this.configuration.withCredentials,
1187
+ headers: headers,
1188
+ observe: observe,
1189
+ reportProgress: reportProgress
1190
+ }
1191
+ );
1192
+ }
1193
+
1194
+ /**
1195
+ * This endpoint allows the renewal of all assets (start over the trigger of asset type) with or without filtering.
1196
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1197
+ * @param reportProgress flag to report request and response progress.
1198
+ */
1199
+ public httpPatchRenewAllAssets(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
1200
+ public httpPatchRenewAllAssets(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
1201
+ public httpPatchRenewAllAssets(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
1202
+ public httpPatchRenewAllAssets(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
1203
+
1204
+ let headers = this.defaultHeaders;
1205
+
1206
+ let credential: string | undefined;
1207
+ // authentication (msal_auth) required
1208
+ credential = this.configuration.lookupCredential('msal_auth');
1209
+ if (credential) {
1210
+ headers = headers.set('Authorization', 'Bearer ' + credential);
1211
+ }
1212
+
1213
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1214
+ if (httpHeaderAcceptSelected === undefined) {
1215
+ // to determine the Accept header
1216
+ const httpHeaderAccepts: string[] = [
1217
+ 'application/json'
1218
+ ];
1219
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1220
+ }
1221
+ if (httpHeaderAcceptSelected !== undefined) {
1222
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1223
+ }
1224
+
1225
+
1226
+ let responseType_: 'text' | 'json' = 'json';
1227
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
1228
+ responseType_ = 'text';
1229
+ }
1230
+
1231
+ return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/assetsrenew!!`,
1232
+ null,
1233
+ {
1234
+ responseType: <any>responseType_,
1235
+ withCredentials: this.configuration.withCredentials,
1236
+ headers: headers,
1237
+ observe: observe,
1238
+ reportProgress: reportProgress
1239
+ }
1240
+ );
1241
+ }
1242
+
1243
+ /**
1244
+ * This endpoint sets the availability of the asset. All properties are put on the asset and replace previous values.To make an asset unavailable set the &#x60;availability&#x60; property to \&#39;locked\&#39; or set the &#x60;available_from&#x60; property below the current date. To make it available set empty string to &#x60;availability&#x60; property or &#x60;available_to&#x60; property into past.
1245
+ * @param id The ID of the asset.
1246
+ * @param assetAvailability The values are validated and put directly on the asset.
1247
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1248
+ * @param reportProgress flag to report request and response progress.
1249
+ */
1250
+ public httpPutAssetAvailability(id: string, assetAvailability: AssetAvailability, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AssetAvailability>;
1251
+ public httpPutAssetAvailability(id: string, assetAvailability: AssetAvailability, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AssetAvailability>>;
1252
+ public httpPutAssetAvailability(id: string, assetAvailability: AssetAvailability, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AssetAvailability>>;
1253
+ public httpPutAssetAvailability(id: string, assetAvailability: AssetAvailability, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
1254
+ if (id === null || id === undefined) {
1255
+ throw new Error('Required parameter id was null or undefined when calling httpPutAssetAvailability.');
1256
+ }
1257
+ if (assetAvailability === null || assetAvailability === undefined) {
1258
+ throw new Error('Required parameter assetAvailability was null or undefined when calling httpPutAssetAvailability.');
1259
+ }
1260
+
1261
+ let headers = this.defaultHeaders;
1262
+
1263
+ let credential: string | undefined;
1264
+ // authentication (msal_auth) required
1265
+ credential = this.configuration.lookupCredential('msal_auth');
1266
+ if (credential) {
1267
+ headers = headers.set('Authorization', 'Bearer ' + credential);
1268
+ }
1269
+
1270
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1271
+ if (httpHeaderAcceptSelected === undefined) {
1272
+ // to determine the Accept header
1273
+ const httpHeaderAccepts: string[] = [
1274
+ 'application/json'
1275
+ ];
1276
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1277
+ }
1278
+ if (httpHeaderAcceptSelected !== undefined) {
1279
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1280
+ }
1281
+
1282
+
1283
+ // to determine the Content-Type header
1284
+ const consumes: string[] = [
1285
+ 'application/json'
1286
+ ];
1287
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
1288
+ if (httpContentTypeSelected !== undefined) {
1289
+ headers = headers.set('Content-Type', httpContentTypeSelected);
1290
+ }
1291
+
1292
+ let responseType_: 'text' | 'json' = 'json';
1293
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
1294
+ responseType_ = 'text';
1295
+ }
1296
+
1297
+ return this.httpClient.put<AssetAvailability>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/availability`,
1298
+ assetAvailability,
1299
+ {
1300
+ responseType: <any>responseType_,
1301
+ withCredentials: this.configuration.withCredentials,
1302
+ headers: headers,
1303
+ observe: observe,
1304
+ reportProgress: reportProgress
1305
+ }
1306
+ );
1307
+ }
1308
+
1309
+ }