@agravity/public 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 +76 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +203 -0
- package/api/api.ts +43 -0
- package/api/publicAssetManagement.pub.agravity.ts +504 -0
- package/api/publicAssetOperations.pub.agravity.ts +633 -0
- package/api/publicAssetPublishing.pub.agravity.ts +263 -0
- package/api/publicAssetVersioning.pub.agravity.ts +552 -0
- package/api/publicAuthenticationManagement.pub.agravity.ts +135 -0
- package/api/publicCollectionManagement.pub.agravity.ts +562 -0
- package/api/publicCollectionSecureUpload.pub.agravity.ts +229 -0
- package/api/publicCollectionTypeManagement.pub.agravity.ts +266 -0
- package/api/publicConfigurationManagement.pub.agravity.ts +128 -0
- package/api/publicDownloadFormatManagement.pub.agravity.ts +135 -0
- package/api/publicGeneralManagement.pub.agravity.ts +221 -0
- package/api/publicHelperTools.pub.agravity.ts +288 -0
- package/api/publicPublishing.pub.agravity.ts +148 -0
- package/api/publicSavedSearch.pub.agravity.ts +148 -0
- package/api/publicSearchManagement.pub.agravity.ts +197 -0
- package/api/publicSharingManagement.pub.agravity.ts +215 -0
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +136 -0
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +203 -0
- package/api/publicTranslationManagement.pub.agravity.ts +267 -0
- package/api/publicWebAppData.pub.agravity.ts +193 -0
- package/api/publicWorkspaceManagement.pub.agravity.ts +204 -0
- package/api.module.ts +51 -0
- package/configuration.ts +132 -0
- package/encoder.ts +20 -0
- package/git_push.sh +58 -0
- package/index.ts +5 -0
- package/model/agravityErrorResponse.pub.agravity.ts +19 -0
- package/model/agravityVersion.pub.agravity.ts +24 -0
- package/model/allWebAppData.pub.agravity.ts +24 -0
- package/model/artificialIntelligenceGroup.pub.agravity.ts +20 -0
- package/model/asset.pub.agravity.ts +47 -0
- package/model/assetAvailability.pub.agravity.ts +19 -0
- package/model/assetBlob.pub.agravity.ts +82 -0
- package/model/assetIdContainer.pub.agravity.ts +18 -0
- package/model/assetPageResult.pub.agravity.ts +23 -0
- package/model/azSearchOptions.pub.agravity.ts +25 -0
- package/model/badRequestResult.pub.agravity.ts +17 -0
- package/model/collTypeItem.pub.agravity.ts +38 -0
- package/model/collection.pub.agravity.ts +35 -0
- package/model/collectionType.pub.agravity.ts +35 -0
- package/model/collectionUDL.pub.agravity.ts +21 -0
- package/model/createSftpUserResult.pub.agravity.ts +18 -0
- package/model/dataResult.pub.agravity.ts +22 -0
- package/model/distZipResponse.pub.agravity.ts +19 -0
- package/model/downloadFormat.pub.agravity.ts +34 -0
- package/model/dynamicImageOperation.pub.agravity.ts +18 -0
- package/model/entityId.pub.agravity.ts +17 -0
- package/model/entityIdName.pub.agravity.ts +19 -0
- package/model/frontendAppConfig.pub.agravity.ts +21 -0
- package/model/groupAllAppData.pub.agravity.ts +26 -0
- package/model/metadata.pub.agravity.ts +19 -0
- package/model/models.ts +44 -0
- package/model/okResult.pub.agravity.ts +17 -0
- package/model/publishEntity.pub.agravity.ts +28 -0
- package/model/publishedAsset.pub.agravity.ts +25 -0
- package/model/quickShareFull.pub.agravity.ts +36 -0
- package/model/sasToken.pub.agravity.ts +22 -0
- package/model/savedSearch.pub.agravity.ts +31 -0
- package/model/searchFacet.pub.agravity.ts +19 -0
- package/model/searchFacetEntity.pub.agravity.ts +19 -0
- package/model/searchResult.pub.agravity.ts +23 -0
- package/model/searchableItem.pub.agravity.ts +26 -0
- package/model/secureUploadEntity.pub.agravity.ts +27 -0
- package/model/sharedAsset.pub.agravity.ts +25 -0
- package/model/sharedCollectionFull.pub.agravity.ts +29 -0
- package/model/signalRConnectionInfo.pub.agravity.ts +18 -0
- package/model/staticDefinedList.pub.agravity.ts +30 -0
- package/model/versionEntity.pub.agravity.ts +28 -0
- package/model/versionedAsset.pub.agravity.ts +20 -0
- package/model/whereParam.pub.agravity.ts +43 -0
- package/model/workspace.pub.agravity.ts +34 -0
- package/package.json +28 -0
- package/variables.ts +9 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Public Functions
|
|
3
|
+
* <h1>Agravity API Reference</h1>This is the public API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 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
|
+
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
23
|
+
import { AgravityPublicConfiguration } from '../configuration';
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@Injectable({
|
|
28
|
+
providedIn: 'root'
|
|
29
|
+
})
|
|
30
|
+
export class PublicTranslationManagementService {
|
|
31
|
+
|
|
32
|
+
protected basePath = 'http://localhost:7072/api';
|
|
33
|
+
public defaultHeaders = new HttpHeaders();
|
|
34
|
+
public configuration = new AgravityPublicConfiguration();
|
|
35
|
+
public encoder: HttpParameterCodec;
|
|
36
|
+
|
|
37
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityPublicConfiguration) {
|
|
38
|
+
if (configuration) {
|
|
39
|
+
this.configuration = configuration;
|
|
40
|
+
}
|
|
41
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
42
|
+
if (typeof basePath !== 'string') {
|
|
43
|
+
basePath = this.basePath;
|
|
44
|
+
}
|
|
45
|
+
this.configuration.basePath = basePath;
|
|
46
|
+
}
|
|
47
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
52
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
53
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
54
|
+
} else {
|
|
55
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
56
|
+
}
|
|
57
|
+
return httpParams;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return httpParams;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (typeof value === "object") {
|
|
66
|
+
if (Array.isArray(value)) {
|
|
67
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
68
|
+
} else if (value instanceof Date) {
|
|
69
|
+
if (key != null) {
|
|
70
|
+
httpParams = httpParams.append(key,
|
|
71
|
+
(value as Date).toISOString().substr(0, 10));
|
|
72
|
+
} else {
|
|
73
|
+
throw Error("key may not be null if value is Date");
|
|
74
|
+
}
|
|
75
|
+
} else {
|
|
76
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
77
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
78
|
+
}
|
|
79
|
+
} else if (key != null) {
|
|
80
|
+
httpParams = httpParams.append(key, value);
|
|
81
|
+
} else {
|
|
82
|
+
throw Error("key may not be null if value is not object or array");
|
|
83
|
+
}
|
|
84
|
+
return httpParams;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Get all the translations of a whole entity (Asset, Collection, Collection Type, Download Format)
|
|
89
|
+
* @param id The ID of any translateable entity (Asset, Collection, Collection Type, Download Format).
|
|
90
|
+
* @param items If the items should be included (only for entity type Collection and Asset).
|
|
91
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
92
|
+
* @param reportProgress flag to report request and response progress.
|
|
93
|
+
*/
|
|
94
|
+
public httpTranslationsById(id: string, items?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<{ [key: string]: { [key: string]: object; }; }>;
|
|
95
|
+
public httpTranslationsById(id: string, items?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<{ [key: string]: { [key: string]: object; }; }>>;
|
|
96
|
+
public httpTranslationsById(id: string, items?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<{ [key: string]: { [key: string]: object; }; }>>;
|
|
97
|
+
public httpTranslationsById(id: string, items?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
98
|
+
if (id === null || id === undefined) {
|
|
99
|
+
throw new Error('Required parameter id was null or undefined when calling httpTranslationsById.');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
103
|
+
if (items !== undefined && items !== null) {
|
|
104
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
105
|
+
<any>items, 'items');
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
let headers = this.defaultHeaders;
|
|
109
|
+
|
|
110
|
+
let credential: string | undefined;
|
|
111
|
+
// authentication (function_key) required
|
|
112
|
+
credential = this.configuration.lookupCredential('function_key');
|
|
113
|
+
if (credential) {
|
|
114
|
+
headers = headers.set('x-functions-key', credential);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
118
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
119
|
+
// to determine the Accept header
|
|
120
|
+
const httpHeaderAccepts: string[] = [
|
|
121
|
+
'application/json'
|
|
122
|
+
];
|
|
123
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
124
|
+
}
|
|
125
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
126
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
131
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
132
|
+
responseType_ = 'text';
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return this.httpClient.get<{ [key: string]: { [key: string]: object; }; }>(`${this.configuration.basePath}/translations/${encodeURIComponent(String(id))}`,
|
|
136
|
+
{
|
|
137
|
+
params: queryParameters,
|
|
138
|
+
responseType: <any>responseType_,
|
|
139
|
+
withCredentials: this.configuration.withCredentials,
|
|
140
|
+
headers: headers,
|
|
141
|
+
observe: observe,
|
|
142
|
+
reportProgress: reportProgress
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Get the translation of custom field on the entity (Asset, Collection)
|
|
149
|
+
* @param id The ID of only translateable entities with custom fields (Asset, Collection).
|
|
150
|
+
* @param customField Limit the output to a specific custom field key.
|
|
151
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
152
|
+
* @param reportProgress flag to report request and response progress.
|
|
153
|
+
*/
|
|
154
|
+
public httpTranslationsByIdFilterByCustomField(id: string, customField: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<{ [key: string]: { [key: string]: object; }; }>;
|
|
155
|
+
public httpTranslationsByIdFilterByCustomField(id: string, customField: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<{ [key: string]: { [key: string]: object; }; }>>;
|
|
156
|
+
public httpTranslationsByIdFilterByCustomField(id: string, customField: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<{ [key: string]: { [key: string]: object; }; }>>;
|
|
157
|
+
public httpTranslationsByIdFilterByCustomField(id: string, customField: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
158
|
+
if (id === null || id === undefined) {
|
|
159
|
+
throw new Error('Required parameter id was null or undefined when calling httpTranslationsByIdFilterByCustomField.');
|
|
160
|
+
}
|
|
161
|
+
if (customField === null || customField === undefined) {
|
|
162
|
+
throw new Error('Required parameter customField was null or undefined when calling httpTranslationsByIdFilterByCustomField.');
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
let headers = this.defaultHeaders;
|
|
166
|
+
|
|
167
|
+
let credential: string | undefined;
|
|
168
|
+
// authentication (function_key) required
|
|
169
|
+
credential = this.configuration.lookupCredential('function_key');
|
|
170
|
+
if (credential) {
|
|
171
|
+
headers = headers.set('x-functions-key', credential);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
175
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
176
|
+
// to determine the Accept header
|
|
177
|
+
const httpHeaderAccepts: string[] = [
|
|
178
|
+
'application/json'
|
|
179
|
+
];
|
|
180
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
181
|
+
}
|
|
182
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
183
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
188
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
189
|
+
responseType_ = 'text';
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
return this.httpClient.get<{ [key: string]: { [key: string]: object; }; }>(`${this.configuration.basePath}/translations/${encodeURIComponent(String(id))}/custom/${encodeURIComponent(String(customField))}`,
|
|
193
|
+
{
|
|
194
|
+
responseType: <any>responseType_,
|
|
195
|
+
withCredentials: this.configuration.withCredentials,
|
|
196
|
+
headers: headers,
|
|
197
|
+
observe: observe,
|
|
198
|
+
reportProgress: reportProgress
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Get the translations of a specific field on the entity (Asset, Collection, Collection Type, Download Format)
|
|
205
|
+
* @param id The ID of any translateable entity (Asset, Collection, Collection Type, Download Format).
|
|
206
|
+
* @param property Limit to one specific property (key)
|
|
207
|
+
* @param items If the items should be included (only for entity type Collection and Asset).
|
|
208
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
209
|
+
* @param reportProgress flag to report request and response progress.
|
|
210
|
+
*/
|
|
211
|
+
public httpTranslationsByIdFilterByProperty(id: string, property: string, items?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<{ [key: string]: { [key: string]: object; }; }>;
|
|
212
|
+
public httpTranslationsByIdFilterByProperty(id: string, property: string, items?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<{ [key: string]: { [key: string]: object; }; }>>;
|
|
213
|
+
public httpTranslationsByIdFilterByProperty(id: string, property: string, items?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<{ [key: string]: { [key: string]: object; }; }>>;
|
|
214
|
+
public httpTranslationsByIdFilterByProperty(id: string, property: string, items?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
215
|
+
if (id === null || id === undefined) {
|
|
216
|
+
throw new Error('Required parameter id was null or undefined when calling httpTranslationsByIdFilterByProperty.');
|
|
217
|
+
}
|
|
218
|
+
if (property === null || property === undefined) {
|
|
219
|
+
throw new Error('Required parameter property was null or undefined when calling httpTranslationsByIdFilterByProperty.');
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
223
|
+
if (items !== undefined && items !== null) {
|
|
224
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
225
|
+
<any>items, 'items');
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
let headers = this.defaultHeaders;
|
|
229
|
+
|
|
230
|
+
let credential: string | undefined;
|
|
231
|
+
// authentication (function_key) required
|
|
232
|
+
credential = this.configuration.lookupCredential('function_key');
|
|
233
|
+
if (credential) {
|
|
234
|
+
headers = headers.set('x-functions-key', credential);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
238
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
239
|
+
// to determine the Accept header
|
|
240
|
+
const httpHeaderAccepts: string[] = [
|
|
241
|
+
'application/json'
|
|
242
|
+
];
|
|
243
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
244
|
+
}
|
|
245
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
246
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
251
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
252
|
+
responseType_ = 'text';
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
return this.httpClient.get<{ [key: string]: { [key: string]: object; }; }>(`${this.configuration.basePath}/translations/${encodeURIComponent(String(id))}/${encodeURIComponent(String(property))}`,
|
|
256
|
+
{
|
|
257
|
+
params: queryParameters,
|
|
258
|
+
responseType: <any>responseType_,
|
|
259
|
+
withCredentials: this.configuration.withCredentials,
|
|
260
|
+
headers: headers,
|
|
261
|
+
observe: observe,
|
|
262
|
+
reportProgress: reportProgress
|
|
263
|
+
}
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Public Functions
|
|
3
|
+
* <h1>Agravity API Reference</h1>This is the public API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 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 { AllWebAppData } from '../model/models';
|
|
22
|
+
import { GroupAllAppData } from '../model/models';
|
|
23
|
+
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
25
|
+
import { AgravityPublicConfiguration } from '../configuration';
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@Injectable({
|
|
30
|
+
providedIn: 'root'
|
|
31
|
+
})
|
|
32
|
+
export class PublicWebAppDataService {
|
|
33
|
+
|
|
34
|
+
protected basePath = 'http://localhost:7072/api';
|
|
35
|
+
public defaultHeaders = new HttpHeaders();
|
|
36
|
+
public configuration = new AgravityPublicConfiguration();
|
|
37
|
+
public encoder: HttpParameterCodec;
|
|
38
|
+
|
|
39
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityPublicConfiguration) {
|
|
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 returns all collections and assets from the given collection type.
|
|
91
|
+
* @param id The ID of the collection type for which this web data should be prepared.
|
|
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 httpGetDataCollectionType(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<GroupAllAppData>;
|
|
96
|
+
public httpGetDataCollectionType(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<GroupAllAppData>>;
|
|
97
|
+
public httpGetDataCollectionType(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<GroupAllAppData>>;
|
|
98
|
+
public httpGetDataCollectionType(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
99
|
+
if (id === null || id === undefined) {
|
|
100
|
+
throw new Error('Required parameter id was null or undefined when calling httpGetDataCollectionType.');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
let headers = this.defaultHeaders;
|
|
104
|
+
|
|
105
|
+
let credential: string | undefined;
|
|
106
|
+
// authentication (function_key) required
|
|
107
|
+
credential = this.configuration.lookupCredential('function_key');
|
|
108
|
+
if (credential) {
|
|
109
|
+
headers = headers.set('x-functions-key', credential);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
113
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
114
|
+
// to determine the Accept header
|
|
115
|
+
const httpHeaderAccepts: string[] = [
|
|
116
|
+
'application/json'
|
|
117
|
+
];
|
|
118
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
119
|
+
}
|
|
120
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
121
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
126
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
127
|
+
responseType_ = 'text';
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return this.httpClient.get<GroupAllAppData>(`${this.configuration.basePath}/data/collectiontype/${encodeURIComponent(String(id))}`,
|
|
131
|
+
{
|
|
132
|
+
responseType: <any>responseType_,
|
|
133
|
+
withCredentials: this.configuration.withCredentials,
|
|
134
|
+
headers: headers,
|
|
135
|
+
observe: observe,
|
|
136
|
+
reportProgress: reportProgress
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* 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.
|
|
143
|
+
* @param id The ID of the collection for which this web data should be prepared.
|
|
144
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
145
|
+
* @param reportProgress flag to report request and response progress.
|
|
146
|
+
*/
|
|
147
|
+
public httpGetWebAppData(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AllWebAppData>;
|
|
148
|
+
public httpGetWebAppData(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AllWebAppData>>;
|
|
149
|
+
public httpGetWebAppData(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AllWebAppData>>;
|
|
150
|
+
public httpGetWebAppData(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
151
|
+
if (id === null || id === undefined) {
|
|
152
|
+
throw new Error('Required parameter id was null or undefined when calling httpGetWebAppData.');
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
let headers = this.defaultHeaders;
|
|
156
|
+
|
|
157
|
+
let credential: string | undefined;
|
|
158
|
+
// authentication (function_key) required
|
|
159
|
+
credential = this.configuration.lookupCredential('function_key');
|
|
160
|
+
if (credential) {
|
|
161
|
+
headers = headers.set('x-functions-key', credential);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
165
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
166
|
+
// to determine the Accept header
|
|
167
|
+
const httpHeaderAccepts: string[] = [
|
|
168
|
+
'application/json'
|
|
169
|
+
];
|
|
170
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
171
|
+
}
|
|
172
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
173
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
178
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
179
|
+
responseType_ = 'text';
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
return this.httpClient.get<AllWebAppData>(`${this.configuration.basePath}/webappdata/${encodeURIComponent(String(id))}`,
|
|
183
|
+
{
|
|
184
|
+
responseType: <any>responseType_,
|
|
185
|
+
withCredentials: this.configuration.withCredentials,
|
|
186
|
+
headers: headers,
|
|
187
|
+
observe: observe,
|
|
188
|
+
reportProgress: reportProgress
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Public Functions
|
|
3
|
+
* <h1>Agravity API Reference</h1>This is the public API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 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 { Workspace } from '../model/models';
|
|
22
|
+
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
|
+
import { AgravityPublicConfiguration } from '../configuration';
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@Injectable({
|
|
29
|
+
providedIn: 'root'
|
|
30
|
+
})
|
|
31
|
+
export class PublicWorkspaceManagementService {
|
|
32
|
+
|
|
33
|
+
protected basePath = 'http://localhost:7072/api';
|
|
34
|
+
public defaultHeaders = new HttpHeaders();
|
|
35
|
+
public configuration = new AgravityPublicConfiguration();
|
|
36
|
+
public encoder: HttpParameterCodec;
|
|
37
|
+
|
|
38
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityPublicConfiguration) {
|
|
39
|
+
if (configuration) {
|
|
40
|
+
this.configuration = configuration;
|
|
41
|
+
}
|
|
42
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
43
|
+
if (typeof basePath !== 'string') {
|
|
44
|
+
basePath = this.basePath;
|
|
45
|
+
}
|
|
46
|
+
this.configuration.basePath = basePath;
|
|
47
|
+
}
|
|
48
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
53
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
54
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
55
|
+
} else {
|
|
56
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
57
|
+
}
|
|
58
|
+
return httpParams;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return httpParams;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (typeof value === "object") {
|
|
67
|
+
if (Array.isArray(value)) {
|
|
68
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
69
|
+
} else if (value instanceof Date) {
|
|
70
|
+
if (key != null) {
|
|
71
|
+
httpParams = httpParams.append(key,
|
|
72
|
+
(value as Date).toISOString().substr(0, 10));
|
|
73
|
+
} else {
|
|
74
|
+
throw Error("key may not be null if value is Date");
|
|
75
|
+
}
|
|
76
|
+
} else {
|
|
77
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
78
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
79
|
+
}
|
|
80
|
+
} else if (key != null) {
|
|
81
|
+
httpParams = httpParams.append(key, value);
|
|
82
|
+
} else {
|
|
83
|
+
throw Error("key may not be null if value is not object or array");
|
|
84
|
+
}
|
|
85
|
+
return httpParams;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* This lists all available workspaces which are stored in the database and not deleted (status \"A\").
|
|
90
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
91
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
92
|
+
* @param reportProgress flag to report request and response progress.
|
|
93
|
+
*/
|
|
94
|
+
public httpWorkspacesGet(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<Workspace>>;
|
|
95
|
+
public httpWorkspacesGet(translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<Workspace>>>;
|
|
96
|
+
public httpWorkspacesGet(translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<Workspace>>>;
|
|
97
|
+
public httpWorkspacesGet(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
98
|
+
|
|
99
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
100
|
+
if (translations !== undefined && translations !== null) {
|
|
101
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
102
|
+
<any>translations, 'translations');
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
let headers = this.defaultHeaders;
|
|
106
|
+
|
|
107
|
+
let credential: string | undefined;
|
|
108
|
+
// authentication (function_key) required
|
|
109
|
+
credential = this.configuration.lookupCredential('function_key');
|
|
110
|
+
if (credential) {
|
|
111
|
+
headers = headers.set('x-functions-key', credential);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
115
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
116
|
+
// to determine the Accept header
|
|
117
|
+
const httpHeaderAccepts: string[] = [
|
|
118
|
+
'application/json'
|
|
119
|
+
];
|
|
120
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
121
|
+
}
|
|
122
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
123
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
128
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
129
|
+
responseType_ = 'text';
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
return this.httpClient.get<Array<Workspace>>(`${this.configuration.basePath}/workspaces`,
|
|
133
|
+
{
|
|
134
|
+
params: queryParameters,
|
|
135
|
+
responseType: <any>responseType_,
|
|
136
|
+
withCredentials: this.configuration.withCredentials,
|
|
137
|
+
headers: headers,
|
|
138
|
+
observe: observe,
|
|
139
|
+
reportProgress: reportProgress
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Returns one single workspace (from ID).
|
|
146
|
+
* @param id The ID of the workspace.
|
|
147
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
148
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
149
|
+
* @param reportProgress flag to report request and response progress.
|
|
150
|
+
*/
|
|
151
|
+
public httpWorkspacesGetById(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Workspace>;
|
|
152
|
+
public httpWorkspacesGetById(id: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Workspace>>;
|
|
153
|
+
public httpWorkspacesGetById(id: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Workspace>>;
|
|
154
|
+
public httpWorkspacesGetById(id: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
155
|
+
if (id === null || id === undefined) {
|
|
156
|
+
throw new Error('Required parameter id was null or undefined when calling httpWorkspacesGetById.');
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
160
|
+
if (translations !== undefined && translations !== null) {
|
|
161
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
162
|
+
<any>translations, 'translations');
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
let headers = this.defaultHeaders;
|
|
166
|
+
|
|
167
|
+
let credential: string | undefined;
|
|
168
|
+
// authentication (function_key) required
|
|
169
|
+
credential = this.configuration.lookupCredential('function_key');
|
|
170
|
+
if (credential) {
|
|
171
|
+
headers = headers.set('x-functions-key', credential);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
175
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
176
|
+
// to determine the Accept header
|
|
177
|
+
const httpHeaderAccepts: string[] = [
|
|
178
|
+
'application/json'
|
|
179
|
+
];
|
|
180
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
181
|
+
}
|
|
182
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
183
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
188
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
189
|
+
responseType_ = 'text';
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
return this.httpClient.get<Workspace>(`${this.configuration.basePath}/workspaces/${encodeURIComponent(String(id))}`,
|
|
193
|
+
{
|
|
194
|
+
params: queryParameters,
|
|
195
|
+
responseType: <any>responseType_,
|
|
196
|
+
withCredentials: this.configuration.withCredentials,
|
|
197
|
+
headers: headers,
|
|
198
|
+
observe: observe,
|
|
199
|
+
reportProgress: reportProgress
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
}
|