@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.
- package/.openapi-generator/FILES +1 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/assetIconRuleManagement.agravity.ts +344 -150
- package/api/assetManagement.agravity.ts +709 -389
- package/api/assetOperations.agravity.ts +1414 -650
- package/api/assetPublishing.agravity.ts +562 -255
- package/api/assetVersioning.agravity.ts +598 -278
- package/api/authenticationManagement.agravity.ts +731 -274
- package/api/collectionManagement.agravity.ts +618 -309
- package/api/collectionShareManagement.agravity.ts +256 -121
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
- package/api/collectionTypeManagement.agravity.ts +519 -250
- package/api/commentsManagement.agravity.ts +284 -90
- package/api/configurationManagement.agravity.ts +311 -128
- package/api/dashboardWidgetManagement.agravity.ts +342 -124
- package/api/dataImportExportManagement.agravity.ts +378 -148
- package/api/downloadFormatManagement.agravity.ts +450 -152
- package/api/downloadZip.agravity.ts +75 -30
- package/api/generalManagement.agravity.ts +374 -164
- package/api/helperTools.agravity.ts +804 -273
- package/api/historyEntryManagement.agravity.ts +75 -33
- package/api/iccProfileManagement.agravity.ts +64 -23
- package/api/listBlobs.agravity.ts +125 -47
- package/api/listQueues.agravity.ts +68 -24
- package/api/listTables.agravity.ts +68 -25
- package/api/permissionsManagement.agravity.ts +174 -77
- package/api/portalManagement.agravity.ts +511 -198
- package/api/publishing.agravity.ts +69 -38
- package/api/quickshareManagement.agravity.ts +349 -138
- package/api/savedSearchManagement.agravity.ts +205 -92
- package/api/searchManagement.agravity.ts +517 -297
- package/api/secureUpload.agravity.ts +325 -126
- package/api/signalRConnectionManagement.agravity.ts +175 -56
- package/api/staticDefinedListManagement.agravity.ts +342 -162
- package/api/stockImport.agravity.ts +138 -74
- package/api/structureImport.agravity.ts +68 -25
- package/api/translationManagement.agravity.ts +357 -206
- package/api/webAppData.agravity.ts +278 -88
- package/api/widgetLayoutManagement.agravity.ts +131 -47
- package/api/wordpressManagement.agravity.ts +152 -108
- package/api/workspaceManagement.agravity.ts +456 -197
- package/api.module.ts +0 -40
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.agravity.ts +3 -4
- package/model/agravityInfoResponse.agravity.ts +3 -4
- package/model/agravityUser.agravity.ts +16 -17
- package/model/agravityUserDto.agravity.ts +3 -4
- package/model/agravityVersion.agravity.ts +8 -9
- package/model/allWebAppData.agravity.ts +4 -5
- package/model/apiKeyResponse.agravity.ts +2 -3
- package/model/appConfigTableEntity.agravity.ts +8 -9
- package/model/artificialIntelligenceGroup.agravity.ts +3 -4
- package/model/asset.agravity.ts +22 -23
- package/model/assetAvailability.agravity.ts +1 -2
- package/model/assetBlob.agravity.ts +27 -28
- package/model/assetBulkUpdate.agravity.ts +2 -3
- package/model/assetCollectionLink.agravity.ts +2 -3
- package/model/assetIconRule.agravity.ts +17 -18
- package/model/assetIdFormat.agravity.ts +3 -4
- package/model/assetPageResult.agravity.ts +4 -5
- package/model/assetTextContent.agravity.ts +2 -3
- package/model/assetsOperationBody.agravity.ts +3 -4
- package/model/azSearchOptions.agravity.ts +8 -9
- package/model/azureIdentity.agravity.ts +4 -5
- package/model/blobInfoObj.agravity.ts +0 -1
- package/model/collTypeItem.agravity.ts +16 -17
- package/model/collTypeItemBlueprint.agravity.ts +12 -13
- package/model/collection.agravity.ts +15 -16
- package/model/collectionType.agravity.ts +14 -15
- package/model/collectionUDL.agravity.ts +4 -5
- package/model/collectionUDLListEntity.agravity.ts +9 -10
- package/model/collectionUDLReference.agravity.ts +3 -4
- package/model/comment.agravity.ts +9 -10
- package/model/createSftpUserResult.agravity.ts +2 -3
- package/model/dashboardWidget.agravity.ts +11 -12
- package/model/dataResult.agravity.ts +4 -5
- package/model/deletedEntities.agravity.ts +4 -5
- package/model/distZipResponse.agravity.ts +3 -4
- package/model/downloadFormat.agravity.ts +18 -16
- package/model/downloadObject.agravity.ts +16 -16
- package/model/downloadZipRequest.agravity.ts +9 -10
- package/model/dynamicImageOperation.agravity.ts +2 -3
- package/model/emailAddress.agravity.ts +2 -3
- package/model/entityId.agravity.ts +1 -2
- package/model/entityIdName.agravity.ts +3 -4
- package/model/entityTranslations.agravity.ts +2 -3
- package/model/excelExportTableEntity.agravity.ts +5 -5
- package/model/frontendAppConfig.agravity.ts +0 -1
- package/model/groupAllAppData.agravity.ts +5 -6
- package/model/historyEntry.agravity.ts +9 -10
- package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
- package/model/metadata.agravity.ts +3 -4
- package/model/models.ts +0 -1
- package/model/moveCollectionBody.agravity.ts +3 -4
- package/model/permissionChange.agravity.ts +1 -2
- package/model/permissionEntity.agravity.ts +1 -2
- package/model/permissionSetting.agravity.ts +8 -9
- package/model/portal.agravity.ts +18 -20
- package/model/portalLinks.agravity.ts +3 -4
- package/model/portalTheme.agravity.ts +6 -7
- package/model/portalZipRequest.agravity.ts +14 -15
- package/model/publishEntity.agravity.ts +9 -10
- package/model/publishedAsset.agravity.ts +12 -13
- package/model/quickShare.agravity.ts +12 -13
- package/model/quickShareFull.agravity.ts +15 -16
- package/model/sasToken.agravity.ts +6 -7
- package/model/savedSearch.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.agravity.ts +2 -3
- package/model/searchAdminStatistics.agravity.ts +2 -3
- package/model/searchAdminStatus.agravity.ts +4 -5
- package/model/searchFacet.agravity.ts +2 -3
- package/model/searchFacetEntity.agravity.ts +2 -3
- package/model/searchResult.agravity.ts +3 -4
- package/model/searchableItem.agravity.ts +3 -4
- package/model/secureUploadEntity.agravity.ts +10 -11
- package/model/sharedAllowedFormat.agravity.ts +2 -3
- package/model/sharedAsset.agravity.ts +5 -6
- package/model/sharedCollection.agravity.ts +15 -16
- package/model/sharedCollectionFull.agravity.ts +18 -19
- package/model/signalRConnectionInfo.agravity.ts +0 -1
- package/model/simpleAsset.agravity.ts +10 -11
- package/model/staticDefinedList.agravity.ts +12 -13
- package/model/translation.agravity.ts +2 -3
- package/model/translationRequest.agravity.ts +3 -4
- package/model/uiTutorials.agravity.ts +0 -1
- package/model/versionEntity.agravity.ts +9 -10
- package/model/versionedAsset.agravity.ts +5 -6
- package/model/whereParam.agravity.ts +0 -1
- package/model/widgetLayout.agravity.ts +8 -9
- package/model/widgetProperties.agravity.ts +6 -7
- package/model/workspace.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- 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,25 +11,204 @@
|
|
|
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
|
-
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
import {
|
|
29
|
-
|
|
30
|
-
|
|
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 { Asset } from '../model/asset.agravity';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { AssetAvailability } from '../model/assetAvailability.agravity';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { AssetBlob } from '../model/assetBlob.agravity';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { AssetTextContent } from '../model/assetTextContent.agravity';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import { AssetsOperationBody } from '../model/assetsOperationBody.agravity';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import { Collection } from '../model/collection.agravity';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import { DynamicImageOperation } from '../model/dynamicImageOperation.agravity';
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import { Metadata } from '../model/metadata.agravity';
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import { MoveCollectionBody } from '../model/moveCollectionBody.agravity';
|
|
40
|
+
|
|
41
|
+
// @ts-ignore
|
|
31
42
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
32
43
|
import { AgravityConfiguration } from '../configuration';
|
|
33
44
|
|
|
45
|
+
export interface HttpAssetImageEditRequestParams {
|
|
46
|
+
/** The ID of the asset. */
|
|
47
|
+
id: string;
|
|
48
|
+
/** The width of the final image. */
|
|
49
|
+
width?: number;
|
|
50
|
+
/** The height of the final image. */
|
|
51
|
+
height?: number;
|
|
52
|
+
/** The supported modes: contain (default), cover, fill, crop, none */
|
|
53
|
+
mode?: string;
|
|
54
|
+
/** The file type which the image should be (i.e. webp, png, jpg, gif) */
|
|
55
|
+
target?: string;
|
|
56
|
+
/** 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 */
|
|
57
|
+
bgcolor?: string;
|
|
58
|
+
/** The density (counts for X and Y) of the target image. */
|
|
59
|
+
dpi?: number;
|
|
60
|
+
/** The bit depth of the target image. */
|
|
61
|
+
depth?: number;
|
|
62
|
+
/** The quality of the target image (1-100). */
|
|
63
|
+
quality?: number;
|
|
64
|
+
/** The color space of the image (Default: sRGB). */
|
|
65
|
+
colorspace?: string;
|
|
66
|
+
/** If mode is crop: The x coordinate of the point (if image is extended (outside) it is negative) */
|
|
67
|
+
cropX?: number;
|
|
68
|
+
/** If mode is crop: The y coordinate of the point (if image is extended (outside) it is negative) */
|
|
69
|
+
cropY?: number;
|
|
70
|
+
/** If mode=crop: The width of the cropping rectangle (from original pixel) */
|
|
71
|
+
cropWidth?: number;
|
|
72
|
+
/** If mode=crop: The height of the cropping rectangle (from original pixel) */
|
|
73
|
+
cropHeight?: number;
|
|
74
|
+
/** Which filter should be applied. To get all filters available use: /api/helper/imageeditfilters */
|
|
75
|
+
filter?: string;
|
|
76
|
+
/** If set to true the internal image is used instead of the default original */
|
|
77
|
+
original?: boolean;
|
|
78
|
+
/** The origin image which should be used for the conversion. */
|
|
79
|
+
origin?: string;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface HttpAssetImageRotateClockwiseRequestParams {
|
|
83
|
+
/** The ID of the asset. */
|
|
84
|
+
id: string;
|
|
85
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
86
|
+
translations?: boolean;
|
|
87
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
88
|
+
acceptLanguage?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface HttpAssetResizeRequestParams {
|
|
92
|
+
/** The ID of the asset. */
|
|
93
|
+
id: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface HttpAssetToCollectionRequestParams {
|
|
97
|
+
/** The ID of the asset. */
|
|
98
|
+
id: string;
|
|
99
|
+
/** Contains information about this operation. */
|
|
100
|
+
moveCollectionBody: MoveCollectionBody;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface HttpAssetsToCollectionRequestParams {
|
|
104
|
+
/** Contains information which assets should be assigned to collection. */
|
|
105
|
+
assetsOperationBody: AssetsOperationBody;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface HttpDeleteAlternativeThumbRequestParams {
|
|
109
|
+
/** The ID of the asset. */
|
|
110
|
+
id: string;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface HttpDeleteSpecificBlobRequestParams {
|
|
114
|
+
/** The ID of the asset. */
|
|
115
|
+
id: string;
|
|
116
|
+
/** The name of the container where this blob is. */
|
|
117
|
+
name: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface HttpGetAllAssetsCheckOnCriteriaRequestParams {
|
|
121
|
+
/** Give the plain md5 string as parameter to be checked on all assets. */
|
|
122
|
+
md5: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface HttpGetAssetBlobRequestParams {
|
|
126
|
+
/** The ID of the asset. */
|
|
127
|
+
id: string;
|
|
128
|
+
/** \"t\" for thumbnail (default); \"op\" for optimized; \"os\" for original size; \"o\" for original. */
|
|
129
|
+
c?: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface HttpGetAssetCollectionsByIdRequestParams {
|
|
133
|
+
/** The ID of the asset. */
|
|
134
|
+
id: string;
|
|
135
|
+
/** This limits the fields which are returned, separated by comma (\',\'). */
|
|
136
|
+
fields?: string;
|
|
137
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
138
|
+
translations?: boolean;
|
|
139
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
140
|
+
acceptLanguage?: string;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface HttpGetAssetDownloadRequestParams {
|
|
144
|
+
/** The ID of the asset. */
|
|
145
|
+
id: string;
|
|
146
|
+
/** \"t\" for thumbnail (default); \"op\" for optimized; \"os\" for original size; \"o\" for original. */
|
|
147
|
+
c?: string;
|
|
148
|
+
/** (optional) provide the id of any valid download format. */
|
|
149
|
+
f?: string;
|
|
150
|
+
/** If the request comes from portal this is the indicator. It will be checked if the requested blob is valid for the portal. */
|
|
151
|
+
portalId?: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface HttpGetAssetTechDataByIdRequestParams {
|
|
155
|
+
/** The ID of the asset. */
|
|
156
|
+
id: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface HttpGetAssetTextContentByIdRequestParams {
|
|
160
|
+
/** The ID of the asset. */
|
|
161
|
+
id: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface HttpImageDynamicEditRequestParams {
|
|
165
|
+
/** The ID of the asset. */
|
|
166
|
+
id: string;
|
|
167
|
+
/** Operations to be performed on the image directly mapped to c# imagemagick sdk */
|
|
168
|
+
dynamicImageOperation: Array<DynamicImageOperation>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export interface HttpImageDynamicGetFromDownloadIdRequestParams {
|
|
172
|
+
/** The ID of the asset. */
|
|
173
|
+
id: string;
|
|
174
|
+
/** The ID of the download format. */
|
|
175
|
+
downloadFormatId: string;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface HttpPatchAssetPurgeCdnRequestParams {
|
|
179
|
+
/** The ID of the asset. */
|
|
180
|
+
id: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface HttpPatchAssetReindexRequestParams {
|
|
184
|
+
/** The ID of the asset. */
|
|
185
|
+
id: string;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface HttpPatchAssetRenewRequestParams {
|
|
189
|
+
/** The ID of the asset. */
|
|
190
|
+
id: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface HttpPatchAssetRepairRequestParams {
|
|
194
|
+
/** The ID of the asset. */
|
|
195
|
+
id: string;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export interface HttpPatchAssetRunQueueRequestParams {
|
|
199
|
+
/** The ID of the asset. */
|
|
200
|
+
id: string;
|
|
201
|
+
/** The name of the queue(s) which should be executed. (Comma separated) */
|
|
202
|
+
queueInput: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface HttpPutAssetAvailabilityRequestParams {
|
|
206
|
+
/** The ID of the asset. */
|
|
207
|
+
id: string;
|
|
208
|
+
/** The values are validated and put directly on the asset. */
|
|
209
|
+
assetAvailability: AssetAvailability;
|
|
210
|
+
}
|
|
211
|
+
|
|
34
212
|
@Injectable({
|
|
35
213
|
providedIn: 'root'
|
|
36
214
|
})
|
|
@@ -42,13 +220,18 @@ export class AssetOperationsService {
|
|
|
42
220
|
|
|
43
221
|
constructor(
|
|
44
222
|
protected httpClient: HttpClient,
|
|
45
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
223
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
46
224
|
@Optional() configuration: AgravityConfiguration
|
|
47
225
|
) {
|
|
48
226
|
if (configuration) {
|
|
49
227
|
this.configuration = configuration;
|
|
50
228
|
}
|
|
51
229
|
if (typeof this.configuration.basePath !== 'string') {
|
|
230
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
231
|
+
if (firstBasePath != undefined) {
|
|
232
|
+
basePath = firstBasePath;
|
|
233
|
+
}
|
|
234
|
+
|
|
52
235
|
if (typeof basePath !== 'string') {
|
|
53
236
|
basePath = this.basePath;
|
|
54
237
|
}
|
|
@@ -57,6 +240,7 @@ export class AssetOperationsService {
|
|
|
57
240
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
58
241
|
}
|
|
59
242
|
|
|
243
|
+
// @ts-ignore
|
|
60
244
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
61
245
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
62
246
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -76,7 +260,7 @@ export class AssetOperationsService {
|
|
|
76
260
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
77
261
|
} else if (value instanceof Date) {
|
|
78
262
|
if (key != null) {
|
|
79
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
263
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
80
264
|
} else {
|
|
81
265
|
throw Error('key may not be null if value is Date');
|
|
82
266
|
}
|
|
@@ -93,1333 +277,1861 @@ export class AssetOperationsService {
|
|
|
93
277
|
|
|
94
278
|
/**
|
|
95
279
|
* This endpoint lets you resize/modify the image asset according to the given parameter(s).
|
|
96
|
-
* @param
|
|
97
|
-
* @param width The width of the final image.
|
|
98
|
-
* @param height The height of the final image.
|
|
99
|
-
* @param mode The supported modes: contain (default), cover, fill, crop, none
|
|
100
|
-
* @param target The file type which the image should be (i.e. webp, png, jpg, gif)
|
|
101
|
-
* @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
|
|
102
|
-
* @param dpi The density (counts for X and Y) of the target image.
|
|
103
|
-
* @param depth The bit depth of the target image.
|
|
104
|
-
* @param quality The quality of the target image (1-100).
|
|
105
|
-
* @param colorspace The color space of the image (Default: sRGB).
|
|
106
|
-
* @param cropX If mode is crop: The x coordinate of the point (if image is extended (outside) it is negative)
|
|
107
|
-
* @param cropY If mode is crop: The y coordinate of the point (if image is extended (outside) it is negative)
|
|
108
|
-
* @param cropWidth If mode=crop: The width of the cropping rectangle (from original pixel)
|
|
109
|
-
* @param cropHeight If mode=crop: The height of the cropping rectangle (from original pixel)
|
|
110
|
-
* @param filter Which filter should be applied. To get all filters available use: /api/helper/imageeditfilters
|
|
111
|
-
* @param original If set to true the internal image is used instead of the default original
|
|
280
|
+
* @param requestParameters
|
|
112
281
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
113
282
|
* @param reportProgress flag to report request and response progress.
|
|
114
283
|
*/
|
|
115
284
|
public httpAssetImageEdit(
|
|
116
|
-
|
|
117
|
-
width?: number,
|
|
118
|
-
height?: number,
|
|
119
|
-
mode?: string,
|
|
120
|
-
target?: string,
|
|
121
|
-
bgcolor?: string,
|
|
122
|
-
dpi?: number,
|
|
123
|
-
depth?: number,
|
|
124
|
-
quality?: number,
|
|
125
|
-
colorspace?: string,
|
|
126
|
-
cropX?: number,
|
|
127
|
-
cropY?: number,
|
|
128
|
-
cropWidth?: number,
|
|
129
|
-
cropHeight?: number,
|
|
130
|
-
filter?: string,
|
|
131
|
-
original?: boolean,
|
|
285
|
+
requestParameters?: HttpAssetImageEditRequestParams,
|
|
132
286
|
observe?: 'body',
|
|
133
287
|
reportProgress?: boolean,
|
|
134
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
288
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
135
289
|
): Observable<Blob>;
|
|
136
290
|
public httpAssetImageEdit(
|
|
137
|
-
|
|
138
|
-
width?: number,
|
|
139
|
-
height?: number,
|
|
140
|
-
mode?: string,
|
|
141
|
-
target?: string,
|
|
142
|
-
bgcolor?: string,
|
|
143
|
-
dpi?: number,
|
|
144
|
-
depth?: number,
|
|
145
|
-
quality?: number,
|
|
146
|
-
colorspace?: string,
|
|
147
|
-
cropX?: number,
|
|
148
|
-
cropY?: number,
|
|
149
|
-
cropWidth?: number,
|
|
150
|
-
cropHeight?: number,
|
|
151
|
-
filter?: string,
|
|
152
|
-
original?: boolean,
|
|
291
|
+
requestParameters?: HttpAssetImageEditRequestParams,
|
|
153
292
|
observe?: 'response',
|
|
154
293
|
reportProgress?: boolean,
|
|
155
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
294
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
156
295
|
): Observable<HttpResponse<Blob>>;
|
|
157
296
|
public httpAssetImageEdit(
|
|
158
|
-
|
|
159
|
-
width?: number,
|
|
160
|
-
height?: number,
|
|
161
|
-
mode?: string,
|
|
162
|
-
target?: string,
|
|
163
|
-
bgcolor?: string,
|
|
164
|
-
dpi?: number,
|
|
165
|
-
depth?: number,
|
|
166
|
-
quality?: number,
|
|
167
|
-
colorspace?: string,
|
|
168
|
-
cropX?: number,
|
|
169
|
-
cropY?: number,
|
|
170
|
-
cropWidth?: number,
|
|
171
|
-
cropHeight?: number,
|
|
172
|
-
filter?: string,
|
|
173
|
-
original?: boolean,
|
|
297
|
+
requestParameters?: HttpAssetImageEditRequestParams,
|
|
174
298
|
observe?: 'events',
|
|
175
299
|
reportProgress?: boolean,
|
|
176
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
300
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
177
301
|
): Observable<HttpEvent<Blob>>;
|
|
178
302
|
public httpAssetImageEdit(
|
|
179
|
-
|
|
180
|
-
width?: number,
|
|
181
|
-
height?: number,
|
|
182
|
-
mode?: string,
|
|
183
|
-
target?: string,
|
|
184
|
-
bgcolor?: string,
|
|
185
|
-
dpi?: number,
|
|
186
|
-
depth?: number,
|
|
187
|
-
quality?: number,
|
|
188
|
-
colorspace?: string,
|
|
189
|
-
cropX?: number,
|
|
190
|
-
cropY?: number,
|
|
191
|
-
cropWidth?: number,
|
|
192
|
-
cropHeight?: number,
|
|
193
|
-
filter?: string,
|
|
194
|
-
original?: boolean,
|
|
303
|
+
requestParameters?: HttpAssetImageEditRequestParams,
|
|
195
304
|
observe: any = 'body',
|
|
196
305
|
reportProgress: boolean = false,
|
|
197
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
306
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
198
307
|
): Observable<any> {
|
|
308
|
+
const id = requestParameters?.id;
|
|
199
309
|
if (id === null || id === undefined) {
|
|
200
310
|
throw new Error('Required parameter id was null or undefined when calling httpAssetImageEdit.');
|
|
201
311
|
}
|
|
202
|
-
|
|
203
|
-
|
|
312
|
+
const width = requestParameters?.width;
|
|
313
|
+
const height = requestParameters?.height;
|
|
314
|
+
const mode = requestParameters?.mode;
|
|
315
|
+
const target = requestParameters?.target;
|
|
316
|
+
const bgcolor = requestParameters?.bgcolor;
|
|
317
|
+
const dpi = requestParameters?.dpi;
|
|
318
|
+
const depth = requestParameters?.depth;
|
|
319
|
+
const quality = requestParameters?.quality;
|
|
320
|
+
const colorspace = requestParameters?.colorspace;
|
|
321
|
+
const cropX = requestParameters?.cropX;
|
|
322
|
+
const cropY = requestParameters?.cropY;
|
|
323
|
+
const cropWidth = requestParameters?.cropWidth;
|
|
324
|
+
const cropHeight = requestParameters?.cropHeight;
|
|
325
|
+
const filter = requestParameters?.filter;
|
|
326
|
+
const original = requestParameters?.original;
|
|
327
|
+
const origin = requestParameters?.origin;
|
|
328
|
+
|
|
329
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
204
330
|
if (width !== undefined && width !== null) {
|
|
205
|
-
|
|
331
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>width, 'width');
|
|
206
332
|
}
|
|
207
333
|
if (height !== undefined && height !== null) {
|
|
208
|
-
|
|
334
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>height, 'height');
|
|
209
335
|
}
|
|
210
336
|
if (mode !== undefined && mode !== null) {
|
|
211
|
-
|
|
337
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mode, 'mode');
|
|
212
338
|
}
|
|
213
339
|
if (target !== undefined && target !== null) {
|
|
214
|
-
|
|
340
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>target, 'target');
|
|
215
341
|
}
|
|
216
342
|
if (bgcolor !== undefined && bgcolor !== null) {
|
|
217
|
-
|
|
343
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>bgcolor, 'bgcolor');
|
|
218
344
|
}
|
|
219
345
|
if (dpi !== undefined && dpi !== null) {
|
|
220
|
-
|
|
346
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>dpi, 'dpi');
|
|
221
347
|
}
|
|
222
348
|
if (depth !== undefined && depth !== null) {
|
|
223
|
-
|
|
349
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>depth, 'depth');
|
|
224
350
|
}
|
|
225
351
|
if (quality !== undefined && quality !== null) {
|
|
226
|
-
|
|
352
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>quality, 'quality');
|
|
227
353
|
}
|
|
228
354
|
if (colorspace !== undefined && colorspace !== null) {
|
|
229
|
-
|
|
355
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>colorspace, 'colorspace');
|
|
230
356
|
}
|
|
231
357
|
if (cropX !== undefined && cropX !== null) {
|
|
232
|
-
|
|
358
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropX, 'crop_x');
|
|
233
359
|
}
|
|
234
360
|
if (cropY !== undefined && cropY !== null) {
|
|
235
|
-
|
|
361
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropY, 'crop_y');
|
|
236
362
|
}
|
|
237
363
|
if (cropWidth !== undefined && cropWidth !== null) {
|
|
238
|
-
|
|
364
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropWidth, 'crop_width');
|
|
239
365
|
}
|
|
240
366
|
if (cropHeight !== undefined && cropHeight !== null) {
|
|
241
|
-
|
|
367
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropHeight, 'crop_height');
|
|
242
368
|
}
|
|
243
369
|
if (filter !== undefined && filter !== null) {
|
|
244
|
-
|
|
370
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
245
371
|
}
|
|
246
372
|
if (original !== undefined && original !== null) {
|
|
247
|
-
|
|
373
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>original, 'original');
|
|
374
|
+
}
|
|
375
|
+
if (origin !== undefined && origin !== null) {
|
|
376
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>origin, 'origin');
|
|
248
377
|
}
|
|
249
378
|
|
|
250
|
-
let
|
|
379
|
+
let localVarHeaders = this.defaultHeaders;
|
|
251
380
|
|
|
252
|
-
let
|
|
381
|
+
let localVarCredential: string | undefined;
|
|
253
382
|
// authentication (msal_auth) required
|
|
254
|
-
|
|
255
|
-
if (
|
|
256
|
-
|
|
383
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
384
|
+
if (localVarCredential) {
|
|
385
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
257
386
|
}
|
|
258
387
|
|
|
259
|
-
let
|
|
260
|
-
if (
|
|
388
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
389
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
261
390
|
// to determine the Accept header
|
|
262
391
|
const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
|
|
263
|
-
|
|
392
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
393
|
+
}
|
|
394
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
395
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
399
|
+
if (localVarHttpContext === undefined) {
|
|
400
|
+
localVarHttpContext = new HttpContext();
|
|
264
401
|
}
|
|
265
|
-
|
|
266
|
-
|
|
402
|
+
|
|
403
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
404
|
+
if (localVarTransferCache === undefined) {
|
|
405
|
+
localVarTransferCache = true;
|
|
267
406
|
}
|
|
268
407
|
|
|
269
|
-
|
|
270
|
-
|
|
408
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/imageedit`;
|
|
409
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
410
|
+
context: localVarHttpContext,
|
|
411
|
+
params: localVarQueryParameters,
|
|
271
412
|
responseType: 'blob',
|
|
272
413
|
withCredentials: this.configuration.withCredentials,
|
|
273
|
-
headers:
|
|
414
|
+
headers: localVarHeaders,
|
|
274
415
|
observe: observe,
|
|
416
|
+
transferCache: localVarTransferCache,
|
|
275
417
|
reportProgress: reportProgress
|
|
276
418
|
});
|
|
277
419
|
}
|
|
278
420
|
|
|
279
421
|
/**
|
|
280
422
|
* This endpoint lets you rotate an image clockwise in 90 degree steps.
|
|
281
|
-
* @param
|
|
282
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
423
|
+
* @param requestParameters
|
|
283
424
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
284
425
|
* @param reportProgress flag to report request and response progress.
|
|
285
426
|
*/
|
|
286
|
-
public httpAssetImageRotateClockwise(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Asset>;
|
|
287
427
|
public httpAssetImageRotateClockwise(
|
|
288
|
-
|
|
289
|
-
|
|
428
|
+
requestParameters?: HttpAssetImageRotateClockwiseRequestParams,
|
|
429
|
+
observe?: 'body',
|
|
430
|
+
reportProgress?: boolean,
|
|
431
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
432
|
+
): Observable<Asset>;
|
|
433
|
+
public httpAssetImageRotateClockwise(
|
|
434
|
+
requestParameters?: HttpAssetImageRotateClockwiseRequestParams,
|
|
290
435
|
observe?: 'response',
|
|
291
436
|
reportProgress?: boolean,
|
|
292
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
437
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
293
438
|
): Observable<HttpResponse<Asset>>;
|
|
294
439
|
public httpAssetImageRotateClockwise(
|
|
295
|
-
|
|
296
|
-
translations?: boolean,
|
|
440
|
+
requestParameters?: HttpAssetImageRotateClockwiseRequestParams,
|
|
297
441
|
observe?: 'events',
|
|
298
442
|
reportProgress?: boolean,
|
|
299
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
443
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
300
444
|
): Observable<HttpEvent<Asset>>;
|
|
301
445
|
public httpAssetImageRotateClockwise(
|
|
302
|
-
|
|
303
|
-
translations?: boolean,
|
|
446
|
+
requestParameters?: HttpAssetImageRotateClockwiseRequestParams,
|
|
304
447
|
observe: any = 'body',
|
|
305
448
|
reportProgress: boolean = false,
|
|
306
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
449
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
307
450
|
): Observable<any> {
|
|
451
|
+
const id = requestParameters?.id;
|
|
308
452
|
if (id === null || id === undefined) {
|
|
309
453
|
throw new Error('Required parameter id was null or undefined when calling httpAssetImageRotateClockwise.');
|
|
310
454
|
}
|
|
455
|
+
const translations = requestParameters?.translations;
|
|
456
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
311
457
|
|
|
312
|
-
let
|
|
458
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
313
459
|
if (translations !== undefined && translations !== null) {
|
|
314
|
-
|
|
460
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
315
461
|
}
|
|
316
462
|
|
|
317
|
-
let
|
|
463
|
+
let localVarHeaders = this.defaultHeaders;
|
|
464
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
465
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
466
|
+
}
|
|
318
467
|
|
|
319
|
-
let
|
|
468
|
+
let localVarCredential: string | undefined;
|
|
320
469
|
// authentication (msal_auth) required
|
|
321
|
-
|
|
322
|
-
if (
|
|
323
|
-
|
|
470
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
471
|
+
if (localVarCredential) {
|
|
472
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
324
473
|
}
|
|
325
474
|
|
|
326
|
-
let
|
|
327
|
-
if (
|
|
475
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
476
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
328
477
|
// to determine the Accept header
|
|
329
478
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
330
|
-
|
|
479
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
331
480
|
}
|
|
332
|
-
if (
|
|
333
|
-
|
|
481
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
482
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
334
483
|
}
|
|
335
484
|
|
|
336
|
-
let
|
|
337
|
-
if (
|
|
338
|
-
|
|
485
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
486
|
+
if (localVarHttpContext === undefined) {
|
|
487
|
+
localVarHttpContext = new HttpContext();
|
|
339
488
|
}
|
|
340
489
|
|
|
341
|
-
|
|
342
|
-
|
|
490
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
491
|
+
if (localVarTransferCache === undefined) {
|
|
492
|
+
localVarTransferCache = true;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
496
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
497
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
498
|
+
responseType_ = 'text';
|
|
499
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
500
|
+
responseType_ = 'json';
|
|
501
|
+
} else {
|
|
502
|
+
responseType_ = 'blob';
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/rotate`;
|
|
507
|
+
return this.httpClient.request<Asset>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
508
|
+
context: localVarHttpContext,
|
|
509
|
+
params: localVarQueryParameters,
|
|
343
510
|
responseType: <any>responseType_,
|
|
344
511
|
withCredentials: this.configuration.withCredentials,
|
|
345
|
-
headers:
|
|
512
|
+
headers: localVarHeaders,
|
|
346
513
|
observe: observe,
|
|
514
|
+
transferCache: localVarTransferCache,
|
|
347
515
|
reportProgress: reportProgress
|
|
348
516
|
});
|
|
349
517
|
}
|
|
350
518
|
|
|
351
519
|
/**
|
|
352
520
|
* This endpoint lets you resize/modify the image asset according to the given parameter(s).
|
|
353
|
-
* @param
|
|
521
|
+
* @param requestParameters
|
|
354
522
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
355
523
|
* @param reportProgress flag to report request and response progress.
|
|
356
524
|
*/
|
|
357
|
-
public httpAssetResize(
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
525
|
+
public httpAssetResize(
|
|
526
|
+
requestParameters?: HttpAssetResizeRequestParams,
|
|
527
|
+
observe?: 'body',
|
|
528
|
+
reportProgress?: boolean,
|
|
529
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
530
|
+
): Observable<Blob>;
|
|
531
|
+
public httpAssetResize(
|
|
532
|
+
requestParameters?: HttpAssetResizeRequestParams,
|
|
533
|
+
observe?: 'response',
|
|
534
|
+
reportProgress?: boolean,
|
|
535
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
536
|
+
): Observable<HttpResponse<Blob>>;
|
|
537
|
+
public httpAssetResize(
|
|
538
|
+
requestParameters?: HttpAssetResizeRequestParams,
|
|
539
|
+
observe?: 'events',
|
|
540
|
+
reportProgress?: boolean,
|
|
541
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
542
|
+
): Observable<HttpEvent<Blob>>;
|
|
543
|
+
public httpAssetResize(
|
|
544
|
+
requestParameters?: HttpAssetResizeRequestParams,
|
|
545
|
+
observe: any = 'body',
|
|
546
|
+
reportProgress: boolean = false,
|
|
547
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
548
|
+
): Observable<any> {
|
|
549
|
+
const id = requestParameters?.id;
|
|
361
550
|
if (id === null || id === undefined) {
|
|
362
551
|
throw new Error('Required parameter id was null or undefined when calling httpAssetResize.');
|
|
363
552
|
}
|
|
364
553
|
|
|
365
|
-
let
|
|
554
|
+
let localVarHeaders = this.defaultHeaders;
|
|
366
555
|
|
|
367
|
-
let
|
|
556
|
+
let localVarCredential: string | undefined;
|
|
368
557
|
// authentication (msal_auth) required
|
|
369
|
-
|
|
370
|
-
if (
|
|
371
|
-
|
|
558
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
559
|
+
if (localVarCredential) {
|
|
560
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
372
561
|
}
|
|
373
562
|
|
|
374
|
-
let
|
|
375
|
-
if (
|
|
563
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
564
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
376
565
|
// to determine the Accept header
|
|
377
566
|
const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
|
|
378
|
-
|
|
567
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
379
568
|
}
|
|
380
|
-
if (
|
|
381
|
-
|
|
569
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
570
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
574
|
+
if (localVarHttpContext === undefined) {
|
|
575
|
+
localVarHttpContext = new HttpContext();
|
|
382
576
|
}
|
|
383
577
|
|
|
384
|
-
|
|
578
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
579
|
+
if (localVarTransferCache === undefined) {
|
|
580
|
+
localVarTransferCache = true;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/resize`;
|
|
584
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
585
|
+
context: localVarHttpContext,
|
|
385
586
|
responseType: 'blob',
|
|
386
587
|
withCredentials: this.configuration.withCredentials,
|
|
387
|
-
headers:
|
|
588
|
+
headers: localVarHeaders,
|
|
388
589
|
observe: observe,
|
|
590
|
+
transferCache: localVarTransferCache,
|
|
389
591
|
reportProgress: reportProgress
|
|
390
592
|
});
|
|
391
593
|
}
|
|
392
594
|
|
|
393
595
|
/**
|
|
394
596
|
* This endpoint allows to move/assign from/to another collection with the given operation parameter.
|
|
395
|
-
* @param
|
|
396
|
-
* @param moveCollectionBody Contains information about this operation.
|
|
597
|
+
* @param requestParameters
|
|
397
598
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
398
599
|
* @param reportProgress flag to report request and response progress.
|
|
399
600
|
*/
|
|
400
|
-
public httpAssetToCollection(id: string, moveCollectionBody: MoveCollectionBody, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
|
|
401
601
|
public httpAssetToCollection(
|
|
402
|
-
|
|
403
|
-
|
|
602
|
+
requestParameters?: HttpAssetToCollectionRequestParams,
|
|
603
|
+
observe?: 'body',
|
|
604
|
+
reportProgress?: boolean,
|
|
605
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
606
|
+
): Observable<any>;
|
|
607
|
+
public httpAssetToCollection(
|
|
608
|
+
requestParameters?: HttpAssetToCollectionRequestParams,
|
|
404
609
|
observe?: 'response',
|
|
405
610
|
reportProgress?: boolean,
|
|
406
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
611
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
407
612
|
): Observable<HttpResponse<any>>;
|
|
408
613
|
public httpAssetToCollection(
|
|
409
|
-
|
|
410
|
-
moveCollectionBody: MoveCollectionBody,
|
|
614
|
+
requestParameters?: HttpAssetToCollectionRequestParams,
|
|
411
615
|
observe?: 'events',
|
|
412
616
|
reportProgress?: boolean,
|
|
413
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
617
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
414
618
|
): Observable<HttpEvent<any>>;
|
|
415
619
|
public httpAssetToCollection(
|
|
416
|
-
|
|
417
|
-
moveCollectionBody: MoveCollectionBody,
|
|
620
|
+
requestParameters?: HttpAssetToCollectionRequestParams,
|
|
418
621
|
observe: any = 'body',
|
|
419
622
|
reportProgress: boolean = false,
|
|
420
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
623
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
421
624
|
): Observable<any> {
|
|
625
|
+
const id = requestParameters?.id;
|
|
422
626
|
if (id === null || id === undefined) {
|
|
423
627
|
throw new Error('Required parameter id was null or undefined when calling httpAssetToCollection.');
|
|
424
628
|
}
|
|
629
|
+
const moveCollectionBody = requestParameters?.moveCollectionBody;
|
|
425
630
|
if (moveCollectionBody === null || moveCollectionBody === undefined) {
|
|
426
631
|
throw new Error('Required parameter moveCollectionBody was null or undefined when calling httpAssetToCollection.');
|
|
427
632
|
}
|
|
428
633
|
|
|
429
|
-
let
|
|
634
|
+
let localVarHeaders = this.defaultHeaders;
|
|
430
635
|
|
|
431
|
-
let
|
|
636
|
+
let localVarCredential: string | undefined;
|
|
432
637
|
// authentication (msal_auth) required
|
|
433
|
-
|
|
434
|
-
if (
|
|
435
|
-
|
|
638
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
639
|
+
if (localVarCredential) {
|
|
640
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
436
641
|
}
|
|
437
642
|
|
|
438
|
-
let
|
|
439
|
-
if (
|
|
643
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
644
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
440
645
|
// to determine the Accept header
|
|
441
646
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
442
|
-
|
|
647
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
648
|
+
}
|
|
649
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
650
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
443
651
|
}
|
|
444
|
-
|
|
445
|
-
|
|
652
|
+
|
|
653
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
654
|
+
if (localVarHttpContext === undefined) {
|
|
655
|
+
localVarHttpContext = new HttpContext();
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
659
|
+
if (localVarTransferCache === undefined) {
|
|
660
|
+
localVarTransferCache = true;
|
|
446
661
|
}
|
|
447
662
|
|
|
448
663
|
// to determine the Content-Type header
|
|
449
664
|
const consumes: string[] = ['application/json'];
|
|
450
665
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
451
666
|
if (httpContentTypeSelected !== undefined) {
|
|
452
|
-
|
|
667
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
453
668
|
}
|
|
454
669
|
|
|
455
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
456
|
-
if (
|
|
457
|
-
|
|
670
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
671
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
672
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
673
|
+
responseType_ = 'text';
|
|
674
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
675
|
+
responseType_ = 'json';
|
|
676
|
+
} else {
|
|
677
|
+
responseType_ = 'blob';
|
|
678
|
+
}
|
|
458
679
|
}
|
|
459
680
|
|
|
460
|
-
|
|
681
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/tocollection`;
|
|
682
|
+
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
683
|
+
context: localVarHttpContext,
|
|
684
|
+
body: moveCollectionBody,
|
|
461
685
|
responseType: <any>responseType_,
|
|
462
686
|
withCredentials: this.configuration.withCredentials,
|
|
463
|
-
headers:
|
|
687
|
+
headers: localVarHeaders,
|
|
464
688
|
observe: observe,
|
|
689
|
+
transferCache: localVarTransferCache,
|
|
465
690
|
reportProgress: reportProgress
|
|
466
691
|
});
|
|
467
692
|
}
|
|
468
693
|
|
|
469
694
|
/**
|
|
470
695
|
* This endpoint allows to move/assign multiple assets from/to another collection with the given operation parameter.
|
|
471
|
-
* @param
|
|
696
|
+
* @param requestParameters
|
|
472
697
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
473
698
|
* @param reportProgress flag to report request and response progress.
|
|
474
699
|
*/
|
|
475
|
-
public httpAssetsToCollection(assetsOperationBody: AssetsOperationBody, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
|
|
476
700
|
public httpAssetsToCollection(
|
|
477
|
-
|
|
701
|
+
requestParameters?: HttpAssetsToCollectionRequestParams,
|
|
702
|
+
observe?: 'body',
|
|
703
|
+
reportProgress?: boolean,
|
|
704
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
705
|
+
): Observable<any>;
|
|
706
|
+
public httpAssetsToCollection(
|
|
707
|
+
requestParameters?: HttpAssetsToCollectionRequestParams,
|
|
478
708
|
observe?: 'response',
|
|
479
709
|
reportProgress?: boolean,
|
|
480
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
710
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
481
711
|
): Observable<HttpResponse<any>>;
|
|
482
712
|
public httpAssetsToCollection(
|
|
483
|
-
|
|
713
|
+
requestParameters?: HttpAssetsToCollectionRequestParams,
|
|
484
714
|
observe?: 'events',
|
|
485
715
|
reportProgress?: boolean,
|
|
486
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
716
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
487
717
|
): Observable<HttpEvent<any>>;
|
|
488
718
|
public httpAssetsToCollection(
|
|
489
|
-
|
|
719
|
+
requestParameters?: HttpAssetsToCollectionRequestParams,
|
|
490
720
|
observe: any = 'body',
|
|
491
721
|
reportProgress: boolean = false,
|
|
492
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
722
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
493
723
|
): Observable<any> {
|
|
724
|
+
const assetsOperationBody = requestParameters?.assetsOperationBody;
|
|
494
725
|
if (assetsOperationBody === null || assetsOperationBody === undefined) {
|
|
495
726
|
throw new Error('Required parameter assetsOperationBody was null or undefined when calling httpAssetsToCollection.');
|
|
496
727
|
}
|
|
497
728
|
|
|
498
|
-
let
|
|
729
|
+
let localVarHeaders = this.defaultHeaders;
|
|
499
730
|
|
|
500
|
-
let
|
|
731
|
+
let localVarCredential: string | undefined;
|
|
501
732
|
// authentication (msal_auth) required
|
|
502
|
-
|
|
503
|
-
if (
|
|
504
|
-
|
|
733
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
734
|
+
if (localVarCredential) {
|
|
735
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
505
736
|
}
|
|
506
737
|
|
|
507
|
-
let
|
|
508
|
-
if (
|
|
738
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
739
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
509
740
|
// to determine the Accept header
|
|
510
741
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
511
|
-
|
|
742
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
512
743
|
}
|
|
513
|
-
if (
|
|
514
|
-
|
|
744
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
745
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
749
|
+
if (localVarHttpContext === undefined) {
|
|
750
|
+
localVarHttpContext = new HttpContext();
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
754
|
+
if (localVarTransferCache === undefined) {
|
|
755
|
+
localVarTransferCache = true;
|
|
515
756
|
}
|
|
516
757
|
|
|
517
758
|
// to determine the Content-Type header
|
|
518
759
|
const consumes: string[] = ['application/json'];
|
|
519
760
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
520
761
|
if (httpContentTypeSelected !== undefined) {
|
|
521
|
-
|
|
762
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
522
763
|
}
|
|
523
764
|
|
|
524
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
525
|
-
if (
|
|
526
|
-
|
|
765
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
766
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
767
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
768
|
+
responseType_ = 'text';
|
|
769
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
770
|
+
responseType_ = 'json';
|
|
771
|
+
} else {
|
|
772
|
+
responseType_ = 'blob';
|
|
773
|
+
}
|
|
527
774
|
}
|
|
528
775
|
|
|
529
|
-
|
|
776
|
+
let localVarPath = `/assetsoperations/tocollection`;
|
|
777
|
+
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
778
|
+
context: localVarHttpContext,
|
|
779
|
+
body: assetsOperationBody,
|
|
530
780
|
responseType: <any>responseType_,
|
|
531
781
|
withCredentials: this.configuration.withCredentials,
|
|
532
|
-
headers:
|
|
782
|
+
headers: localVarHeaders,
|
|
533
783
|
observe: observe,
|
|
784
|
+
transferCache: localVarTransferCache,
|
|
534
785
|
reportProgress: reportProgress
|
|
535
786
|
});
|
|
536
787
|
}
|
|
537
788
|
|
|
538
789
|
/**
|
|
539
790
|
* This endpoint deletes the alternative thumbnail blob of an asset and renews it
|
|
540
|
-
* @param
|
|
791
|
+
* @param requestParameters
|
|
541
792
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
542
793
|
* @param reportProgress flag to report request and response progress.
|
|
543
794
|
*/
|
|
544
|
-
public httpDeleteAlternativeThumb(
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
795
|
+
public httpDeleteAlternativeThumb(
|
|
796
|
+
requestParameters?: HttpDeleteAlternativeThumbRequestParams,
|
|
797
|
+
observe?: 'body',
|
|
798
|
+
reportProgress?: boolean,
|
|
799
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
800
|
+
): Observable<AgravityInfoResponse>;
|
|
801
|
+
public httpDeleteAlternativeThumb(
|
|
802
|
+
requestParameters?: HttpDeleteAlternativeThumbRequestParams,
|
|
803
|
+
observe?: 'response',
|
|
804
|
+
reportProgress?: boolean,
|
|
805
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
806
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
807
|
+
public httpDeleteAlternativeThumb(
|
|
808
|
+
requestParameters?: HttpDeleteAlternativeThumbRequestParams,
|
|
809
|
+
observe?: 'events',
|
|
810
|
+
reportProgress?: boolean,
|
|
811
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
812
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
813
|
+
public httpDeleteAlternativeThumb(
|
|
814
|
+
requestParameters?: HttpDeleteAlternativeThumbRequestParams,
|
|
815
|
+
observe: any = 'body',
|
|
816
|
+
reportProgress: boolean = false,
|
|
817
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
818
|
+
): Observable<any> {
|
|
819
|
+
const id = requestParameters?.id;
|
|
548
820
|
if (id === null || id === undefined) {
|
|
549
821
|
throw new Error('Required parameter id was null or undefined when calling httpDeleteAlternativeThumb.');
|
|
550
822
|
}
|
|
551
823
|
|
|
552
|
-
let
|
|
824
|
+
let localVarHeaders = this.defaultHeaders;
|
|
553
825
|
|
|
554
|
-
let
|
|
826
|
+
let localVarCredential: string | undefined;
|
|
555
827
|
// authentication (msal_auth) required
|
|
556
|
-
|
|
557
|
-
if (
|
|
558
|
-
|
|
828
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
829
|
+
if (localVarCredential) {
|
|
830
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
559
831
|
}
|
|
560
832
|
|
|
561
|
-
let
|
|
562
|
-
if (
|
|
833
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
834
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
563
835
|
// to determine the Accept header
|
|
564
836
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
565
|
-
|
|
837
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
566
838
|
}
|
|
567
|
-
if (
|
|
568
|
-
|
|
839
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
840
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
569
841
|
}
|
|
570
842
|
|
|
571
|
-
let
|
|
572
|
-
if (
|
|
573
|
-
|
|
843
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
844
|
+
if (localVarHttpContext === undefined) {
|
|
845
|
+
localVarHttpContext = new HttpContext();
|
|
574
846
|
}
|
|
575
847
|
|
|
576
|
-
|
|
848
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
849
|
+
if (localVarTransferCache === undefined) {
|
|
850
|
+
localVarTransferCache = true;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
854
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
855
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
856
|
+
responseType_ = 'text';
|
|
857
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
858
|
+
responseType_ = 'json';
|
|
859
|
+
} else {
|
|
860
|
+
responseType_ = 'blob';
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/alternative`;
|
|
865
|
+
return this.httpClient.request<AgravityInfoResponse>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
866
|
+
context: localVarHttpContext,
|
|
577
867
|
responseType: <any>responseType_,
|
|
578
868
|
withCredentials: this.configuration.withCredentials,
|
|
579
|
-
headers:
|
|
869
|
+
headers: localVarHeaders,
|
|
580
870
|
observe: observe,
|
|
871
|
+
transferCache: localVarTransferCache,
|
|
581
872
|
reportProgress: reportProgress
|
|
582
873
|
});
|
|
583
874
|
}
|
|
584
875
|
|
|
585
876
|
/**
|
|
586
877
|
* This endpoint deletes a specific blob from the asset (if exists)
|
|
587
|
-
* @param
|
|
588
|
-
* @param name The name of the container where this blob is.
|
|
878
|
+
* @param requestParameters
|
|
589
879
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
590
880
|
* @param reportProgress flag to report request and response progress.
|
|
591
881
|
*/
|
|
592
|
-
public httpDeleteSpecificBlob(id: string, name: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
|
|
593
882
|
public httpDeleteSpecificBlob(
|
|
594
|
-
|
|
595
|
-
|
|
883
|
+
requestParameters?: HttpDeleteSpecificBlobRequestParams,
|
|
884
|
+
observe?: 'body',
|
|
885
|
+
reportProgress?: boolean,
|
|
886
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
887
|
+
): Observable<AgravityInfoResponse>;
|
|
888
|
+
public httpDeleteSpecificBlob(
|
|
889
|
+
requestParameters?: HttpDeleteSpecificBlobRequestParams,
|
|
596
890
|
observe?: 'response',
|
|
597
891
|
reportProgress?: boolean,
|
|
598
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
892
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
599
893
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
600
894
|
public httpDeleteSpecificBlob(
|
|
601
|
-
|
|
602
|
-
name: string,
|
|
895
|
+
requestParameters?: HttpDeleteSpecificBlobRequestParams,
|
|
603
896
|
observe?: 'events',
|
|
604
897
|
reportProgress?: boolean,
|
|
605
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
898
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
606
899
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
607
|
-
public httpDeleteSpecificBlob(
|
|
900
|
+
public httpDeleteSpecificBlob(
|
|
901
|
+
requestParameters?: HttpDeleteSpecificBlobRequestParams,
|
|
902
|
+
observe: any = 'body',
|
|
903
|
+
reportProgress: boolean = false,
|
|
904
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
905
|
+
): Observable<any> {
|
|
906
|
+
const id = requestParameters?.id;
|
|
608
907
|
if (id === null || id === undefined) {
|
|
609
908
|
throw new Error('Required parameter id was null or undefined when calling httpDeleteSpecificBlob.');
|
|
610
909
|
}
|
|
910
|
+
const name = requestParameters?.name;
|
|
611
911
|
if (name === null || name === undefined) {
|
|
612
912
|
throw new Error('Required parameter name was null or undefined when calling httpDeleteSpecificBlob.');
|
|
613
913
|
}
|
|
614
914
|
|
|
615
|
-
let
|
|
915
|
+
let localVarHeaders = this.defaultHeaders;
|
|
616
916
|
|
|
617
|
-
let
|
|
917
|
+
let localVarCredential: string | undefined;
|
|
618
918
|
// authentication (msal_auth) required
|
|
619
|
-
|
|
620
|
-
if (
|
|
621
|
-
|
|
919
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
920
|
+
if (localVarCredential) {
|
|
921
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
622
922
|
}
|
|
623
923
|
|
|
624
|
-
let
|
|
625
|
-
if (
|
|
924
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
925
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
626
926
|
// to determine the Accept header
|
|
627
927
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
628
|
-
|
|
928
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
929
|
+
}
|
|
930
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
931
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
629
932
|
}
|
|
630
|
-
|
|
631
|
-
|
|
933
|
+
|
|
934
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
935
|
+
if (localVarHttpContext === undefined) {
|
|
936
|
+
localVarHttpContext = new HttpContext();
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
940
|
+
if (localVarTransferCache === undefined) {
|
|
941
|
+
localVarTransferCache = true;
|
|
632
942
|
}
|
|
633
943
|
|
|
634
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
635
|
-
if (
|
|
636
|
-
|
|
944
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
945
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
946
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
947
|
+
responseType_ = 'text';
|
|
948
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
949
|
+
responseType_ = 'json';
|
|
950
|
+
} else {
|
|
951
|
+
responseType_ = 'blob';
|
|
952
|
+
}
|
|
637
953
|
}
|
|
638
954
|
|
|
639
|
-
|
|
955
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/blobs/${this.configuration.encodeParam({ name: 'name', value: name, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
956
|
+
return this.httpClient.request<AgravityInfoResponse>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
957
|
+
context: localVarHttpContext,
|
|
640
958
|
responseType: <any>responseType_,
|
|
641
959
|
withCredentials: this.configuration.withCredentials,
|
|
642
|
-
headers:
|
|
960
|
+
headers: localVarHeaders,
|
|
643
961
|
observe: observe,
|
|
962
|
+
transferCache: localVarTransferCache,
|
|
644
963
|
reportProgress: reportProgress
|
|
645
964
|
});
|
|
646
965
|
}
|
|
647
966
|
|
|
648
967
|
/**
|
|
649
968
|
* This endpoint allows to check all assets in system elements with the given criteria are already in the system. Currently supported field: md5
|
|
650
|
-
* @param
|
|
969
|
+
* @param requestParameters
|
|
651
970
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
652
971
|
* @param reportProgress flag to report request and response progress.
|
|
653
972
|
*/
|
|
654
|
-
public httpGetAllAssetsCheckOnCriteria(
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
973
|
+
public httpGetAllAssetsCheckOnCriteria(
|
|
974
|
+
requestParameters?: HttpGetAllAssetsCheckOnCriteriaRequestParams,
|
|
975
|
+
observe?: 'body',
|
|
976
|
+
reportProgress?: boolean,
|
|
977
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
978
|
+
): Observable<Array<Asset>>;
|
|
979
|
+
public httpGetAllAssetsCheckOnCriteria(
|
|
980
|
+
requestParameters?: HttpGetAllAssetsCheckOnCriteriaRequestParams,
|
|
981
|
+
observe?: 'response',
|
|
982
|
+
reportProgress?: boolean,
|
|
983
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
984
|
+
): Observable<HttpResponse<Array<Asset>>>;
|
|
985
|
+
public httpGetAllAssetsCheckOnCriteria(
|
|
986
|
+
requestParameters?: HttpGetAllAssetsCheckOnCriteriaRequestParams,
|
|
987
|
+
observe?: 'events',
|
|
988
|
+
reportProgress?: boolean,
|
|
989
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
990
|
+
): Observable<HttpEvent<Array<Asset>>>;
|
|
991
|
+
public httpGetAllAssetsCheckOnCriteria(
|
|
992
|
+
requestParameters?: HttpGetAllAssetsCheckOnCriteriaRequestParams,
|
|
993
|
+
observe: any = 'body',
|
|
994
|
+
reportProgress: boolean = false,
|
|
995
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
996
|
+
): Observable<any> {
|
|
997
|
+
const md5 = requestParameters?.md5;
|
|
658
998
|
if (md5 === null || md5 === undefined) {
|
|
659
999
|
throw new Error('Required parameter md5 was null or undefined when calling httpGetAllAssetsCheckOnCriteria.');
|
|
660
1000
|
}
|
|
661
1001
|
|
|
662
|
-
let
|
|
1002
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
663
1003
|
if (md5 !== undefined && md5 !== null) {
|
|
664
|
-
|
|
1004
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>md5, 'md5');
|
|
665
1005
|
}
|
|
666
1006
|
|
|
667
|
-
let
|
|
1007
|
+
let localVarHeaders = this.defaultHeaders;
|
|
668
1008
|
|
|
669
|
-
let
|
|
1009
|
+
let localVarCredential: string | undefined;
|
|
670
1010
|
// authentication (msal_auth) required
|
|
671
|
-
|
|
672
|
-
if (
|
|
673
|
-
|
|
1011
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1012
|
+
if (localVarCredential) {
|
|
1013
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
674
1014
|
}
|
|
675
1015
|
|
|
676
|
-
let
|
|
677
|
-
if (
|
|
1016
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1017
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
678
1018
|
// to determine the Accept header
|
|
679
1019
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
680
|
-
|
|
1020
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1021
|
+
}
|
|
1022
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1023
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
681
1024
|
}
|
|
682
|
-
|
|
683
|
-
|
|
1025
|
+
|
|
1026
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1027
|
+
if (localVarHttpContext === undefined) {
|
|
1028
|
+
localVarHttpContext = new HttpContext();
|
|
684
1029
|
}
|
|
685
1030
|
|
|
686
|
-
let
|
|
687
|
-
if (
|
|
688
|
-
|
|
1031
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1032
|
+
if (localVarTransferCache === undefined) {
|
|
1033
|
+
localVarTransferCache = true;
|
|
689
1034
|
}
|
|
690
1035
|
|
|
691
|
-
|
|
692
|
-
|
|
1036
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1037
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1038
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1039
|
+
responseType_ = 'text';
|
|
1040
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1041
|
+
responseType_ = 'json';
|
|
1042
|
+
} else {
|
|
1043
|
+
responseType_ = 'blob';
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
let localVarPath = `/assetscheck`;
|
|
1048
|
+
return this.httpClient.request<Array<Asset>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1049
|
+
context: localVarHttpContext,
|
|
1050
|
+
params: localVarQueryParameters,
|
|
693
1051
|
responseType: <any>responseType_,
|
|
694
1052
|
withCredentials: this.configuration.withCredentials,
|
|
695
|
-
headers:
|
|
1053
|
+
headers: localVarHeaders,
|
|
696
1054
|
observe: observe,
|
|
1055
|
+
transferCache: localVarTransferCache,
|
|
697
1056
|
reportProgress: reportProgress
|
|
698
1057
|
});
|
|
699
1058
|
}
|
|
700
1059
|
|
|
701
1060
|
/**
|
|
702
1061
|
* This endpoint checks, if an asset exists and returns the url for the requested blob.
|
|
703
|
-
* @param
|
|
704
|
-
* @param c \"t\" for thumbnail (default); \"op\" for optimized; \"os\" for original size; \"o\" for original.
|
|
1062
|
+
* @param requestParameters
|
|
705
1063
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
706
1064
|
* @param reportProgress flag to report request and response progress.
|
|
707
1065
|
*/
|
|
708
|
-
public httpGetAssetBlob(
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
1066
|
+
public httpGetAssetBlob(
|
|
1067
|
+
requestParameters?: HttpGetAssetBlobRequestParams,
|
|
1068
|
+
observe?: 'body',
|
|
1069
|
+
reportProgress?: boolean,
|
|
1070
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1071
|
+
): Observable<AssetBlob>;
|
|
1072
|
+
public httpGetAssetBlob(
|
|
1073
|
+
requestParameters?: HttpGetAssetBlobRequestParams,
|
|
1074
|
+
observe?: 'response',
|
|
1075
|
+
reportProgress?: boolean,
|
|
1076
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1077
|
+
): Observable<HttpResponse<AssetBlob>>;
|
|
1078
|
+
public httpGetAssetBlob(
|
|
1079
|
+
requestParameters?: HttpGetAssetBlobRequestParams,
|
|
1080
|
+
observe?: 'events',
|
|
1081
|
+
reportProgress?: boolean,
|
|
1082
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1083
|
+
): Observable<HttpEvent<AssetBlob>>;
|
|
1084
|
+
public httpGetAssetBlob(
|
|
1085
|
+
requestParameters?: HttpGetAssetBlobRequestParams,
|
|
1086
|
+
observe: any = 'body',
|
|
1087
|
+
reportProgress: boolean = false,
|
|
1088
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1089
|
+
): Observable<any> {
|
|
1090
|
+
const id = requestParameters?.id;
|
|
712
1091
|
if (id === null || id === undefined) {
|
|
713
1092
|
throw new Error('Required parameter id was null or undefined when calling httpGetAssetBlob.');
|
|
714
1093
|
}
|
|
1094
|
+
const c = requestParameters?.c;
|
|
715
1095
|
|
|
716
|
-
let
|
|
1096
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
717
1097
|
if (c !== undefined && c !== null) {
|
|
718
|
-
|
|
1098
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
|
|
719
1099
|
}
|
|
720
1100
|
|
|
721
|
-
let
|
|
1101
|
+
let localVarHeaders = this.defaultHeaders;
|
|
722
1102
|
|
|
723
|
-
let
|
|
1103
|
+
let localVarCredential: string | undefined;
|
|
724
1104
|
// authentication (msal_auth) required
|
|
725
|
-
|
|
726
|
-
if (
|
|
727
|
-
|
|
1105
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1106
|
+
if (localVarCredential) {
|
|
1107
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
728
1108
|
}
|
|
729
1109
|
|
|
730
|
-
let
|
|
731
|
-
if (
|
|
1110
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1111
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
732
1112
|
// to determine the Accept header
|
|
733
1113
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
734
|
-
|
|
1114
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
735
1115
|
}
|
|
736
|
-
if (
|
|
737
|
-
|
|
1116
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1117
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
738
1118
|
}
|
|
739
1119
|
|
|
740
|
-
let
|
|
741
|
-
if (
|
|
742
|
-
|
|
1120
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1121
|
+
if (localVarHttpContext === undefined) {
|
|
1122
|
+
localVarHttpContext = new HttpContext();
|
|
743
1123
|
}
|
|
744
1124
|
|
|
745
|
-
|
|
746
|
-
|
|
1125
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1126
|
+
if (localVarTransferCache === undefined) {
|
|
1127
|
+
localVarTransferCache = true;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1131
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1132
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1133
|
+
responseType_ = 'text';
|
|
1134
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1135
|
+
responseType_ = 'json';
|
|
1136
|
+
} else {
|
|
1137
|
+
responseType_ = 'blob';
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/blobs`;
|
|
1142
|
+
return this.httpClient.request<AssetBlob>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1143
|
+
context: localVarHttpContext,
|
|
1144
|
+
params: localVarQueryParameters,
|
|
747
1145
|
responseType: <any>responseType_,
|
|
748
1146
|
withCredentials: this.configuration.withCredentials,
|
|
749
|
-
headers:
|
|
1147
|
+
headers: localVarHeaders,
|
|
750
1148
|
observe: observe,
|
|
1149
|
+
transferCache: localVarTransferCache,
|
|
751
1150
|
reportProgress: reportProgress
|
|
752
1151
|
});
|
|
753
1152
|
}
|
|
754
1153
|
|
|
755
1154
|
/**
|
|
756
1155
|
* This endpoint returns all collections of a specific asset.
|
|
757
|
-
* @param
|
|
758
|
-
* @param fields This limits the fields which are returned, separated by comma (\',\').
|
|
759
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
1156
|
+
* @param requestParameters
|
|
760
1157
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
761
1158
|
* @param reportProgress flag to report request and response progress.
|
|
762
1159
|
*/
|
|
763
1160
|
public httpGetAssetCollectionsById(
|
|
764
|
-
|
|
765
|
-
fields?: string,
|
|
766
|
-
translations?: boolean,
|
|
1161
|
+
requestParameters?: HttpGetAssetCollectionsByIdRequestParams,
|
|
767
1162
|
observe?: 'body',
|
|
768
1163
|
reportProgress?: boolean,
|
|
769
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1164
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
770
1165
|
): Observable<Array<Collection>>;
|
|
771
1166
|
public httpGetAssetCollectionsById(
|
|
772
|
-
|
|
773
|
-
fields?: string,
|
|
774
|
-
translations?: boolean,
|
|
1167
|
+
requestParameters?: HttpGetAssetCollectionsByIdRequestParams,
|
|
775
1168
|
observe?: 'response',
|
|
776
1169
|
reportProgress?: boolean,
|
|
777
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1170
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
778
1171
|
): Observable<HttpResponse<Array<Collection>>>;
|
|
779
1172
|
public httpGetAssetCollectionsById(
|
|
780
|
-
|
|
781
|
-
fields?: string,
|
|
782
|
-
translations?: boolean,
|
|
1173
|
+
requestParameters?: HttpGetAssetCollectionsByIdRequestParams,
|
|
783
1174
|
observe?: 'events',
|
|
784
1175
|
reportProgress?: boolean,
|
|
785
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1176
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
786
1177
|
): Observable<HttpEvent<Array<Collection>>>;
|
|
787
1178
|
public httpGetAssetCollectionsById(
|
|
788
|
-
|
|
789
|
-
fields?: string,
|
|
790
|
-
translations?: boolean,
|
|
1179
|
+
requestParameters?: HttpGetAssetCollectionsByIdRequestParams,
|
|
791
1180
|
observe: any = 'body',
|
|
792
1181
|
reportProgress: boolean = false,
|
|
793
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1182
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
794
1183
|
): Observable<any> {
|
|
1184
|
+
const id = requestParameters?.id;
|
|
795
1185
|
if (id === null || id === undefined) {
|
|
796
1186
|
throw new Error('Required parameter id was null or undefined when calling httpGetAssetCollectionsById.');
|
|
797
1187
|
}
|
|
1188
|
+
const fields = requestParameters?.fields;
|
|
1189
|
+
const translations = requestParameters?.translations;
|
|
1190
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
798
1191
|
|
|
799
|
-
let
|
|
1192
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
800
1193
|
if (fields !== undefined && fields !== null) {
|
|
801
|
-
|
|
1194
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
|
|
802
1195
|
}
|
|
803
1196
|
if (translations !== undefined && translations !== null) {
|
|
804
|
-
|
|
1197
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
805
1198
|
}
|
|
806
1199
|
|
|
807
|
-
let
|
|
1200
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1201
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
1202
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
1203
|
+
}
|
|
808
1204
|
|
|
809
|
-
let
|
|
1205
|
+
let localVarCredential: string | undefined;
|
|
810
1206
|
// authentication (msal_auth) required
|
|
811
|
-
|
|
812
|
-
if (
|
|
813
|
-
|
|
1207
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1208
|
+
if (localVarCredential) {
|
|
1209
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
814
1210
|
}
|
|
815
1211
|
|
|
816
|
-
let
|
|
817
|
-
if (
|
|
1212
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1213
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
818
1214
|
// to determine the Accept header
|
|
819
1215
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
820
|
-
|
|
1216
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1217
|
+
}
|
|
1218
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1219
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1223
|
+
if (localVarHttpContext === undefined) {
|
|
1224
|
+
localVarHttpContext = new HttpContext();
|
|
821
1225
|
}
|
|
822
|
-
|
|
823
|
-
|
|
1226
|
+
|
|
1227
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1228
|
+
if (localVarTransferCache === undefined) {
|
|
1229
|
+
localVarTransferCache = true;
|
|
824
1230
|
}
|
|
825
1231
|
|
|
826
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
827
|
-
if (
|
|
828
|
-
|
|
1232
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1233
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1234
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1235
|
+
responseType_ = 'text';
|
|
1236
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1237
|
+
responseType_ = 'json';
|
|
1238
|
+
} else {
|
|
1239
|
+
responseType_ = 'blob';
|
|
1240
|
+
}
|
|
829
1241
|
}
|
|
830
1242
|
|
|
831
|
-
|
|
832
|
-
|
|
1243
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/collections`;
|
|
1244
|
+
return this.httpClient.request<Array<Collection>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1245
|
+
context: localVarHttpContext,
|
|
1246
|
+
params: localVarQueryParameters,
|
|
833
1247
|
responseType: <any>responseType_,
|
|
834
1248
|
withCredentials: this.configuration.withCredentials,
|
|
835
|
-
headers:
|
|
1249
|
+
headers: localVarHeaders,
|
|
836
1250
|
observe: observe,
|
|
1251
|
+
transferCache: localVarTransferCache,
|
|
837
1252
|
reportProgress: reportProgress
|
|
838
1253
|
});
|
|
839
1254
|
}
|
|
840
1255
|
|
|
841
1256
|
/**
|
|
842
1257
|
* This endpoint is similar to GetAssetBlob but with ContentDistribution and filename to let browser download the content.
|
|
843
|
-
* @param
|
|
844
|
-
* @param c \"t\" for thumbnail (default); \"op\" for optimized; \"os\" for original size; \"o\" for original.
|
|
845
|
-
* @param f (optional) provide the id of any valid download format.
|
|
846
|
-
* @param portalId If the request comes from portal this is the indicator. It will be checked if the requested blob is valid for the portal.
|
|
1258
|
+
* @param requestParameters
|
|
847
1259
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
848
1260
|
* @param reportProgress flag to report request and response progress.
|
|
849
1261
|
*/
|
|
850
1262
|
public httpGetAssetDownload(
|
|
851
|
-
|
|
852
|
-
c?: string,
|
|
853
|
-
f?: string,
|
|
854
|
-
portalId?: string,
|
|
1263
|
+
requestParameters?: HttpGetAssetDownloadRequestParams,
|
|
855
1264
|
observe?: 'body',
|
|
856
1265
|
reportProgress?: boolean,
|
|
857
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1266
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
858
1267
|
): Observable<AssetBlob>;
|
|
859
1268
|
public httpGetAssetDownload(
|
|
860
|
-
|
|
861
|
-
c?: string,
|
|
862
|
-
f?: string,
|
|
863
|
-
portalId?: string,
|
|
1269
|
+
requestParameters?: HttpGetAssetDownloadRequestParams,
|
|
864
1270
|
observe?: 'response',
|
|
865
1271
|
reportProgress?: boolean,
|
|
866
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1272
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
867
1273
|
): Observable<HttpResponse<AssetBlob>>;
|
|
868
1274
|
public httpGetAssetDownload(
|
|
869
|
-
|
|
870
|
-
c?: string,
|
|
871
|
-
f?: string,
|
|
872
|
-
portalId?: string,
|
|
1275
|
+
requestParameters?: HttpGetAssetDownloadRequestParams,
|
|
873
1276
|
observe?: 'events',
|
|
874
1277
|
reportProgress?: boolean,
|
|
875
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1278
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
876
1279
|
): Observable<HttpEvent<AssetBlob>>;
|
|
877
1280
|
public httpGetAssetDownload(
|
|
878
|
-
|
|
879
|
-
c?: string,
|
|
880
|
-
f?: string,
|
|
881
|
-
portalId?: string,
|
|
1281
|
+
requestParameters?: HttpGetAssetDownloadRequestParams,
|
|
882
1282
|
observe: any = 'body',
|
|
883
1283
|
reportProgress: boolean = false,
|
|
884
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1284
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
885
1285
|
): Observable<any> {
|
|
1286
|
+
const id = requestParameters?.id;
|
|
886
1287
|
if (id === null || id === undefined) {
|
|
887
1288
|
throw new Error('Required parameter id was null or undefined when calling httpGetAssetDownload.');
|
|
888
1289
|
}
|
|
1290
|
+
const c = requestParameters?.c;
|
|
1291
|
+
const f = requestParameters?.f;
|
|
1292
|
+
const portalId = requestParameters?.portalId;
|
|
889
1293
|
|
|
890
|
-
let
|
|
1294
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
891
1295
|
if (c !== undefined && c !== null) {
|
|
892
|
-
|
|
1296
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
|
|
893
1297
|
}
|
|
894
1298
|
if (f !== undefined && f !== null) {
|
|
895
|
-
|
|
1299
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>f, 'f');
|
|
896
1300
|
}
|
|
897
1301
|
if (portalId !== undefined && portalId !== null) {
|
|
898
|
-
|
|
1302
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
899
1303
|
}
|
|
900
1304
|
|
|
901
|
-
let
|
|
1305
|
+
let localVarHeaders = this.defaultHeaders;
|
|
902
1306
|
|
|
903
|
-
let
|
|
1307
|
+
let localVarCredential: string | undefined;
|
|
904
1308
|
// authentication (msal_auth) required
|
|
905
|
-
|
|
906
|
-
if (
|
|
907
|
-
|
|
1309
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1310
|
+
if (localVarCredential) {
|
|
1311
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
908
1312
|
}
|
|
909
1313
|
|
|
910
|
-
let
|
|
911
|
-
if (
|
|
1314
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1315
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
912
1316
|
// to determine the Accept header
|
|
913
1317
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
914
|
-
|
|
1318
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1319
|
+
}
|
|
1320
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1321
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1325
|
+
if (localVarHttpContext === undefined) {
|
|
1326
|
+
localVarHttpContext = new HttpContext();
|
|
915
1327
|
}
|
|
916
|
-
|
|
917
|
-
|
|
1328
|
+
|
|
1329
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1330
|
+
if (localVarTransferCache === undefined) {
|
|
1331
|
+
localVarTransferCache = true;
|
|
918
1332
|
}
|
|
919
1333
|
|
|
920
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
921
|
-
if (
|
|
922
|
-
|
|
1334
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1335
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1336
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1337
|
+
responseType_ = 'text';
|
|
1338
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1339
|
+
responseType_ = 'json';
|
|
1340
|
+
} else {
|
|
1341
|
+
responseType_ = 'blob';
|
|
1342
|
+
}
|
|
923
1343
|
}
|
|
924
1344
|
|
|
925
|
-
|
|
926
|
-
|
|
1345
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/download`;
|
|
1346
|
+
return this.httpClient.request<AssetBlob>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1347
|
+
context: localVarHttpContext,
|
|
1348
|
+
params: localVarQueryParameters,
|
|
927
1349
|
responseType: <any>responseType_,
|
|
928
1350
|
withCredentials: this.configuration.withCredentials,
|
|
929
|
-
headers:
|
|
1351
|
+
headers: localVarHeaders,
|
|
930
1352
|
observe: observe,
|
|
1353
|
+
transferCache: localVarTransferCache,
|
|
931
1354
|
reportProgress: reportProgress
|
|
932
1355
|
});
|
|
933
1356
|
}
|
|
934
1357
|
|
|
935
1358
|
/**
|
|
936
1359
|
* This endpoint returns all technical metadata of an asset.
|
|
937
|
-
* @param
|
|
1360
|
+
* @param requestParameters
|
|
938
1361
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
939
1362
|
* @param reportProgress flag to report request and response progress.
|
|
940
1363
|
*/
|
|
941
|
-
public httpGetAssetTechDataById(
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
1364
|
+
public httpGetAssetTechDataById(
|
|
1365
|
+
requestParameters?: HttpGetAssetTechDataByIdRequestParams,
|
|
1366
|
+
observe?: 'body',
|
|
1367
|
+
reportProgress?: boolean,
|
|
1368
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1369
|
+
): Observable<Array<Metadata>>;
|
|
1370
|
+
public httpGetAssetTechDataById(
|
|
1371
|
+
requestParameters?: HttpGetAssetTechDataByIdRequestParams,
|
|
1372
|
+
observe?: 'response',
|
|
1373
|
+
reportProgress?: boolean,
|
|
1374
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1375
|
+
): Observable<HttpResponse<Array<Metadata>>>;
|
|
1376
|
+
public httpGetAssetTechDataById(
|
|
1377
|
+
requestParameters?: HttpGetAssetTechDataByIdRequestParams,
|
|
1378
|
+
observe?: 'events',
|
|
1379
|
+
reportProgress?: boolean,
|
|
1380
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1381
|
+
): Observable<HttpEvent<Array<Metadata>>>;
|
|
1382
|
+
public httpGetAssetTechDataById(
|
|
1383
|
+
requestParameters?: HttpGetAssetTechDataByIdRequestParams,
|
|
1384
|
+
observe: any = 'body',
|
|
1385
|
+
reportProgress: boolean = false,
|
|
1386
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1387
|
+
): Observable<any> {
|
|
1388
|
+
const id = requestParameters?.id;
|
|
945
1389
|
if (id === null || id === undefined) {
|
|
946
1390
|
throw new Error('Required parameter id was null or undefined when calling httpGetAssetTechDataById.');
|
|
947
1391
|
}
|
|
948
1392
|
|
|
949
|
-
let
|
|
1393
|
+
let localVarHeaders = this.defaultHeaders;
|
|
950
1394
|
|
|
951
|
-
let
|
|
1395
|
+
let localVarCredential: string | undefined;
|
|
952
1396
|
// authentication (msal_auth) required
|
|
953
|
-
|
|
954
|
-
if (
|
|
955
|
-
|
|
1397
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1398
|
+
if (localVarCredential) {
|
|
1399
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
956
1400
|
}
|
|
957
1401
|
|
|
958
|
-
let
|
|
959
|
-
if (
|
|
1402
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1403
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
960
1404
|
// to determine the Accept header
|
|
961
1405
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
962
|
-
|
|
1406
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1407
|
+
}
|
|
1408
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1409
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1413
|
+
if (localVarHttpContext === undefined) {
|
|
1414
|
+
localVarHttpContext = new HttpContext();
|
|
963
1415
|
}
|
|
964
|
-
|
|
965
|
-
|
|
1416
|
+
|
|
1417
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1418
|
+
if (localVarTransferCache === undefined) {
|
|
1419
|
+
localVarTransferCache = true;
|
|
966
1420
|
}
|
|
967
1421
|
|
|
968
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
969
|
-
if (
|
|
970
|
-
|
|
1422
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1423
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1424
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1425
|
+
responseType_ = 'text';
|
|
1426
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1427
|
+
responseType_ = 'json';
|
|
1428
|
+
} else {
|
|
1429
|
+
responseType_ = 'blob';
|
|
1430
|
+
}
|
|
971
1431
|
}
|
|
972
1432
|
|
|
973
|
-
|
|
1433
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/techdata`;
|
|
1434
|
+
return this.httpClient.request<Array<Metadata>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1435
|
+
context: localVarHttpContext,
|
|
974
1436
|
responseType: <any>responseType_,
|
|
975
1437
|
withCredentials: this.configuration.withCredentials,
|
|
976
|
-
headers:
|
|
1438
|
+
headers: localVarHeaders,
|
|
977
1439
|
observe: observe,
|
|
1440
|
+
transferCache: localVarTransferCache,
|
|
978
1441
|
reportProgress: reportProgress
|
|
979
1442
|
});
|
|
980
1443
|
}
|
|
981
1444
|
|
|
982
1445
|
/**
|
|
983
1446
|
* This endpoint returns all textual content of an asset (i.e. text of PDF)
|
|
984
|
-
* @param
|
|
1447
|
+
* @param requestParameters
|
|
985
1448
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
986
1449
|
* @param reportProgress flag to report request and response progress.
|
|
987
1450
|
*/
|
|
988
|
-
public httpGetAssetTextContentById(
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
1451
|
+
public httpGetAssetTextContentById(
|
|
1452
|
+
requestParameters?: HttpGetAssetTextContentByIdRequestParams,
|
|
1453
|
+
observe?: 'body',
|
|
1454
|
+
reportProgress?: boolean,
|
|
1455
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1456
|
+
): Observable<AssetTextContent>;
|
|
1457
|
+
public httpGetAssetTextContentById(
|
|
1458
|
+
requestParameters?: HttpGetAssetTextContentByIdRequestParams,
|
|
1459
|
+
observe?: 'response',
|
|
1460
|
+
reportProgress?: boolean,
|
|
1461
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1462
|
+
): Observable<HttpResponse<AssetTextContent>>;
|
|
1463
|
+
public httpGetAssetTextContentById(
|
|
1464
|
+
requestParameters?: HttpGetAssetTextContentByIdRequestParams,
|
|
1465
|
+
observe?: 'events',
|
|
1466
|
+
reportProgress?: boolean,
|
|
1467
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1468
|
+
): Observable<HttpEvent<AssetTextContent>>;
|
|
1469
|
+
public httpGetAssetTextContentById(
|
|
1470
|
+
requestParameters?: HttpGetAssetTextContentByIdRequestParams,
|
|
1471
|
+
observe: any = 'body',
|
|
1472
|
+
reportProgress: boolean = false,
|
|
1473
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1474
|
+
): Observable<any> {
|
|
1475
|
+
const id = requestParameters?.id;
|
|
992
1476
|
if (id === null || id === undefined) {
|
|
993
1477
|
throw new Error('Required parameter id was null or undefined when calling httpGetAssetTextContentById.');
|
|
994
1478
|
}
|
|
995
1479
|
|
|
996
|
-
let
|
|
1480
|
+
let localVarHeaders = this.defaultHeaders;
|
|
997
1481
|
|
|
998
|
-
let
|
|
1482
|
+
let localVarCredential: string | undefined;
|
|
999
1483
|
// authentication (msal_auth) required
|
|
1000
|
-
|
|
1001
|
-
if (
|
|
1002
|
-
|
|
1484
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1485
|
+
if (localVarCredential) {
|
|
1486
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
1003
1487
|
}
|
|
1004
1488
|
|
|
1005
|
-
let
|
|
1006
|
-
if (
|
|
1489
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1490
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1007
1491
|
// to determine the Accept header
|
|
1008
1492
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
1009
|
-
|
|
1493
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1494
|
+
}
|
|
1495
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1496
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1010
1497
|
}
|
|
1011
|
-
|
|
1012
|
-
|
|
1498
|
+
|
|
1499
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1500
|
+
if (localVarHttpContext === undefined) {
|
|
1501
|
+
localVarHttpContext = new HttpContext();
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1505
|
+
if (localVarTransferCache === undefined) {
|
|
1506
|
+
localVarTransferCache = true;
|
|
1013
1507
|
}
|
|
1014
1508
|
|
|
1015
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
1016
|
-
if (
|
|
1017
|
-
|
|
1509
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1510
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1511
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1512
|
+
responseType_ = 'text';
|
|
1513
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1514
|
+
responseType_ = 'json';
|
|
1515
|
+
} else {
|
|
1516
|
+
responseType_ = 'blob';
|
|
1517
|
+
}
|
|
1018
1518
|
}
|
|
1019
1519
|
|
|
1020
|
-
|
|
1520
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/textcontent`;
|
|
1521
|
+
return this.httpClient.request<AssetTextContent>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1522
|
+
context: localVarHttpContext,
|
|
1021
1523
|
responseType: <any>responseType_,
|
|
1022
1524
|
withCredentials: this.configuration.withCredentials,
|
|
1023
|
-
headers:
|
|
1525
|
+
headers: localVarHeaders,
|
|
1024
1526
|
observe: observe,
|
|
1527
|
+
transferCache: localVarTransferCache,
|
|
1025
1528
|
reportProgress: reportProgress
|
|
1026
1529
|
});
|
|
1027
1530
|
}
|
|
1028
1531
|
|
|
1029
1532
|
/**
|
|
1030
1533
|
* This endpoint lets you use the entire api of Imagemagick to edit the image.
|
|
1031
|
-
* @param
|
|
1032
|
-
* @param dynamicImageOperation Operations to be performed on the image directly mapped to c# imagemagick sdk
|
|
1534
|
+
* @param requestParameters
|
|
1033
1535
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
1034
1536
|
* @param reportProgress flag to report request and response progress.
|
|
1035
1537
|
*/
|
|
1036
1538
|
public httpImageDynamicEdit(
|
|
1037
|
-
|
|
1038
|
-
dynamicImageOperation: Array<DynamicImageOperation>,
|
|
1539
|
+
requestParameters?: HttpImageDynamicEditRequestParams,
|
|
1039
1540
|
observe?: 'body',
|
|
1040
1541
|
reportProgress?: boolean,
|
|
1041
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
1542
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1042
1543
|
): Observable<Blob>;
|
|
1043
1544
|
public httpImageDynamicEdit(
|
|
1044
|
-
|
|
1045
|
-
dynamicImageOperation: Array<DynamicImageOperation>,
|
|
1545
|
+
requestParameters?: HttpImageDynamicEditRequestParams,
|
|
1046
1546
|
observe?: 'response',
|
|
1047
1547
|
reportProgress?: boolean,
|
|
1048
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
1548
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1049
1549
|
): Observable<HttpResponse<Blob>>;
|
|
1050
1550
|
public httpImageDynamicEdit(
|
|
1051
|
-
|
|
1052
|
-
dynamicImageOperation: Array<DynamicImageOperation>,
|
|
1551
|
+
requestParameters?: HttpImageDynamicEditRequestParams,
|
|
1053
1552
|
observe?: 'events',
|
|
1054
1553
|
reportProgress?: boolean,
|
|
1055
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
1554
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1056
1555
|
): Observable<HttpEvent<Blob>>;
|
|
1057
1556
|
public httpImageDynamicEdit(
|
|
1058
|
-
|
|
1059
|
-
dynamicImageOperation: Array<DynamicImageOperation>,
|
|
1557
|
+
requestParameters?: HttpImageDynamicEditRequestParams,
|
|
1060
1558
|
observe: any = 'body',
|
|
1061
1559
|
reportProgress: boolean = false,
|
|
1062
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
1560
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1063
1561
|
): Observable<any> {
|
|
1562
|
+
const id = requestParameters?.id;
|
|
1064
1563
|
if (id === null || id === undefined) {
|
|
1065
1564
|
throw new Error('Required parameter id was null or undefined when calling httpImageDynamicEdit.');
|
|
1066
1565
|
}
|
|
1566
|
+
const dynamicImageOperation = requestParameters?.dynamicImageOperation;
|
|
1067
1567
|
if (dynamicImageOperation === null || dynamicImageOperation === undefined) {
|
|
1068
1568
|
throw new Error('Required parameter dynamicImageOperation was null or undefined when calling httpImageDynamicEdit.');
|
|
1069
1569
|
}
|
|
1070
1570
|
|
|
1071
|
-
let
|
|
1571
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1072
1572
|
|
|
1073
|
-
let
|
|
1573
|
+
let localVarCredential: string | undefined;
|
|
1074
1574
|
// authentication (msal_auth) required
|
|
1075
|
-
|
|
1076
|
-
if (
|
|
1077
|
-
|
|
1575
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1576
|
+
if (localVarCredential) {
|
|
1577
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
1078
1578
|
}
|
|
1079
1579
|
|
|
1080
|
-
let
|
|
1081
|
-
if (
|
|
1580
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1581
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1082
1582
|
// to determine the Accept header
|
|
1083
1583
|
const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
|
|
1084
|
-
|
|
1584
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1085
1585
|
}
|
|
1086
|
-
if (
|
|
1087
|
-
|
|
1586
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1587
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1591
|
+
if (localVarHttpContext === undefined) {
|
|
1592
|
+
localVarHttpContext = new HttpContext();
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1596
|
+
if (localVarTransferCache === undefined) {
|
|
1597
|
+
localVarTransferCache = true;
|
|
1088
1598
|
}
|
|
1089
1599
|
|
|
1090
1600
|
// to determine the Content-Type header
|
|
1091
1601
|
const consumes: string[] = ['application/json'];
|
|
1092
1602
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
1093
1603
|
if (httpContentTypeSelected !== undefined) {
|
|
1094
|
-
|
|
1604
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1095
1605
|
}
|
|
1096
1606
|
|
|
1097
|
-
|
|
1607
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/imageedit`;
|
|
1608
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1609
|
+
context: localVarHttpContext,
|
|
1610
|
+
body: dynamicImageOperation,
|
|
1098
1611
|
responseType: 'blob',
|
|
1099
1612
|
withCredentials: this.configuration.withCredentials,
|
|
1100
|
-
headers:
|
|
1613
|
+
headers: localVarHeaders,
|
|
1101
1614
|
observe: observe,
|
|
1615
|
+
transferCache: localVarTransferCache,
|
|
1102
1616
|
reportProgress: reportProgress
|
|
1103
1617
|
});
|
|
1104
1618
|
}
|
|
1105
1619
|
|
|
1106
1620
|
/**
|
|
1107
1621
|
* This endpoint returns an image with the requested download format applied.
|
|
1108
|
-
* @param
|
|
1109
|
-
* @param downloadFormatId The ID of the download format.
|
|
1622
|
+
* @param requestParameters
|
|
1110
1623
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
1111
1624
|
* @param reportProgress flag to report request and response progress.
|
|
1112
1625
|
*/
|
|
1113
1626
|
public httpImageDynamicGetFromDownloadId(
|
|
1114
|
-
|
|
1115
|
-
downloadFormatId: string,
|
|
1627
|
+
requestParameters?: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
1116
1628
|
observe?: 'body',
|
|
1117
1629
|
reportProgress?: boolean,
|
|
1118
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
1630
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1119
1631
|
): Observable<Blob>;
|
|
1120
1632
|
public httpImageDynamicGetFromDownloadId(
|
|
1121
|
-
|
|
1122
|
-
downloadFormatId: string,
|
|
1633
|
+
requestParameters?: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
1123
1634
|
observe?: 'response',
|
|
1124
1635
|
reportProgress?: boolean,
|
|
1125
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
1636
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1126
1637
|
): Observable<HttpResponse<Blob>>;
|
|
1127
1638
|
public httpImageDynamicGetFromDownloadId(
|
|
1128
|
-
|
|
1129
|
-
downloadFormatId: string,
|
|
1639
|
+
requestParameters?: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
1130
1640
|
observe?: 'events',
|
|
1131
1641
|
reportProgress?: boolean,
|
|
1132
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
1642
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1133
1643
|
): Observable<HttpEvent<Blob>>;
|
|
1134
1644
|
public httpImageDynamicGetFromDownloadId(
|
|
1135
|
-
|
|
1136
|
-
downloadFormatId: string,
|
|
1645
|
+
requestParameters?: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
1137
1646
|
observe: any = 'body',
|
|
1138
1647
|
reportProgress: boolean = false,
|
|
1139
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
1648
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1140
1649
|
): Observable<any> {
|
|
1650
|
+
const id = requestParameters?.id;
|
|
1141
1651
|
if (id === null || id === undefined) {
|
|
1142
1652
|
throw new Error('Required parameter id was null or undefined when calling httpImageDynamicGetFromDownloadId.');
|
|
1143
1653
|
}
|
|
1654
|
+
const downloadFormatId = requestParameters?.downloadFormatId;
|
|
1144
1655
|
if (downloadFormatId === null || downloadFormatId === undefined) {
|
|
1145
1656
|
throw new Error('Required parameter downloadFormatId was null or undefined when calling httpImageDynamicGetFromDownloadId.');
|
|
1146
1657
|
}
|
|
1147
1658
|
|
|
1148
|
-
let
|
|
1659
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1149
1660
|
|
|
1150
|
-
let
|
|
1661
|
+
let localVarCredential: string | undefined;
|
|
1151
1662
|
// authentication (msal_auth) required
|
|
1152
|
-
|
|
1153
|
-
if (
|
|
1154
|
-
|
|
1663
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1664
|
+
if (localVarCredential) {
|
|
1665
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
1155
1666
|
}
|
|
1156
1667
|
|
|
1157
|
-
let
|
|
1158
|
-
if (
|
|
1668
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1669
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1159
1670
|
// to determine the Accept header
|
|
1160
1671
|
const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
|
|
1161
|
-
|
|
1672
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1673
|
+
}
|
|
1674
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1675
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1162
1676
|
}
|
|
1163
|
-
|
|
1164
|
-
|
|
1677
|
+
|
|
1678
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1679
|
+
if (localVarHttpContext === undefined) {
|
|
1680
|
+
localVarHttpContext = new HttpContext();
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1684
|
+
if (localVarTransferCache === undefined) {
|
|
1685
|
+
localVarTransferCache = true;
|
|
1165
1686
|
}
|
|
1166
1687
|
|
|
1167
|
-
|
|
1688
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/imageedit/${this.configuration.encodeParam({ name: 'downloadFormatId', value: downloadFormatId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
1689
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1690
|
+
context: localVarHttpContext,
|
|
1168
1691
|
responseType: 'blob',
|
|
1169
1692
|
withCredentials: this.configuration.withCredentials,
|
|
1170
|
-
headers:
|
|
1693
|
+
headers: localVarHeaders,
|
|
1171
1694
|
observe: observe,
|
|
1695
|
+
transferCache: localVarTransferCache,
|
|
1172
1696
|
reportProgress: reportProgress
|
|
1173
1697
|
});
|
|
1174
1698
|
}
|
|
1175
1699
|
|
|
1176
1700
|
/**
|
|
1177
1701
|
* This endpoint purges all published assets of this asset when CDN is enabled
|
|
1178
|
-
* @param
|
|
1702
|
+
* @param requestParameters
|
|
1179
1703
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
1180
1704
|
* @param reportProgress flag to report request and response progress.
|
|
1181
1705
|
*/
|
|
1182
|
-
public httpPatchAssetPurgeCdn(
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1706
|
+
public httpPatchAssetPurgeCdn(
|
|
1707
|
+
requestParameters?: HttpPatchAssetPurgeCdnRequestParams,
|
|
1708
|
+
observe?: 'body',
|
|
1709
|
+
reportProgress?: boolean,
|
|
1710
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1711
|
+
): Observable<AgravityInfoResponse>;
|
|
1712
|
+
public httpPatchAssetPurgeCdn(
|
|
1713
|
+
requestParameters?: HttpPatchAssetPurgeCdnRequestParams,
|
|
1714
|
+
observe?: 'response',
|
|
1715
|
+
reportProgress?: boolean,
|
|
1716
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1717
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
1718
|
+
public httpPatchAssetPurgeCdn(
|
|
1719
|
+
requestParameters?: HttpPatchAssetPurgeCdnRequestParams,
|
|
1720
|
+
observe?: 'events',
|
|
1721
|
+
reportProgress?: boolean,
|
|
1722
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1723
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
1724
|
+
public httpPatchAssetPurgeCdn(
|
|
1725
|
+
requestParameters?: HttpPatchAssetPurgeCdnRequestParams,
|
|
1726
|
+
observe: any = 'body',
|
|
1727
|
+
reportProgress: boolean = false,
|
|
1728
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1729
|
+
): Observable<any> {
|
|
1730
|
+
const id = requestParameters?.id;
|
|
1186
1731
|
if (id === null || id === undefined) {
|
|
1187
1732
|
throw new Error('Required parameter id was null or undefined when calling httpPatchAssetPurgeCdn.');
|
|
1188
1733
|
}
|
|
1189
1734
|
|
|
1190
|
-
let
|
|
1735
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1191
1736
|
|
|
1192
|
-
let
|
|
1737
|
+
let localVarCredential: string | undefined;
|
|
1193
1738
|
// authentication (msal_auth) required
|
|
1194
|
-
|
|
1195
|
-
if (
|
|
1196
|
-
|
|
1739
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1740
|
+
if (localVarCredential) {
|
|
1741
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
1197
1742
|
}
|
|
1198
1743
|
|
|
1199
|
-
let
|
|
1200
|
-
if (
|
|
1744
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1745
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1201
1746
|
// to determine the Accept header
|
|
1202
1747
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
1203
|
-
|
|
1748
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1749
|
+
}
|
|
1750
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1751
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1204
1752
|
}
|
|
1205
|
-
|
|
1206
|
-
|
|
1753
|
+
|
|
1754
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1755
|
+
if (localVarHttpContext === undefined) {
|
|
1756
|
+
localVarHttpContext = new HttpContext();
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1760
|
+
if (localVarTransferCache === undefined) {
|
|
1761
|
+
localVarTransferCache = true;
|
|
1207
1762
|
}
|
|
1208
1763
|
|
|
1209
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
1210
|
-
if (
|
|
1211
|
-
|
|
1764
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1765
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1766
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1767
|
+
responseType_ = 'text';
|
|
1768
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1769
|
+
responseType_ = 'json';
|
|
1770
|
+
} else {
|
|
1771
|
+
responseType_ = 'blob';
|
|
1772
|
+
}
|
|
1212
1773
|
}
|
|
1213
1774
|
|
|
1214
|
-
|
|
1775
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/purgecdn`;
|
|
1776
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
1777
|
+
context: localVarHttpContext,
|
|
1215
1778
|
responseType: <any>responseType_,
|
|
1216
1779
|
withCredentials: this.configuration.withCredentials,
|
|
1217
|
-
headers:
|
|
1780
|
+
headers: localVarHeaders,
|
|
1218
1781
|
observe: observe,
|
|
1782
|
+
transferCache: localVarTransferCache,
|
|
1219
1783
|
reportProgress: reportProgress
|
|
1220
1784
|
});
|
|
1221
1785
|
}
|
|
1222
1786
|
|
|
1223
1787
|
/**
|
|
1224
1788
|
* This endpoint marks a asset as \"dirty\" (starts a queue to do that) - to trigger search index to re-index the asset
|
|
1225
|
-
* @param
|
|
1789
|
+
* @param requestParameters
|
|
1226
1790
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
1227
1791
|
* @param reportProgress flag to report request and response progress.
|
|
1228
1792
|
*/
|
|
1229
|
-
public httpPatchAssetReindex(
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1793
|
+
public httpPatchAssetReindex(
|
|
1794
|
+
requestParameters?: HttpPatchAssetReindexRequestParams,
|
|
1795
|
+
observe?: 'body',
|
|
1796
|
+
reportProgress?: boolean,
|
|
1797
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1798
|
+
): Observable<AgravityInfoResponse>;
|
|
1799
|
+
public httpPatchAssetReindex(
|
|
1800
|
+
requestParameters?: HttpPatchAssetReindexRequestParams,
|
|
1801
|
+
observe?: 'response',
|
|
1802
|
+
reportProgress?: boolean,
|
|
1803
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1804
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
1805
|
+
public httpPatchAssetReindex(
|
|
1806
|
+
requestParameters?: HttpPatchAssetReindexRequestParams,
|
|
1807
|
+
observe?: 'events',
|
|
1808
|
+
reportProgress?: boolean,
|
|
1809
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1810
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
1811
|
+
public httpPatchAssetReindex(
|
|
1812
|
+
requestParameters?: HttpPatchAssetReindexRequestParams,
|
|
1813
|
+
observe: any = 'body',
|
|
1814
|
+
reportProgress: boolean = false,
|
|
1815
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1816
|
+
): Observable<any> {
|
|
1817
|
+
const id = requestParameters?.id;
|
|
1233
1818
|
if (id === null || id === undefined) {
|
|
1234
1819
|
throw new Error('Required parameter id was null or undefined when calling httpPatchAssetReindex.');
|
|
1235
1820
|
}
|
|
1236
1821
|
|
|
1237
|
-
let
|
|
1822
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1238
1823
|
|
|
1239
|
-
let
|
|
1824
|
+
let localVarCredential: string | undefined;
|
|
1240
1825
|
// authentication (msal_auth) required
|
|
1241
|
-
|
|
1242
|
-
if (
|
|
1243
|
-
|
|
1826
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1827
|
+
if (localVarCredential) {
|
|
1828
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
1244
1829
|
}
|
|
1245
1830
|
|
|
1246
|
-
let
|
|
1247
|
-
if (
|
|
1831
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1832
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1248
1833
|
// to determine the Accept header
|
|
1249
1834
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
1250
|
-
|
|
1835
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1836
|
+
}
|
|
1837
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1838
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1842
|
+
if (localVarHttpContext === undefined) {
|
|
1843
|
+
localVarHttpContext = new HttpContext();
|
|
1251
1844
|
}
|
|
1252
|
-
|
|
1253
|
-
|
|
1845
|
+
|
|
1846
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1847
|
+
if (localVarTransferCache === undefined) {
|
|
1848
|
+
localVarTransferCache = true;
|
|
1254
1849
|
}
|
|
1255
1850
|
|
|
1256
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
1257
|
-
if (
|
|
1258
|
-
|
|
1851
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1852
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1853
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1854
|
+
responseType_ = 'text';
|
|
1855
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1856
|
+
responseType_ = 'json';
|
|
1857
|
+
} else {
|
|
1858
|
+
responseType_ = 'blob';
|
|
1859
|
+
}
|
|
1259
1860
|
}
|
|
1260
1861
|
|
|
1261
|
-
|
|
1862
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/reindex`;
|
|
1863
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
1864
|
+
context: localVarHttpContext,
|
|
1262
1865
|
responseType: <any>responseType_,
|
|
1263
1866
|
withCredentials: this.configuration.withCredentials,
|
|
1264
|
-
headers:
|
|
1867
|
+
headers: localVarHeaders,
|
|
1265
1868
|
observe: observe,
|
|
1869
|
+
transferCache: localVarTransferCache,
|
|
1266
1870
|
reportProgress: reportProgress
|
|
1267
1871
|
});
|
|
1268
1872
|
}
|
|
1269
1873
|
|
|
1270
1874
|
/**
|
|
1271
1875
|
* 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, ...
|
|
1272
|
-
* @param
|
|
1876
|
+
* @param requestParameters
|
|
1273
1877
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
1274
1878
|
* @param reportProgress flag to report request and response progress.
|
|
1275
1879
|
*/
|
|
1276
|
-
public httpPatchAssetRenew(
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1880
|
+
public httpPatchAssetRenew(
|
|
1881
|
+
requestParameters?: HttpPatchAssetRenewRequestParams,
|
|
1882
|
+
observe?: 'body',
|
|
1883
|
+
reportProgress?: boolean,
|
|
1884
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1885
|
+
): Observable<AgravityInfoResponse>;
|
|
1886
|
+
public httpPatchAssetRenew(
|
|
1887
|
+
requestParameters?: HttpPatchAssetRenewRequestParams,
|
|
1888
|
+
observe?: 'response',
|
|
1889
|
+
reportProgress?: boolean,
|
|
1890
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1891
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
1892
|
+
public httpPatchAssetRenew(
|
|
1893
|
+
requestParameters?: HttpPatchAssetRenewRequestParams,
|
|
1894
|
+
observe?: 'events',
|
|
1895
|
+
reportProgress?: boolean,
|
|
1896
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1897
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
1898
|
+
public httpPatchAssetRenew(
|
|
1899
|
+
requestParameters?: HttpPatchAssetRenewRequestParams,
|
|
1900
|
+
observe: any = 'body',
|
|
1901
|
+
reportProgress: boolean = false,
|
|
1902
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1903
|
+
): Observable<any> {
|
|
1904
|
+
const id = requestParameters?.id;
|
|
1280
1905
|
if (id === null || id === undefined) {
|
|
1281
1906
|
throw new Error('Required parameter id was null or undefined when calling httpPatchAssetRenew.');
|
|
1282
1907
|
}
|
|
1283
1908
|
|
|
1284
|
-
let
|
|
1909
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1285
1910
|
|
|
1286
|
-
let
|
|
1911
|
+
let localVarCredential: string | undefined;
|
|
1287
1912
|
// authentication (msal_auth) required
|
|
1288
|
-
|
|
1289
|
-
if (
|
|
1290
|
-
|
|
1913
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1914
|
+
if (localVarCredential) {
|
|
1915
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
1291
1916
|
}
|
|
1292
1917
|
|
|
1293
|
-
let
|
|
1294
|
-
if (
|
|
1918
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1919
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1295
1920
|
// to determine the Accept header
|
|
1296
1921
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
1297
|
-
|
|
1922
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1298
1923
|
}
|
|
1299
|
-
if (
|
|
1300
|
-
|
|
1924
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1925
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1301
1926
|
}
|
|
1302
1927
|
|
|
1303
|
-
let
|
|
1304
|
-
if (
|
|
1305
|
-
|
|
1928
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1929
|
+
if (localVarHttpContext === undefined) {
|
|
1930
|
+
localVarHttpContext = new HttpContext();
|
|
1306
1931
|
}
|
|
1307
1932
|
|
|
1308
|
-
|
|
1933
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1934
|
+
if (localVarTransferCache === undefined) {
|
|
1935
|
+
localVarTransferCache = true;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1939
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1940
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1941
|
+
responseType_ = 'text';
|
|
1942
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1943
|
+
responseType_ = 'json';
|
|
1944
|
+
} else {
|
|
1945
|
+
responseType_ = 'blob';
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/renew`;
|
|
1950
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
1951
|
+
context: localVarHttpContext,
|
|
1309
1952
|
responseType: <any>responseType_,
|
|
1310
1953
|
withCredentials: this.configuration.withCredentials,
|
|
1311
|
-
headers:
|
|
1954
|
+
headers: localVarHeaders,
|
|
1312
1955
|
observe: observe,
|
|
1956
|
+
transferCache: localVarTransferCache,
|
|
1313
1957
|
reportProgress: reportProgress
|
|
1314
1958
|
});
|
|
1315
1959
|
}
|
|
1316
1960
|
|
|
1317
1961
|
/**
|
|
1318
1962
|
* This endpoint repairs the asset, it\'s items, custom fields and collections. It also checks the original blob and the blobs of the asset.
|
|
1319
|
-
* @param
|
|
1963
|
+
* @param requestParameters
|
|
1320
1964
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
1321
1965
|
* @param reportProgress flag to report request and response progress.
|
|
1322
1966
|
*/
|
|
1323
|
-
public httpPatchAssetRepair(
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1967
|
+
public httpPatchAssetRepair(
|
|
1968
|
+
requestParameters?: HttpPatchAssetRepairRequestParams,
|
|
1969
|
+
observe?: 'body',
|
|
1970
|
+
reportProgress?: boolean,
|
|
1971
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1972
|
+
): Observable<AgravityInfoResponse>;
|
|
1973
|
+
public httpPatchAssetRepair(
|
|
1974
|
+
requestParameters?: HttpPatchAssetRepairRequestParams,
|
|
1975
|
+
observe?: 'response',
|
|
1976
|
+
reportProgress?: boolean,
|
|
1977
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1978
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
1979
|
+
public httpPatchAssetRepair(
|
|
1980
|
+
requestParameters?: HttpPatchAssetRepairRequestParams,
|
|
1981
|
+
observe?: 'events',
|
|
1982
|
+
reportProgress?: boolean,
|
|
1983
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1984
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
1985
|
+
public httpPatchAssetRepair(
|
|
1986
|
+
requestParameters?: HttpPatchAssetRepairRequestParams,
|
|
1987
|
+
observe: any = 'body',
|
|
1988
|
+
reportProgress: boolean = false,
|
|
1989
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1990
|
+
): Observable<any> {
|
|
1991
|
+
const id = requestParameters?.id;
|
|
1327
1992
|
if (id === null || id === undefined) {
|
|
1328
1993
|
throw new Error('Required parameter id was null or undefined when calling httpPatchAssetRepair.');
|
|
1329
1994
|
}
|
|
1330
1995
|
|
|
1331
|
-
let
|
|
1996
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1332
1997
|
|
|
1333
|
-
let
|
|
1998
|
+
let localVarCredential: string | undefined;
|
|
1334
1999
|
// authentication (msal_auth) required
|
|
1335
|
-
|
|
1336
|
-
if (
|
|
1337
|
-
|
|
2000
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
2001
|
+
if (localVarCredential) {
|
|
2002
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
1338
2003
|
}
|
|
1339
2004
|
|
|
1340
|
-
let
|
|
1341
|
-
if (
|
|
2005
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
2006
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1342
2007
|
// to determine the Accept header
|
|
1343
2008
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
1344
|
-
|
|
2009
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2010
|
+
}
|
|
2011
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2012
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
2016
|
+
if (localVarHttpContext === undefined) {
|
|
2017
|
+
localVarHttpContext = new HttpContext();
|
|
1345
2018
|
}
|
|
1346
|
-
|
|
1347
|
-
|
|
2019
|
+
|
|
2020
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
2021
|
+
if (localVarTransferCache === undefined) {
|
|
2022
|
+
localVarTransferCache = true;
|
|
1348
2023
|
}
|
|
1349
2024
|
|
|
1350
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
1351
|
-
if (
|
|
1352
|
-
|
|
2025
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
2026
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2027
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2028
|
+
responseType_ = 'text';
|
|
2029
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2030
|
+
responseType_ = 'json';
|
|
2031
|
+
} else {
|
|
2032
|
+
responseType_ = 'blob';
|
|
2033
|
+
}
|
|
1353
2034
|
}
|
|
1354
2035
|
|
|
1355
|
-
|
|
2036
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/repair`;
|
|
2037
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
2038
|
+
context: localVarHttpContext,
|
|
1356
2039
|
responseType: <any>responseType_,
|
|
1357
2040
|
withCredentials: this.configuration.withCredentials,
|
|
1358
|
-
headers:
|
|
2041
|
+
headers: localVarHeaders,
|
|
1359
2042
|
observe: observe,
|
|
2043
|
+
transferCache: localVarTransferCache,
|
|
1360
2044
|
reportProgress: reportProgress
|
|
1361
2045
|
});
|
|
1362
2046
|
}
|
|
1363
2047
|
|
|
1364
2048
|
/**
|
|
1365
2049
|
* This endpoint execute a specific queues of the asset. E.g. Recreation of previews, AI recognition, hash values, ...
|
|
1366
|
-
* @param
|
|
1367
|
-
* @param queueInput The name of the queue(s) which should be executed. (Comma separated)
|
|
2050
|
+
* @param requestParameters
|
|
1368
2051
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
1369
2052
|
* @param reportProgress flag to report request and response progress.
|
|
1370
2053
|
*/
|
|
1371
|
-
public httpPatchAssetRunQueue(id: string, queueInput: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
|
|
1372
2054
|
public httpPatchAssetRunQueue(
|
|
1373
|
-
|
|
1374
|
-
|
|
2055
|
+
requestParameters?: HttpPatchAssetRunQueueRequestParams,
|
|
2056
|
+
observe?: 'body',
|
|
2057
|
+
reportProgress?: boolean,
|
|
2058
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
2059
|
+
): Observable<AgravityInfoResponse>;
|
|
2060
|
+
public httpPatchAssetRunQueue(
|
|
2061
|
+
requestParameters?: HttpPatchAssetRunQueueRequestParams,
|
|
1375
2062
|
observe?: 'response',
|
|
1376
2063
|
reportProgress?: boolean,
|
|
1377
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
2064
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1378
2065
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
1379
2066
|
public httpPatchAssetRunQueue(
|
|
1380
|
-
|
|
1381
|
-
queueInput: string,
|
|
2067
|
+
requestParameters?: HttpPatchAssetRunQueueRequestParams,
|
|
1382
2068
|
observe?: 'events',
|
|
1383
2069
|
reportProgress?: boolean,
|
|
1384
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
2070
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1385
2071
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
1386
|
-
public httpPatchAssetRunQueue(
|
|
2072
|
+
public httpPatchAssetRunQueue(
|
|
2073
|
+
requestParameters?: HttpPatchAssetRunQueueRequestParams,
|
|
2074
|
+
observe: any = 'body',
|
|
2075
|
+
reportProgress: boolean = false,
|
|
2076
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
2077
|
+
): Observable<any> {
|
|
2078
|
+
const id = requestParameters?.id;
|
|
1387
2079
|
if (id === null || id === undefined) {
|
|
1388
2080
|
throw new Error('Required parameter id was null or undefined when calling httpPatchAssetRunQueue.');
|
|
1389
2081
|
}
|
|
2082
|
+
const queueInput = requestParameters?.queueInput;
|
|
1390
2083
|
if (queueInput === null || queueInput === undefined) {
|
|
1391
2084
|
throw new Error('Required parameter queueInput was null or undefined when calling httpPatchAssetRunQueue.');
|
|
1392
2085
|
}
|
|
1393
2086
|
|
|
1394
|
-
let
|
|
2087
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1395
2088
|
|
|
1396
|
-
let
|
|
2089
|
+
let localVarCredential: string | undefined;
|
|
1397
2090
|
// authentication (msal_auth) required
|
|
1398
|
-
|
|
1399
|
-
if (
|
|
1400
|
-
|
|
2091
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
2092
|
+
if (localVarCredential) {
|
|
2093
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
1401
2094
|
}
|
|
1402
2095
|
|
|
1403
|
-
let
|
|
1404
|
-
if (
|
|
2096
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
2097
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1405
2098
|
// to determine the Accept header
|
|
1406
2099
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
1407
|
-
|
|
2100
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1408
2101
|
}
|
|
1409
|
-
if (
|
|
1410
|
-
|
|
2102
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2103
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1411
2104
|
}
|
|
1412
2105
|
|
|
1413
|
-
let
|
|
1414
|
-
if (
|
|
1415
|
-
|
|
2106
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
2107
|
+
if (localVarHttpContext === undefined) {
|
|
2108
|
+
localVarHttpContext = new HttpContext();
|
|
1416
2109
|
}
|
|
1417
2110
|
|
|
1418
|
-
|
|
2111
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
2112
|
+
if (localVarTransferCache === undefined) {
|
|
2113
|
+
localVarTransferCache = true;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
2117
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2118
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2119
|
+
responseType_ = 'text';
|
|
2120
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2121
|
+
responseType_ = 'json';
|
|
2122
|
+
} else {
|
|
2123
|
+
responseType_ = 'blob';
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/runqueue/${this.configuration.encodeParam({ name: 'queueInput', value: queueInput, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
2128
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
2129
|
+
context: localVarHttpContext,
|
|
1419
2130
|
responseType: <any>responseType_,
|
|
1420
2131
|
withCredentials: this.configuration.withCredentials,
|
|
1421
|
-
headers:
|
|
2132
|
+
headers: localVarHeaders,
|
|
1422
2133
|
observe: observe,
|
|
2134
|
+
transferCache: localVarTransferCache,
|
|
1423
2135
|
reportProgress: reportProgress
|
|
1424
2136
|
});
|
|
1425
2137
|
}
|
|
@@ -1429,121 +2141,173 @@ export class AssetOperationsService {
|
|
|
1429
2141
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
1430
2142
|
* @param reportProgress flag to report request and response progress.
|
|
1431
2143
|
*/
|
|
1432
|
-
public httpPatchRenewAllAssets(
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
2144
|
+
public httpPatchRenewAllAssets(
|
|
2145
|
+
observe?: 'body',
|
|
2146
|
+
reportProgress?: boolean,
|
|
2147
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
2148
|
+
): Observable<AgravityInfoResponse>;
|
|
2149
|
+
public httpPatchRenewAllAssets(
|
|
2150
|
+
observe?: 'response',
|
|
2151
|
+
reportProgress?: boolean,
|
|
2152
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
2153
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
2154
|
+
public httpPatchRenewAllAssets(
|
|
2155
|
+
observe?: 'events',
|
|
2156
|
+
reportProgress?: boolean,
|
|
2157
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
2158
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
2159
|
+
public httpPatchRenewAllAssets(
|
|
2160
|
+
observe: any = 'body',
|
|
2161
|
+
reportProgress: boolean = false,
|
|
2162
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
2163
|
+
): Observable<any> {
|
|
2164
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1437
2165
|
|
|
1438
|
-
let
|
|
2166
|
+
let localVarCredential: string | undefined;
|
|
1439
2167
|
// authentication (msal_auth) required
|
|
1440
|
-
|
|
1441
|
-
if (
|
|
1442
|
-
|
|
2168
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
2169
|
+
if (localVarCredential) {
|
|
2170
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
1443
2171
|
}
|
|
1444
2172
|
|
|
1445
|
-
let
|
|
1446
|
-
if (
|
|
2173
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
2174
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1447
2175
|
// to determine the Accept header
|
|
1448
2176
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
1449
|
-
|
|
2177
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1450
2178
|
}
|
|
1451
|
-
if (
|
|
1452
|
-
|
|
2179
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2180
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1453
2181
|
}
|
|
1454
2182
|
|
|
1455
|
-
let
|
|
1456
|
-
if (
|
|
1457
|
-
|
|
2183
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
2184
|
+
if (localVarHttpContext === undefined) {
|
|
2185
|
+
localVarHttpContext = new HttpContext();
|
|
1458
2186
|
}
|
|
1459
2187
|
|
|
1460
|
-
|
|
2188
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
2189
|
+
if (localVarTransferCache === undefined) {
|
|
2190
|
+
localVarTransferCache = true;
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
2194
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2195
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2196
|
+
responseType_ = 'text';
|
|
2197
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2198
|
+
responseType_ = 'json';
|
|
2199
|
+
} else {
|
|
2200
|
+
responseType_ = 'blob';
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
let localVarPath = `/assetsrenew!!`;
|
|
2205
|
+
return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
2206
|
+
context: localVarHttpContext,
|
|
1461
2207
|
responseType: <any>responseType_,
|
|
1462
2208
|
withCredentials: this.configuration.withCredentials,
|
|
1463
|
-
headers:
|
|
2209
|
+
headers: localVarHeaders,
|
|
1464
2210
|
observe: observe,
|
|
2211
|
+
transferCache: localVarTransferCache,
|
|
1465
2212
|
reportProgress: reportProgress
|
|
1466
2213
|
});
|
|
1467
2214
|
}
|
|
1468
2215
|
|
|
1469
2216
|
/**
|
|
1470
2217
|
* 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 `availability` property to \'locked\' or set the `available_from` property below the current date. To make it available set empty string to `availability` property or `available_to` property into past.
|
|
1471
|
-
* @param
|
|
1472
|
-
* @param assetAvailability The values are validated and put directly on the asset.
|
|
2218
|
+
* @param requestParameters
|
|
1473
2219
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
1474
2220
|
* @param reportProgress flag to report request and response progress.
|
|
1475
2221
|
*/
|
|
1476
2222
|
public httpPutAssetAvailability(
|
|
1477
|
-
|
|
1478
|
-
assetAvailability: AssetAvailability,
|
|
2223
|
+
requestParameters?: HttpPutAssetAvailabilityRequestParams,
|
|
1479
2224
|
observe?: 'body',
|
|
1480
2225
|
reportProgress?: boolean,
|
|
1481
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
2226
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1482
2227
|
): Observable<AssetAvailability>;
|
|
1483
2228
|
public httpPutAssetAvailability(
|
|
1484
|
-
|
|
1485
|
-
assetAvailability: AssetAvailability,
|
|
2229
|
+
requestParameters?: HttpPutAssetAvailabilityRequestParams,
|
|
1486
2230
|
observe?: 'response',
|
|
1487
2231
|
reportProgress?: boolean,
|
|
1488
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
2232
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1489
2233
|
): Observable<HttpResponse<AssetAvailability>>;
|
|
1490
2234
|
public httpPutAssetAvailability(
|
|
1491
|
-
|
|
1492
|
-
assetAvailability: AssetAvailability,
|
|
2235
|
+
requestParameters?: HttpPutAssetAvailabilityRequestParams,
|
|
1493
2236
|
observe?: 'events',
|
|
1494
2237
|
reportProgress?: boolean,
|
|
1495
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
2238
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1496
2239
|
): Observable<HttpEvent<AssetAvailability>>;
|
|
1497
2240
|
public httpPutAssetAvailability(
|
|
1498
|
-
|
|
1499
|
-
assetAvailability: AssetAvailability,
|
|
2241
|
+
requestParameters?: HttpPutAssetAvailabilityRequestParams,
|
|
1500
2242
|
observe: any = 'body',
|
|
1501
2243
|
reportProgress: boolean = false,
|
|
1502
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
2244
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1503
2245
|
): Observable<any> {
|
|
2246
|
+
const id = requestParameters?.id;
|
|
1504
2247
|
if (id === null || id === undefined) {
|
|
1505
2248
|
throw new Error('Required parameter id was null or undefined when calling httpPutAssetAvailability.');
|
|
1506
2249
|
}
|
|
2250
|
+
const assetAvailability = requestParameters?.assetAvailability;
|
|
1507
2251
|
if (assetAvailability === null || assetAvailability === undefined) {
|
|
1508
2252
|
throw new Error('Required parameter assetAvailability was null or undefined when calling httpPutAssetAvailability.');
|
|
1509
2253
|
}
|
|
1510
2254
|
|
|
1511
|
-
let
|
|
2255
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1512
2256
|
|
|
1513
|
-
let
|
|
2257
|
+
let localVarCredential: string | undefined;
|
|
1514
2258
|
// authentication (msal_auth) required
|
|
1515
|
-
|
|
1516
|
-
if (
|
|
1517
|
-
|
|
2259
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
2260
|
+
if (localVarCredential) {
|
|
2261
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
1518
2262
|
}
|
|
1519
2263
|
|
|
1520
|
-
let
|
|
1521
|
-
if (
|
|
2264
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
2265
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1522
2266
|
// to determine the Accept header
|
|
1523
2267
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
1524
|
-
|
|
2268
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1525
2269
|
}
|
|
1526
|
-
if (
|
|
1527
|
-
|
|
2270
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2271
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
2275
|
+
if (localVarHttpContext === undefined) {
|
|
2276
|
+
localVarHttpContext = new HttpContext();
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
2280
|
+
if (localVarTransferCache === undefined) {
|
|
2281
|
+
localVarTransferCache = true;
|
|
1528
2282
|
}
|
|
1529
2283
|
|
|
1530
2284
|
// to determine the Content-Type header
|
|
1531
2285
|
const consumes: string[] = ['application/json'];
|
|
1532
2286
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
1533
2287
|
if (httpContentTypeSelected !== undefined) {
|
|
1534
|
-
|
|
2288
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1535
2289
|
}
|
|
1536
2290
|
|
|
1537
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
1538
|
-
if (
|
|
1539
|
-
|
|
2291
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
2292
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2293
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2294
|
+
responseType_ = 'text';
|
|
2295
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2296
|
+
responseType_ = 'json';
|
|
2297
|
+
} else {
|
|
2298
|
+
responseType_ = 'blob';
|
|
2299
|
+
}
|
|
1540
2300
|
}
|
|
1541
2301
|
|
|
1542
|
-
|
|
2302
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/availability`;
|
|
2303
|
+
return this.httpClient.request<AssetAvailability>('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
2304
|
+
context: localVarHttpContext,
|
|
2305
|
+
body: assetAvailability,
|
|
1543
2306
|
responseType: <any>responseType_,
|
|
1544
2307
|
withCredentials: this.configuration.withCredentials,
|
|
1545
|
-
headers:
|
|
2308
|
+
headers: localVarHeaders,
|
|
1546
2309
|
observe: observe,
|
|
2310
|
+
transferCache: localVarTransferCache,
|
|
1547
2311
|
reportProgress: reportProgress
|
|
1548
2312
|
});
|
|
1549
2313
|
}
|