@agravity/public 7.3.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/publicAssetManagement.pub.agravity.ts +389 -265
- package/api/publicAssetOperations.pub.agravity.ts +636 -425
- package/api/publicAssetPublishing.pub.agravity.ts +195 -82
- package/api/publicAssetVersioning.pub.agravity.ts +469 -239
- package/api/publicAuthenticationManagement.pub.agravity.ts +66 -24
- package/api/publicCollectionManagement.pub.agravity.ts +525 -295
- package/api/publicCollectionSecureUpload.pub.agravity.ts +142 -69
- package/api/publicCollectionTypeManagement.pub.agravity.ts +211 -95
- package/api/publicConfigurationManagement.pub.agravity.ts +69 -26
- package/api/publicDownloadFormatManagement.pub.agravity.ts +139 -53
- package/api/publicEndpoints.pub.agravity.ts +63 -43
- package/api/publicGeneralManagement.pub.agravity.ts +253 -104
- package/api/publicHelperTools.pub.agravity.ts +270 -106
- package/api/publicPortalManagement.pub.agravity.ts +323 -124
- package/api/publicPublishing.pub.agravity.ts +69 -38
- package/api/publicSavedSearch.pub.agravity.ts +75 -38
- package/api/publicSearchManagement.pub.agravity.ts +265 -194
- package/api/publicSharingManagement.pub.agravity.ts +246 -157
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +68 -24
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +212 -107
- package/api/publicTranslationManagement.pub.agravity.ts +189 -115
- package/api/publicWebAppData.pub.agravity.ts +146 -47
- package/api/publicWorkspaceManagement.pub.agravity.ts +158 -57
- package/api.module.ts +0 -24
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.pub.agravity.ts +3 -4
- package/model/{badRequestResult.pub.agravity.ts → agravityInfoResponse.pub.agravity.ts} +4 -3
- package/model/agravityVersion.pub.agravity.ts +8 -9
- package/model/allWebAppData.pub.agravity.ts +4 -5
- package/model/artificialIntelligenceGroup.pub.agravity.ts +3 -4
- package/model/asset.pub.agravity.ts +22 -23
- package/model/assetAvailability.pub.agravity.ts +1 -2
- package/model/assetBlob.pub.agravity.ts +27 -28
- package/model/assetIdFormat.pub.agravity.ts +3 -4
- package/model/assetPageResult.pub.agravity.ts +4 -5
- package/model/azSearchOptions.pub.agravity.ts +8 -9
- package/model/collTypeItem.pub.agravity.ts +16 -17
- package/model/collection.pub.agravity.ts +15 -16
- package/model/collectionType.pub.agravity.ts +14 -15
- package/model/collectionUDL.pub.agravity.ts +4 -5
- package/model/createSftpUserResult.pub.agravity.ts +2 -3
- package/model/dataResult.pub.agravity.ts +4 -5
- package/model/deletedEntities.pub.agravity.ts +4 -5
- package/model/distZipResponse.pub.agravity.ts +3 -4
- package/model/downloadFormat.pub.agravity.ts +19 -16
- package/model/dynamicImageOperation.pub.agravity.ts +2 -3
- package/model/entityId.pub.agravity.ts +1 -2
- package/model/entityIdName.pub.agravity.ts +3 -4
- package/model/frontendAppConfig.pub.agravity.ts +0 -1
- package/model/groupAllAppData.pub.agravity.ts +5 -6
- package/model/models.ts +1 -3
- package/model/moveCollectionBody.pub.agravity.ts +3 -4
- package/model/permissionEntity.pub.agravity.ts +1 -2
- package/model/portal.pub.agravity.ts +18 -20
- package/model/portalConfiguration.pub.agravity.ts +23 -25
- package/model/portalLinks.pub.agravity.ts +3 -4
- package/model/portalTheme.pub.agravity.ts +6 -7
- package/model/portalZipRequest.pub.agravity.ts +14 -15
- package/model/publishEntity.pub.agravity.ts +9 -10
- package/model/publishedAsset.pub.agravity.ts +12 -13
- package/model/quickShareFull.pub.agravity.ts +15 -16
- package/model/sasToken.pub.agravity.ts +6 -7
- package/model/savedSearch.pub.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.pub.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.pub.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.pub.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.pub.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.pub.agravity.ts +2 -3
- package/model/searchAdminStatistics.pub.agravity.ts +2 -3
- package/model/searchAdminStatus.pub.agravity.ts +4 -5
- package/model/searchFacet.pub.agravity.ts +2 -3
- package/model/searchFacetEntity.pub.agravity.ts +2 -3
- package/model/searchResult.pub.agravity.ts +3 -4
- package/model/searchableItem.pub.agravity.ts +3 -4
- package/model/secureUploadEntity.pub.agravity.ts +10 -11
- package/model/sharedAllowedFormat.pub.agravity.ts +2 -3
- package/model/sharedAsset.pub.agravity.ts +5 -6
- package/model/sharedCollectionFull.pub.agravity.ts +18 -19
- package/model/sharedCollectionZipRequest.pub.agravity.ts +14 -15
- package/model/signalRConnectionInfo.pub.agravity.ts +0 -1
- package/model/staticDefinedList.pub.agravity.ts +12 -13
- package/model/versionEntity.pub.agravity.ts +9 -10
- package/model/versionedAsset.pub.agravity.ts +5 -6
- package/model/whereParam.pub.agravity.ts +0 -1
- package/model/workspace.pub.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- package/model/okResult.pub.agravity.ts +0 -15
- package/model/portalLanguages.pub.agravity.ts +0 -16
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Agravity OpenAPI Documentation - Public Functions
|
|
3
3
|
* <h1>Agravity API Reference</h1>This is the public API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.3.0
|
|
6
5
|
* Contact: office@agravity.io
|
|
7
6
|
*
|
|
8
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,20 +11,141 @@
|
|
|
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
|
-
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { AssetAvailability } from '../model/assetAvailability.pub.agravity';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { AssetBlob } from '../model/assetBlob.pub.agravity';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { Collection } from '../model/collection.pub.agravity';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { DynamicImageOperation } from '../model/dynamicImageOperation.pub.agravity';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { MoveCollectionBody } from '../model/moveCollectionBody.pub.agravity';
|
|
30
|
+
|
|
31
|
+
// @ts-ignore
|
|
26
32
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
27
33
|
import { AgravityPublicConfiguration } from '../configuration';
|
|
28
34
|
|
|
35
|
+
export interface HttpAssetImageEditRequestParams {
|
|
36
|
+
/** The ID of the asset. */
|
|
37
|
+
id: string;
|
|
38
|
+
/** The width of the final image. */
|
|
39
|
+
width?: number;
|
|
40
|
+
/** The height of the final image. */
|
|
41
|
+
height?: number;
|
|
42
|
+
/** The supported modes: contain (default), cover, fill, crop, none */
|
|
43
|
+
mode?: string;
|
|
44
|
+
/** The file type which the image should be (i.e. webp, png, jpg, gif) */
|
|
45
|
+
target?: string;
|
|
46
|
+
/** 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 */
|
|
47
|
+
bgcolor?: string;
|
|
48
|
+
/** The density (counts for X and Y) of the target image. */
|
|
49
|
+
dpi?: number;
|
|
50
|
+
/** The bit depth of the target image. */
|
|
51
|
+
depth?: number;
|
|
52
|
+
/** The quality of the target image (1-100). */
|
|
53
|
+
quality?: number;
|
|
54
|
+
/** The color space of the image (Default: sRGB). */
|
|
55
|
+
colorspace?: string;
|
|
56
|
+
/** If mode is crop: The x coordinate of the point (if image is extended (outside) it is negative) */
|
|
57
|
+
cropX?: number;
|
|
58
|
+
/** If mode is crop: The y coordinate of the point (if image is extended (outside) it is negative) */
|
|
59
|
+
cropY?: number;
|
|
60
|
+
/** If mode=crop: The width of the cropping rectangle (from original pixel) */
|
|
61
|
+
cropWidth?: number;
|
|
62
|
+
/** If mode=crop: The height of the cropping rectangle (from original pixel) */
|
|
63
|
+
cropHeight?: number;
|
|
64
|
+
/** Which filter should be applied. To get all filters available use: /api/helper/imageeditfilters */
|
|
65
|
+
filter?: string;
|
|
66
|
+
/** If set to true the internal image is used instead of the default original */
|
|
67
|
+
original?: boolean;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface HttpAssetResizeRequestParams {
|
|
71
|
+
/** The ID of the asset. */
|
|
72
|
+
id: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface HttpAssetToCollectionRequestParams {
|
|
76
|
+
/** The ID of the asset. */
|
|
77
|
+
id: string;
|
|
78
|
+
/** Contains information about this operation. */
|
|
79
|
+
moveCollectionBody: MoveCollectionBody;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface HttpGetAssetBlobRequestParams {
|
|
83
|
+
/** The ID of the asset. */
|
|
84
|
+
id: string;
|
|
85
|
+
/** \"t\" for thumbnail (default); \"op\" for optimized; \"os\" for original size; \"o\" for original. */
|
|
86
|
+
c: string;
|
|
87
|
+
/** If the request comes from portal this is the indicator. If used the \"key\" param becomes mandatory. */
|
|
88
|
+
portalId?: string;
|
|
89
|
+
/** The key is the MD5 hash of the original blob of the asset. */
|
|
90
|
+
key?: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface HttpGetAssetCollectionsByIdRequestParams {
|
|
94
|
+
/** The ID of the asset. */
|
|
95
|
+
id: string;
|
|
96
|
+
/** This limits the fields which are returned, separated by comma (\',\'). */
|
|
97
|
+
fields?: string;
|
|
98
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
99
|
+
translations?: boolean;
|
|
100
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
101
|
+
acceptLanguage?: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface HttpGetAssetDownloadRequestParams {
|
|
105
|
+
/** The ID of the asset. */
|
|
106
|
+
id: string;
|
|
107
|
+
/** \"t\" for thumbnail (default); \"op\" for optimized; \"os\" for original size; \"o\" for original. */
|
|
108
|
+
c?: string;
|
|
109
|
+
/** (optional) provide the id of any valid download format. */
|
|
110
|
+
f?: string;
|
|
111
|
+
/** If the request comes from portal this is the indicator. It will be checked if the requested blob is valid for the portal. */
|
|
112
|
+
portalId?: string;
|
|
113
|
+
/** The key is the MD5 hash of the original blob of the asset. */
|
|
114
|
+
key?: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface HttpGetSharedAssetBlobRequestParams {
|
|
118
|
+
/** This share ID is like an API key. Check on validy (format, expire, collection still availabe). Otherwise StatusCode 403 (Forbidden) is returned. */
|
|
119
|
+
shareId: string;
|
|
120
|
+
/** The ID of the asset. */
|
|
121
|
+
id: string;
|
|
122
|
+
/** Which download format the blob is requested. */
|
|
123
|
+
format: string;
|
|
124
|
+
/** If shared collection has a password, this header is mandatory. Otherwise StatusCode 403 (Forbidden) is returned. */
|
|
125
|
+
ayPassword?: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface HttpImageDynamicEditRequestParams {
|
|
129
|
+
/** The ID of the asset. */
|
|
130
|
+
id: string;
|
|
131
|
+
/** Operations to be performed on the image directly mapped to c# imagemagick sdk */
|
|
132
|
+
dynamicImageOperation: Array<DynamicImageOperation>;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface HttpImageDynamicGetFromDownloadIdRequestParams {
|
|
136
|
+
/** The ID of the asset. */
|
|
137
|
+
id: string;
|
|
138
|
+
/** The ID of the download format. */
|
|
139
|
+
downloadFormatId: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface HttpPutAssetAvailabilityRequestParams {
|
|
143
|
+
/** The ID of the asset. */
|
|
144
|
+
id: string;
|
|
145
|
+
/** The values are validated and put directly on the asset. */
|
|
146
|
+
assetAvailability: AssetAvailability;
|
|
147
|
+
}
|
|
148
|
+
|
|
29
149
|
@Injectable({
|
|
30
150
|
providedIn: 'root'
|
|
31
151
|
})
|
|
@@ -37,13 +157,18 @@ export class PublicAssetOperationsService {
|
|
|
37
157
|
|
|
38
158
|
constructor(
|
|
39
159
|
protected httpClient: HttpClient,
|
|
40
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
160
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
41
161
|
@Optional() configuration: AgravityPublicConfiguration
|
|
42
162
|
) {
|
|
43
163
|
if (configuration) {
|
|
44
164
|
this.configuration = configuration;
|
|
45
165
|
}
|
|
46
166
|
if (typeof this.configuration.basePath !== 'string') {
|
|
167
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
168
|
+
if (firstBasePath != undefined) {
|
|
169
|
+
basePath = firstBasePath;
|
|
170
|
+
}
|
|
171
|
+
|
|
47
172
|
if (typeof basePath !== 'string') {
|
|
48
173
|
basePath = this.basePath;
|
|
49
174
|
}
|
|
@@ -52,6 +177,7 @@ export class PublicAssetOperationsService {
|
|
|
52
177
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
53
178
|
}
|
|
54
179
|
|
|
180
|
+
// @ts-ignore
|
|
55
181
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
56
182
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
57
183
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -71,7 +197,7 @@ export class PublicAssetOperationsService {
|
|
|
71
197
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
72
198
|
} else if (value instanceof Date) {
|
|
73
199
|
if (key != null) {
|
|
74
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
200
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
75
201
|
} else {
|
|
76
202
|
throw Error('key may not be null if value is Date');
|
|
77
203
|
}
|
|
@@ -88,910 +214,995 @@ export class PublicAssetOperationsService {
|
|
|
88
214
|
|
|
89
215
|
/**
|
|
90
216
|
* This endpoint lets you resize/modify the image asset according to the given parameter(s).
|
|
91
|
-
* @param
|
|
92
|
-
* @param width The width of the final image.
|
|
93
|
-
* @param height The height of the final image.
|
|
94
|
-
* @param mode The supported modes: contain (default), cover, fill, crop, none
|
|
95
|
-
* @param target The file type which the image should be (i.e. webp, png, jpg, gif)
|
|
96
|
-
* @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
|
|
97
|
-
* @param dpi The density (counts for X and Y) of the target image.
|
|
98
|
-
* @param depth The bit depth of the target image.
|
|
99
|
-
* @param quality The quality of the target image (1-100).
|
|
100
|
-
* @param colorspace The color space of the image (Default: sRGB).
|
|
101
|
-
* @param cropX If mode is crop: The x coordinate of the point (if image is extended (outside) it is negative)
|
|
102
|
-
* @param cropY If mode is crop: The y coordinate of the point (if image is extended (outside) it is negative)
|
|
103
|
-
* @param cropWidth If mode=crop: The width of the cropping rectangle (from original pixel)
|
|
104
|
-
* @param cropHeight If mode=crop: The height of the cropping rectangle (from original pixel)
|
|
105
|
-
* @param filter Which filter should be applied. To get all filters available use: /api/helper/imageeditfilters
|
|
106
|
-
* @param original If set to true the internal image is used instead of the default original
|
|
217
|
+
* @param requestParameters
|
|
107
218
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
108
219
|
* @param reportProgress flag to report request and response progress.
|
|
109
220
|
*/
|
|
110
221
|
public httpAssetImageEdit(
|
|
111
|
-
|
|
112
|
-
width?: number,
|
|
113
|
-
height?: number,
|
|
114
|
-
mode?: string,
|
|
115
|
-
target?: string,
|
|
116
|
-
bgcolor?: string,
|
|
117
|
-
dpi?: number,
|
|
118
|
-
depth?: number,
|
|
119
|
-
quality?: number,
|
|
120
|
-
colorspace?: string,
|
|
121
|
-
cropX?: number,
|
|
122
|
-
cropY?: number,
|
|
123
|
-
cropWidth?: number,
|
|
124
|
-
cropHeight?: number,
|
|
125
|
-
filter?: string,
|
|
126
|
-
original?: boolean,
|
|
222
|
+
requestParameters?: HttpAssetImageEditRequestParams,
|
|
127
223
|
observe?: 'body',
|
|
128
224
|
reportProgress?: boolean,
|
|
129
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
225
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
130
226
|
): Observable<Blob>;
|
|
131
227
|
public httpAssetImageEdit(
|
|
132
|
-
|
|
133
|
-
width?: number,
|
|
134
|
-
height?: number,
|
|
135
|
-
mode?: string,
|
|
136
|
-
target?: string,
|
|
137
|
-
bgcolor?: string,
|
|
138
|
-
dpi?: number,
|
|
139
|
-
depth?: number,
|
|
140
|
-
quality?: number,
|
|
141
|
-
colorspace?: string,
|
|
142
|
-
cropX?: number,
|
|
143
|
-
cropY?: number,
|
|
144
|
-
cropWidth?: number,
|
|
145
|
-
cropHeight?: number,
|
|
146
|
-
filter?: string,
|
|
147
|
-
original?: boolean,
|
|
228
|
+
requestParameters?: HttpAssetImageEditRequestParams,
|
|
148
229
|
observe?: 'response',
|
|
149
230
|
reportProgress?: boolean,
|
|
150
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
231
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
151
232
|
): Observable<HttpResponse<Blob>>;
|
|
152
233
|
public httpAssetImageEdit(
|
|
153
|
-
|
|
154
|
-
width?: number,
|
|
155
|
-
height?: number,
|
|
156
|
-
mode?: string,
|
|
157
|
-
target?: string,
|
|
158
|
-
bgcolor?: string,
|
|
159
|
-
dpi?: number,
|
|
160
|
-
depth?: number,
|
|
161
|
-
quality?: number,
|
|
162
|
-
colorspace?: string,
|
|
163
|
-
cropX?: number,
|
|
164
|
-
cropY?: number,
|
|
165
|
-
cropWidth?: number,
|
|
166
|
-
cropHeight?: number,
|
|
167
|
-
filter?: string,
|
|
168
|
-
original?: boolean,
|
|
234
|
+
requestParameters?: HttpAssetImageEditRequestParams,
|
|
169
235
|
observe?: 'events',
|
|
170
236
|
reportProgress?: boolean,
|
|
171
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
237
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
172
238
|
): Observable<HttpEvent<Blob>>;
|
|
173
239
|
public httpAssetImageEdit(
|
|
174
|
-
|
|
175
|
-
width?: number,
|
|
176
|
-
height?: number,
|
|
177
|
-
mode?: string,
|
|
178
|
-
target?: string,
|
|
179
|
-
bgcolor?: string,
|
|
180
|
-
dpi?: number,
|
|
181
|
-
depth?: number,
|
|
182
|
-
quality?: number,
|
|
183
|
-
colorspace?: string,
|
|
184
|
-
cropX?: number,
|
|
185
|
-
cropY?: number,
|
|
186
|
-
cropWidth?: number,
|
|
187
|
-
cropHeight?: number,
|
|
188
|
-
filter?: string,
|
|
189
|
-
original?: boolean,
|
|
240
|
+
requestParameters?: HttpAssetImageEditRequestParams,
|
|
190
241
|
observe: any = 'body',
|
|
191
242
|
reportProgress: boolean = false,
|
|
192
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
243
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
193
244
|
): Observable<any> {
|
|
245
|
+
const id = requestParameters?.id;
|
|
194
246
|
if (id === null || id === undefined) {
|
|
195
247
|
throw new Error('Required parameter id was null or undefined when calling httpAssetImageEdit.');
|
|
196
248
|
}
|
|
197
|
-
|
|
198
|
-
|
|
249
|
+
const width = requestParameters?.width;
|
|
250
|
+
const height = requestParameters?.height;
|
|
251
|
+
const mode = requestParameters?.mode;
|
|
252
|
+
const target = requestParameters?.target;
|
|
253
|
+
const bgcolor = requestParameters?.bgcolor;
|
|
254
|
+
const dpi = requestParameters?.dpi;
|
|
255
|
+
const depth = requestParameters?.depth;
|
|
256
|
+
const quality = requestParameters?.quality;
|
|
257
|
+
const colorspace = requestParameters?.colorspace;
|
|
258
|
+
const cropX = requestParameters?.cropX;
|
|
259
|
+
const cropY = requestParameters?.cropY;
|
|
260
|
+
const cropWidth = requestParameters?.cropWidth;
|
|
261
|
+
const cropHeight = requestParameters?.cropHeight;
|
|
262
|
+
const filter = requestParameters?.filter;
|
|
263
|
+
const original = requestParameters?.original;
|
|
264
|
+
|
|
265
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
199
266
|
if (width !== undefined && width !== null) {
|
|
200
|
-
|
|
267
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>width, 'width');
|
|
201
268
|
}
|
|
202
269
|
if (height !== undefined && height !== null) {
|
|
203
|
-
|
|
270
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>height, 'height');
|
|
204
271
|
}
|
|
205
272
|
if (mode !== undefined && mode !== null) {
|
|
206
|
-
|
|
273
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mode, 'mode');
|
|
207
274
|
}
|
|
208
275
|
if (target !== undefined && target !== null) {
|
|
209
|
-
|
|
276
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>target, 'target');
|
|
210
277
|
}
|
|
211
278
|
if (bgcolor !== undefined && bgcolor !== null) {
|
|
212
|
-
|
|
279
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>bgcolor, 'bgcolor');
|
|
213
280
|
}
|
|
214
281
|
if (dpi !== undefined && dpi !== null) {
|
|
215
|
-
|
|
282
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>dpi, 'dpi');
|
|
216
283
|
}
|
|
217
284
|
if (depth !== undefined && depth !== null) {
|
|
218
|
-
|
|
285
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>depth, 'depth');
|
|
219
286
|
}
|
|
220
287
|
if (quality !== undefined && quality !== null) {
|
|
221
|
-
|
|
288
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>quality, 'quality');
|
|
222
289
|
}
|
|
223
290
|
if (colorspace !== undefined && colorspace !== null) {
|
|
224
|
-
|
|
291
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>colorspace, 'colorspace');
|
|
225
292
|
}
|
|
226
293
|
if (cropX !== undefined && cropX !== null) {
|
|
227
|
-
|
|
294
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropX, 'crop_x');
|
|
228
295
|
}
|
|
229
296
|
if (cropY !== undefined && cropY !== null) {
|
|
230
|
-
|
|
297
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropY, 'crop_y');
|
|
231
298
|
}
|
|
232
299
|
if (cropWidth !== undefined && cropWidth !== null) {
|
|
233
|
-
|
|
300
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropWidth, 'crop_width');
|
|
234
301
|
}
|
|
235
302
|
if (cropHeight !== undefined && cropHeight !== null) {
|
|
236
|
-
|
|
303
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropHeight, 'crop_height');
|
|
237
304
|
}
|
|
238
305
|
if (filter !== undefined && filter !== null) {
|
|
239
|
-
|
|
306
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
240
307
|
}
|
|
241
308
|
if (original !== undefined && original !== null) {
|
|
242
|
-
|
|
309
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>original, 'original');
|
|
243
310
|
}
|
|
244
311
|
|
|
245
|
-
let
|
|
312
|
+
let localVarHeaders = this.defaultHeaders;
|
|
246
313
|
|
|
247
|
-
let
|
|
314
|
+
let localVarCredential: string | undefined;
|
|
248
315
|
// authentication (function_key) required
|
|
249
|
-
|
|
250
|
-
if (
|
|
251
|
-
|
|
316
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
317
|
+
if (localVarCredential) {
|
|
318
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
252
319
|
}
|
|
253
320
|
|
|
254
|
-
let
|
|
255
|
-
if (
|
|
321
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
322
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
256
323
|
// to determine the Accept header
|
|
257
324
|
const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
|
|
258
|
-
|
|
325
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
326
|
+
}
|
|
327
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
328
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
332
|
+
if (localVarHttpContext === undefined) {
|
|
333
|
+
localVarHttpContext = new HttpContext();
|
|
259
334
|
}
|
|
260
|
-
|
|
261
|
-
|
|
335
|
+
|
|
336
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
337
|
+
if (localVarTransferCache === undefined) {
|
|
338
|
+
localVarTransferCache = true;
|
|
262
339
|
}
|
|
263
340
|
|
|
264
|
-
|
|
265
|
-
|
|
341
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/imageedit`;
|
|
342
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
343
|
+
context: localVarHttpContext,
|
|
344
|
+
params: localVarQueryParameters,
|
|
266
345
|
responseType: 'blob',
|
|
267
346
|
withCredentials: this.configuration.withCredentials,
|
|
268
|
-
headers:
|
|
347
|
+
headers: localVarHeaders,
|
|
269
348
|
observe: observe,
|
|
349
|
+
transferCache: localVarTransferCache,
|
|
270
350
|
reportProgress: reportProgress
|
|
271
351
|
});
|
|
272
352
|
}
|
|
273
353
|
|
|
274
354
|
/**
|
|
275
355
|
* This endpoint lets you resize/modify the image asset according to the given parameter(s).
|
|
276
|
-
* @param
|
|
356
|
+
* @param requestParameters
|
|
277
357
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
278
358
|
* @param reportProgress flag to report request and response progress.
|
|
279
359
|
*/
|
|
280
|
-
public httpAssetResize(
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
360
|
+
public httpAssetResize(
|
|
361
|
+
requestParameters?: HttpAssetResizeRequestParams,
|
|
362
|
+
observe?: 'body',
|
|
363
|
+
reportProgress?: boolean,
|
|
364
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
365
|
+
): Observable<Blob>;
|
|
366
|
+
public httpAssetResize(
|
|
367
|
+
requestParameters?: HttpAssetResizeRequestParams,
|
|
368
|
+
observe?: 'response',
|
|
369
|
+
reportProgress?: boolean,
|
|
370
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
371
|
+
): Observable<HttpResponse<Blob>>;
|
|
372
|
+
public httpAssetResize(
|
|
373
|
+
requestParameters?: HttpAssetResizeRequestParams,
|
|
374
|
+
observe?: 'events',
|
|
375
|
+
reportProgress?: boolean,
|
|
376
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
377
|
+
): Observable<HttpEvent<Blob>>;
|
|
378
|
+
public httpAssetResize(
|
|
379
|
+
requestParameters?: HttpAssetResizeRequestParams,
|
|
380
|
+
observe: any = 'body',
|
|
381
|
+
reportProgress: boolean = false,
|
|
382
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
383
|
+
): Observable<any> {
|
|
384
|
+
const id = requestParameters?.id;
|
|
284
385
|
if (id === null || id === undefined) {
|
|
285
386
|
throw new Error('Required parameter id was null or undefined when calling httpAssetResize.');
|
|
286
387
|
}
|
|
287
388
|
|
|
288
|
-
let
|
|
389
|
+
let localVarHeaders = this.defaultHeaders;
|
|
289
390
|
|
|
290
|
-
let
|
|
391
|
+
let localVarCredential: string | undefined;
|
|
291
392
|
// authentication (function_key) required
|
|
292
|
-
|
|
293
|
-
if (
|
|
294
|
-
|
|
393
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
394
|
+
if (localVarCredential) {
|
|
395
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
295
396
|
}
|
|
296
397
|
|
|
297
|
-
let
|
|
298
|
-
if (
|
|
398
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
399
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
299
400
|
// to determine the Accept header
|
|
300
401
|
const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
|
|
301
|
-
|
|
402
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
302
403
|
}
|
|
303
|
-
if (
|
|
304
|
-
|
|
404
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
405
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
305
406
|
}
|
|
306
407
|
|
|
307
|
-
|
|
408
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
409
|
+
if (localVarHttpContext === undefined) {
|
|
410
|
+
localVarHttpContext = new HttpContext();
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
414
|
+
if (localVarTransferCache === undefined) {
|
|
415
|
+
localVarTransferCache = true;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/resize`;
|
|
419
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
420
|
+
context: localVarHttpContext,
|
|
308
421
|
responseType: 'blob',
|
|
309
422
|
withCredentials: this.configuration.withCredentials,
|
|
310
|
-
headers:
|
|
423
|
+
headers: localVarHeaders,
|
|
311
424
|
observe: observe,
|
|
425
|
+
transferCache: localVarTransferCache,
|
|
312
426
|
reportProgress: reportProgress
|
|
313
427
|
});
|
|
314
428
|
}
|
|
315
429
|
|
|
316
430
|
/**
|
|
317
431
|
* This endpoint allows to move/assign from/to another collection with the given operation parameter.
|
|
318
|
-
* @param
|
|
319
|
-
* @param moveCollectionBody Contains information about this operation.
|
|
432
|
+
* @param requestParameters
|
|
320
433
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
321
434
|
* @param reportProgress flag to report request and response progress.
|
|
322
435
|
*/
|
|
323
|
-
public httpAssetToCollection(id: string, moveCollectionBody: MoveCollectionBody, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
|
|
324
436
|
public httpAssetToCollection(
|
|
325
|
-
|
|
326
|
-
|
|
437
|
+
requestParameters?: HttpAssetToCollectionRequestParams,
|
|
438
|
+
observe?: 'body',
|
|
439
|
+
reportProgress?: boolean,
|
|
440
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
441
|
+
): Observable<any>;
|
|
442
|
+
public httpAssetToCollection(
|
|
443
|
+
requestParameters?: HttpAssetToCollectionRequestParams,
|
|
327
444
|
observe?: 'response',
|
|
328
445
|
reportProgress?: boolean,
|
|
329
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
446
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
330
447
|
): Observable<HttpResponse<any>>;
|
|
331
448
|
public httpAssetToCollection(
|
|
332
|
-
|
|
333
|
-
moveCollectionBody: MoveCollectionBody,
|
|
449
|
+
requestParameters?: HttpAssetToCollectionRequestParams,
|
|
334
450
|
observe?: 'events',
|
|
335
451
|
reportProgress?: boolean,
|
|
336
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
452
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
337
453
|
): Observable<HttpEvent<any>>;
|
|
338
454
|
public httpAssetToCollection(
|
|
339
|
-
|
|
340
|
-
moveCollectionBody: MoveCollectionBody,
|
|
455
|
+
requestParameters?: HttpAssetToCollectionRequestParams,
|
|
341
456
|
observe: any = 'body',
|
|
342
457
|
reportProgress: boolean = false,
|
|
343
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
458
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
344
459
|
): Observable<any> {
|
|
460
|
+
const id = requestParameters?.id;
|
|
345
461
|
if (id === null || id === undefined) {
|
|
346
462
|
throw new Error('Required parameter id was null or undefined when calling httpAssetToCollection.');
|
|
347
463
|
}
|
|
464
|
+
const moveCollectionBody = requestParameters?.moveCollectionBody;
|
|
348
465
|
if (moveCollectionBody === null || moveCollectionBody === undefined) {
|
|
349
466
|
throw new Error('Required parameter moveCollectionBody was null or undefined when calling httpAssetToCollection.');
|
|
350
467
|
}
|
|
351
468
|
|
|
352
|
-
let
|
|
469
|
+
let localVarHeaders = this.defaultHeaders;
|
|
353
470
|
|
|
354
|
-
let
|
|
471
|
+
let localVarCredential: string | undefined;
|
|
355
472
|
// authentication (function_key) required
|
|
356
|
-
|
|
357
|
-
if (
|
|
358
|
-
|
|
473
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
474
|
+
if (localVarCredential) {
|
|
475
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
359
476
|
}
|
|
360
477
|
|
|
361
|
-
let
|
|
362
|
-
if (
|
|
478
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
479
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
363
480
|
// to determine the Accept header
|
|
364
481
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
365
|
-
|
|
482
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
483
|
+
}
|
|
484
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
485
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
489
|
+
if (localVarHttpContext === undefined) {
|
|
490
|
+
localVarHttpContext = new HttpContext();
|
|
366
491
|
}
|
|
367
|
-
|
|
368
|
-
|
|
492
|
+
|
|
493
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
494
|
+
if (localVarTransferCache === undefined) {
|
|
495
|
+
localVarTransferCache = true;
|
|
369
496
|
}
|
|
370
497
|
|
|
371
498
|
// to determine the Content-Type header
|
|
372
499
|
const consumes: string[] = ['application/json'];
|
|
373
500
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
374
501
|
if (httpContentTypeSelected !== undefined) {
|
|
375
|
-
|
|
502
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
376
503
|
}
|
|
377
504
|
|
|
378
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
379
|
-
if (
|
|
380
|
-
|
|
505
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
506
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
507
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
508
|
+
responseType_ = 'text';
|
|
509
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
510
|
+
responseType_ = 'json';
|
|
511
|
+
} else {
|
|
512
|
+
responseType_ = 'blob';
|
|
513
|
+
}
|
|
381
514
|
}
|
|
382
515
|
|
|
383
|
-
|
|
516
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/tocollection`;
|
|
517
|
+
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
518
|
+
context: localVarHttpContext,
|
|
519
|
+
body: moveCollectionBody,
|
|
384
520
|
responseType: <any>responseType_,
|
|
385
521
|
withCredentials: this.configuration.withCredentials,
|
|
386
|
-
headers:
|
|
522
|
+
headers: localVarHeaders,
|
|
387
523
|
observe: observe,
|
|
524
|
+
transferCache: localVarTransferCache,
|
|
388
525
|
reportProgress: reportProgress
|
|
389
526
|
});
|
|
390
527
|
}
|
|
391
528
|
|
|
392
529
|
/**
|
|
393
530
|
* This endpoint checks, if an asset exists and returns the url for the requested blob.
|
|
394
|
-
* @param
|
|
395
|
-
* @param c \"t\" for thumbnail (default); \"op\" for optimized; \"os\" for original size; \"o\" for original.
|
|
396
|
-
* @param portalId If the request comes from portal this is the indicator. If used the \"key\" param becomes mandatory.
|
|
397
|
-
* @param key The key is the MD5 hash of the original blob of the asset.
|
|
531
|
+
* @param requestParameters
|
|
398
532
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
399
533
|
* @param reportProgress flag to report request and response progress.
|
|
400
534
|
*/
|
|
401
535
|
public httpGetAssetBlob(
|
|
402
|
-
|
|
403
|
-
c: string,
|
|
404
|
-
portalId?: string,
|
|
405
|
-
key?: string,
|
|
536
|
+
requestParameters?: HttpGetAssetBlobRequestParams,
|
|
406
537
|
observe?: 'body',
|
|
407
538
|
reportProgress?: boolean,
|
|
408
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
539
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
409
540
|
): Observable<AssetBlob>;
|
|
410
541
|
public httpGetAssetBlob(
|
|
411
|
-
|
|
412
|
-
c: string,
|
|
413
|
-
portalId?: string,
|
|
414
|
-
key?: string,
|
|
542
|
+
requestParameters?: HttpGetAssetBlobRequestParams,
|
|
415
543
|
observe?: 'response',
|
|
416
544
|
reportProgress?: boolean,
|
|
417
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
545
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
418
546
|
): Observable<HttpResponse<AssetBlob>>;
|
|
419
547
|
public httpGetAssetBlob(
|
|
420
|
-
|
|
421
|
-
c: string,
|
|
422
|
-
portalId?: string,
|
|
423
|
-
key?: string,
|
|
548
|
+
requestParameters?: HttpGetAssetBlobRequestParams,
|
|
424
549
|
observe?: 'events',
|
|
425
550
|
reportProgress?: boolean,
|
|
426
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
551
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
427
552
|
): Observable<HttpEvent<AssetBlob>>;
|
|
428
553
|
public httpGetAssetBlob(
|
|
429
|
-
|
|
430
|
-
c: string,
|
|
431
|
-
portalId?: string,
|
|
432
|
-
key?: string,
|
|
554
|
+
requestParameters?: HttpGetAssetBlobRequestParams,
|
|
433
555
|
observe: any = 'body',
|
|
434
556
|
reportProgress: boolean = false,
|
|
435
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
557
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
436
558
|
): Observable<any> {
|
|
559
|
+
const id = requestParameters?.id;
|
|
437
560
|
if (id === null || id === undefined) {
|
|
438
561
|
throw new Error('Required parameter id was null or undefined when calling httpGetAssetBlob.');
|
|
439
562
|
}
|
|
563
|
+
const c = requestParameters?.c;
|
|
440
564
|
if (c === null || c === undefined) {
|
|
441
565
|
throw new Error('Required parameter c was null or undefined when calling httpGetAssetBlob.');
|
|
442
566
|
}
|
|
567
|
+
const portalId = requestParameters?.portalId;
|
|
568
|
+
const key = requestParameters?.key;
|
|
443
569
|
|
|
444
|
-
let
|
|
570
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
445
571
|
if (c !== undefined && c !== null) {
|
|
446
|
-
|
|
572
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
|
|
447
573
|
}
|
|
448
574
|
if (portalId !== undefined && portalId !== null) {
|
|
449
|
-
|
|
575
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
450
576
|
}
|
|
451
577
|
if (key !== undefined && key !== null) {
|
|
452
|
-
|
|
578
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>key, 'key');
|
|
453
579
|
}
|
|
454
580
|
|
|
455
|
-
let
|
|
581
|
+
let localVarHeaders = this.defaultHeaders;
|
|
456
582
|
|
|
457
|
-
let
|
|
583
|
+
let localVarCredential: string | undefined;
|
|
458
584
|
// authentication (function_key) required
|
|
459
|
-
|
|
460
|
-
if (
|
|
461
|
-
|
|
585
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
586
|
+
if (localVarCredential) {
|
|
587
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
462
588
|
}
|
|
463
589
|
|
|
464
|
-
let
|
|
465
|
-
if (
|
|
590
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
591
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
466
592
|
// to determine the Accept header
|
|
467
593
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
468
|
-
|
|
594
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
595
|
+
}
|
|
596
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
597
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
469
598
|
}
|
|
470
|
-
|
|
471
|
-
|
|
599
|
+
|
|
600
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
601
|
+
if (localVarHttpContext === undefined) {
|
|
602
|
+
localVarHttpContext = new HttpContext();
|
|
472
603
|
}
|
|
473
604
|
|
|
474
|
-
let
|
|
475
|
-
if (
|
|
476
|
-
|
|
605
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
606
|
+
if (localVarTransferCache === undefined) {
|
|
607
|
+
localVarTransferCache = true;
|
|
477
608
|
}
|
|
478
609
|
|
|
479
|
-
|
|
480
|
-
|
|
610
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
611
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
612
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
613
|
+
responseType_ = 'text';
|
|
614
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
615
|
+
responseType_ = 'json';
|
|
616
|
+
} else {
|
|
617
|
+
responseType_ = 'blob';
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/blobs`;
|
|
622
|
+
return this.httpClient.request<AssetBlob>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
623
|
+
context: localVarHttpContext,
|
|
624
|
+
params: localVarQueryParameters,
|
|
481
625
|
responseType: <any>responseType_,
|
|
482
626
|
withCredentials: this.configuration.withCredentials,
|
|
483
|
-
headers:
|
|
627
|
+
headers: localVarHeaders,
|
|
484
628
|
observe: observe,
|
|
629
|
+
transferCache: localVarTransferCache,
|
|
485
630
|
reportProgress: reportProgress
|
|
486
631
|
});
|
|
487
632
|
}
|
|
488
633
|
|
|
489
634
|
/**
|
|
490
635
|
* Returns all collections of a specific asset.
|
|
491
|
-
* @param
|
|
492
|
-
* @param fields This limits the fields which are returned, separated by comma (\',\').
|
|
493
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
636
|
+
* @param requestParameters
|
|
494
637
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
495
638
|
* @param reportProgress flag to report request and response progress.
|
|
496
639
|
*/
|
|
497
640
|
public httpGetAssetCollectionsById(
|
|
498
|
-
|
|
499
|
-
fields?: string,
|
|
500
|
-
translations?: boolean,
|
|
641
|
+
requestParameters?: HttpGetAssetCollectionsByIdRequestParams,
|
|
501
642
|
observe?: 'body',
|
|
502
643
|
reportProgress?: boolean,
|
|
503
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
644
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
504
645
|
): Observable<Array<Collection>>;
|
|
505
646
|
public httpGetAssetCollectionsById(
|
|
506
|
-
|
|
507
|
-
fields?: string,
|
|
508
|
-
translations?: boolean,
|
|
647
|
+
requestParameters?: HttpGetAssetCollectionsByIdRequestParams,
|
|
509
648
|
observe?: 'response',
|
|
510
649
|
reportProgress?: boolean,
|
|
511
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
650
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
512
651
|
): Observable<HttpResponse<Array<Collection>>>;
|
|
513
652
|
public httpGetAssetCollectionsById(
|
|
514
|
-
|
|
515
|
-
fields?: string,
|
|
516
|
-
translations?: boolean,
|
|
653
|
+
requestParameters?: HttpGetAssetCollectionsByIdRequestParams,
|
|
517
654
|
observe?: 'events',
|
|
518
655
|
reportProgress?: boolean,
|
|
519
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
656
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
520
657
|
): Observable<HttpEvent<Array<Collection>>>;
|
|
521
658
|
public httpGetAssetCollectionsById(
|
|
522
|
-
|
|
523
|
-
fields?: string,
|
|
524
|
-
translations?: boolean,
|
|
659
|
+
requestParameters?: HttpGetAssetCollectionsByIdRequestParams,
|
|
525
660
|
observe: any = 'body',
|
|
526
661
|
reportProgress: boolean = false,
|
|
527
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
662
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
528
663
|
): Observable<any> {
|
|
664
|
+
const id = requestParameters?.id;
|
|
529
665
|
if (id === null || id === undefined) {
|
|
530
666
|
throw new Error('Required parameter id was null or undefined when calling httpGetAssetCollectionsById.');
|
|
531
667
|
}
|
|
668
|
+
const fields = requestParameters?.fields;
|
|
669
|
+
const translations = requestParameters?.translations;
|
|
670
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
532
671
|
|
|
533
|
-
let
|
|
672
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
534
673
|
if (fields !== undefined && fields !== null) {
|
|
535
|
-
|
|
674
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
|
|
536
675
|
}
|
|
537
676
|
if (translations !== undefined && translations !== null) {
|
|
538
|
-
|
|
677
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
539
678
|
}
|
|
540
679
|
|
|
541
|
-
let
|
|
680
|
+
let localVarHeaders = this.defaultHeaders;
|
|
681
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
682
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
683
|
+
}
|
|
542
684
|
|
|
543
|
-
let
|
|
685
|
+
let localVarCredential: string | undefined;
|
|
544
686
|
// authentication (function_key) required
|
|
545
|
-
|
|
546
|
-
if (
|
|
547
|
-
|
|
687
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
688
|
+
if (localVarCredential) {
|
|
689
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
548
690
|
}
|
|
549
691
|
|
|
550
|
-
let
|
|
551
|
-
if (
|
|
692
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
693
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
552
694
|
// to determine the Accept header
|
|
553
695
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
554
|
-
|
|
696
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
697
|
+
}
|
|
698
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
699
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
555
700
|
}
|
|
556
|
-
|
|
557
|
-
|
|
701
|
+
|
|
702
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
703
|
+
if (localVarHttpContext === undefined) {
|
|
704
|
+
localVarHttpContext = new HttpContext();
|
|
558
705
|
}
|
|
559
706
|
|
|
560
|
-
let
|
|
561
|
-
if (
|
|
562
|
-
|
|
707
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
708
|
+
if (localVarTransferCache === undefined) {
|
|
709
|
+
localVarTransferCache = true;
|
|
563
710
|
}
|
|
564
711
|
|
|
565
|
-
|
|
566
|
-
|
|
712
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
713
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
714
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
715
|
+
responseType_ = 'text';
|
|
716
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
717
|
+
responseType_ = 'json';
|
|
718
|
+
} else {
|
|
719
|
+
responseType_ = 'blob';
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/collections`;
|
|
724
|
+
return this.httpClient.request<Array<Collection>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
725
|
+
context: localVarHttpContext,
|
|
726
|
+
params: localVarQueryParameters,
|
|
567
727
|
responseType: <any>responseType_,
|
|
568
728
|
withCredentials: this.configuration.withCredentials,
|
|
569
|
-
headers:
|
|
729
|
+
headers: localVarHeaders,
|
|
570
730
|
observe: observe,
|
|
731
|
+
transferCache: localVarTransferCache,
|
|
571
732
|
reportProgress: reportProgress
|
|
572
733
|
});
|
|
573
734
|
}
|
|
574
735
|
|
|
575
736
|
/**
|
|
576
737
|
* This endpoint is similar to GetAssetBlob but with ContentDistribution and filename to let browser download the content.
|
|
577
|
-
* @param
|
|
578
|
-
* @param c \"t\" for thumbnail (default); \"op\" for optimized; \"os\" for original size; \"o\" for original.
|
|
579
|
-
* @param f (optional) provide the id of any valid download format.
|
|
580
|
-
* @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.
|
|
581
|
-
* @param key The key is the MD5 hash of the original blob of the asset.
|
|
738
|
+
* @param requestParameters
|
|
582
739
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
583
740
|
* @param reportProgress flag to report request and response progress.
|
|
584
741
|
*/
|
|
585
742
|
public httpGetAssetDownload(
|
|
586
|
-
|
|
587
|
-
c?: string,
|
|
588
|
-
f?: string,
|
|
589
|
-
portalId?: string,
|
|
590
|
-
key?: string,
|
|
743
|
+
requestParameters?: HttpGetAssetDownloadRequestParams,
|
|
591
744
|
observe?: 'body',
|
|
592
745
|
reportProgress?: boolean,
|
|
593
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
746
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
594
747
|
): Observable<AssetBlob>;
|
|
595
748
|
public httpGetAssetDownload(
|
|
596
|
-
|
|
597
|
-
c?: string,
|
|
598
|
-
f?: string,
|
|
599
|
-
portalId?: string,
|
|
600
|
-
key?: string,
|
|
749
|
+
requestParameters?: HttpGetAssetDownloadRequestParams,
|
|
601
750
|
observe?: 'response',
|
|
602
751
|
reportProgress?: boolean,
|
|
603
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
752
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
604
753
|
): Observable<HttpResponse<AssetBlob>>;
|
|
605
754
|
public httpGetAssetDownload(
|
|
606
|
-
|
|
607
|
-
c?: string,
|
|
608
|
-
f?: string,
|
|
609
|
-
portalId?: string,
|
|
610
|
-
key?: string,
|
|
755
|
+
requestParameters?: HttpGetAssetDownloadRequestParams,
|
|
611
756
|
observe?: 'events',
|
|
612
757
|
reportProgress?: boolean,
|
|
613
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
758
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
614
759
|
): Observable<HttpEvent<AssetBlob>>;
|
|
615
760
|
public httpGetAssetDownload(
|
|
616
|
-
|
|
617
|
-
c?: string,
|
|
618
|
-
f?: string,
|
|
619
|
-
portalId?: string,
|
|
620
|
-
key?: string,
|
|
761
|
+
requestParameters?: HttpGetAssetDownloadRequestParams,
|
|
621
762
|
observe: any = 'body',
|
|
622
763
|
reportProgress: boolean = false,
|
|
623
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
764
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
624
765
|
): Observable<any> {
|
|
766
|
+
const id = requestParameters?.id;
|
|
625
767
|
if (id === null || id === undefined) {
|
|
626
768
|
throw new Error('Required parameter id was null or undefined when calling httpGetAssetDownload.');
|
|
627
769
|
}
|
|
770
|
+
const c = requestParameters?.c;
|
|
771
|
+
const f = requestParameters?.f;
|
|
772
|
+
const portalId = requestParameters?.portalId;
|
|
773
|
+
const key = requestParameters?.key;
|
|
628
774
|
|
|
629
|
-
let
|
|
775
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
630
776
|
if (c !== undefined && c !== null) {
|
|
631
|
-
|
|
777
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
|
|
632
778
|
}
|
|
633
779
|
if (f !== undefined && f !== null) {
|
|
634
|
-
|
|
780
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>f, 'f');
|
|
635
781
|
}
|
|
636
782
|
if (portalId !== undefined && portalId !== null) {
|
|
637
|
-
|
|
783
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
638
784
|
}
|
|
639
785
|
if (key !== undefined && key !== null) {
|
|
640
|
-
|
|
786
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>key, 'key');
|
|
641
787
|
}
|
|
642
788
|
|
|
643
|
-
let
|
|
789
|
+
let localVarHeaders = this.defaultHeaders;
|
|
644
790
|
|
|
645
|
-
let
|
|
791
|
+
let localVarCredential: string | undefined;
|
|
646
792
|
// authentication (function_key) required
|
|
647
|
-
|
|
648
|
-
if (
|
|
649
|
-
|
|
793
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
794
|
+
if (localVarCredential) {
|
|
795
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
650
796
|
}
|
|
651
797
|
|
|
652
|
-
let
|
|
653
|
-
if (
|
|
798
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
799
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
654
800
|
// to determine the Accept header
|
|
655
801
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
656
|
-
|
|
802
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
803
|
+
}
|
|
804
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
805
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
809
|
+
if (localVarHttpContext === undefined) {
|
|
810
|
+
localVarHttpContext = new HttpContext();
|
|
657
811
|
}
|
|
658
|
-
|
|
659
|
-
|
|
812
|
+
|
|
813
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
814
|
+
if (localVarTransferCache === undefined) {
|
|
815
|
+
localVarTransferCache = true;
|
|
660
816
|
}
|
|
661
817
|
|
|
662
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
663
|
-
if (
|
|
664
|
-
|
|
818
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
819
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
820
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
821
|
+
responseType_ = 'text';
|
|
822
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
823
|
+
responseType_ = 'json';
|
|
824
|
+
} else {
|
|
825
|
+
responseType_ = 'blob';
|
|
826
|
+
}
|
|
665
827
|
}
|
|
666
828
|
|
|
667
|
-
|
|
668
|
-
|
|
829
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/download`;
|
|
830
|
+
return this.httpClient.request<AssetBlob>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
831
|
+
context: localVarHttpContext,
|
|
832
|
+
params: localVarQueryParameters,
|
|
669
833
|
responseType: <any>responseType_,
|
|
670
834
|
withCredentials: this.configuration.withCredentials,
|
|
671
|
-
headers:
|
|
835
|
+
headers: localVarHeaders,
|
|
672
836
|
observe: observe,
|
|
837
|
+
transferCache: localVarTransferCache,
|
|
673
838
|
reportProgress: reportProgress
|
|
674
839
|
});
|
|
675
840
|
}
|
|
676
841
|
|
|
677
842
|
/**
|
|
678
843
|
* This endpoint checks, if an asset exists, is an image, has original blob, is status active, is part of the shared collection and returns the requested asset blob.
|
|
679
|
-
* @param
|
|
680
|
-
* @param id The ID of the asset.
|
|
681
|
-
* @param format Which download format the blob is requested.
|
|
682
|
-
* @param ayPassword If shared collection has a password, this header is mandatory. Otherwise StatusCode 403 (Forbidden) is returned.
|
|
844
|
+
* @param requestParameters
|
|
683
845
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
684
846
|
* @param reportProgress flag to report request and response progress.
|
|
685
847
|
*/
|
|
686
848
|
public httpGetSharedAssetBlob(
|
|
687
|
-
|
|
688
|
-
id: string,
|
|
689
|
-
format: string,
|
|
690
|
-
ayPassword?: string,
|
|
849
|
+
requestParameters?: HttpGetSharedAssetBlobRequestParams,
|
|
691
850
|
observe?: 'body',
|
|
692
851
|
reportProgress?: boolean,
|
|
693
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
852
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
694
853
|
): Observable<AssetBlob>;
|
|
695
854
|
public httpGetSharedAssetBlob(
|
|
696
|
-
|
|
697
|
-
id: string,
|
|
698
|
-
format: string,
|
|
699
|
-
ayPassword?: string,
|
|
855
|
+
requestParameters?: HttpGetSharedAssetBlobRequestParams,
|
|
700
856
|
observe?: 'response',
|
|
701
857
|
reportProgress?: boolean,
|
|
702
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
858
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
703
859
|
): Observable<HttpResponse<AssetBlob>>;
|
|
704
860
|
public httpGetSharedAssetBlob(
|
|
705
|
-
|
|
706
|
-
id: string,
|
|
707
|
-
format: string,
|
|
708
|
-
ayPassword?: string,
|
|
861
|
+
requestParameters?: HttpGetSharedAssetBlobRequestParams,
|
|
709
862
|
observe?: 'events',
|
|
710
863
|
reportProgress?: boolean,
|
|
711
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
864
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
712
865
|
): Observable<HttpEvent<AssetBlob>>;
|
|
713
866
|
public httpGetSharedAssetBlob(
|
|
714
|
-
|
|
715
|
-
id: string,
|
|
716
|
-
format: string,
|
|
717
|
-
ayPassword?: string,
|
|
867
|
+
requestParameters?: HttpGetSharedAssetBlobRequestParams,
|
|
718
868
|
observe: any = 'body',
|
|
719
869
|
reportProgress: boolean = false,
|
|
720
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
870
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
721
871
|
): Observable<any> {
|
|
872
|
+
const shareId = requestParameters?.shareId;
|
|
722
873
|
if (shareId === null || shareId === undefined) {
|
|
723
874
|
throw new Error('Required parameter shareId was null or undefined when calling httpGetSharedAssetBlob.');
|
|
724
875
|
}
|
|
876
|
+
const id = requestParameters?.id;
|
|
725
877
|
if (id === null || id === undefined) {
|
|
726
878
|
throw new Error('Required parameter id was null or undefined when calling httpGetSharedAssetBlob.');
|
|
727
879
|
}
|
|
880
|
+
const format = requestParameters?.format;
|
|
728
881
|
if (format === null || format === undefined) {
|
|
729
882
|
throw new Error('Required parameter format was null or undefined when calling httpGetSharedAssetBlob.');
|
|
730
883
|
}
|
|
884
|
+
const ayPassword = requestParameters?.ayPassword;
|
|
731
885
|
|
|
732
|
-
let
|
|
886
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
733
887
|
if (shareId !== undefined && shareId !== null) {
|
|
734
|
-
|
|
888
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>shareId, 'share-id');
|
|
735
889
|
}
|
|
736
890
|
if (format !== undefined && format !== null) {
|
|
737
|
-
|
|
891
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>format, 'format');
|
|
738
892
|
}
|
|
739
893
|
|
|
740
|
-
let
|
|
894
|
+
let localVarHeaders = this.defaultHeaders;
|
|
741
895
|
if (ayPassword !== undefined && ayPassword !== null) {
|
|
742
|
-
|
|
896
|
+
localVarHeaders = localVarHeaders.set('ay-password', String(ayPassword));
|
|
743
897
|
}
|
|
744
898
|
|
|
745
|
-
let
|
|
746
|
-
if (
|
|
899
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
900
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
747
901
|
// to determine the Accept header
|
|
748
902
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
749
|
-
|
|
903
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
904
|
+
}
|
|
905
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
906
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
910
|
+
if (localVarHttpContext === undefined) {
|
|
911
|
+
localVarHttpContext = new HttpContext();
|
|
750
912
|
}
|
|
751
|
-
|
|
752
|
-
|
|
913
|
+
|
|
914
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
915
|
+
if (localVarTransferCache === undefined) {
|
|
916
|
+
localVarTransferCache = true;
|
|
753
917
|
}
|
|
754
918
|
|
|
755
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
756
|
-
if (
|
|
757
|
-
|
|
919
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
920
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
921
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
922
|
+
responseType_ = 'text';
|
|
923
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
924
|
+
responseType_ = 'json';
|
|
925
|
+
} else {
|
|
926
|
+
responseType_ = 'blob';
|
|
927
|
+
}
|
|
758
928
|
}
|
|
759
929
|
|
|
760
|
-
|
|
761
|
-
|
|
930
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/blob`;
|
|
931
|
+
return this.httpClient.request<AssetBlob>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
932
|
+
context: localVarHttpContext,
|
|
933
|
+
params: localVarQueryParameters,
|
|
762
934
|
responseType: <any>responseType_,
|
|
763
935
|
withCredentials: this.configuration.withCredentials,
|
|
764
|
-
headers:
|
|
936
|
+
headers: localVarHeaders,
|
|
765
937
|
observe: observe,
|
|
938
|
+
transferCache: localVarTransferCache,
|
|
766
939
|
reportProgress: reportProgress
|
|
767
940
|
});
|
|
768
941
|
}
|
|
769
942
|
|
|
770
943
|
/**
|
|
771
944
|
* This endpoint lets you use the entire api of Imagemagick to edit the image.
|
|
772
|
-
* @param
|
|
773
|
-
* @param dynamicImageOperation Operations to be performed on the image directly mapped to c# imagemagick sdk
|
|
945
|
+
* @param requestParameters
|
|
774
946
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
775
947
|
* @param reportProgress flag to report request and response progress.
|
|
776
948
|
*/
|
|
777
949
|
public httpImageDynamicEdit(
|
|
778
|
-
|
|
779
|
-
dynamicImageOperation: Array<DynamicImageOperation>,
|
|
950
|
+
requestParameters?: HttpImageDynamicEditRequestParams,
|
|
780
951
|
observe?: 'body',
|
|
781
952
|
reportProgress?: boolean,
|
|
782
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
953
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
783
954
|
): Observable<Blob>;
|
|
784
955
|
public httpImageDynamicEdit(
|
|
785
|
-
|
|
786
|
-
dynamicImageOperation: Array<DynamicImageOperation>,
|
|
956
|
+
requestParameters?: HttpImageDynamicEditRequestParams,
|
|
787
957
|
observe?: 'response',
|
|
788
958
|
reportProgress?: boolean,
|
|
789
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
959
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
790
960
|
): Observable<HttpResponse<Blob>>;
|
|
791
961
|
public httpImageDynamicEdit(
|
|
792
|
-
|
|
793
|
-
dynamicImageOperation: Array<DynamicImageOperation>,
|
|
962
|
+
requestParameters?: HttpImageDynamicEditRequestParams,
|
|
794
963
|
observe?: 'events',
|
|
795
964
|
reportProgress?: boolean,
|
|
796
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
965
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
797
966
|
): Observable<HttpEvent<Blob>>;
|
|
798
967
|
public httpImageDynamicEdit(
|
|
799
|
-
|
|
800
|
-
dynamicImageOperation: Array<DynamicImageOperation>,
|
|
968
|
+
requestParameters?: HttpImageDynamicEditRequestParams,
|
|
801
969
|
observe: any = 'body',
|
|
802
970
|
reportProgress: boolean = false,
|
|
803
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
971
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
804
972
|
): Observable<any> {
|
|
973
|
+
const id = requestParameters?.id;
|
|
805
974
|
if (id === null || id === undefined) {
|
|
806
975
|
throw new Error('Required parameter id was null or undefined when calling httpImageDynamicEdit.');
|
|
807
976
|
}
|
|
977
|
+
const dynamicImageOperation = requestParameters?.dynamicImageOperation;
|
|
808
978
|
if (dynamicImageOperation === null || dynamicImageOperation === undefined) {
|
|
809
979
|
throw new Error('Required parameter dynamicImageOperation was null or undefined when calling httpImageDynamicEdit.');
|
|
810
980
|
}
|
|
811
981
|
|
|
812
|
-
let
|
|
982
|
+
let localVarHeaders = this.defaultHeaders;
|
|
813
983
|
|
|
814
|
-
let
|
|
984
|
+
let localVarCredential: string | undefined;
|
|
815
985
|
// authentication (function_key) required
|
|
816
|
-
|
|
817
|
-
if (
|
|
818
|
-
|
|
986
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
987
|
+
if (localVarCredential) {
|
|
988
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
819
989
|
}
|
|
820
990
|
|
|
821
|
-
let
|
|
822
|
-
if (
|
|
991
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
992
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
823
993
|
// to determine the Accept header
|
|
824
994
|
const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
|
|
825
|
-
|
|
995
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
826
996
|
}
|
|
827
|
-
if (
|
|
828
|
-
|
|
997
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
998
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1002
|
+
if (localVarHttpContext === undefined) {
|
|
1003
|
+
localVarHttpContext = new HttpContext();
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1007
|
+
if (localVarTransferCache === undefined) {
|
|
1008
|
+
localVarTransferCache = true;
|
|
829
1009
|
}
|
|
830
1010
|
|
|
831
1011
|
// to determine the Content-Type header
|
|
832
1012
|
const consumes: string[] = ['application/json'];
|
|
833
1013
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
834
1014
|
if (httpContentTypeSelected !== undefined) {
|
|
835
|
-
|
|
1015
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
836
1016
|
}
|
|
837
1017
|
|
|
838
|
-
|
|
1018
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/imageedit`;
|
|
1019
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1020
|
+
context: localVarHttpContext,
|
|
1021
|
+
body: dynamicImageOperation,
|
|
839
1022
|
responseType: 'blob',
|
|
840
1023
|
withCredentials: this.configuration.withCredentials,
|
|
841
|
-
headers:
|
|
1024
|
+
headers: localVarHeaders,
|
|
842
1025
|
observe: observe,
|
|
1026
|
+
transferCache: localVarTransferCache,
|
|
843
1027
|
reportProgress: reportProgress
|
|
844
1028
|
});
|
|
845
1029
|
}
|
|
846
1030
|
|
|
847
1031
|
/**
|
|
848
1032
|
* This endpoint returns an image with the requested download format applied.
|
|
849
|
-
* @param
|
|
850
|
-
* @param downloadFormatId The ID of the download format.
|
|
1033
|
+
* @param requestParameters
|
|
851
1034
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
852
1035
|
* @param reportProgress flag to report request and response progress.
|
|
853
1036
|
*/
|
|
854
1037
|
public httpImageDynamicGetFromDownloadId(
|
|
855
|
-
|
|
856
|
-
downloadFormatId: string,
|
|
1038
|
+
requestParameters?: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
857
1039
|
observe?: 'body',
|
|
858
1040
|
reportProgress?: boolean,
|
|
859
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
1041
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
860
1042
|
): Observable<Blob>;
|
|
861
1043
|
public httpImageDynamicGetFromDownloadId(
|
|
862
|
-
|
|
863
|
-
downloadFormatId: string,
|
|
1044
|
+
requestParameters?: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
864
1045
|
observe?: 'response',
|
|
865
1046
|
reportProgress?: boolean,
|
|
866
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
1047
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
867
1048
|
): Observable<HttpResponse<Blob>>;
|
|
868
1049
|
public httpImageDynamicGetFromDownloadId(
|
|
869
|
-
|
|
870
|
-
downloadFormatId: string,
|
|
1050
|
+
requestParameters?: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
871
1051
|
observe?: 'events',
|
|
872
1052
|
reportProgress?: boolean,
|
|
873
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
1053
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
874
1054
|
): Observable<HttpEvent<Blob>>;
|
|
875
1055
|
public httpImageDynamicGetFromDownloadId(
|
|
876
|
-
|
|
877
|
-
downloadFormatId: string,
|
|
1056
|
+
requestParameters?: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
878
1057
|
observe: any = 'body',
|
|
879
1058
|
reportProgress: boolean = false,
|
|
880
|
-
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json' }
|
|
1059
|
+
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
881
1060
|
): Observable<any> {
|
|
1061
|
+
const id = requestParameters?.id;
|
|
882
1062
|
if (id === null || id === undefined) {
|
|
883
1063
|
throw new Error('Required parameter id was null or undefined when calling httpImageDynamicGetFromDownloadId.');
|
|
884
1064
|
}
|
|
1065
|
+
const downloadFormatId = requestParameters?.downloadFormatId;
|
|
885
1066
|
if (downloadFormatId === null || downloadFormatId === undefined) {
|
|
886
1067
|
throw new Error('Required parameter downloadFormatId was null or undefined when calling httpImageDynamicGetFromDownloadId.');
|
|
887
1068
|
}
|
|
888
1069
|
|
|
889
|
-
let
|
|
1070
|
+
let localVarHeaders = this.defaultHeaders;
|
|
890
1071
|
|
|
891
|
-
let
|
|
1072
|
+
let localVarCredential: string | undefined;
|
|
892
1073
|
// authentication (function_key) required
|
|
893
|
-
|
|
894
|
-
if (
|
|
895
|
-
|
|
1074
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
1075
|
+
if (localVarCredential) {
|
|
1076
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
896
1077
|
}
|
|
897
1078
|
|
|
898
|
-
let
|
|
899
|
-
if (
|
|
1079
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1080
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
900
1081
|
// to determine the Accept header
|
|
901
1082
|
const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
|
|
902
|
-
|
|
1083
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1084
|
+
}
|
|
1085
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1086
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1090
|
+
if (localVarHttpContext === undefined) {
|
|
1091
|
+
localVarHttpContext = new HttpContext();
|
|
903
1092
|
}
|
|
904
|
-
|
|
905
|
-
|
|
1093
|
+
|
|
1094
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1095
|
+
if (localVarTransferCache === undefined) {
|
|
1096
|
+
localVarTransferCache = true;
|
|
906
1097
|
}
|
|
907
1098
|
|
|
908
|
-
|
|
1099
|
+
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 })}`;
|
|
1100
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1101
|
+
context: localVarHttpContext,
|
|
909
1102
|
responseType: 'blob',
|
|
910
1103
|
withCredentials: this.configuration.withCredentials,
|
|
911
|
-
headers:
|
|
1104
|
+
headers: localVarHeaders,
|
|
912
1105
|
observe: observe,
|
|
1106
|
+
transferCache: localVarTransferCache,
|
|
913
1107
|
reportProgress: reportProgress
|
|
914
1108
|
});
|
|
915
1109
|
}
|
|
916
1110
|
|
|
917
1111
|
/**
|
|
918
1112
|
* 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.
|
|
919
|
-
* @param
|
|
920
|
-
* @param assetAvailability The values are validated and put directly on the asset.
|
|
1113
|
+
* @param requestParameters
|
|
921
1114
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
922
1115
|
* @param reportProgress flag to report request and response progress.
|
|
923
1116
|
*/
|
|
924
1117
|
public httpPutAssetAvailability(
|
|
925
|
-
|
|
926
|
-
assetAvailability: AssetAvailability,
|
|
1118
|
+
requestParameters?: HttpPutAssetAvailabilityRequestParams,
|
|
927
1119
|
observe?: 'body',
|
|
928
1120
|
reportProgress?: boolean,
|
|
929
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1121
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
930
1122
|
): Observable<AssetAvailability>;
|
|
931
1123
|
public httpPutAssetAvailability(
|
|
932
|
-
|
|
933
|
-
assetAvailability: AssetAvailability,
|
|
1124
|
+
requestParameters?: HttpPutAssetAvailabilityRequestParams,
|
|
934
1125
|
observe?: 'response',
|
|
935
1126
|
reportProgress?: boolean,
|
|
936
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1127
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
937
1128
|
): Observable<HttpResponse<AssetAvailability>>;
|
|
938
1129
|
public httpPutAssetAvailability(
|
|
939
|
-
|
|
940
|
-
assetAvailability: AssetAvailability,
|
|
1130
|
+
requestParameters?: HttpPutAssetAvailabilityRequestParams,
|
|
941
1131
|
observe?: 'events',
|
|
942
1132
|
reportProgress?: boolean,
|
|
943
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1133
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
944
1134
|
): Observable<HttpEvent<AssetAvailability>>;
|
|
945
1135
|
public httpPutAssetAvailability(
|
|
946
|
-
|
|
947
|
-
assetAvailability: AssetAvailability,
|
|
1136
|
+
requestParameters?: HttpPutAssetAvailabilityRequestParams,
|
|
948
1137
|
observe: any = 'body',
|
|
949
1138
|
reportProgress: boolean = false,
|
|
950
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1139
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
951
1140
|
): Observable<any> {
|
|
1141
|
+
const id = requestParameters?.id;
|
|
952
1142
|
if (id === null || id === undefined) {
|
|
953
1143
|
throw new Error('Required parameter id was null or undefined when calling httpPutAssetAvailability.');
|
|
954
1144
|
}
|
|
1145
|
+
const assetAvailability = requestParameters?.assetAvailability;
|
|
955
1146
|
if (assetAvailability === null || assetAvailability === undefined) {
|
|
956
1147
|
throw new Error('Required parameter assetAvailability was null or undefined when calling httpPutAssetAvailability.');
|
|
957
1148
|
}
|
|
958
1149
|
|
|
959
|
-
let
|
|
1150
|
+
let localVarHeaders = this.defaultHeaders;
|
|
960
1151
|
|
|
961
|
-
let
|
|
1152
|
+
let localVarCredential: string | undefined;
|
|
962
1153
|
// authentication (function_key) required
|
|
963
|
-
|
|
964
|
-
if (
|
|
965
|
-
|
|
1154
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
1155
|
+
if (localVarCredential) {
|
|
1156
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
966
1157
|
}
|
|
967
1158
|
|
|
968
|
-
let
|
|
969
|
-
if (
|
|
1159
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1160
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
970
1161
|
// to determine the Accept header
|
|
971
1162
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
972
|
-
|
|
1163
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
973
1164
|
}
|
|
974
|
-
if (
|
|
975
|
-
|
|
1165
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1166
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1170
|
+
if (localVarHttpContext === undefined) {
|
|
1171
|
+
localVarHttpContext = new HttpContext();
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1175
|
+
if (localVarTransferCache === undefined) {
|
|
1176
|
+
localVarTransferCache = true;
|
|
976
1177
|
}
|
|
977
1178
|
|
|
978
1179
|
// to determine the Content-Type header
|
|
979
1180
|
const consumes: string[] = ['application/json'];
|
|
980
1181
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
981
1182
|
if (httpContentTypeSelected !== undefined) {
|
|
982
|
-
|
|
1183
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
983
1184
|
}
|
|
984
1185
|
|
|
985
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
986
|
-
if (
|
|
987
|
-
|
|
1186
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1187
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1188
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1189
|
+
responseType_ = 'text';
|
|
1190
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1191
|
+
responseType_ = 'json';
|
|
1192
|
+
} else {
|
|
1193
|
+
responseType_ = 'blob';
|
|
1194
|
+
}
|
|
988
1195
|
}
|
|
989
1196
|
|
|
990
|
-
|
|
1197
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/availability`;
|
|
1198
|
+
return this.httpClient.request<AssetAvailability>('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
1199
|
+
context: localVarHttpContext,
|
|
1200
|
+
body: assetAvailability,
|
|
991
1201
|
responseType: <any>responseType_,
|
|
992
1202
|
withCredentials: this.configuration.withCredentials,
|
|
993
|
-
headers:
|
|
1203
|
+
headers: localVarHeaders,
|
|
994
1204
|
observe: observe,
|
|
1205
|
+
transferCache: localVarTransferCache,
|
|
995
1206
|
reportProgress: reportProgress
|
|
996
1207
|
});
|
|
997
1208
|
}
|