@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,329 @@
|
|
|
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 { SharedCollection } from '../model/models';
|
|
22
|
+
import { SharedCollectionFull } 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 CollectionSharingService {
|
|
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
|
+
* Creates an additional shared collection
|
|
91
|
+
* @param sharedCollection This creates / adds an unique shared collection ID and adds the information to the collection (in DB).
|
|
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 httpSharedCollectionsCreate(sharedCollection: SharedCollection, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<SharedCollection>;
|
|
96
|
+
public httpSharedCollectionsCreate(sharedCollection: SharedCollection, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<SharedCollection>>;
|
|
97
|
+
public httpSharedCollectionsCreate(sharedCollection: SharedCollection, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<SharedCollection>>;
|
|
98
|
+
public httpSharedCollectionsCreate(sharedCollection: SharedCollection, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
99
|
+
if (sharedCollection === null || sharedCollection === undefined) {
|
|
100
|
+
throw new Error('Required parameter sharedCollection was null or undefined when calling httpSharedCollectionsCreate.');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
let headers = this.defaultHeaders;
|
|
104
|
+
|
|
105
|
+
let credential: string | undefined;
|
|
106
|
+
// authentication (msal_auth) required
|
|
107
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
108
|
+
if (credential) {
|
|
109
|
+
headers = headers.set('Authorization', 'Bearer ' + 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
|
+
// to determine the Content-Type header
|
|
126
|
+
const consumes: string[] = [
|
|
127
|
+
'application/json'
|
|
128
|
+
];
|
|
129
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
130
|
+
if (httpContentTypeSelected !== undefined) {
|
|
131
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
135
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
136
|
+
responseType_ = 'text';
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return this.httpClient.post<SharedCollection>(`${this.configuration.basePath}/shared`,
|
|
140
|
+
sharedCollection,
|
|
141
|
+
{
|
|
142
|
+
responseType: <any>responseType_,
|
|
143
|
+
withCredentials: this.configuration.withCredentials,
|
|
144
|
+
headers: headers,
|
|
145
|
+
observe: observe,
|
|
146
|
+
reportProgress: reportProgress
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Deletes the shared collection with the given ID.
|
|
153
|
+
* @param id The ID of the shared collection.
|
|
154
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
155
|
+
* @param reportProgress flag to report request and response progress.
|
|
156
|
+
*/
|
|
157
|
+
public httpSharedCollectionsDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<any>;
|
|
158
|
+
public httpSharedCollectionsDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<any>>;
|
|
159
|
+
public httpSharedCollectionsDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<any>>;
|
|
160
|
+
public httpSharedCollectionsDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
161
|
+
if (id === null || id === undefined) {
|
|
162
|
+
throw new Error('Required parameter id was null or undefined when calling httpSharedCollectionsDeleteById.');
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
let headers = this.defaultHeaders;
|
|
166
|
+
|
|
167
|
+
let credential: string | undefined;
|
|
168
|
+
// authentication (msal_auth) required
|
|
169
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
170
|
+
if (credential) {
|
|
171
|
+
headers = headers.set('Authorization', 'Bearer ' + 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.delete<any>(`${this.configuration.basePath}/shared/${encodeURIComponent(String(id))}`,
|
|
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
|
+
* This lists all the shared collections which are stored in the database for a specific user.
|
|
205
|
+
* @param collectionid Filter all shared collections with given ID.
|
|
206
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
207
|
+
* @param reportProgress flag to report request and response progress.
|
|
208
|
+
*/
|
|
209
|
+
public httpSharedCollectionsGet(collectionid?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<SharedCollection>>;
|
|
210
|
+
public httpSharedCollectionsGet(collectionid?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<SharedCollection>>>;
|
|
211
|
+
public httpSharedCollectionsGet(collectionid?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<SharedCollection>>>;
|
|
212
|
+
public httpSharedCollectionsGet(collectionid?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
213
|
+
|
|
214
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
215
|
+
if (collectionid !== undefined && collectionid !== null) {
|
|
216
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
217
|
+
<any>collectionid, 'collectionid');
|
|
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
|
+
'application/json'
|
|
234
|
+
];
|
|
235
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
236
|
+
}
|
|
237
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
238
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
243
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
244
|
+
responseType_ = 'text';
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
return this.httpClient.get<Array<SharedCollection>>(`${this.configuration.basePath}/shared`,
|
|
248
|
+
{
|
|
249
|
+
params: queryParameters,
|
|
250
|
+
responseType: <any>responseType_,
|
|
251
|
+
withCredentials: this.configuration.withCredentials,
|
|
252
|
+
headers: headers,
|
|
253
|
+
observe: observe,
|
|
254
|
+
reportProgress: reportProgress
|
|
255
|
+
}
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Returns one single shared collection (from ID)
|
|
261
|
+
* @param id The ID of the shared collection.
|
|
262
|
+
* @param continuationToken Each result returns the continous token if more results are available than requested. With this token, the next page could be fetched. (URL encoded!)
|
|
263
|
+
* @param limit This number limits the page result of assets.
|
|
264
|
+
* @param orderby How the return assets are sorted. Default is property: created_date (newest first).
|
|
265
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
266
|
+
* @param reportProgress flag to report request and response progress.
|
|
267
|
+
*/
|
|
268
|
+
public httpSharedCollectionsGetById(id: string, continuationToken?: string, limit?: number, orderby?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<SharedCollectionFull>;
|
|
269
|
+
public httpSharedCollectionsGetById(id: string, continuationToken?: string, limit?: number, orderby?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<SharedCollectionFull>>;
|
|
270
|
+
public httpSharedCollectionsGetById(id: string, continuationToken?: string, limit?: number, orderby?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<SharedCollectionFull>>;
|
|
271
|
+
public httpSharedCollectionsGetById(id: string, continuationToken?: string, limit?: number, orderby?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
272
|
+
if (id === null || id === undefined) {
|
|
273
|
+
throw new Error('Required parameter id was null or undefined when calling httpSharedCollectionsGetById.');
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
277
|
+
if (continuationToken !== undefined && continuationToken !== null) {
|
|
278
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
279
|
+
<any>continuationToken, 'continuation_token');
|
|
280
|
+
}
|
|
281
|
+
if (limit !== undefined && limit !== null) {
|
|
282
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
283
|
+
<any>limit, 'limit');
|
|
284
|
+
}
|
|
285
|
+
if (orderby !== undefined && orderby !== null) {
|
|
286
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
287
|
+
<any>orderby, 'orderby');
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
let headers = this.defaultHeaders;
|
|
291
|
+
|
|
292
|
+
let credential: string | undefined;
|
|
293
|
+
// authentication (msal_auth) required
|
|
294
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
295
|
+
if (credential) {
|
|
296
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
300
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
301
|
+
// to determine the Accept header
|
|
302
|
+
const httpHeaderAccepts: string[] = [
|
|
303
|
+
'application/json'
|
|
304
|
+
];
|
|
305
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
306
|
+
}
|
|
307
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
308
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
313
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
314
|
+
responseType_ = 'text';
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
return this.httpClient.get<SharedCollectionFull>(`${this.configuration.basePath}/shared/${encodeURIComponent(String(id))}`,
|
|
318
|
+
{
|
|
319
|
+
params: queryParameters,
|
|
320
|
+
responseType: <any>responseType_,
|
|
321
|
+
withCredentials: this.configuration.withCredentials,
|
|
322
|
+
headers: headers,
|
|
323
|
+
observe: observe,
|
|
324
|
+
reportProgress: reportProgress
|
|
325
|
+
}
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
}
|