@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,18 +11,87 @@
|
|
|
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 {
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { AssetBlob } from '../model/assetBlob.agravity';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { VersionEntity } from '../model/versionEntity.agravity';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { VersionedAsset } from '../model/versionedAsset.agravity';
|
|
23
26
|
|
|
27
|
+
// @ts-ignore
|
|
24
28
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
25
29
|
import { AgravityConfiguration } from '../configuration';
|
|
26
30
|
|
|
31
|
+
export interface HttpAssetCreateNewVersionRequestParams {
|
|
32
|
+
/** The ID of the asset. */
|
|
33
|
+
id: string;
|
|
34
|
+
/** This VersionedAsset to create empty version (need to upload file with metadata to blob storage) */
|
|
35
|
+
versionedAsset: VersionedAsset;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface HttpAssetCreateUploadVersionRequestParams {
|
|
39
|
+
/** The ID of the asset. */
|
|
40
|
+
id: string;
|
|
41
|
+
name?: string;
|
|
42
|
+
collectionId?: string;
|
|
43
|
+
file?: Blob;
|
|
44
|
+
filename?: string;
|
|
45
|
+
previewof?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface HttpAssetRestoreLastVersionRequestParams {
|
|
49
|
+
/** The ID of the asset. */
|
|
50
|
+
id: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface HttpDeleteVersionedAssetsByIdRequestParams {
|
|
54
|
+
/** The ID of the asset. */
|
|
55
|
+
id: string;
|
|
56
|
+
/** The version number of the asset. */
|
|
57
|
+
vNr: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface HttpGetVersionedAssetBlobByIdRequestParams {
|
|
61
|
+
/** The ID of the asset. */
|
|
62
|
+
id: string;
|
|
63
|
+
/** The version number of the asset. */
|
|
64
|
+
vNr: number;
|
|
65
|
+
/** \"t\" for thumbnail (default); \"o\" for optimized */
|
|
66
|
+
c?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface HttpRestoreVersionedAssetsByIdRequestParams {
|
|
70
|
+
/** The ID of the asset. */
|
|
71
|
+
id: string;
|
|
72
|
+
/** The version number of the asset. */
|
|
73
|
+
vNr: string;
|
|
74
|
+
/** Only the version_info is used and will be added to the current version which is archived (before the old version is restored). */
|
|
75
|
+
versionedAsset: VersionedAsset;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface HttpUpdateVersionedAssetsByIdRequestParams {
|
|
79
|
+
/** The ID of the asset. */
|
|
80
|
+
id: string;
|
|
81
|
+
/** The version number of the asset. */
|
|
82
|
+
vNr: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface HttpVersionedAssetsDeleteAllRequestParams {
|
|
86
|
+
/** The ID of the asset. */
|
|
87
|
+
id: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface HttpVersionedAssetsGetRequestParams {
|
|
91
|
+
/** The ID of the asset. */
|
|
92
|
+
id: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
27
95
|
@Injectable({
|
|
28
96
|
providedIn: 'root'
|
|
29
97
|
})
|
|
@@ -35,13 +103,18 @@ export class AssetVersioningService {
|
|
|
35
103
|
|
|
36
104
|
constructor(
|
|
37
105
|
protected httpClient: HttpClient,
|
|
38
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
106
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
39
107
|
@Optional() configuration: AgravityConfiguration
|
|
40
108
|
) {
|
|
41
109
|
if (configuration) {
|
|
42
110
|
this.configuration = configuration;
|
|
43
111
|
}
|
|
44
112
|
if (typeof this.configuration.basePath !== 'string') {
|
|
113
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
114
|
+
if (firstBasePath != undefined) {
|
|
115
|
+
basePath = firstBasePath;
|
|
116
|
+
}
|
|
117
|
+
|
|
45
118
|
if (typeof basePath !== 'string') {
|
|
46
119
|
basePath = this.basePath;
|
|
47
120
|
}
|
|
@@ -64,6 +137,7 @@ export class AssetVersioningService {
|
|
|
64
137
|
return false;
|
|
65
138
|
}
|
|
66
139
|
|
|
140
|
+
// @ts-ignore
|
|
67
141
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
68
142
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
69
143
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -83,7 +157,7 @@ export class AssetVersioningService {
|
|
|
83
157
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
84
158
|
} else if (value instanceof Date) {
|
|
85
159
|
if (key != null) {
|
|
86
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
160
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
87
161
|
} else {
|
|
88
162
|
throw Error('key may not be null if value is Date');
|
|
89
163
|
}
|
|
@@ -100,63 +174,70 @@ export class AssetVersioningService {
|
|
|
100
174
|
|
|
101
175
|
/**
|
|
102
176
|
* This endpoint allows to create empty version or upload one asset which replaces the asset with given id and creates version.
|
|
103
|
-
* @param
|
|
104
|
-
* @param versionedAsset This VersionedAsset to create empty version (need to upload file with metadata to blob storage)
|
|
177
|
+
* @param requestParameters
|
|
105
178
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
106
179
|
* @param reportProgress flag to report request and response progress.
|
|
107
180
|
*/
|
|
108
181
|
public httpAssetCreateNewVersion(
|
|
109
|
-
|
|
110
|
-
versionedAsset: VersionedAsset,
|
|
182
|
+
requestParameters?: HttpAssetCreateNewVersionRequestParams,
|
|
111
183
|
observe?: 'body',
|
|
112
184
|
reportProgress?: boolean,
|
|
113
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
185
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
114
186
|
): Observable<VersionedAsset>;
|
|
115
187
|
public httpAssetCreateNewVersion(
|
|
116
|
-
|
|
117
|
-
versionedAsset: VersionedAsset,
|
|
188
|
+
requestParameters?: HttpAssetCreateNewVersionRequestParams,
|
|
118
189
|
observe?: 'response',
|
|
119
190
|
reportProgress?: boolean,
|
|
120
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
191
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
121
192
|
): Observable<HttpResponse<VersionedAsset>>;
|
|
122
193
|
public httpAssetCreateNewVersion(
|
|
123
|
-
|
|
124
|
-
versionedAsset: VersionedAsset,
|
|
194
|
+
requestParameters?: HttpAssetCreateNewVersionRequestParams,
|
|
125
195
|
observe?: 'events',
|
|
126
196
|
reportProgress?: boolean,
|
|
127
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
197
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
128
198
|
): Observable<HttpEvent<VersionedAsset>>;
|
|
129
199
|
public httpAssetCreateNewVersion(
|
|
130
|
-
|
|
131
|
-
versionedAsset: VersionedAsset,
|
|
200
|
+
requestParameters?: HttpAssetCreateNewVersionRequestParams,
|
|
132
201
|
observe: any = 'body',
|
|
133
202
|
reportProgress: boolean = false,
|
|
134
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
203
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
135
204
|
): Observable<any> {
|
|
205
|
+
const id = requestParameters?.id;
|
|
136
206
|
if (id === null || id === undefined) {
|
|
137
207
|
throw new Error('Required parameter id was null or undefined when calling httpAssetCreateNewVersion.');
|
|
138
208
|
}
|
|
209
|
+
const versionedAsset = requestParameters?.versionedAsset;
|
|
139
210
|
if (versionedAsset === null || versionedAsset === undefined) {
|
|
140
211
|
throw new Error('Required parameter versionedAsset was null or undefined when calling httpAssetCreateNewVersion.');
|
|
141
212
|
}
|
|
142
213
|
|
|
143
|
-
let
|
|
214
|
+
let localVarHeaders = this.defaultHeaders;
|
|
144
215
|
|
|
145
|
-
let
|
|
216
|
+
let localVarCredential: string | undefined;
|
|
146
217
|
// authentication (msal_auth) required
|
|
147
|
-
|
|
148
|
-
if (
|
|
149
|
-
|
|
218
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
219
|
+
if (localVarCredential) {
|
|
220
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
150
221
|
}
|
|
151
222
|
|
|
152
|
-
let
|
|
153
|
-
if (
|
|
223
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
224
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
154
225
|
// to determine the Accept header
|
|
155
226
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
156
|
-
|
|
227
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
157
228
|
}
|
|
158
|
-
if (
|
|
159
|
-
|
|
229
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
230
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
234
|
+
if (localVarHttpContext === undefined) {
|
|
235
|
+
localVarHttpContext = new HttpContext();
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
239
|
+
if (localVarTransferCache === undefined) {
|
|
240
|
+
localVarTransferCache = true;
|
|
160
241
|
}
|
|
161
242
|
|
|
162
243
|
// to determine the Content-Type header
|
|
@@ -166,96 +247,97 @@ export class AssetVersioningService {
|
|
|
166
247
|
// headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
167
248
|
}
|
|
168
249
|
|
|
169
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
170
|
-
if (
|
|
171
|
-
|
|
250
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
251
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
252
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
253
|
+
responseType_ = 'text';
|
|
254
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
255
|
+
responseType_ = 'json';
|
|
256
|
+
} else {
|
|
257
|
+
responseType_ = 'blob';
|
|
258
|
+
}
|
|
172
259
|
}
|
|
173
260
|
|
|
174
|
-
|
|
261
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions`;
|
|
262
|
+
return this.httpClient.request<VersionedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
263
|
+
context: localVarHttpContext,
|
|
264
|
+
body: versionedAsset,
|
|
175
265
|
responseType: <any>responseType_,
|
|
176
266
|
withCredentials: this.configuration.withCredentials,
|
|
177
|
-
headers:
|
|
267
|
+
headers: localVarHeaders,
|
|
178
268
|
observe: observe,
|
|
269
|
+
transferCache: localVarTransferCache,
|
|
179
270
|
reportProgress: reportProgress
|
|
180
271
|
});
|
|
181
272
|
}
|
|
182
273
|
|
|
183
274
|
/**
|
|
184
275
|
* This endpoint allows to upload one asset which replaces the asset with given id and creates a version which is returned.
|
|
185
|
-
* @param
|
|
186
|
-
* @param name
|
|
187
|
-
* @param collectionId
|
|
188
|
-
* @param file
|
|
189
|
-
* @param filename
|
|
190
|
-
* @param previewof
|
|
276
|
+
* @param requestParameters
|
|
191
277
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
192
278
|
* @param reportProgress flag to report request and response progress.
|
|
193
279
|
*/
|
|
194
280
|
public httpAssetCreateUploadVersion(
|
|
195
|
-
|
|
196
|
-
name?: string,
|
|
197
|
-
collectionId?: string,
|
|
198
|
-
file?: Blob,
|
|
199
|
-
filename?: string,
|
|
200
|
-
previewof?: string,
|
|
281
|
+
requestParameters?: HttpAssetCreateUploadVersionRequestParams,
|
|
201
282
|
observe?: 'body',
|
|
202
283
|
reportProgress?: boolean,
|
|
203
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
284
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
204
285
|
): Observable<VersionedAsset>;
|
|
205
286
|
public httpAssetCreateUploadVersion(
|
|
206
|
-
|
|
207
|
-
name?: string,
|
|
208
|
-
collectionId?: string,
|
|
209
|
-
file?: Blob,
|
|
210
|
-
filename?: string,
|
|
211
|
-
previewof?: string,
|
|
287
|
+
requestParameters?: HttpAssetCreateUploadVersionRequestParams,
|
|
212
288
|
observe?: 'response',
|
|
213
289
|
reportProgress?: boolean,
|
|
214
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
290
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
215
291
|
): Observable<HttpResponse<VersionedAsset>>;
|
|
216
292
|
public httpAssetCreateUploadVersion(
|
|
217
|
-
|
|
218
|
-
name?: string,
|
|
219
|
-
collectionId?: string,
|
|
220
|
-
file?: Blob,
|
|
221
|
-
filename?: string,
|
|
222
|
-
previewof?: string,
|
|
293
|
+
requestParameters?: HttpAssetCreateUploadVersionRequestParams,
|
|
223
294
|
observe?: 'events',
|
|
224
295
|
reportProgress?: boolean,
|
|
225
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
296
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
226
297
|
): Observable<HttpEvent<VersionedAsset>>;
|
|
227
298
|
public httpAssetCreateUploadVersion(
|
|
228
|
-
|
|
229
|
-
name?: string,
|
|
230
|
-
collectionId?: string,
|
|
231
|
-
file?: Blob,
|
|
232
|
-
filename?: string,
|
|
233
|
-
previewof?: string,
|
|
299
|
+
requestParameters?: HttpAssetCreateUploadVersionRequestParams,
|
|
234
300
|
observe: any = 'body',
|
|
235
301
|
reportProgress: boolean = false,
|
|
236
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
302
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
237
303
|
): Observable<any> {
|
|
304
|
+
const id = requestParameters?.id;
|
|
238
305
|
if (id === null || id === undefined) {
|
|
239
306
|
throw new Error('Required parameter id was null or undefined when calling httpAssetCreateUploadVersion.');
|
|
240
307
|
}
|
|
308
|
+
const name = requestParameters?.name;
|
|
309
|
+
const collectionId = requestParameters?.collectionId;
|
|
310
|
+
const file = requestParameters?.file;
|
|
311
|
+
const filename = requestParameters?.filename;
|
|
312
|
+
const previewof = requestParameters?.previewof;
|
|
241
313
|
|
|
242
|
-
let
|
|
314
|
+
let localVarHeaders = this.defaultHeaders;
|
|
243
315
|
|
|
244
|
-
let
|
|
316
|
+
let localVarCredential: string | undefined;
|
|
245
317
|
// authentication (msal_auth) required
|
|
246
|
-
|
|
247
|
-
if (
|
|
248
|
-
|
|
318
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
319
|
+
if (localVarCredential) {
|
|
320
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
249
321
|
}
|
|
250
322
|
|
|
251
|
-
let
|
|
252
|
-
if (
|
|
323
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
324
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
253
325
|
// to determine the Accept header
|
|
254
326
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
255
|
-
|
|
327
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
256
328
|
}
|
|
257
|
-
if (
|
|
258
|
-
|
|
329
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
330
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
334
|
+
if (localVarHttpContext === undefined) {
|
|
335
|
+
localVarHttpContext = new HttpContext();
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
339
|
+
if (localVarTransferCache === undefined) {
|
|
340
|
+
localVarTransferCache = true;
|
|
259
341
|
}
|
|
260
342
|
|
|
261
343
|
// to determine the Content-Type header
|
|
@@ -263,460 +345,698 @@ export class AssetVersioningService {
|
|
|
263
345
|
|
|
264
346
|
const canConsumeForm = this.canConsumeForm(consumes);
|
|
265
347
|
|
|
266
|
-
let
|
|
267
|
-
let
|
|
268
|
-
let
|
|
348
|
+
let localVarFormParams: { append(param: string, value: any): any };
|
|
349
|
+
let localVarUseForm = false;
|
|
350
|
+
let localVarConvertFormParamsToString = false;
|
|
269
351
|
// use FormData to transmit files using content-type "multipart/form-data"
|
|
270
352
|
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
271
|
-
|
|
272
|
-
if (
|
|
273
|
-
|
|
353
|
+
localVarUseForm = canConsumeForm;
|
|
354
|
+
if (localVarUseForm) {
|
|
355
|
+
localVarFormParams = new FormData();
|
|
274
356
|
} else {
|
|
275
|
-
|
|
357
|
+
localVarFormParams = new HttpParams({ encoder: this.encoder });
|
|
276
358
|
}
|
|
277
359
|
|
|
278
360
|
if (name !== undefined) {
|
|
279
|
-
|
|
361
|
+
localVarFormParams = (localVarFormParams.append('name', <any>name) as any) || localVarFormParams;
|
|
280
362
|
}
|
|
281
363
|
if (collectionId !== undefined) {
|
|
282
|
-
|
|
364
|
+
localVarFormParams = (localVarFormParams.append('collectionId', <any>collectionId) as any) || localVarFormParams;
|
|
283
365
|
}
|
|
284
366
|
if (file !== undefined) {
|
|
285
|
-
|
|
367
|
+
localVarFormParams = (localVarFormParams.append('file', <any>file) as any) || localVarFormParams;
|
|
286
368
|
}
|
|
287
369
|
if (filename !== undefined) {
|
|
288
|
-
|
|
370
|
+
localVarFormParams = (localVarFormParams.append('filename', <any>filename) as any) || localVarFormParams;
|
|
289
371
|
}
|
|
290
372
|
if (previewof !== undefined) {
|
|
291
|
-
|
|
373
|
+
localVarFormParams = (localVarFormParams.append('previewof', <any>previewof) as any) || localVarFormParams;
|
|
292
374
|
}
|
|
293
375
|
|
|
294
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
295
|
-
if (
|
|
296
|
-
|
|
376
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
377
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
378
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
379
|
+
responseType_ = 'text';
|
|
380
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
381
|
+
responseType_ = 'json';
|
|
382
|
+
} else {
|
|
383
|
+
responseType_ = 'blob';
|
|
384
|
+
}
|
|
297
385
|
}
|
|
298
386
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
);
|
|
387
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versionsupload`;
|
|
388
|
+
return this.httpClient.request<VersionedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
389
|
+
context: localVarHttpContext,
|
|
390
|
+
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
|
391
|
+
responseType: <any>responseType_,
|
|
392
|
+
withCredentials: this.configuration.withCredentials,
|
|
393
|
+
headers: localVarHeaders,
|
|
394
|
+
observe: observe,
|
|
395
|
+
transferCache: localVarTransferCache,
|
|
396
|
+
reportProgress: reportProgress
|
|
397
|
+
});
|
|
310
398
|
}
|
|
311
399
|
|
|
312
400
|
/**
|
|
313
401
|
* This endpoint restores the last version of this asset (even when corrupt or no blob was uploaded).
|
|
314
|
-
* @param
|
|
402
|
+
* @param requestParameters
|
|
315
403
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
316
404
|
* @param reportProgress flag to report request and response progress.
|
|
317
405
|
*/
|
|
318
|
-
public httpAssetRestoreLastVersion(
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
406
|
+
public httpAssetRestoreLastVersion(
|
|
407
|
+
requestParameters?: HttpAssetRestoreLastVersionRequestParams,
|
|
408
|
+
observe?: 'body',
|
|
409
|
+
reportProgress?: boolean,
|
|
410
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
411
|
+
): Observable<VersionedAsset>;
|
|
412
|
+
public httpAssetRestoreLastVersion(
|
|
413
|
+
requestParameters?: HttpAssetRestoreLastVersionRequestParams,
|
|
414
|
+
observe?: 'response',
|
|
415
|
+
reportProgress?: boolean,
|
|
416
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
417
|
+
): Observable<HttpResponse<VersionedAsset>>;
|
|
418
|
+
public httpAssetRestoreLastVersion(
|
|
419
|
+
requestParameters?: HttpAssetRestoreLastVersionRequestParams,
|
|
420
|
+
observe?: 'events',
|
|
421
|
+
reportProgress?: boolean,
|
|
422
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
423
|
+
): Observable<HttpEvent<VersionedAsset>>;
|
|
424
|
+
public httpAssetRestoreLastVersion(
|
|
425
|
+
requestParameters?: HttpAssetRestoreLastVersionRequestParams,
|
|
426
|
+
observe: any = 'body',
|
|
427
|
+
reportProgress: boolean = false,
|
|
428
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
429
|
+
): Observable<any> {
|
|
430
|
+
const id = requestParameters?.id;
|
|
322
431
|
if (id === null || id === undefined) {
|
|
323
432
|
throw new Error('Required parameter id was null or undefined when calling httpAssetRestoreLastVersion.');
|
|
324
433
|
}
|
|
325
434
|
|
|
326
|
-
let
|
|
435
|
+
let localVarHeaders = this.defaultHeaders;
|
|
327
436
|
|
|
328
|
-
let
|
|
437
|
+
let localVarCredential: string | undefined;
|
|
329
438
|
// authentication (msal_auth) required
|
|
330
|
-
|
|
331
|
-
if (
|
|
332
|
-
|
|
439
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
440
|
+
if (localVarCredential) {
|
|
441
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
333
442
|
}
|
|
334
443
|
|
|
335
|
-
let
|
|
336
|
-
if (
|
|
444
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
445
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
337
446
|
// to determine the Accept header
|
|
338
447
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
339
|
-
|
|
448
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
340
449
|
}
|
|
341
|
-
if (
|
|
342
|
-
|
|
450
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
451
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
343
452
|
}
|
|
344
453
|
|
|
345
|
-
let
|
|
346
|
-
if (
|
|
347
|
-
|
|
454
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
455
|
+
if (localVarHttpContext === undefined) {
|
|
456
|
+
localVarHttpContext = new HttpContext();
|
|
348
457
|
}
|
|
349
458
|
|
|
350
|
-
|
|
459
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
460
|
+
if (localVarTransferCache === undefined) {
|
|
461
|
+
localVarTransferCache = true;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
465
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
466
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
467
|
+
responseType_ = 'text';
|
|
468
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
469
|
+
responseType_ = 'json';
|
|
470
|
+
} else {
|
|
471
|
+
responseType_ = 'blob';
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versionsrestore`;
|
|
476
|
+
return this.httpClient.request<VersionedAsset>('patch', `${this.configuration.basePath}${localVarPath}`, {
|
|
477
|
+
context: localVarHttpContext,
|
|
351
478
|
responseType: <any>responseType_,
|
|
352
479
|
withCredentials: this.configuration.withCredentials,
|
|
353
|
-
headers:
|
|
480
|
+
headers: localVarHeaders,
|
|
354
481
|
observe: observe,
|
|
482
|
+
transferCache: localVarTransferCache,
|
|
355
483
|
reportProgress: reportProgress
|
|
356
484
|
});
|
|
357
485
|
}
|
|
358
486
|
|
|
359
487
|
/**
|
|
360
488
|
* This endpoint deletes a version of an asset.
|
|
361
|
-
* @param
|
|
362
|
-
* @param vNr The version number of the asset.
|
|
489
|
+
* @param requestParameters
|
|
363
490
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
364
491
|
* @param reportProgress flag to report request and response progress.
|
|
365
492
|
*/
|
|
366
|
-
public httpDeleteVersionedAssetsById(
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
493
|
+
public httpDeleteVersionedAssetsById(
|
|
494
|
+
requestParameters?: HttpDeleteVersionedAssetsByIdRequestParams,
|
|
495
|
+
observe?: 'body',
|
|
496
|
+
reportProgress?: boolean,
|
|
497
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
498
|
+
): Observable<any>;
|
|
499
|
+
public httpDeleteVersionedAssetsById(
|
|
500
|
+
requestParameters?: HttpDeleteVersionedAssetsByIdRequestParams,
|
|
501
|
+
observe?: 'response',
|
|
502
|
+
reportProgress?: boolean,
|
|
503
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
504
|
+
): Observable<HttpResponse<any>>;
|
|
505
|
+
public httpDeleteVersionedAssetsById(
|
|
506
|
+
requestParameters?: HttpDeleteVersionedAssetsByIdRequestParams,
|
|
507
|
+
observe?: 'events',
|
|
508
|
+
reportProgress?: boolean,
|
|
509
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
510
|
+
): Observable<HttpEvent<any>>;
|
|
511
|
+
public httpDeleteVersionedAssetsById(
|
|
512
|
+
requestParameters?: HttpDeleteVersionedAssetsByIdRequestParams,
|
|
513
|
+
observe: any = 'body',
|
|
514
|
+
reportProgress: boolean = false,
|
|
515
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
516
|
+
): Observable<any> {
|
|
517
|
+
const id = requestParameters?.id;
|
|
370
518
|
if (id === null || id === undefined) {
|
|
371
519
|
throw new Error('Required parameter id was null or undefined when calling httpDeleteVersionedAssetsById.');
|
|
372
520
|
}
|
|
521
|
+
const vNr = requestParameters?.vNr;
|
|
373
522
|
if (vNr === null || vNr === undefined) {
|
|
374
523
|
throw new Error('Required parameter vNr was null or undefined when calling httpDeleteVersionedAssetsById.');
|
|
375
524
|
}
|
|
376
525
|
|
|
377
|
-
let
|
|
526
|
+
let localVarHeaders = this.defaultHeaders;
|
|
378
527
|
|
|
379
|
-
let
|
|
528
|
+
let localVarCredential: string | undefined;
|
|
380
529
|
// authentication (msal_auth) required
|
|
381
|
-
|
|
382
|
-
if (
|
|
383
|
-
|
|
530
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
531
|
+
if (localVarCredential) {
|
|
532
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
384
533
|
}
|
|
385
534
|
|
|
386
|
-
let
|
|
387
|
-
if (
|
|
535
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
536
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
388
537
|
// to determine the Accept header
|
|
389
538
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
390
|
-
|
|
539
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
540
|
+
}
|
|
541
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
542
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
546
|
+
if (localVarHttpContext === undefined) {
|
|
547
|
+
localVarHttpContext = new HttpContext();
|
|
391
548
|
}
|
|
392
|
-
|
|
393
|
-
|
|
549
|
+
|
|
550
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
551
|
+
if (localVarTransferCache === undefined) {
|
|
552
|
+
localVarTransferCache = true;
|
|
394
553
|
}
|
|
395
554
|
|
|
396
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
397
|
-
if (
|
|
398
|
-
|
|
555
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
556
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
557
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
558
|
+
responseType_ = 'text';
|
|
559
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
560
|
+
responseType_ = 'json';
|
|
561
|
+
} else {
|
|
562
|
+
responseType_ = 'blob';
|
|
563
|
+
}
|
|
399
564
|
}
|
|
400
565
|
|
|
401
|
-
|
|
566
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions/${this.configuration.encodeParam({ name: 'vNr', value: vNr, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
567
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
568
|
+
context: localVarHttpContext,
|
|
402
569
|
responseType: <any>responseType_,
|
|
403
570
|
withCredentials: this.configuration.withCredentials,
|
|
404
|
-
headers:
|
|
571
|
+
headers: localVarHeaders,
|
|
405
572
|
observe: observe,
|
|
573
|
+
transferCache: localVarTransferCache,
|
|
406
574
|
reportProgress: reportProgress
|
|
407
575
|
});
|
|
408
576
|
}
|
|
409
577
|
|
|
410
578
|
/**
|
|
411
579
|
* This endpoint checks if assets and version exists and returns the url for the requested blob.
|
|
412
|
-
* @param
|
|
413
|
-
* @param vNr The version number of the asset.
|
|
414
|
-
* @param c \"t\" for thumbnail (default); \"o\" for optimized
|
|
580
|
+
* @param requestParameters
|
|
415
581
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
416
582
|
* @param reportProgress flag to report request and response progress.
|
|
417
583
|
*/
|
|
418
|
-
public httpGetVersionedAssetBlobById(id: string, vNr: number, c?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AssetBlob>;
|
|
419
584
|
public httpGetVersionedAssetBlobById(
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
585
|
+
requestParameters?: HttpGetVersionedAssetBlobByIdRequestParams,
|
|
586
|
+
observe?: 'body',
|
|
587
|
+
reportProgress?: boolean,
|
|
588
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
589
|
+
): Observable<AssetBlob>;
|
|
590
|
+
public httpGetVersionedAssetBlobById(
|
|
591
|
+
requestParameters?: HttpGetVersionedAssetBlobByIdRequestParams,
|
|
423
592
|
observe?: 'response',
|
|
424
593
|
reportProgress?: boolean,
|
|
425
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
594
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
426
595
|
): Observable<HttpResponse<AssetBlob>>;
|
|
427
596
|
public httpGetVersionedAssetBlobById(
|
|
428
|
-
|
|
429
|
-
vNr: number,
|
|
430
|
-
c?: string,
|
|
597
|
+
requestParameters?: HttpGetVersionedAssetBlobByIdRequestParams,
|
|
431
598
|
observe?: 'events',
|
|
432
599
|
reportProgress?: boolean,
|
|
433
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
600
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
434
601
|
): Observable<HttpEvent<AssetBlob>>;
|
|
435
602
|
public httpGetVersionedAssetBlobById(
|
|
436
|
-
|
|
437
|
-
vNr: number,
|
|
438
|
-
c?: string,
|
|
603
|
+
requestParameters?: HttpGetVersionedAssetBlobByIdRequestParams,
|
|
439
604
|
observe: any = 'body',
|
|
440
605
|
reportProgress: boolean = false,
|
|
441
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
606
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
442
607
|
): Observable<any> {
|
|
608
|
+
const id = requestParameters?.id;
|
|
443
609
|
if (id === null || id === undefined) {
|
|
444
610
|
throw new Error('Required parameter id was null or undefined when calling httpGetVersionedAssetBlobById.');
|
|
445
611
|
}
|
|
612
|
+
const vNr = requestParameters?.vNr;
|
|
446
613
|
if (vNr === null || vNr === undefined) {
|
|
447
614
|
throw new Error('Required parameter vNr was null or undefined when calling httpGetVersionedAssetBlobById.');
|
|
448
615
|
}
|
|
616
|
+
const c = requestParameters?.c;
|
|
449
617
|
|
|
450
|
-
let
|
|
618
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
451
619
|
if (c !== undefined && c !== null) {
|
|
452
|
-
|
|
620
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
|
|
453
621
|
}
|
|
454
622
|
|
|
455
|
-
let
|
|
623
|
+
let localVarHeaders = this.defaultHeaders;
|
|
456
624
|
|
|
457
|
-
let
|
|
625
|
+
let localVarCredential: string | undefined;
|
|
458
626
|
// authentication (msal_auth) required
|
|
459
|
-
|
|
460
|
-
if (
|
|
461
|
-
|
|
627
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
628
|
+
if (localVarCredential) {
|
|
629
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
462
630
|
}
|
|
463
631
|
|
|
464
|
-
let
|
|
465
|
-
if (
|
|
632
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
633
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
466
634
|
// to determine the Accept header
|
|
467
635
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
468
|
-
|
|
636
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
469
637
|
}
|
|
470
|
-
if (
|
|
471
|
-
|
|
638
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
639
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
643
|
+
if (localVarHttpContext === undefined) {
|
|
644
|
+
localVarHttpContext = new HttpContext();
|
|
472
645
|
}
|
|
473
646
|
|
|
474
|
-
let
|
|
475
|
-
if (
|
|
476
|
-
|
|
647
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
648
|
+
if (localVarTransferCache === undefined) {
|
|
649
|
+
localVarTransferCache = true;
|
|
477
650
|
}
|
|
478
651
|
|
|
479
|
-
|
|
480
|
-
|
|
652
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
653
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
654
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
655
|
+
responseType_ = 'text';
|
|
656
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
657
|
+
responseType_ = 'json';
|
|
658
|
+
} else {
|
|
659
|
+
responseType_ = 'blob';
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions/${this.configuration.encodeParam({ name: 'vNr', value: vNr, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: 'int32' })}/blobs`;
|
|
664
|
+
return this.httpClient.request<AssetBlob>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
665
|
+
context: localVarHttpContext,
|
|
666
|
+
params: localVarQueryParameters,
|
|
481
667
|
responseType: <any>responseType_,
|
|
482
668
|
withCredentials: this.configuration.withCredentials,
|
|
483
|
-
headers:
|
|
669
|
+
headers: localVarHeaders,
|
|
484
670
|
observe: observe,
|
|
671
|
+
transferCache: localVarTransferCache,
|
|
485
672
|
reportProgress: reportProgress
|
|
486
673
|
});
|
|
487
674
|
}
|
|
488
675
|
|
|
489
676
|
/**
|
|
490
677
|
* This endpoint restores a version nr to be the current version and saves the current asset as version.
|
|
491
|
-
* @param
|
|
492
|
-
* @param vNr The version number of the asset.
|
|
493
|
-
* @param versionedAsset Only the version_info is used and will be added to the current version which is archived (before the old version is restored).
|
|
678
|
+
* @param requestParameters
|
|
494
679
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
495
680
|
* @param reportProgress flag to report request and response progress.
|
|
496
681
|
*/
|
|
497
682
|
public httpRestoreVersionedAssetsById(
|
|
498
|
-
|
|
499
|
-
vNr: string,
|
|
500
|
-
versionedAsset: VersionedAsset,
|
|
683
|
+
requestParameters?: HttpRestoreVersionedAssetsByIdRequestParams,
|
|
501
684
|
observe?: 'body',
|
|
502
685
|
reportProgress?: boolean,
|
|
503
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
686
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
504
687
|
): Observable<VersionedAsset>;
|
|
505
688
|
public httpRestoreVersionedAssetsById(
|
|
506
|
-
|
|
507
|
-
vNr: string,
|
|
508
|
-
versionedAsset: VersionedAsset,
|
|
689
|
+
requestParameters?: HttpRestoreVersionedAssetsByIdRequestParams,
|
|
509
690
|
observe?: 'response',
|
|
510
691
|
reportProgress?: boolean,
|
|
511
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
692
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
512
693
|
): Observable<HttpResponse<VersionedAsset>>;
|
|
513
694
|
public httpRestoreVersionedAssetsById(
|
|
514
|
-
|
|
515
|
-
vNr: string,
|
|
516
|
-
versionedAsset: VersionedAsset,
|
|
695
|
+
requestParameters?: HttpRestoreVersionedAssetsByIdRequestParams,
|
|
517
696
|
observe?: 'events',
|
|
518
697
|
reportProgress?: boolean,
|
|
519
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
698
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
520
699
|
): Observable<HttpEvent<VersionedAsset>>;
|
|
521
700
|
public httpRestoreVersionedAssetsById(
|
|
522
|
-
|
|
523
|
-
vNr: string,
|
|
524
|
-
versionedAsset: VersionedAsset,
|
|
701
|
+
requestParameters?: HttpRestoreVersionedAssetsByIdRequestParams,
|
|
525
702
|
observe: any = 'body',
|
|
526
703
|
reportProgress: boolean = false,
|
|
527
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
704
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
528
705
|
): Observable<any> {
|
|
706
|
+
const id = requestParameters?.id;
|
|
529
707
|
if (id === null || id === undefined) {
|
|
530
708
|
throw new Error('Required parameter id was null or undefined when calling httpRestoreVersionedAssetsById.');
|
|
531
709
|
}
|
|
710
|
+
const vNr = requestParameters?.vNr;
|
|
532
711
|
if (vNr === null || vNr === undefined) {
|
|
533
712
|
throw new Error('Required parameter vNr was null or undefined when calling httpRestoreVersionedAssetsById.');
|
|
534
713
|
}
|
|
714
|
+
const versionedAsset = requestParameters?.versionedAsset;
|
|
535
715
|
if (versionedAsset === null || versionedAsset === undefined) {
|
|
536
716
|
throw new Error('Required parameter versionedAsset was null or undefined when calling httpRestoreVersionedAssetsById.');
|
|
537
717
|
}
|
|
538
718
|
|
|
539
|
-
let
|
|
719
|
+
let localVarHeaders = this.defaultHeaders;
|
|
540
720
|
|
|
541
|
-
let
|
|
721
|
+
let localVarCredential: string | undefined;
|
|
542
722
|
// authentication (msal_auth) required
|
|
543
|
-
|
|
544
|
-
if (
|
|
545
|
-
|
|
723
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
724
|
+
if (localVarCredential) {
|
|
725
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
546
726
|
}
|
|
547
727
|
|
|
548
|
-
let
|
|
549
|
-
if (
|
|
728
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
729
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
550
730
|
// to determine the Accept header
|
|
551
731
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
552
|
-
|
|
732
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
553
733
|
}
|
|
554
|
-
if (
|
|
555
|
-
|
|
734
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
735
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
739
|
+
if (localVarHttpContext === undefined) {
|
|
740
|
+
localVarHttpContext = new HttpContext();
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
744
|
+
if (localVarTransferCache === undefined) {
|
|
745
|
+
localVarTransferCache = true;
|
|
556
746
|
}
|
|
557
747
|
|
|
558
748
|
// to determine the Content-Type header
|
|
559
749
|
const consumes: string[] = ['application/json'];
|
|
560
750
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
561
751
|
if (httpContentTypeSelected !== undefined) {
|
|
562
|
-
|
|
752
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
563
753
|
}
|
|
564
754
|
|
|
565
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
566
|
-
if (
|
|
567
|
-
|
|
755
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
756
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
757
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
758
|
+
responseType_ = 'text';
|
|
759
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
760
|
+
responseType_ = 'json';
|
|
761
|
+
} else {
|
|
762
|
+
responseType_ = 'blob';
|
|
763
|
+
}
|
|
568
764
|
}
|
|
569
765
|
|
|
570
|
-
|
|
766
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions/${this.configuration.encodeParam({ name: 'vNr', value: vNr, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/restore`;
|
|
767
|
+
return this.httpClient.request<VersionedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
768
|
+
context: localVarHttpContext,
|
|
769
|
+
body: versionedAsset,
|
|
571
770
|
responseType: <any>responseType_,
|
|
572
771
|
withCredentials: this.configuration.withCredentials,
|
|
573
|
-
headers:
|
|
772
|
+
headers: localVarHeaders,
|
|
574
773
|
observe: observe,
|
|
774
|
+
transferCache: localVarTransferCache,
|
|
575
775
|
reportProgress: reportProgress
|
|
576
776
|
});
|
|
577
777
|
}
|
|
578
778
|
|
|
579
779
|
/**
|
|
580
780
|
* This endpoint updates a version of an asset.
|
|
581
|
-
* @param
|
|
582
|
-
* @param vNr The version number of the asset.
|
|
781
|
+
* @param requestParameters
|
|
583
782
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
584
783
|
* @param reportProgress flag to report request and response progress.
|
|
585
784
|
*/
|
|
586
|
-
public httpUpdateVersionedAssetsById(
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
785
|
+
public httpUpdateVersionedAssetsById(
|
|
786
|
+
requestParameters?: HttpUpdateVersionedAssetsByIdRequestParams,
|
|
787
|
+
observe?: 'body',
|
|
788
|
+
reportProgress?: boolean,
|
|
789
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
790
|
+
): Observable<VersionedAsset>;
|
|
791
|
+
public httpUpdateVersionedAssetsById(
|
|
792
|
+
requestParameters?: HttpUpdateVersionedAssetsByIdRequestParams,
|
|
793
|
+
observe?: 'response',
|
|
794
|
+
reportProgress?: boolean,
|
|
795
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
796
|
+
): Observable<HttpResponse<VersionedAsset>>;
|
|
797
|
+
public httpUpdateVersionedAssetsById(
|
|
798
|
+
requestParameters?: HttpUpdateVersionedAssetsByIdRequestParams,
|
|
799
|
+
observe?: 'events',
|
|
800
|
+
reportProgress?: boolean,
|
|
801
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
802
|
+
): Observable<HttpEvent<VersionedAsset>>;
|
|
803
|
+
public httpUpdateVersionedAssetsById(
|
|
804
|
+
requestParameters?: HttpUpdateVersionedAssetsByIdRequestParams,
|
|
805
|
+
observe: any = 'body',
|
|
806
|
+
reportProgress: boolean = false,
|
|
807
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
808
|
+
): Observable<any> {
|
|
809
|
+
const id = requestParameters?.id;
|
|
590
810
|
if (id === null || id === undefined) {
|
|
591
811
|
throw new Error('Required parameter id was null or undefined when calling httpUpdateVersionedAssetsById.');
|
|
592
812
|
}
|
|
813
|
+
const vNr = requestParameters?.vNr;
|
|
593
814
|
if (vNr === null || vNr === undefined) {
|
|
594
815
|
throw new Error('Required parameter vNr was null or undefined when calling httpUpdateVersionedAssetsById.');
|
|
595
816
|
}
|
|
596
817
|
|
|
597
|
-
let
|
|
818
|
+
let localVarHeaders = this.defaultHeaders;
|
|
598
819
|
|
|
599
|
-
let
|
|
820
|
+
let localVarCredential: string | undefined;
|
|
600
821
|
// authentication (msal_auth) required
|
|
601
|
-
|
|
602
|
-
if (
|
|
603
|
-
|
|
822
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
823
|
+
if (localVarCredential) {
|
|
824
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
604
825
|
}
|
|
605
826
|
|
|
606
|
-
let
|
|
607
|
-
if (
|
|
827
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
828
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
608
829
|
// to determine the Accept header
|
|
609
830
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
610
|
-
|
|
831
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
832
|
+
}
|
|
833
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
834
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
611
835
|
}
|
|
612
|
-
|
|
613
|
-
|
|
836
|
+
|
|
837
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
838
|
+
if (localVarHttpContext === undefined) {
|
|
839
|
+
localVarHttpContext = new HttpContext();
|
|
614
840
|
}
|
|
615
841
|
|
|
616
|
-
let
|
|
617
|
-
if (
|
|
618
|
-
|
|
842
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
843
|
+
if (localVarTransferCache === undefined) {
|
|
844
|
+
localVarTransferCache = true;
|
|
619
845
|
}
|
|
620
846
|
|
|
621
|
-
|
|
847
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
848
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
849
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
850
|
+
responseType_ = 'text';
|
|
851
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
852
|
+
responseType_ = 'json';
|
|
853
|
+
} else {
|
|
854
|
+
responseType_ = 'blob';
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions/${this.configuration.encodeParam({ name: 'vNr', value: vNr, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
859
|
+
return this.httpClient.request<VersionedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
860
|
+
context: localVarHttpContext,
|
|
622
861
|
responseType: <any>responseType_,
|
|
623
862
|
withCredentials: this.configuration.withCredentials,
|
|
624
|
-
headers:
|
|
863
|
+
headers: localVarHeaders,
|
|
625
864
|
observe: observe,
|
|
865
|
+
transferCache: localVarTransferCache,
|
|
626
866
|
reportProgress: reportProgress
|
|
627
867
|
});
|
|
628
868
|
}
|
|
629
869
|
|
|
630
870
|
/**
|
|
631
871
|
* This endpoint deletes all versioned asset.
|
|
632
|
-
* @param
|
|
872
|
+
* @param requestParameters
|
|
633
873
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
634
874
|
* @param reportProgress flag to report request and response progress.
|
|
635
875
|
*/
|
|
636
|
-
public httpVersionedAssetsDeleteAll(
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
876
|
+
public httpVersionedAssetsDeleteAll(
|
|
877
|
+
requestParameters?: HttpVersionedAssetsDeleteAllRequestParams,
|
|
878
|
+
observe?: 'body',
|
|
879
|
+
reportProgress?: boolean,
|
|
880
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
881
|
+
): Observable<any>;
|
|
882
|
+
public httpVersionedAssetsDeleteAll(
|
|
883
|
+
requestParameters?: HttpVersionedAssetsDeleteAllRequestParams,
|
|
884
|
+
observe?: 'response',
|
|
885
|
+
reportProgress?: boolean,
|
|
886
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
887
|
+
): Observable<HttpResponse<any>>;
|
|
888
|
+
public httpVersionedAssetsDeleteAll(
|
|
889
|
+
requestParameters?: HttpVersionedAssetsDeleteAllRequestParams,
|
|
890
|
+
observe?: 'events',
|
|
891
|
+
reportProgress?: boolean,
|
|
892
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
893
|
+
): Observable<HttpEvent<any>>;
|
|
894
|
+
public httpVersionedAssetsDeleteAll(
|
|
895
|
+
requestParameters?: HttpVersionedAssetsDeleteAllRequestParams,
|
|
896
|
+
observe: any = 'body',
|
|
897
|
+
reportProgress: boolean = false,
|
|
898
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
899
|
+
): Observable<any> {
|
|
900
|
+
const id = requestParameters?.id;
|
|
640
901
|
if (id === null || id === undefined) {
|
|
641
902
|
throw new Error('Required parameter id was null or undefined when calling httpVersionedAssetsDeleteAll.');
|
|
642
903
|
}
|
|
643
904
|
|
|
644
|
-
let
|
|
905
|
+
let localVarHeaders = this.defaultHeaders;
|
|
645
906
|
|
|
646
|
-
let
|
|
907
|
+
let localVarCredential: string | undefined;
|
|
647
908
|
// authentication (msal_auth) required
|
|
648
|
-
|
|
649
|
-
if (
|
|
650
|
-
|
|
909
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
910
|
+
if (localVarCredential) {
|
|
911
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
651
912
|
}
|
|
652
913
|
|
|
653
|
-
let
|
|
654
|
-
if (
|
|
914
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
915
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
655
916
|
// to determine the Accept header
|
|
656
917
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
657
|
-
|
|
918
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
919
|
+
}
|
|
920
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
921
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
658
922
|
}
|
|
659
|
-
|
|
660
|
-
|
|
923
|
+
|
|
924
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
925
|
+
if (localVarHttpContext === undefined) {
|
|
926
|
+
localVarHttpContext = new HttpContext();
|
|
661
927
|
}
|
|
662
928
|
|
|
663
|
-
let
|
|
664
|
-
if (
|
|
665
|
-
|
|
929
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
930
|
+
if (localVarTransferCache === undefined) {
|
|
931
|
+
localVarTransferCache = true;
|
|
666
932
|
}
|
|
667
933
|
|
|
668
|
-
|
|
934
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
935
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
936
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
937
|
+
responseType_ = 'text';
|
|
938
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
939
|
+
responseType_ = 'json';
|
|
940
|
+
} else {
|
|
941
|
+
responseType_ = 'blob';
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions`;
|
|
946
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
947
|
+
context: localVarHttpContext,
|
|
669
948
|
responseType: <any>responseType_,
|
|
670
949
|
withCredentials: this.configuration.withCredentials,
|
|
671
|
-
headers:
|
|
950
|
+
headers: localVarHeaders,
|
|
672
951
|
observe: observe,
|
|
952
|
+
transferCache: localVarTransferCache,
|
|
673
953
|
reportProgress: reportProgress
|
|
674
954
|
});
|
|
675
955
|
}
|
|
676
956
|
|
|
677
957
|
/**
|
|
678
958
|
* This endpoint lists all the versioned assets which are stored in the database if asset is still valid.
|
|
679
|
-
* @param
|
|
959
|
+
* @param requestParameters
|
|
680
960
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
681
961
|
* @param reportProgress flag to report request and response progress.
|
|
682
962
|
*/
|
|
683
|
-
public httpVersionedAssetsGet(
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
963
|
+
public httpVersionedAssetsGet(
|
|
964
|
+
requestParameters?: HttpVersionedAssetsGetRequestParams,
|
|
965
|
+
observe?: 'body',
|
|
966
|
+
reportProgress?: boolean,
|
|
967
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
968
|
+
): Observable<VersionEntity>;
|
|
969
|
+
public httpVersionedAssetsGet(
|
|
970
|
+
requestParameters?: HttpVersionedAssetsGetRequestParams,
|
|
971
|
+
observe?: 'response',
|
|
972
|
+
reportProgress?: boolean,
|
|
973
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
974
|
+
): Observable<HttpResponse<VersionEntity>>;
|
|
975
|
+
public httpVersionedAssetsGet(
|
|
976
|
+
requestParameters?: HttpVersionedAssetsGetRequestParams,
|
|
977
|
+
observe?: 'events',
|
|
978
|
+
reportProgress?: boolean,
|
|
979
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
980
|
+
): Observable<HttpEvent<VersionEntity>>;
|
|
981
|
+
public httpVersionedAssetsGet(
|
|
982
|
+
requestParameters?: HttpVersionedAssetsGetRequestParams,
|
|
983
|
+
observe: any = 'body',
|
|
984
|
+
reportProgress: boolean = false,
|
|
985
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
986
|
+
): Observable<any> {
|
|
987
|
+
const id = requestParameters?.id;
|
|
687
988
|
if (id === null || id === undefined) {
|
|
688
989
|
throw new Error('Required parameter id was null or undefined when calling httpVersionedAssetsGet.');
|
|
689
990
|
}
|
|
690
991
|
|
|
691
|
-
let
|
|
992
|
+
let localVarHeaders = this.defaultHeaders;
|
|
692
993
|
|
|
693
|
-
let
|
|
994
|
+
let localVarCredential: string | undefined;
|
|
694
995
|
// authentication (msal_auth) required
|
|
695
|
-
|
|
696
|
-
if (
|
|
697
|
-
|
|
996
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
997
|
+
if (localVarCredential) {
|
|
998
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
698
999
|
}
|
|
699
1000
|
|
|
700
|
-
let
|
|
701
|
-
if (
|
|
1001
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1002
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
702
1003
|
// to determine the Accept header
|
|
703
1004
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
704
|
-
|
|
1005
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1006
|
+
}
|
|
1007
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1008
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1012
|
+
if (localVarHttpContext === undefined) {
|
|
1013
|
+
localVarHttpContext = new HttpContext();
|
|
705
1014
|
}
|
|
706
|
-
|
|
707
|
-
|
|
1015
|
+
|
|
1016
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1017
|
+
if (localVarTransferCache === undefined) {
|
|
1018
|
+
localVarTransferCache = true;
|
|
708
1019
|
}
|
|
709
1020
|
|
|
710
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
711
|
-
if (
|
|
712
|
-
|
|
1021
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1022
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1023
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1024
|
+
responseType_ = 'text';
|
|
1025
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1026
|
+
responseType_ = 'json';
|
|
1027
|
+
} else {
|
|
1028
|
+
responseType_ = 'blob';
|
|
1029
|
+
}
|
|
713
1030
|
}
|
|
714
1031
|
|
|
715
|
-
|
|
1032
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions`;
|
|
1033
|
+
return this.httpClient.request<VersionEntity>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1034
|
+
context: localVarHttpContext,
|
|
716
1035
|
responseType: <any>responseType_,
|
|
717
1036
|
withCredentials: this.configuration.withCredentials,
|
|
718
|
-
headers:
|
|
1037
|
+
headers: localVarHeaders,
|
|
719
1038
|
observe: observe,
|
|
1039
|
+
transferCache: localVarTransferCache,
|
|
720
1040
|
reportProgress: reportProgress
|
|
721
1041
|
});
|
|
722
1042
|
}
|