@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,333 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
3
|
+
* <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2023. All Rights Reserved
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.2.0
|
|
6
|
+
* Contact: office@agravity.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
+
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
17
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
18
|
+
import { Observable } from 'rxjs';
|
|
19
|
+
|
|
20
|
+
import { AgravityErrorResponse } from '../model/models';
|
|
21
|
+
import { AgravityInfoResponse } from '../model/models';
|
|
22
|
+
import { CollectionType } from '../model/models';
|
|
23
|
+
import { SimpleAsset } from '../model/models';
|
|
24
|
+
import { UpgradeV2V3CollectionCustomItemTableEntity } from '../model/models';
|
|
25
|
+
|
|
26
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
27
|
+
import { AgravityConfiguration } from '../configuration';
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@Injectable({
|
|
32
|
+
providedIn: 'root'
|
|
33
|
+
})
|
|
34
|
+
export class UpgradeManagementService {
|
|
35
|
+
|
|
36
|
+
protected basePath = 'http://localhost:7071/api';
|
|
37
|
+
public defaultHeaders = new HttpHeaders();
|
|
38
|
+
public configuration = new AgravityConfiguration();
|
|
39
|
+
public encoder: HttpParameterCodec;
|
|
40
|
+
|
|
41
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
|
|
42
|
+
if (configuration) {
|
|
43
|
+
this.configuration = configuration;
|
|
44
|
+
}
|
|
45
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
46
|
+
if (typeof basePath !== 'string') {
|
|
47
|
+
basePath = this.basePath;
|
|
48
|
+
}
|
|
49
|
+
this.configuration.basePath = basePath;
|
|
50
|
+
}
|
|
51
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
56
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
57
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
58
|
+
} else {
|
|
59
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
60
|
+
}
|
|
61
|
+
return httpParams;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return httpParams;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (typeof value === "object") {
|
|
70
|
+
if (Array.isArray(value)) {
|
|
71
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
72
|
+
} else if (value instanceof Date) {
|
|
73
|
+
if (key != null) {
|
|
74
|
+
httpParams = httpParams.append(key,
|
|
75
|
+
(value as Date).toISOString().substr(0, 10));
|
|
76
|
+
} else {
|
|
77
|
+
throw Error("key may not be null if value is Date");
|
|
78
|
+
}
|
|
79
|
+
} else {
|
|
80
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
81
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
82
|
+
}
|
|
83
|
+
} else if (key != null) {
|
|
84
|
+
httpParams = httpParams.append(key, value);
|
|
85
|
+
} else {
|
|
86
|
+
throw Error("key may not be null if value is not object or array");
|
|
87
|
+
}
|
|
88
|
+
return httpParams;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
93
|
+
* @param reportProgress flag to report request and response progress.
|
|
94
|
+
*/
|
|
95
|
+
public httpUpgradeV2toV3(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<{ [key: string]: CollectionType; }>;
|
|
96
|
+
public httpUpgradeV2toV3(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<{ [key: string]: CollectionType; }>>;
|
|
97
|
+
public httpUpgradeV2toV3(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<{ [key: string]: CollectionType; }>>;
|
|
98
|
+
public httpUpgradeV2toV3(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
99
|
+
|
|
100
|
+
let headers = this.defaultHeaders;
|
|
101
|
+
|
|
102
|
+
let credential: string | undefined;
|
|
103
|
+
// authentication (msal_auth) required
|
|
104
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
105
|
+
if (credential) {
|
|
106
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
110
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
111
|
+
// to determine the Accept header
|
|
112
|
+
const httpHeaderAccepts: string[] = [
|
|
113
|
+
'application/json'
|
|
114
|
+
];
|
|
115
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
116
|
+
}
|
|
117
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
118
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
123
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
124
|
+
responseType_ = 'text';
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return this.httpClient.patch<{ [key: string]: CollectionType; }>(`${this.configuration.basePath}/upgrade/V2toV3`,
|
|
128
|
+
null,
|
|
129
|
+
{
|
|
130
|
+
responseType: <any>responseType_,
|
|
131
|
+
withCredentials: this.configuration.withCredentials,
|
|
132
|
+
headers: headers,
|
|
133
|
+
observe: observe,
|
|
134
|
+
reportProgress: reportProgress
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
141
|
+
* @param reportProgress flag to report request and response progress.
|
|
142
|
+
*/
|
|
143
|
+
public httpUpgradeV2toV3Assets(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<SimpleAsset>>;
|
|
144
|
+
public httpUpgradeV2toV3Assets(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<SimpleAsset>>>;
|
|
145
|
+
public httpUpgradeV2toV3Assets(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<SimpleAsset>>>;
|
|
146
|
+
public httpUpgradeV2toV3Assets(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
147
|
+
|
|
148
|
+
let headers = this.defaultHeaders;
|
|
149
|
+
|
|
150
|
+
let credential: string | undefined;
|
|
151
|
+
// authentication (msal_auth) required
|
|
152
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
153
|
+
if (credential) {
|
|
154
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
158
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
159
|
+
// to determine the Accept header
|
|
160
|
+
const httpHeaderAccepts: string[] = [
|
|
161
|
+
'application/json'
|
|
162
|
+
];
|
|
163
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
164
|
+
}
|
|
165
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
166
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
171
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
172
|
+
responseType_ = 'text';
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
return this.httpClient.patch<Array<SimpleAsset>>(`${this.configuration.basePath}/upgrade/V2toV3assets`,
|
|
176
|
+
null,
|
|
177
|
+
{
|
|
178
|
+
responseType: <any>responseType_,
|
|
179
|
+
withCredentials: this.configuration.withCredentials,
|
|
180
|
+
headers: headers,
|
|
181
|
+
observe: observe,
|
|
182
|
+
reportProgress: reportProgress
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
189
|
+
* @param reportProgress flag to report request and response progress.
|
|
190
|
+
*/
|
|
191
|
+
public httpUpgradeV2toV3UDLs(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<UpgradeV2V3CollectionCustomItemTableEntity>>;
|
|
192
|
+
public httpUpgradeV2toV3UDLs(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<UpgradeV2V3CollectionCustomItemTableEntity>>>;
|
|
193
|
+
public httpUpgradeV2toV3UDLs(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<UpgradeV2V3CollectionCustomItemTableEntity>>>;
|
|
194
|
+
public httpUpgradeV2toV3UDLs(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
195
|
+
|
|
196
|
+
let headers = this.defaultHeaders;
|
|
197
|
+
|
|
198
|
+
let credential: string | undefined;
|
|
199
|
+
// authentication (msal_auth) required
|
|
200
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
201
|
+
if (credential) {
|
|
202
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
206
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
207
|
+
// to determine the Accept header
|
|
208
|
+
const httpHeaderAccepts: string[] = [
|
|
209
|
+
'application/json'
|
|
210
|
+
];
|
|
211
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
212
|
+
}
|
|
213
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
214
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
219
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
220
|
+
responseType_ = 'text';
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
return this.httpClient.patch<Array<UpgradeV2V3CollectionCustomItemTableEntity>>(`${this.configuration.basePath}/upgrade/V2toV3udls`,
|
|
224
|
+
null,
|
|
225
|
+
{
|
|
226
|
+
responseType: <any>responseType_,
|
|
227
|
+
withCredentials: this.configuration.withCredentials,
|
|
228
|
+
headers: headers,
|
|
229
|
+
observe: observe,
|
|
230
|
+
reportProgress: reportProgress
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* This endpoint lists all assets from internal container and create upgrade queue messages.
|
|
237
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
238
|
+
* @param reportProgress flag to report request and response progress.
|
|
239
|
+
*/
|
|
240
|
+
public httpUpgradeV3toV4(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
|
|
241
|
+
public httpUpgradeV3toV4(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
242
|
+
public httpUpgradeV3toV4(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
243
|
+
public httpUpgradeV3toV4(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
244
|
+
|
|
245
|
+
let headers = this.defaultHeaders;
|
|
246
|
+
|
|
247
|
+
let credential: string | undefined;
|
|
248
|
+
// authentication (msal_auth) required
|
|
249
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
250
|
+
if (credential) {
|
|
251
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
255
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
256
|
+
// to determine the Accept header
|
|
257
|
+
const httpHeaderAccepts: string[] = [
|
|
258
|
+
'application/json'
|
|
259
|
+
];
|
|
260
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
261
|
+
}
|
|
262
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
263
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
268
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
269
|
+
responseType_ = 'text';
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/upgrade/V3toV4`,
|
|
273
|
+
null,
|
|
274
|
+
{
|
|
275
|
+
responseType: <any>responseType_,
|
|
276
|
+
withCredentials: this.configuration.withCredentials,
|
|
277
|
+
headers: headers,
|
|
278
|
+
observe: observe,
|
|
279
|
+
reportProgress: reportProgress
|
|
280
|
+
}
|
|
281
|
+
);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* This endpoint checks all collection type items if correct MD5 hash is used (excluding label)
|
|
286
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
287
|
+
* @param reportProgress flag to report request and response progress.
|
|
288
|
+
*/
|
|
289
|
+
public httpUpgradeV4Items(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
|
|
290
|
+
public httpUpgradeV4Items(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
291
|
+
public httpUpgradeV4Items(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
292
|
+
public httpUpgradeV4Items(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
293
|
+
|
|
294
|
+
let headers = this.defaultHeaders;
|
|
295
|
+
|
|
296
|
+
let credential: string | undefined;
|
|
297
|
+
// authentication (msal_auth) required
|
|
298
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
299
|
+
if (credential) {
|
|
300
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
304
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
305
|
+
// to determine the Accept header
|
|
306
|
+
const httpHeaderAccepts: string[] = [
|
|
307
|
+
'application/json'
|
|
308
|
+
];
|
|
309
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
310
|
+
}
|
|
311
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
312
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
317
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
318
|
+
responseType_ = 'text';
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
return this.httpClient.patch<AgravityInfoResponse>(`${this.configuration.basePath}/upgrade/V450items`,
|
|
322
|
+
null,
|
|
323
|
+
{
|
|
324
|
+
responseType: <any>responseType_,
|
|
325
|
+
withCredentials: this.configuration.withCredentials,
|
|
326
|
+
headers: headers,
|
|
327
|
+
observe: observe,
|
|
328
|
+
reportProgress: reportProgress
|
|
329
|
+
}
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
}
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
3
|
+
* <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2023. All Rights Reserved
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.2.0
|
|
6
|
+
* Contact: office@agravity.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
+
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
17
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
18
|
+
import { Observable } from 'rxjs';
|
|
19
|
+
|
|
20
|
+
import { AgravityErrorResponse } from '../model/models';
|
|
21
|
+
import { AgravityInfoResponse } from '../model/models';
|
|
22
|
+
import { AllWebAppData } from '../model/models';
|
|
23
|
+
import { GroupAllAppData } from '../model/models';
|
|
24
|
+
|
|
25
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
26
|
+
import { AgravityConfiguration } from '../configuration';
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@Injectable({
|
|
31
|
+
providedIn: 'root'
|
|
32
|
+
})
|
|
33
|
+
export class WebAppDataService {
|
|
34
|
+
|
|
35
|
+
protected basePath = 'http://localhost:7071/api';
|
|
36
|
+
public defaultHeaders = new HttpHeaders();
|
|
37
|
+
public configuration = new AgravityConfiguration();
|
|
38
|
+
public encoder: HttpParameterCodec;
|
|
39
|
+
|
|
40
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
|
|
41
|
+
if (configuration) {
|
|
42
|
+
this.configuration = configuration;
|
|
43
|
+
}
|
|
44
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
45
|
+
if (typeof basePath !== 'string') {
|
|
46
|
+
basePath = this.basePath;
|
|
47
|
+
}
|
|
48
|
+
this.configuration.basePath = basePath;
|
|
49
|
+
}
|
|
50
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
55
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
56
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
57
|
+
} else {
|
|
58
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
59
|
+
}
|
|
60
|
+
return httpParams;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return httpParams;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (typeof value === "object") {
|
|
69
|
+
if (Array.isArray(value)) {
|
|
70
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
71
|
+
} else if (value instanceof Date) {
|
|
72
|
+
if (key != null) {
|
|
73
|
+
httpParams = httpParams.append(key,
|
|
74
|
+
(value as Date).toISOString().substr(0, 10));
|
|
75
|
+
} else {
|
|
76
|
+
throw Error("key may not be null if value is Date");
|
|
77
|
+
}
|
|
78
|
+
} else {
|
|
79
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
80
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
81
|
+
}
|
|
82
|
+
} else if (key != null) {
|
|
83
|
+
httpParams = httpParams.append(key, value);
|
|
84
|
+
} else {
|
|
85
|
+
throw Error("key may not be null if value is not object or array");
|
|
86
|
+
}
|
|
87
|
+
return httpParams;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* This returns all collections and assets from the given collection type.
|
|
92
|
+
* @param id The ID of the collection type for which this web data should be prepared.
|
|
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 httpGetDataCollectionType(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<GroupAllAppData>;
|
|
97
|
+
public httpGetDataCollectionType(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<GroupAllAppData>>;
|
|
98
|
+
public httpGetDataCollectionType(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<GroupAllAppData>>;
|
|
99
|
+
public httpGetDataCollectionType(id: 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 httpGetDataCollectionType.');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
let headers = this.defaultHeaders;
|
|
105
|
+
|
|
106
|
+
let credential: string | undefined;
|
|
107
|
+
// authentication (msal_auth) required
|
|
108
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
109
|
+
if (credential) {
|
|
110
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
114
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
115
|
+
// to determine the Accept header
|
|
116
|
+
const httpHeaderAccepts: string[] = [
|
|
117
|
+
'application/json'
|
|
118
|
+
];
|
|
119
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
120
|
+
}
|
|
121
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
122
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
127
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
128
|
+
responseType_ = 'text';
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return this.httpClient.get<GroupAllAppData>(`${this.configuration.basePath}/data/collectiontype/${encodeURIComponent(String(id))}`,
|
|
132
|
+
{
|
|
133
|
+
responseType: <any>responseType_,
|
|
134
|
+
withCredentials: this.configuration.withCredentials,
|
|
135
|
+
headers: headers,
|
|
136
|
+
observe: observe,
|
|
137
|
+
reportProgress: reportProgress
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* This lists all elements of a given collection which can be used by the web frontend. It includes structure and all assets. All coming live from database.
|
|
144
|
+
* @param id The ID of the collection for which this web data should be prepared.
|
|
145
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
146
|
+
* @param reportProgress flag to report request and response progress.
|
|
147
|
+
*/
|
|
148
|
+
public httpGetWebAppData(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AllWebAppData>;
|
|
149
|
+
public httpGetWebAppData(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AllWebAppData>>;
|
|
150
|
+
public httpGetWebAppData(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AllWebAppData>>;
|
|
151
|
+
public httpGetWebAppData(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
152
|
+
if (id === null || id === undefined) {
|
|
153
|
+
throw new Error('Required parameter id was null or undefined when calling httpGetWebAppData.');
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
let headers = this.defaultHeaders;
|
|
157
|
+
|
|
158
|
+
let credential: string | undefined;
|
|
159
|
+
// authentication (msal_auth) required
|
|
160
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
161
|
+
if (credential) {
|
|
162
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
166
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
167
|
+
// to determine the Accept header
|
|
168
|
+
const httpHeaderAccepts: string[] = [
|
|
169
|
+
'application/json'
|
|
170
|
+
];
|
|
171
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
172
|
+
}
|
|
173
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
174
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
179
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
180
|
+
responseType_ = 'text';
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return this.httpClient.get<AllWebAppData>(`${this.configuration.basePath}/webappdata/${encodeURIComponent(String(id))}`,
|
|
184
|
+
{
|
|
185
|
+
responseType: <any>responseType_,
|
|
186
|
+
withCredentials: this.configuration.withCredentials,
|
|
187
|
+
headers: headers,
|
|
188
|
+
observe: observe,
|
|
189
|
+
reportProgress: reportProgress
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* This triggers an async action to publish the whole structure and puts it to public blob storage with collection type id with extension json.
|
|
196
|
+
* @param id The ID of the collection type for which this web data should be prepared.
|
|
197
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
198
|
+
* @param reportProgress flag to report request and response progress.
|
|
199
|
+
*/
|
|
200
|
+
public httpPostDataCollectionType(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
|
|
201
|
+
public httpPostDataCollectionType(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
202
|
+
public httpPostDataCollectionType(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
203
|
+
public httpPostDataCollectionType(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
204
|
+
if (id === null || id === undefined) {
|
|
205
|
+
throw new Error('Required parameter id was null or undefined when calling httpPostDataCollectionType.');
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
let headers = this.defaultHeaders;
|
|
209
|
+
|
|
210
|
+
let credential: string | undefined;
|
|
211
|
+
// authentication (msal_auth) required
|
|
212
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
213
|
+
if (credential) {
|
|
214
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
218
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
219
|
+
// to determine the Accept header
|
|
220
|
+
const httpHeaderAccepts: string[] = [
|
|
221
|
+
'application/json'
|
|
222
|
+
];
|
|
223
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
224
|
+
}
|
|
225
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
226
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
231
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
232
|
+
responseType_ = 'text';
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
return this.httpClient.post<AgravityInfoResponse>(`${this.configuration.basePath}/data/collectiontype/${encodeURIComponent(String(id))}`,
|
|
236
|
+
null,
|
|
237
|
+
{
|
|
238
|
+
responseType: <any>responseType_,
|
|
239
|
+
withCredentials: this.configuration.withCredentials,
|
|
240
|
+
headers: headers,
|
|
241
|
+
observe: observe,
|
|
242
|
+
reportProgress: reportProgress
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Takes whole structure and puts it to public blob storage with collection id with extension json.
|
|
249
|
+
* @param id The ID of the collection for which this web data should be prepared.
|
|
250
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
251
|
+
* @param reportProgress flag to report request and response progress.
|
|
252
|
+
*/
|
|
253
|
+
public httpPostWebAppData(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
|
|
254
|
+
public httpPostWebAppData(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
255
|
+
public httpPostWebAppData(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
256
|
+
public httpPostWebAppData(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
257
|
+
if (id === null || id === undefined) {
|
|
258
|
+
throw new Error('Required parameter id was null or undefined when calling httpPostWebAppData.');
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
let headers = this.defaultHeaders;
|
|
262
|
+
|
|
263
|
+
let credential: string | undefined;
|
|
264
|
+
// authentication (msal_auth) required
|
|
265
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
266
|
+
if (credential) {
|
|
267
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
271
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
272
|
+
// to determine the Accept header
|
|
273
|
+
const httpHeaderAccepts: string[] = [
|
|
274
|
+
'application/json'
|
|
275
|
+
];
|
|
276
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
277
|
+
}
|
|
278
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
279
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
284
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
285
|
+
responseType_ = 'text';
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
return this.httpClient.post<AgravityInfoResponse>(`${this.configuration.basePath}/webappdata/${encodeURIComponent(String(id))}`,
|
|
289
|
+
null,
|
|
290
|
+
{
|
|
291
|
+
responseType: <any>responseType_,
|
|
292
|
+
withCredentials: this.configuration.withCredentials,
|
|
293
|
+
headers: headers,
|
|
294
|
+
observe: observe,
|
|
295
|
+
reportProgress: reportProgress
|
|
296
|
+
}
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
}
|