@agravity/private 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +117 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +203 -0
- package/api/api.ts +67 -0
- package/api/assetIconRuleManagement.agravity.ts +400 -0
- package/api/assetManagement.agravity.ts +737 -0
- package/api/assetOperations.agravity.ts +1309 -0
- package/api/assetPublishing.agravity.ts +511 -0
- package/api/assetVersioning.agravity.ts +657 -0
- package/api/authenticationManagement.agravity.ts +502 -0
- package/api/collectionManagement.agravity.ts +618 -0
- package/api/collectionSharing.agravity.ts +329 -0
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +340 -0
- package/api/collectionTypeManagement.agravity.ts +533 -0
- package/api/configurationManagement.agravity.ts +311 -0
- package/api/downloadFormatManagement.agravity.ts +400 -0
- package/api/downloadZip.agravity.ts +151 -0
- package/api/generalManagement.agravity.ts +348 -0
- package/api/helperTools.agravity.ts +640 -0
- package/api/iccProfileManagement.agravity.ts +134 -0
- package/api/listBlobs.agravity.ts +185 -0
- package/api/listQueues.agravity.ts +134 -0
- package/api/permissionsManagement.agravity.ts +262 -0
- package/api/publishing.agravity.ts +148 -0
- package/api/quickshareManagement.agravity.ts +385 -0
- package/api/savedSearchManagement.agravity.ts +271 -0
- package/api/searchManagement.agravity.ts +345 -0
- package/api/secureUpload.agravity.ts +371 -0
- package/api/signalRConnectionManagement.agravity.ts +218 -0
- package/api/staticDefinedListManagement.agravity.ts +408 -0
- package/api/stockImport.agravity.ts +221 -0
- package/api/structureImport.agravity.ts +137 -0
- package/api/translationManagement.agravity.ts +404 -0
- package/api/upgradeManagement.agravity.ts +333 -0
- package/api/webAppData.agravity.ts +300 -0
- package/api/wordpressManagement.agravity.ts +282 -0
- package/api/workspaceManagement.agravity.ts +513 -0
- package/api.module.ts +63 -0
- package/configuration.ts +130 -0
- package/encoder.ts +20 -0
- package/git_push.sh +58 -0
- package/index.ts +5 -0
- package/model/agravityErrorResponse.agravity.ts +19 -0
- package/model/agravityInfoResponse.agravity.ts +19 -0
- package/model/agravityUser.agravity.ts +37 -0
- package/model/agravityVersion.agravity.ts +24 -0
- package/model/allWebAppData.agravity.ts +24 -0
- package/model/apiKeyResponse.agravity.ts +18 -0
- package/model/appConfigTableEntity.agravity.ts +25 -0
- package/model/artificialIntelligenceGroup.agravity.ts +20 -0
- package/model/asset.agravity.ts +47 -0
- package/model/assetAvailability.agravity.ts +19 -0
- package/model/assetBlob.agravity.ts +82 -0
- package/model/assetBulkUpdate.agravity.ts +20 -0
- package/model/assetCollectionLink.agravity.ts +18 -0
- package/model/assetIconRule.agravity.ts +35 -0
- package/model/assetIdContainer.agravity.ts +18 -0
- package/model/assetPageResult.agravity.ts +23 -0
- package/model/assetsOperationBody.agravity.ts +20 -0
- package/model/azSearchOptions.agravity.ts +25 -0
- package/model/azureIdentity.agravity.ts +30 -0
- package/model/blobInfoObj.agravity.ts +23 -0
- package/model/collTypeItem.agravity.ts +38 -0
- package/model/collTypeItemBlueprint.agravity.ts +31 -0
- package/model/collection.agravity.ts +35 -0
- package/model/collectionType.agravity.ts +35 -0
- package/model/collectionUDL.agravity.ts +21 -0
- package/model/createSftpUserResult.agravity.ts +18 -0
- package/model/dataResult.agravity.ts +22 -0
- package/model/distZipResponse.agravity.ts +19 -0
- package/model/downloadFormat.agravity.ts +34 -0
- package/model/downloadObject.agravity.ts +32 -0
- package/model/downloadZipRequest.agravity.ts +25 -0
- package/model/dynamicImageOperation.agravity.ts +18 -0
- package/model/emailAddress.agravity.ts +18 -0
- package/model/entityId.agravity.ts +17 -0
- package/model/entityIdName.agravity.ts +19 -0
- package/model/entityTranslations.agravity.ts +18 -0
- package/model/frontendAppConfig.agravity.ts +21 -0
- package/model/groupAllAppData.agravity.ts +26 -0
- package/model/infoEntitySkillEnhanced.agravity.ts +25 -0
- package/model/metadata.agravity.ts +19 -0
- package/model/models.ts +73 -0
- package/model/moveCollectionBody.agravity.ts +19 -0
- package/model/permissionChange.agravity.ts +29 -0
- package/model/permissionSetting.agravity.ts +27 -0
- package/model/publishEntity.agravity.ts +28 -0
- package/model/publishedAsset.agravity.ts +25 -0
- package/model/quickShare.agravity.ts +31 -0
- package/model/quickShareFull.agravity.ts +36 -0
- package/model/sasToken.agravity.ts +22 -0
- package/model/savedSearch.agravity.ts +31 -0
- package/model/searchAdminDataSourceStatus.agravity.ts +18 -0
- package/model/searchAdminIndexStatus.agravity.ts +20 -0
- package/model/searchAdminIndexerLastRun.agravity.ts +21 -0
- package/model/searchAdminIndexerStatus.agravity.ts +20 -0
- package/model/searchAdminSkillStatus.agravity.ts +18 -0
- package/model/searchAdminStatistics.agravity.ts +18 -0
- package/model/searchAdminStatus.agravity.ts +24 -0
- package/model/searchFacet.agravity.ts +19 -0
- package/model/searchFacetEntity.agravity.ts +19 -0
- package/model/searchResult.agravity.ts +23 -0
- package/model/searchableItem.agravity.ts +26 -0
- package/model/secureUploadEntity.agravity.ts +27 -0
- package/model/sharedAsset.agravity.ts +25 -0
- package/model/sharedCollection.agravity.ts +24 -0
- package/model/sharedCollectionFull.agravity.ts +29 -0
- package/model/signalRConnectionInfo.agravity.ts +18 -0
- package/model/simpleAsset.agravity.ts +26 -0
- package/model/staticDefinedList.agravity.ts +30 -0
- package/model/uiTutorials.agravity.ts +26 -0
- package/model/upgradeV2V3CollectionCustomItemTableEntity.agravity.ts +21 -0
- package/model/versionEntity.agravity.ts +28 -0
- package/model/versionedAsset.agravity.ts +20 -0
- package/model/whereParam.agravity.ts +43 -0
- package/model/workspace.agravity.ts +34 -0
- package/package.json +28 -0
- package/variables.ts +9 -0
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
3
|
+
* <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2023. All Rights Reserved
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.2.0
|
|
6
|
+
* Contact: office@agravity.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
+
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
17
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
18
|
+
import { Observable } from 'rxjs';
|
|
19
|
+
|
|
20
|
+
import { AgravityErrorResponse } from '../model/models';
|
|
21
|
+
import { PublishEntity } from '../model/models';
|
|
22
|
+
import { PublishedAsset } from '../model/models';
|
|
23
|
+
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
25
|
+
import { AgravityConfiguration } from '../configuration';
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@Injectable({
|
|
30
|
+
providedIn: 'root'
|
|
31
|
+
})
|
|
32
|
+
export class AssetPublishingService {
|
|
33
|
+
|
|
34
|
+
protected basePath = 'http://localhost:7071/api';
|
|
35
|
+
public defaultHeaders = new HttpHeaders();
|
|
36
|
+
public configuration = new AgravityConfiguration();
|
|
37
|
+
public encoder: HttpParameterCodec;
|
|
38
|
+
|
|
39
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
|
|
40
|
+
if (configuration) {
|
|
41
|
+
this.configuration = configuration;
|
|
42
|
+
}
|
|
43
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
44
|
+
if (typeof basePath !== 'string') {
|
|
45
|
+
basePath = this.basePath;
|
|
46
|
+
}
|
|
47
|
+
this.configuration.basePath = basePath;
|
|
48
|
+
}
|
|
49
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
54
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
55
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
56
|
+
} else {
|
|
57
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
58
|
+
}
|
|
59
|
+
return httpParams;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return httpParams;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (typeof value === "object") {
|
|
68
|
+
if (Array.isArray(value)) {
|
|
69
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
70
|
+
} else if (value instanceof Date) {
|
|
71
|
+
if (key != null) {
|
|
72
|
+
httpParams = httpParams.append(key,
|
|
73
|
+
(value as Date).toISOString().substr(0, 10));
|
|
74
|
+
} else {
|
|
75
|
+
throw Error("key may not be null if value is Date");
|
|
76
|
+
}
|
|
77
|
+
} else {
|
|
78
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
79
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
80
|
+
}
|
|
81
|
+
} else if (key != null) {
|
|
82
|
+
httpParams = httpParams.append(key, value);
|
|
83
|
+
} else {
|
|
84
|
+
throw Error("key may not be null if value is not object or array");
|
|
85
|
+
}
|
|
86
|
+
return httpParams;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* This endpoint returns one single published asset (from ID)
|
|
91
|
+
* @param id The ID of the asset.
|
|
92
|
+
* @param pid The published asset ID.
|
|
93
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
94
|
+
* @param reportProgress flag to report request and response progress.
|
|
95
|
+
*/
|
|
96
|
+
public getPublishedAssetById(id: string, pid: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<PublishedAsset>;
|
|
97
|
+
public getPublishedAssetById(id: string, pid: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<PublishedAsset>>;
|
|
98
|
+
public getPublishedAssetById(id: string, pid: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<PublishedAsset>>;
|
|
99
|
+
public getPublishedAssetById(id: string, pid: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
100
|
+
if (id === null || id === undefined) {
|
|
101
|
+
throw new Error('Required parameter id was null or undefined when calling getPublishedAssetById.');
|
|
102
|
+
}
|
|
103
|
+
if (pid === null || pid === undefined) {
|
|
104
|
+
throw new Error('Required parameter pid was null or undefined when calling getPublishedAssetById.');
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
let headers = this.defaultHeaders;
|
|
108
|
+
|
|
109
|
+
let credential: string | undefined;
|
|
110
|
+
// authentication (msal_auth) required
|
|
111
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
112
|
+
if (credential) {
|
|
113
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
117
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
118
|
+
// to determine the Accept header
|
|
119
|
+
const httpHeaderAccepts: string[] = [
|
|
120
|
+
'application/json'
|
|
121
|
+
];
|
|
122
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
123
|
+
}
|
|
124
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
125
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
130
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
131
|
+
responseType_ = 'text';
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return this.httpClient.get<PublishedAsset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish/${encodeURIComponent(String(pid))}`,
|
|
135
|
+
{
|
|
136
|
+
responseType: <any>responseType_,
|
|
137
|
+
withCredentials: this.configuration.withCredentials,
|
|
138
|
+
headers: headers,
|
|
139
|
+
observe: observe,
|
|
140
|
+
reportProgress: reportProgress
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* This endpoint creates an additional published asset
|
|
147
|
+
* @param id The ID of the asset.
|
|
148
|
+
* @param publishedAsset This creates / adds an unique published asset ID and adds the information to the asset (in DB).
|
|
149
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
150
|
+
* @param reportProgress flag to report request and response progress.
|
|
151
|
+
*/
|
|
152
|
+
public httpPublishedAssetsCreate(id: string, publishedAsset: PublishedAsset, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<PublishedAsset>;
|
|
153
|
+
public httpPublishedAssetsCreate(id: string, publishedAsset: PublishedAsset, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<PublishedAsset>>;
|
|
154
|
+
public httpPublishedAssetsCreate(id: string, publishedAsset: PublishedAsset, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<PublishedAsset>>;
|
|
155
|
+
public httpPublishedAssetsCreate(id: string, publishedAsset: PublishedAsset, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
156
|
+
if (id === null || id === undefined) {
|
|
157
|
+
throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsCreate.');
|
|
158
|
+
}
|
|
159
|
+
if (publishedAsset === null || publishedAsset === undefined) {
|
|
160
|
+
throw new Error('Required parameter publishedAsset was null or undefined when calling httpPublishedAssetsCreate.');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
let headers = this.defaultHeaders;
|
|
164
|
+
|
|
165
|
+
let credential: string | undefined;
|
|
166
|
+
// authentication (msal_auth) required
|
|
167
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
168
|
+
if (credential) {
|
|
169
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
173
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
174
|
+
// to determine the Accept header
|
|
175
|
+
const httpHeaderAccepts: string[] = [
|
|
176
|
+
'application/json'
|
|
177
|
+
];
|
|
178
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
179
|
+
}
|
|
180
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
181
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
// to determine the Content-Type header
|
|
186
|
+
const consumes: string[] = [
|
|
187
|
+
'application/json'
|
|
188
|
+
];
|
|
189
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
190
|
+
if (httpContentTypeSelected !== undefined) {
|
|
191
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
195
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
196
|
+
responseType_ = 'text';
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return this.httpClient.post<PublishedAsset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish`,
|
|
200
|
+
publishedAsset,
|
|
201
|
+
{
|
|
202
|
+
responseType: <any>responseType_,
|
|
203
|
+
withCredentials: this.configuration.withCredentials,
|
|
204
|
+
headers: headers,
|
|
205
|
+
observe: observe,
|
|
206
|
+
reportProgress: reportProgress
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* This endpoint deletes the published asset with the given ID.
|
|
213
|
+
* @param id The ID of the asset.
|
|
214
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
215
|
+
* @param reportProgress flag to report request and response progress.
|
|
216
|
+
*/
|
|
217
|
+
public httpPublishedAssetsDeleteAll(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<any>;
|
|
218
|
+
public httpPublishedAssetsDeleteAll(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<any>>;
|
|
219
|
+
public httpPublishedAssetsDeleteAll(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<any>>;
|
|
220
|
+
public httpPublishedAssetsDeleteAll(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
221
|
+
if (id === null || id === undefined) {
|
|
222
|
+
throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsDeleteAll.');
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
let headers = this.defaultHeaders;
|
|
226
|
+
|
|
227
|
+
let credential: string | undefined;
|
|
228
|
+
// authentication (msal_auth) required
|
|
229
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
230
|
+
if (credential) {
|
|
231
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
235
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
236
|
+
// to determine the Accept header
|
|
237
|
+
const httpHeaderAccepts: string[] = [
|
|
238
|
+
'application/json'
|
|
239
|
+
];
|
|
240
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
241
|
+
}
|
|
242
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
243
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
248
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
249
|
+
responseType_ = 'text';
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
return this.httpClient.delete<any>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish`,
|
|
253
|
+
{
|
|
254
|
+
responseType: <any>responseType_,
|
|
255
|
+
withCredentials: this.configuration.withCredentials,
|
|
256
|
+
headers: headers,
|
|
257
|
+
observe: observe,
|
|
258
|
+
reportProgress: reportProgress
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* This endpoint deletes the published asset with the given ID.
|
|
265
|
+
* @param id The ID of the asset.
|
|
266
|
+
* @param pid The published asset ID.
|
|
267
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
268
|
+
* @param reportProgress flag to report request and response progress.
|
|
269
|
+
*/
|
|
270
|
+
public httpPublishedAssetsDeleteById(id: string, pid: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<any>;
|
|
271
|
+
public httpPublishedAssetsDeleteById(id: string, pid: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<any>>;
|
|
272
|
+
public httpPublishedAssetsDeleteById(id: string, pid: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<any>>;
|
|
273
|
+
public httpPublishedAssetsDeleteById(id: string, pid: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
274
|
+
if (id === null || id === undefined) {
|
|
275
|
+
throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsDeleteById.');
|
|
276
|
+
}
|
|
277
|
+
if (pid === null || pid === undefined) {
|
|
278
|
+
throw new Error('Required parameter pid was null or undefined when calling httpPublishedAssetsDeleteById.');
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
let headers = this.defaultHeaders;
|
|
282
|
+
|
|
283
|
+
let credential: string | undefined;
|
|
284
|
+
// authentication (msal_auth) required
|
|
285
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
286
|
+
if (credential) {
|
|
287
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
291
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
292
|
+
// to determine the Accept header
|
|
293
|
+
const httpHeaderAccepts: string[] = [
|
|
294
|
+
'application/json'
|
|
295
|
+
];
|
|
296
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
297
|
+
}
|
|
298
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
299
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
304
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
305
|
+
responseType_ = 'text';
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
return this.httpClient.delete<any>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish/${encodeURIComponent(String(pid))}`,
|
|
309
|
+
{
|
|
310
|
+
responseType: <any>responseType_,
|
|
311
|
+
withCredentials: this.configuration.withCredentials,
|
|
312
|
+
headers: headers,
|
|
313
|
+
observe: observe,
|
|
314
|
+
reportProgress: reportProgress
|
|
315
|
+
}
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* This endpoint lists all the published assets which are stored in the database if asset is still valid.
|
|
321
|
+
* @param id The ID of the asset.
|
|
322
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
323
|
+
* @param reportProgress flag to report request and response progress.
|
|
324
|
+
*/
|
|
325
|
+
public httpPublishedAssetsGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<PublishEntity>;
|
|
326
|
+
public httpPublishedAssetsGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<PublishEntity>>;
|
|
327
|
+
public httpPublishedAssetsGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<PublishEntity>>;
|
|
328
|
+
public httpPublishedAssetsGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
329
|
+
if (id === null || id === undefined) {
|
|
330
|
+
throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsGet.');
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
let headers = this.defaultHeaders;
|
|
334
|
+
|
|
335
|
+
let credential: string | undefined;
|
|
336
|
+
// authentication (msal_auth) required
|
|
337
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
338
|
+
if (credential) {
|
|
339
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
343
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
344
|
+
// to determine the Accept header
|
|
345
|
+
const httpHeaderAccepts: string[] = [
|
|
346
|
+
'application/json'
|
|
347
|
+
];
|
|
348
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
349
|
+
}
|
|
350
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
351
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
356
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
357
|
+
responseType_ = 'text';
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
return this.httpClient.get<PublishEntity>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish`,
|
|
361
|
+
{
|
|
362
|
+
responseType: <any>responseType_,
|
|
363
|
+
withCredentials: this.configuration.withCredentials,
|
|
364
|
+
headers: headers,
|
|
365
|
+
observe: observe,
|
|
366
|
+
reportProgress: reportProgress
|
|
367
|
+
}
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* This endpoint currently republished the published asset with the given ID.
|
|
373
|
+
* @param id The ID of the asset.
|
|
374
|
+
* @param pid The published asset ID.
|
|
375
|
+
* @param publishedAsset The body has to contain a valid PublishedAsset in json format. Not fitting properties are ignored.
|
|
376
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
377
|
+
* @param reportProgress flag to report request and response progress.
|
|
378
|
+
*/
|
|
379
|
+
public httpPublishedAssetsRepublishById(id: string, pid: string, publishedAsset: PublishedAsset, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<PublishedAsset>;
|
|
380
|
+
public httpPublishedAssetsRepublishById(id: string, pid: string, publishedAsset: PublishedAsset, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<PublishedAsset>>;
|
|
381
|
+
public httpPublishedAssetsRepublishById(id: string, pid: string, publishedAsset: PublishedAsset, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<PublishedAsset>>;
|
|
382
|
+
public httpPublishedAssetsRepublishById(id: string, pid: string, publishedAsset: PublishedAsset, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
383
|
+
if (id === null || id === undefined) {
|
|
384
|
+
throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsRepublishById.');
|
|
385
|
+
}
|
|
386
|
+
if (pid === null || pid === undefined) {
|
|
387
|
+
throw new Error('Required parameter pid was null or undefined when calling httpPublishedAssetsRepublishById.');
|
|
388
|
+
}
|
|
389
|
+
if (publishedAsset === null || publishedAsset === undefined) {
|
|
390
|
+
throw new Error('Required parameter publishedAsset was null or undefined when calling httpPublishedAssetsRepublishById.');
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
let headers = this.defaultHeaders;
|
|
394
|
+
|
|
395
|
+
let credential: string | undefined;
|
|
396
|
+
// authentication (msal_auth) required
|
|
397
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
398
|
+
if (credential) {
|
|
399
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
403
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
404
|
+
// to determine the Accept header
|
|
405
|
+
const httpHeaderAccepts: string[] = [
|
|
406
|
+
'application/json'
|
|
407
|
+
];
|
|
408
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
409
|
+
}
|
|
410
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
411
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
// to determine the Content-Type header
|
|
416
|
+
const consumes: string[] = [
|
|
417
|
+
'application/json'
|
|
418
|
+
];
|
|
419
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
420
|
+
if (httpContentTypeSelected !== undefined) {
|
|
421
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
425
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
426
|
+
responseType_ = 'text';
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
return this.httpClient.patch<PublishedAsset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish/${encodeURIComponent(String(pid))}/republish`,
|
|
430
|
+
publishedAsset,
|
|
431
|
+
{
|
|
432
|
+
responseType: <any>responseType_,
|
|
433
|
+
withCredentials: this.configuration.withCredentials,
|
|
434
|
+
headers: headers,
|
|
435
|
+
observe: observe,
|
|
436
|
+
reportProgress: reportProgress
|
|
437
|
+
}
|
|
438
|
+
);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* This endpoint currently updates only the description of the published asset with the given ID.
|
|
443
|
+
* @param id The ID of the asset.
|
|
444
|
+
* @param pid The published asset ID.
|
|
445
|
+
* @param publishedAsset The body has to contain a valid PublishedAsset in json format. Not fitting properties are ignored.
|
|
446
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
447
|
+
* @param reportProgress flag to report request and response progress.
|
|
448
|
+
*/
|
|
449
|
+
public httpPublishedAssetsUpdateById(id: string, pid: string, publishedAsset: PublishedAsset, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<PublishedAsset>;
|
|
450
|
+
public httpPublishedAssetsUpdateById(id: string, pid: string, publishedAsset: PublishedAsset, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<PublishedAsset>>;
|
|
451
|
+
public httpPublishedAssetsUpdateById(id: string, pid: string, publishedAsset: PublishedAsset, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<PublishedAsset>>;
|
|
452
|
+
public httpPublishedAssetsUpdateById(id: string, pid: string, publishedAsset: PublishedAsset, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
453
|
+
if (id === null || id === undefined) {
|
|
454
|
+
throw new Error('Required parameter id was null or undefined when calling httpPublishedAssetsUpdateById.');
|
|
455
|
+
}
|
|
456
|
+
if (pid === null || pid === undefined) {
|
|
457
|
+
throw new Error('Required parameter pid was null or undefined when calling httpPublishedAssetsUpdateById.');
|
|
458
|
+
}
|
|
459
|
+
if (publishedAsset === null || publishedAsset === undefined) {
|
|
460
|
+
throw new Error('Required parameter publishedAsset was null or undefined when calling httpPublishedAssetsUpdateById.');
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
let headers = this.defaultHeaders;
|
|
464
|
+
|
|
465
|
+
let credential: string | undefined;
|
|
466
|
+
// authentication (msal_auth) required
|
|
467
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
468
|
+
if (credential) {
|
|
469
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
473
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
474
|
+
// to determine the Accept header
|
|
475
|
+
const httpHeaderAccepts: string[] = [
|
|
476
|
+
'application/json'
|
|
477
|
+
];
|
|
478
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
479
|
+
}
|
|
480
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
481
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
// to determine the Content-Type header
|
|
486
|
+
const consumes: string[] = [
|
|
487
|
+
'application/json'
|
|
488
|
+
];
|
|
489
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
490
|
+
if (httpContentTypeSelected !== undefined) {
|
|
491
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
495
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
496
|
+
responseType_ = 'text';
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
return this.httpClient.post<PublishedAsset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/publish/${encodeURIComponent(String(pid))}`,
|
|
500
|
+
publishedAsset,
|
|
501
|
+
{
|
|
502
|
+
responseType: <any>responseType_,
|
|
503
|
+
withCredentials: this.configuration.withCredentials,
|
|
504
|
+
headers: headers,
|
|
505
|
+
observe: observe,
|
|
506
|
+
reportProgress: reportProgress
|
|
507
|
+
}
|
|
508
|
+
);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
}
|