@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,533 @@
|
|
|
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 { CollTypeItem } from '../model/models';
|
|
22
|
+
import { CollectionType } from '../model/models';
|
|
23
|
+
import { PermissionChange } 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 CollectionTypeManagementService {
|
|
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 endpoint creates a unique collection type ID and adds the information to the database.
|
|
92
|
+
* @param collectionType This endpoint creates a unique collection type ID and adds the information to the database.
|
|
93
|
+
* @param workspaceid (optional) The ID of the workspace where this collection type should be assigned.
|
|
94
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
95
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
96
|
+
* @param reportProgress flag to report request and response progress.
|
|
97
|
+
*/
|
|
98
|
+
public httpCollectionTypesCreate(collectionType: CollectionType, workspaceid?: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<CollectionType>;
|
|
99
|
+
public httpCollectionTypesCreate(collectionType: CollectionType, workspaceid?: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<CollectionType>>;
|
|
100
|
+
public httpCollectionTypesCreate(collectionType: CollectionType, workspaceid?: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<CollectionType>>;
|
|
101
|
+
public httpCollectionTypesCreate(collectionType: CollectionType, workspaceid?: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
102
|
+
if (collectionType === null || collectionType === undefined) {
|
|
103
|
+
throw new Error('Required parameter collectionType was null or undefined when calling httpCollectionTypesCreate.');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
107
|
+
if (workspaceid !== undefined && workspaceid !== null) {
|
|
108
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
109
|
+
<any>workspaceid, 'workspaceid');
|
|
110
|
+
}
|
|
111
|
+
if (translations !== undefined && translations !== null) {
|
|
112
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
113
|
+
<any>translations, 'translations');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
let headers = this.defaultHeaders;
|
|
117
|
+
|
|
118
|
+
let credential: string | undefined;
|
|
119
|
+
// authentication (msal_auth) required
|
|
120
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
121
|
+
if (credential) {
|
|
122
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
126
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
127
|
+
// to determine the Accept header
|
|
128
|
+
const httpHeaderAccepts: string[] = [
|
|
129
|
+
'application/json'
|
|
130
|
+
];
|
|
131
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
132
|
+
}
|
|
133
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
134
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
// to determine the Content-Type header
|
|
139
|
+
const consumes: string[] = [
|
|
140
|
+
'application/json'
|
|
141
|
+
];
|
|
142
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
143
|
+
if (httpContentTypeSelected !== undefined) {
|
|
144
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
148
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
149
|
+
responseType_ = 'text';
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return this.httpClient.post<CollectionType>(`${this.configuration.basePath}/collectiontypes`,
|
|
153
|
+
collectionType,
|
|
154
|
+
{
|
|
155
|
+
params: queryParameters,
|
|
156
|
+
responseType: <any>responseType_,
|
|
157
|
+
withCredentials: this.configuration.withCredentials,
|
|
158
|
+
headers: headers,
|
|
159
|
+
observe: observe,
|
|
160
|
+
reportProgress: reportProgress
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* This endpoint deletes the collection type with the given ID.
|
|
167
|
+
* @param id The ID of the collection type.
|
|
168
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
169
|
+
* @param reportProgress flag to report request and response progress.
|
|
170
|
+
*/
|
|
171
|
+
public httpCollectionTypesDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<any>;
|
|
172
|
+
public httpCollectionTypesDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpResponse<any>>;
|
|
173
|
+
public httpCollectionTypesDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined}): Observable<HttpEvent<any>>;
|
|
174
|
+
public httpCollectionTypesDelete(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined}): Observable<any> {
|
|
175
|
+
if (id === null || id === undefined) {
|
|
176
|
+
throw new Error('Required parameter id was null or undefined when calling httpCollectionTypesDelete.');
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
let headers = this.defaultHeaders;
|
|
180
|
+
|
|
181
|
+
let credential: string | undefined;
|
|
182
|
+
// authentication (msal_auth) required
|
|
183
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
184
|
+
if (credential) {
|
|
185
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
189
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
190
|
+
// to determine the Accept header
|
|
191
|
+
const httpHeaderAccepts: string[] = [
|
|
192
|
+
];
|
|
193
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
194
|
+
}
|
|
195
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
196
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
201
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
202
|
+
responseType_ = 'text';
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
return this.httpClient.delete<any>(`${this.configuration.basePath}/collectiontypes/${encodeURIComponent(String(id))}`,
|
|
206
|
+
{
|
|
207
|
+
responseType: <any>responseType_,
|
|
208
|
+
withCredentials: this.configuration.withCredentials,
|
|
209
|
+
headers: headers,
|
|
210
|
+
observe: observe,
|
|
211
|
+
reportProgress: reportProgress
|
|
212
|
+
}
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* This endpoint lists all available collection types, which are stored in the database and not deleted (status \"A\").
|
|
218
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
219
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
220
|
+
* @param reportProgress flag to report request and response progress.
|
|
221
|
+
*/
|
|
222
|
+
public httpCollectionTypesGet(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<CollectionType>>;
|
|
223
|
+
public httpCollectionTypesGet(translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<CollectionType>>>;
|
|
224
|
+
public httpCollectionTypesGet(translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<CollectionType>>>;
|
|
225
|
+
public httpCollectionTypesGet(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
226
|
+
|
|
227
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
228
|
+
if (translations !== undefined && translations !== null) {
|
|
229
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
230
|
+
<any>translations, 'translations');
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
let headers = this.defaultHeaders;
|
|
234
|
+
|
|
235
|
+
let credential: string | undefined;
|
|
236
|
+
// authentication (msal_auth) required
|
|
237
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
238
|
+
if (credential) {
|
|
239
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
243
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
244
|
+
// to determine the Accept header
|
|
245
|
+
const httpHeaderAccepts: string[] = [
|
|
246
|
+
'application/json'
|
|
247
|
+
];
|
|
248
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
249
|
+
}
|
|
250
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
251
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
256
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
257
|
+
responseType_ = 'text';
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
return this.httpClient.get<Array<CollectionType>>(`${this.configuration.basePath}/collectiontypes`,
|
|
261
|
+
{
|
|
262
|
+
params: queryParameters,
|
|
263
|
+
responseType: <any>responseType_,
|
|
264
|
+
withCredentials: this.configuration.withCredentials,
|
|
265
|
+
headers: headers,
|
|
266
|
+
observe: observe,
|
|
267
|
+
reportProgress: reportProgress
|
|
268
|
+
}
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* This endpoint returns one single collection type (from ID).
|
|
274
|
+
* @param id The ID of the collection type.
|
|
275
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
276
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
277
|
+
* @param reportProgress flag to report request and response progress.
|
|
278
|
+
*/
|
|
279
|
+
public httpCollectionTypesGetById(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<CollectionType>;
|
|
280
|
+
public httpCollectionTypesGetById(id: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<CollectionType>>;
|
|
281
|
+
public httpCollectionTypesGetById(id: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<CollectionType>>;
|
|
282
|
+
public httpCollectionTypesGetById(id: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
283
|
+
if (id === null || id === undefined) {
|
|
284
|
+
throw new Error('Required parameter id was null or undefined when calling httpCollectionTypesGetById.');
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
288
|
+
if (translations !== undefined && translations !== null) {
|
|
289
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
290
|
+
<any>translations, 'translations');
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
let headers = this.defaultHeaders;
|
|
294
|
+
|
|
295
|
+
let credential: string | undefined;
|
|
296
|
+
// authentication (msal_auth) required
|
|
297
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
298
|
+
if (credential) {
|
|
299
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
303
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
304
|
+
// to determine the Accept header
|
|
305
|
+
const httpHeaderAccepts: string[] = [
|
|
306
|
+
'application/json'
|
|
307
|
+
];
|
|
308
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
309
|
+
}
|
|
310
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
311
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
316
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
317
|
+
responseType_ = 'text';
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
return this.httpClient.get<CollectionType>(`${this.configuration.basePath}/collectiontypes/${encodeURIComponent(String(id))}`,
|
|
321
|
+
{
|
|
322
|
+
params: queryParameters,
|
|
323
|
+
responseType: <any>responseType_,
|
|
324
|
+
withCredentials: this.configuration.withCredentials,
|
|
325
|
+
headers: headers,
|
|
326
|
+
observe: observe,
|
|
327
|
+
reportProgress: reportProgress
|
|
328
|
+
}
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* This endpoint updates the collection type. Null fields will be ignored. If \'items\' are set they are fully reset (like PUT).
|
|
334
|
+
* @param id The ID of the collection type.
|
|
335
|
+
* @param collectionType The body has to be a valid collection type json. Not fitting properties are ignored.
|
|
336
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
337
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
338
|
+
* @param reportProgress flag to report request and response progress.
|
|
339
|
+
*/
|
|
340
|
+
public httpCollectionTypesUpdate(id: string, collectionType: CollectionType, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<CollectionType>;
|
|
341
|
+
public httpCollectionTypesUpdate(id: string, collectionType: CollectionType, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<CollectionType>>;
|
|
342
|
+
public httpCollectionTypesUpdate(id: string, collectionType: CollectionType, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<CollectionType>>;
|
|
343
|
+
public httpCollectionTypesUpdate(id: string, collectionType: CollectionType, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
344
|
+
if (id === null || id === undefined) {
|
|
345
|
+
throw new Error('Required parameter id was null or undefined when calling httpCollectionTypesUpdate.');
|
|
346
|
+
}
|
|
347
|
+
if (collectionType === null || collectionType === undefined) {
|
|
348
|
+
throw new Error('Required parameter collectionType was null or undefined when calling httpCollectionTypesUpdate.');
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
352
|
+
if (translations !== undefined && translations !== null) {
|
|
353
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
354
|
+
<any>translations, 'translations');
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
let headers = this.defaultHeaders;
|
|
358
|
+
|
|
359
|
+
let credential: string | undefined;
|
|
360
|
+
// authentication (msal_auth) required
|
|
361
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
362
|
+
if (credential) {
|
|
363
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
367
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
368
|
+
// to determine the Accept header
|
|
369
|
+
const httpHeaderAccepts: string[] = [
|
|
370
|
+
'application/json'
|
|
371
|
+
];
|
|
372
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
373
|
+
}
|
|
374
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
375
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
// to determine the Content-Type header
|
|
380
|
+
const consumes: string[] = [
|
|
381
|
+
'application/json'
|
|
382
|
+
];
|
|
383
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
384
|
+
if (httpContentTypeSelected !== undefined) {
|
|
385
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
389
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
390
|
+
responseType_ = 'text';
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
return this.httpClient.post<CollectionType>(`${this.configuration.basePath}/collectiontypes/${encodeURIComponent(String(id))}`,
|
|
394
|
+
collectionType,
|
|
395
|
+
{
|
|
396
|
+
params: queryParameters,
|
|
397
|
+
responseType: <any>responseType_,
|
|
398
|
+
withCredentials: this.configuration.withCredentials,
|
|
399
|
+
headers: headers,
|
|
400
|
+
observe: observe,
|
|
401
|
+
reportProgress: reportProgress
|
|
402
|
+
}
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* This endpoint updates the permissions of the collection type. The modifier tells the system what to do with the list of ids.
|
|
408
|
+
* @param id The ID of the collection type.
|
|
409
|
+
* @param permissionChange The changes which ids and how they should be added / removed / replaced / etc.
|
|
410
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
411
|
+
* @param reportProgress flag to report request and response progress.
|
|
412
|
+
*/
|
|
413
|
+
public httpCollectionTypesUpdatePermissionsById(id: string, permissionChange: PermissionChange, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<CollectionType>;
|
|
414
|
+
public httpCollectionTypesUpdatePermissionsById(id: string, permissionChange: PermissionChange, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<CollectionType>>;
|
|
415
|
+
public httpCollectionTypesUpdatePermissionsById(id: string, permissionChange: PermissionChange, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<CollectionType>>;
|
|
416
|
+
public httpCollectionTypesUpdatePermissionsById(id: string, permissionChange: PermissionChange, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
417
|
+
if (id === null || id === undefined) {
|
|
418
|
+
throw new Error('Required parameter id was null or undefined when calling httpCollectionTypesUpdatePermissionsById.');
|
|
419
|
+
}
|
|
420
|
+
if (permissionChange === null || permissionChange === undefined) {
|
|
421
|
+
throw new Error('Required parameter permissionChange was null or undefined when calling httpCollectionTypesUpdatePermissionsById.');
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
let headers = this.defaultHeaders;
|
|
425
|
+
|
|
426
|
+
let credential: string | undefined;
|
|
427
|
+
// authentication (msal_auth) required
|
|
428
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
429
|
+
if (credential) {
|
|
430
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
434
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
435
|
+
// to determine the Accept header
|
|
436
|
+
const httpHeaderAccepts: string[] = [
|
|
437
|
+
'application/json'
|
|
438
|
+
];
|
|
439
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
440
|
+
}
|
|
441
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
442
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
// to determine the Content-Type header
|
|
447
|
+
const consumes: string[] = [
|
|
448
|
+
'application/json'
|
|
449
|
+
];
|
|
450
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
451
|
+
if (httpContentTypeSelected !== undefined) {
|
|
452
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
456
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
457
|
+
responseType_ = 'text';
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
return this.httpClient.post<CollectionType>(`${this.configuration.basePath}/collectiontypes/${encodeURIComponent(String(id))}/permissions`,
|
|
461
|
+
permissionChange,
|
|
462
|
+
{
|
|
463
|
+
responseType: <any>responseType_,
|
|
464
|
+
withCredentials: this.configuration.withCredentials,
|
|
465
|
+
headers: headers,
|
|
466
|
+
observe: observe,
|
|
467
|
+
reportProgress: reportProgress
|
|
468
|
+
}
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* This method returns a list of collection types items.
|
|
474
|
+
* @param includeblueprint True if the blueprint items should be included.
|
|
475
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
476
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
477
|
+
* @param reportProgress flag to report request and response progress.
|
|
478
|
+
*/
|
|
479
|
+
public httpGetCollectionTypeItems(includeblueprint?: boolean, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<CollTypeItem>>;
|
|
480
|
+
public httpGetCollectionTypeItems(includeblueprint?: boolean, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<CollTypeItem>>>;
|
|
481
|
+
public httpGetCollectionTypeItems(includeblueprint?: boolean, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<CollTypeItem>>>;
|
|
482
|
+
public httpGetCollectionTypeItems(includeblueprint?: boolean, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
483
|
+
|
|
484
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
485
|
+
if (includeblueprint !== undefined && includeblueprint !== null) {
|
|
486
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
487
|
+
<any>includeblueprint, 'includeblueprint');
|
|
488
|
+
}
|
|
489
|
+
if (translations !== undefined && translations !== null) {
|
|
490
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
491
|
+
<any>translations, 'translations');
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
let headers = this.defaultHeaders;
|
|
495
|
+
|
|
496
|
+
let credential: string | undefined;
|
|
497
|
+
// authentication (msal_auth) required
|
|
498
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
499
|
+
if (credential) {
|
|
500
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
504
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
505
|
+
// to determine the Accept header
|
|
506
|
+
const httpHeaderAccepts: string[] = [
|
|
507
|
+
'application/json'
|
|
508
|
+
];
|
|
509
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
510
|
+
}
|
|
511
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
512
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
517
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
518
|
+
responseType_ = 'text';
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
return this.httpClient.get<Array<CollTypeItem>>(`${this.configuration.basePath}/collectiontypesitems`,
|
|
522
|
+
{
|
|
523
|
+
params: queryParameters,
|
|
524
|
+
responseType: <any>responseType_,
|
|
525
|
+
withCredentials: this.configuration.withCredentials,
|
|
526
|
+
headers: headers,
|
|
527
|
+
observe: observe,
|
|
528
|
+
reportProgress: reportProgress
|
|
529
|
+
}
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
}
|