@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,513 @@
|
|
|
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 { PermissionChange } from '../model/models';
|
|
22
|
+
import { Workspace } 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 WorkspaceManagementService {
|
|
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 creates a unique workspace ID and adds the information to the database.
|
|
91
|
+
* @param workspace This endpoint creates a unique workspace ID and adds the information to the database.
|
|
92
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
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 httpWorkspacesCreate(workspace: Workspace, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Workspace>;
|
|
97
|
+
public httpWorkspacesCreate(workspace: Workspace, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Workspace>>;
|
|
98
|
+
public httpWorkspacesCreate(workspace: Workspace, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Workspace>>;
|
|
99
|
+
public httpWorkspacesCreate(workspace: Workspace, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
100
|
+
if (workspace === null || workspace === undefined) {
|
|
101
|
+
throw new Error('Required parameter workspace was null or undefined when calling httpWorkspacesCreate.');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
105
|
+
if (translations !== undefined && translations !== null) {
|
|
106
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
107
|
+
<any>translations, 'translations');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
let headers = this.defaultHeaders;
|
|
111
|
+
|
|
112
|
+
let credential: string | undefined;
|
|
113
|
+
// authentication (msal_auth) required
|
|
114
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
115
|
+
if (credential) {
|
|
116
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
120
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
121
|
+
// to determine the Accept header
|
|
122
|
+
const httpHeaderAccepts: string[] = [
|
|
123
|
+
'application/json'
|
|
124
|
+
];
|
|
125
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
126
|
+
}
|
|
127
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
128
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
// to determine the Content-Type header
|
|
133
|
+
const consumes: string[] = [
|
|
134
|
+
'application/json'
|
|
135
|
+
];
|
|
136
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
137
|
+
if (httpContentTypeSelected !== undefined) {
|
|
138
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
142
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
143
|
+
responseType_ = 'text';
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return this.httpClient.post<Workspace>(`${this.configuration.basePath}/workspaces`,
|
|
147
|
+
workspace,
|
|
148
|
+
{
|
|
149
|
+
params: queryParameters,
|
|
150
|
+
responseType: <any>responseType_,
|
|
151
|
+
withCredentials: this.configuration.withCredentials,
|
|
152
|
+
headers: headers,
|
|
153
|
+
observe: observe,
|
|
154
|
+
reportProgress: reportProgress
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* This endpoint deletes all workspaces on the system.
|
|
161
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
162
|
+
* @param reportProgress flag to report request and response progress.
|
|
163
|
+
*/
|
|
164
|
+
public httpWorkspacesDelete(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>;
|
|
165
|
+
public httpWorkspacesDelete(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>;
|
|
166
|
+
public httpWorkspacesDelete(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>;
|
|
167
|
+
public httpWorkspacesDelete(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> {
|
|
168
|
+
|
|
169
|
+
let headers = this.defaultHeaders;
|
|
170
|
+
|
|
171
|
+
let credential: string | undefined;
|
|
172
|
+
// authentication (msal_auth) required
|
|
173
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
174
|
+
if (credential) {
|
|
175
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
179
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
180
|
+
// to determine the Accept header
|
|
181
|
+
const httpHeaderAccepts: string[] = [
|
|
182
|
+
];
|
|
183
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
184
|
+
}
|
|
185
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
186
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
191
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
192
|
+
responseType_ = 'text';
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return this.httpClient.delete<any>(`${this.configuration.basePath}/workspaces`,
|
|
196
|
+
{
|
|
197
|
+
responseType: <any>responseType_,
|
|
198
|
+
withCredentials: this.configuration.withCredentials,
|
|
199
|
+
headers: headers,
|
|
200
|
+
observe: observe,
|
|
201
|
+
reportProgress: reportProgress
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* This endpoint deletes the workspace with the given ID.
|
|
208
|
+
* @param id The ID of the workspace.
|
|
209
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
210
|
+
* @param reportProgress flag to report request and response progress.
|
|
211
|
+
*/
|
|
212
|
+
public httpWorkspacesDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>;
|
|
213
|
+
public httpWorkspacesDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>;
|
|
214
|
+
public httpWorkspacesDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>;
|
|
215
|
+
public httpWorkspacesDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> {
|
|
216
|
+
if (id === null || id === undefined) {
|
|
217
|
+
throw new Error('Required parameter id was null or undefined when calling httpWorkspacesDeleteById.');
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
let headers = this.defaultHeaders;
|
|
221
|
+
|
|
222
|
+
let credential: string | undefined;
|
|
223
|
+
// authentication (msal_auth) required
|
|
224
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
225
|
+
if (credential) {
|
|
226
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
230
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
231
|
+
// to determine the Accept header
|
|
232
|
+
const httpHeaderAccepts: string[] = [
|
|
233
|
+
];
|
|
234
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
235
|
+
}
|
|
236
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
237
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
242
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
243
|
+
responseType_ = 'text';
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
return this.httpClient.delete<any>(`${this.configuration.basePath}/workspaces/${encodeURIComponent(String(id))}`,
|
|
247
|
+
{
|
|
248
|
+
responseType: <any>responseType_,
|
|
249
|
+
withCredentials: this.configuration.withCredentials,
|
|
250
|
+
headers: headers,
|
|
251
|
+
observe: observe,
|
|
252
|
+
reportProgress: reportProgress
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* This endpoint lists all available workspaces, which are stored in the database and not deleted (status \"A\").
|
|
259
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
260
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
261
|
+
* @param reportProgress flag to report request and response progress.
|
|
262
|
+
*/
|
|
263
|
+
public httpWorkspacesGet(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<Workspace>>;
|
|
264
|
+
public httpWorkspacesGet(translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<Workspace>>>;
|
|
265
|
+
public httpWorkspacesGet(translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<Workspace>>>;
|
|
266
|
+
public httpWorkspacesGet(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
267
|
+
|
|
268
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
269
|
+
if (translations !== undefined && translations !== null) {
|
|
270
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
271
|
+
<any>translations, 'translations');
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
let headers = this.defaultHeaders;
|
|
275
|
+
|
|
276
|
+
let credential: string | undefined;
|
|
277
|
+
// authentication (msal_auth) required
|
|
278
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
279
|
+
if (credential) {
|
|
280
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
284
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
285
|
+
// to determine the Accept header
|
|
286
|
+
const httpHeaderAccepts: string[] = [
|
|
287
|
+
'application/json'
|
|
288
|
+
];
|
|
289
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
290
|
+
}
|
|
291
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
292
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
297
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
298
|
+
responseType_ = 'text';
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
return this.httpClient.get<Array<Workspace>>(`${this.configuration.basePath}/workspaces`,
|
|
302
|
+
{
|
|
303
|
+
params: queryParameters,
|
|
304
|
+
responseType: <any>responseType_,
|
|
305
|
+
withCredentials: this.configuration.withCredentials,
|
|
306
|
+
headers: headers,
|
|
307
|
+
observe: observe,
|
|
308
|
+
reportProgress: reportProgress
|
|
309
|
+
}
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* This endpoint returns one single workspace (from ID).
|
|
315
|
+
* @param id The ID of the workspace.
|
|
316
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
317
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
318
|
+
* @param reportProgress flag to report request and response progress.
|
|
319
|
+
*/
|
|
320
|
+
public httpWorkspacesGetById(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Workspace>;
|
|
321
|
+
public httpWorkspacesGetById(id: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Workspace>>;
|
|
322
|
+
public httpWorkspacesGetById(id: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Workspace>>;
|
|
323
|
+
public httpWorkspacesGetById(id: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
324
|
+
if (id === null || id === undefined) {
|
|
325
|
+
throw new Error('Required parameter id was null or undefined when calling httpWorkspacesGetById.');
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
329
|
+
if (translations !== undefined && translations !== null) {
|
|
330
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
331
|
+
<any>translations, 'translations');
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
let headers = this.defaultHeaders;
|
|
335
|
+
|
|
336
|
+
let credential: string | undefined;
|
|
337
|
+
// authentication (msal_auth) required
|
|
338
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
339
|
+
if (credential) {
|
|
340
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
344
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
345
|
+
// to determine the Accept header
|
|
346
|
+
const httpHeaderAccepts: string[] = [
|
|
347
|
+
'application/json'
|
|
348
|
+
];
|
|
349
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
350
|
+
}
|
|
351
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
352
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
357
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
358
|
+
responseType_ = 'text';
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
return this.httpClient.get<Workspace>(`${this.configuration.basePath}/workspaces/${encodeURIComponent(String(id))}`,
|
|
362
|
+
{
|
|
363
|
+
params: queryParameters,
|
|
364
|
+
responseType: <any>responseType_,
|
|
365
|
+
withCredentials: this.configuration.withCredentials,
|
|
366
|
+
headers: headers,
|
|
367
|
+
observe: observe,
|
|
368
|
+
reportProgress: reportProgress
|
|
369
|
+
}
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* This endpoint updates the workspace. Null fields will be ignored. If \'items\' are set they are fully reset (like PUT).
|
|
375
|
+
* @param id The ID of the workspace.
|
|
376
|
+
* @param workspace The body has to be a valid workspace json. Not fitting properties are ignored.
|
|
377
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
378
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
379
|
+
* @param reportProgress flag to report request and response progress.
|
|
380
|
+
*/
|
|
381
|
+
public httpWorkspacesUpdateById(id: string, workspace: Workspace, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Workspace>;
|
|
382
|
+
public httpWorkspacesUpdateById(id: string, workspace: Workspace, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Workspace>>;
|
|
383
|
+
public httpWorkspacesUpdateById(id: string, workspace: Workspace, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Workspace>>;
|
|
384
|
+
public httpWorkspacesUpdateById(id: string, workspace: Workspace, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
385
|
+
if (id === null || id === undefined) {
|
|
386
|
+
throw new Error('Required parameter id was null or undefined when calling httpWorkspacesUpdateById.');
|
|
387
|
+
}
|
|
388
|
+
if (workspace === null || workspace === undefined) {
|
|
389
|
+
throw new Error('Required parameter workspace was null or undefined when calling httpWorkspacesUpdateById.');
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
393
|
+
if (translations !== undefined && translations !== null) {
|
|
394
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
395
|
+
<any>translations, 'translations');
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
let headers = this.defaultHeaders;
|
|
399
|
+
|
|
400
|
+
let credential: string | undefined;
|
|
401
|
+
// authentication (msal_auth) required
|
|
402
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
403
|
+
if (credential) {
|
|
404
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
408
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
409
|
+
// to determine the Accept header
|
|
410
|
+
const httpHeaderAccepts: string[] = [
|
|
411
|
+
'application/json'
|
|
412
|
+
];
|
|
413
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
414
|
+
}
|
|
415
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
416
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
// to determine the Content-Type header
|
|
421
|
+
const consumes: string[] = [
|
|
422
|
+
'application/json'
|
|
423
|
+
];
|
|
424
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
425
|
+
if (httpContentTypeSelected !== undefined) {
|
|
426
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
430
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
431
|
+
responseType_ = 'text';
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
return this.httpClient.post<Workspace>(`${this.configuration.basePath}/workspaces/${encodeURIComponent(String(id))}`,
|
|
435
|
+
workspace,
|
|
436
|
+
{
|
|
437
|
+
params: queryParameters,
|
|
438
|
+
responseType: <any>responseType_,
|
|
439
|
+
withCredentials: this.configuration.withCredentials,
|
|
440
|
+
headers: headers,
|
|
441
|
+
observe: observe,
|
|
442
|
+
reportProgress: reportProgress
|
|
443
|
+
}
|
|
444
|
+
);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* This endpoint updates the permissions of the workspace. The modifier tells the system what to do with the list of ids.
|
|
449
|
+
* @param id The ID of the workspace.
|
|
450
|
+
* @param permissionChange The changes which ids and how they should be added / removed / replaced / etc.
|
|
451
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
452
|
+
* @param reportProgress flag to report request and response progress.
|
|
453
|
+
*/
|
|
454
|
+
public httpWorkspacesUpdatePermissionsById(id: string, permissionChange: PermissionChange, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Workspace>;
|
|
455
|
+
public httpWorkspacesUpdatePermissionsById(id: string, permissionChange: PermissionChange, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Workspace>>;
|
|
456
|
+
public httpWorkspacesUpdatePermissionsById(id: string, permissionChange: PermissionChange, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Workspace>>;
|
|
457
|
+
public httpWorkspacesUpdatePermissionsById(id: string, permissionChange: PermissionChange, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
458
|
+
if (id === null || id === undefined) {
|
|
459
|
+
throw new Error('Required parameter id was null or undefined when calling httpWorkspacesUpdatePermissionsById.');
|
|
460
|
+
}
|
|
461
|
+
if (permissionChange === null || permissionChange === undefined) {
|
|
462
|
+
throw new Error('Required parameter permissionChange was null or undefined when calling httpWorkspacesUpdatePermissionsById.');
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
let headers = this.defaultHeaders;
|
|
466
|
+
|
|
467
|
+
let credential: string | undefined;
|
|
468
|
+
// authentication (msal_auth) required
|
|
469
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
470
|
+
if (credential) {
|
|
471
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
475
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
476
|
+
// to determine the Accept header
|
|
477
|
+
const httpHeaderAccepts: string[] = [
|
|
478
|
+
'application/json'
|
|
479
|
+
];
|
|
480
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
481
|
+
}
|
|
482
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
483
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
// to determine the Content-Type header
|
|
488
|
+
const consumes: string[] = [
|
|
489
|
+
'application/json'
|
|
490
|
+
];
|
|
491
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
492
|
+
if (httpContentTypeSelected !== undefined) {
|
|
493
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
497
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
498
|
+
responseType_ = 'text';
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
return this.httpClient.post<Workspace>(`${this.configuration.basePath}/workspaces/${encodeURIComponent(String(id))}/permissions`,
|
|
502
|
+
permissionChange,
|
|
503
|
+
{
|
|
504
|
+
responseType: <any>responseType_,
|
|
505
|
+
withCredentials: this.configuration.withCredentials,
|
|
506
|
+
headers: headers,
|
|
507
|
+
observe: observe,
|
|
508
|
+
reportProgress: reportProgress
|
|
509
|
+
}
|
|
510
|
+
);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
}
|
package/api.module.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
|
|
2
|
+
import { AgravityConfiguration } from './configuration';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
|
|
5
|
+
import { AssetIconRuleManagementService } from './api/assetIconRuleManagement.agravity';
|
|
6
|
+
import { AssetManagementService } from './api/assetManagement.agravity';
|
|
7
|
+
import { AssetOperationsService } from './api/assetOperations.agravity';
|
|
8
|
+
import { AssetPublishingService } from './api/assetPublishing.agravity';
|
|
9
|
+
import { AssetVersioningService } from './api/assetVersioning.agravity';
|
|
10
|
+
import { AuthenticationManagementService } from './api/authenticationManagement.agravity';
|
|
11
|
+
import { CollectionManagementService } from './api/collectionManagement.agravity';
|
|
12
|
+
import { CollectionSharingService } from './api/collectionSharing.agravity';
|
|
13
|
+
import { CollectionTypeItemBlueprintManagementService } from './api/collectionTypeItemBlueprintManagement.agravity';
|
|
14
|
+
import { CollectionTypeManagementService } from './api/collectionTypeManagement.agravity';
|
|
15
|
+
import { ConfigurationManagementService } from './api/configurationManagement.agravity';
|
|
16
|
+
import { DownloadFormatManagementService } from './api/downloadFormatManagement.agravity';
|
|
17
|
+
import { DownloadZipService } from './api/downloadZip.agravity';
|
|
18
|
+
import { GeneralManagementService } from './api/generalManagement.agravity';
|
|
19
|
+
import { HelperToolsService } from './api/helperTools.agravity';
|
|
20
|
+
import { IccProfileManagementService } from './api/iccProfileManagement.agravity';
|
|
21
|
+
import { ListBlobsService } from './api/listBlobs.agravity';
|
|
22
|
+
import { ListQueuesService } from './api/listQueues.agravity';
|
|
23
|
+
import { PermissionsManagementService } from './api/permissionsManagement.agravity';
|
|
24
|
+
import { PublishingService } from './api/publishing.agravity';
|
|
25
|
+
import { QuickshareManagementService } from './api/quickshareManagement.agravity';
|
|
26
|
+
import { SavedSearchManagementService } from './api/savedSearchManagement.agravity';
|
|
27
|
+
import { SearchManagementService } from './api/searchManagement.agravity';
|
|
28
|
+
import { SecureUploadService } from './api/secureUpload.agravity';
|
|
29
|
+
import { SignalRConnectionManagementService } from './api/signalRConnectionManagement.agravity';
|
|
30
|
+
import { StaticDefinedListManagementService } from './api/staticDefinedListManagement.agravity';
|
|
31
|
+
import { StockImportService } from './api/stockImport.agravity';
|
|
32
|
+
import { StructureImportService } from './api/structureImport.agravity';
|
|
33
|
+
import { TranslationManagementService } from './api/translationManagement.agravity';
|
|
34
|
+
import { UpgradeManagementService } from './api/upgradeManagement.agravity';
|
|
35
|
+
import { WebAppDataService } from './api/webAppData.agravity';
|
|
36
|
+
import { WordpressManagementService } from './api/wordpressManagement.agravity';
|
|
37
|
+
import { WorkspaceManagementService } from './api/workspaceManagement.agravity';
|
|
38
|
+
|
|
39
|
+
@NgModule({
|
|
40
|
+
imports: [],
|
|
41
|
+
declarations: [],
|
|
42
|
+
exports: [],
|
|
43
|
+
providers: []
|
|
44
|
+
})
|
|
45
|
+
export class AgravityApiModule {
|
|
46
|
+
public static forRoot(configurationFactory: () => AgravityConfiguration): ModuleWithProviders<AgravityApiModule> {
|
|
47
|
+
return {
|
|
48
|
+
ngModule: AgravityApiModule,
|
|
49
|
+
providers: [ { provide: AgravityConfiguration, useFactory: configurationFactory } ]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
constructor( @Optional() @SkipSelf() parentModule: AgravityApiModule,
|
|
54
|
+
@Optional() http: HttpClient) {
|
|
55
|
+
if (parentModule) {
|
|
56
|
+
throw new Error('AgravityApiModule is already loaded. Import in your base AppModule only.');
|
|
57
|
+
}
|
|
58
|
+
if (!http) {
|
|
59
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
60
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|