@agravity/public 7.3.0 → 8.0.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 +2 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/publicAssetManagement.pub.agravity.ts +389 -265
- package/api/publicAssetOperations.pub.agravity.ts +636 -425
- package/api/publicAssetPublishing.pub.agravity.ts +195 -82
- package/api/publicAssetVersioning.pub.agravity.ts +469 -239
- package/api/publicAuthenticationManagement.pub.agravity.ts +66 -24
- package/api/publicCollectionManagement.pub.agravity.ts +525 -295
- package/api/publicCollectionSecureUpload.pub.agravity.ts +142 -69
- package/api/publicCollectionTypeManagement.pub.agravity.ts +211 -95
- package/api/publicConfigurationManagement.pub.agravity.ts +69 -26
- package/api/publicDownloadFormatManagement.pub.agravity.ts +139 -53
- package/api/publicEndpoints.pub.agravity.ts +63 -43
- package/api/publicGeneralManagement.pub.agravity.ts +253 -104
- package/api/publicHelperTools.pub.agravity.ts +270 -106
- package/api/publicPortalManagement.pub.agravity.ts +323 -124
- package/api/publicPublishing.pub.agravity.ts +69 -38
- package/api/publicSavedSearch.pub.agravity.ts +75 -38
- package/api/publicSearchManagement.pub.agravity.ts +265 -194
- package/api/publicSharingManagement.pub.agravity.ts +246 -157
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +68 -24
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +212 -107
- package/api/publicTranslationManagement.pub.agravity.ts +189 -115
- package/api/publicWebAppData.pub.agravity.ts +146 -47
- package/api/publicWorkspaceManagement.pub.agravity.ts +158 -57
- package/api.module.ts +0 -24
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.pub.agravity.ts +3 -4
- package/model/{badRequestResult.pub.agravity.ts → agravityInfoResponse.pub.agravity.ts} +4 -3
- package/model/agravityVersion.pub.agravity.ts +8 -9
- package/model/allWebAppData.pub.agravity.ts +4 -5
- package/model/artificialIntelligenceGroup.pub.agravity.ts +3 -4
- package/model/asset.pub.agravity.ts +22 -23
- package/model/assetAvailability.pub.agravity.ts +1 -2
- package/model/assetBlob.pub.agravity.ts +27 -28
- package/model/assetIdFormat.pub.agravity.ts +3 -4
- package/model/assetPageResult.pub.agravity.ts +4 -5
- package/model/azSearchOptions.pub.agravity.ts +8 -9
- package/model/collTypeItem.pub.agravity.ts +16 -17
- package/model/collection.pub.agravity.ts +15 -16
- package/model/collectionType.pub.agravity.ts +14 -15
- package/model/collectionUDL.pub.agravity.ts +4 -5
- package/model/createSftpUserResult.pub.agravity.ts +2 -3
- package/model/dataResult.pub.agravity.ts +4 -5
- package/model/deletedEntities.pub.agravity.ts +4 -5
- package/model/distZipResponse.pub.agravity.ts +3 -4
- package/model/downloadFormat.pub.agravity.ts +19 -16
- package/model/dynamicImageOperation.pub.agravity.ts +2 -3
- package/model/entityId.pub.agravity.ts +1 -2
- package/model/entityIdName.pub.agravity.ts +3 -4
- package/model/frontendAppConfig.pub.agravity.ts +0 -1
- package/model/groupAllAppData.pub.agravity.ts +5 -6
- package/model/models.ts +1 -3
- package/model/moveCollectionBody.pub.agravity.ts +3 -4
- package/model/permissionEntity.pub.agravity.ts +1 -2
- package/model/portal.pub.agravity.ts +18 -20
- package/model/portalConfiguration.pub.agravity.ts +23 -25
- package/model/portalLinks.pub.agravity.ts +3 -4
- package/model/portalTheme.pub.agravity.ts +6 -7
- package/model/portalZipRequest.pub.agravity.ts +14 -15
- package/model/publishEntity.pub.agravity.ts +9 -10
- package/model/publishedAsset.pub.agravity.ts +12 -13
- package/model/quickShareFull.pub.agravity.ts +15 -16
- package/model/sasToken.pub.agravity.ts +6 -7
- package/model/savedSearch.pub.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.pub.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.pub.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.pub.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.pub.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.pub.agravity.ts +2 -3
- package/model/searchAdminStatistics.pub.agravity.ts +2 -3
- package/model/searchAdminStatus.pub.agravity.ts +4 -5
- package/model/searchFacet.pub.agravity.ts +2 -3
- package/model/searchFacetEntity.pub.agravity.ts +2 -3
- package/model/searchResult.pub.agravity.ts +3 -4
- package/model/searchableItem.pub.agravity.ts +3 -4
- package/model/secureUploadEntity.pub.agravity.ts +10 -11
- package/model/sharedAllowedFormat.pub.agravity.ts +2 -3
- package/model/sharedAsset.pub.agravity.ts +5 -6
- package/model/sharedCollectionFull.pub.agravity.ts +18 -19
- package/model/sharedCollectionZipRequest.pub.agravity.ts +14 -15
- package/model/signalRConnectionInfo.pub.agravity.ts +0 -1
- package/model/staticDefinedList.pub.agravity.ts +12 -13
- package/model/versionEntity.pub.agravity.ts +9 -10
- package/model/versionedAsset.pub.agravity.ts +5 -6
- package/model/whereParam.pub.agravity.ts +0 -1
- package/model/workspace.pub.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- package/model/okResult.pub.agravity.ts +0 -15
- package/model/portalLanguages.pub.agravity.ts +0 -16
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Agravity OpenAPI Documentation - Public Functions
|
|
3
3
|
* <h1>Agravity API Reference</h1>This is the public API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.3.0
|
|
6
5
|
* Contact: office@agravity.io
|
|
7
6
|
*
|
|
8
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,16 +11,97 @@
|
|
|
12
11
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
12
|
|
|
14
13
|
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
-
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
14
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
16
15
|
import { CustomHttpParameterCodec } from '../encoder';
|
|
17
16
|
import { Observable } from 'rxjs';
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
import {
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { Collection } from '../model/collection.pub.agravity';
|
|
21
22
|
|
|
23
|
+
// @ts-ignore
|
|
22
24
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
23
25
|
import { AgravityPublicConfiguration } from '../configuration';
|
|
24
26
|
|
|
27
|
+
export interface HttpCollectionsCreateRequestParams {
|
|
28
|
+
/** The ID of the collection type where this collections should be assigned. */
|
|
29
|
+
collectiontypeid: string;
|
|
30
|
+
/** This endpoint creates a unique collection ID and adds the information to the database. */
|
|
31
|
+
collection: Collection;
|
|
32
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
33
|
+
acceptLanguage?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface HttpCollectionsGetRequestParams {
|
|
37
|
+
/** The ID of the collection type where these collections should come from. */
|
|
38
|
+
collectiontypeid: string;
|
|
39
|
+
/** The hierarchy level of collections which should be returned. */
|
|
40
|
+
level?: number;
|
|
41
|
+
/** The ID of the parent collection which should be queried. (No collectiontypeid is required) */
|
|
42
|
+
parentid?: string;
|
|
43
|
+
/** This limits the fields which are returned, separated by comma (\',\'). */
|
|
44
|
+
fields?: string;
|
|
45
|
+
/** The items can be extended to fully filled items. */
|
|
46
|
+
items?: boolean;
|
|
47
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
48
|
+
translations?: boolean;
|
|
49
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
50
|
+
acceptLanguage?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface HttpCollectionsGetByIdRequestParams {
|
|
54
|
+
/** The ID of the collection. */
|
|
55
|
+
id: string;
|
|
56
|
+
/** This limits the fields which are returned, separated by comma (\',\'). */
|
|
57
|
+
fields?: string;
|
|
58
|
+
/** The items can be extended to fully filled items. */
|
|
59
|
+
items?: boolean;
|
|
60
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
61
|
+
translations?: boolean;
|
|
62
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
63
|
+
acceptLanguage?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface HttpCollectionsGetDescendantsTreeOfIdRequestParams {
|
|
67
|
+
/** The ID of the collection. */
|
|
68
|
+
id: string;
|
|
69
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
70
|
+
translations?: boolean;
|
|
71
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
72
|
+
acceptLanguage?: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface HttpCollectionsGetTreeAncestorsOfIdRequestParams {
|
|
76
|
+
/** The ID of the collection. */
|
|
77
|
+
id: string;
|
|
78
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
79
|
+
translations?: boolean;
|
|
80
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
81
|
+
acceptLanguage?: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface HttpGetCollectionPreviewsByIdRequestParams {
|
|
85
|
+
/** The ID of the collection. */
|
|
86
|
+
id: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface HttpPublicCollectionsDeleteByIdRequestParams {
|
|
90
|
+
/** The ID of the collection. */
|
|
91
|
+
id: string;
|
|
92
|
+
/** If this is true the assigned assets are set to delete as well. */
|
|
93
|
+
deleteassets?: boolean;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface HttpPublicCollectionsUpdateByIdRequestParams {
|
|
97
|
+
/** The ID of the collection. */
|
|
98
|
+
id: string;
|
|
99
|
+
/** The body has to be a valid collection json.Not fitting properties are ignored. */
|
|
100
|
+
collection: Collection;
|
|
101
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
102
|
+
acceptLanguage?: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
25
105
|
@Injectable({
|
|
26
106
|
providedIn: 'root'
|
|
27
107
|
})
|
|
@@ -33,13 +113,18 @@ export class PublicCollectionManagementService {
|
|
|
33
113
|
|
|
34
114
|
constructor(
|
|
35
115
|
protected httpClient: HttpClient,
|
|
36
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
116
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
37
117
|
@Optional() configuration: AgravityPublicConfiguration
|
|
38
118
|
) {
|
|
39
119
|
if (configuration) {
|
|
40
120
|
this.configuration = configuration;
|
|
41
121
|
}
|
|
42
122
|
if (typeof this.configuration.basePath !== 'string') {
|
|
123
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
124
|
+
if (firstBasePath != undefined) {
|
|
125
|
+
basePath = firstBasePath;
|
|
126
|
+
}
|
|
127
|
+
|
|
43
128
|
if (typeof basePath !== 'string') {
|
|
44
129
|
basePath = this.basePath;
|
|
45
130
|
}
|
|
@@ -48,6 +133,7 @@ export class PublicCollectionManagementService {
|
|
|
48
133
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
134
|
}
|
|
50
135
|
|
|
136
|
+
// @ts-ignore
|
|
51
137
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
52
138
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
53
139
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -67,7 +153,7 @@ export class PublicCollectionManagementService {
|
|
|
67
153
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
68
154
|
} else if (value instanceof Date) {
|
|
69
155
|
if (key != null) {
|
|
70
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
156
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
71
157
|
} else {
|
|
72
158
|
throw Error('key may not be null if value is Date');
|
|
73
159
|
}
|
|
@@ -84,668 +170,812 @@ export class PublicCollectionManagementService {
|
|
|
84
170
|
|
|
85
171
|
/**
|
|
86
172
|
* This endpoint creates a unique collection ID and adds the information to the database.
|
|
87
|
-
* @param
|
|
88
|
-
* @param collection This endpoint creates a unique collection ID and adds the information to the database.
|
|
173
|
+
* @param requestParameters
|
|
89
174
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
90
175
|
* @param reportProgress flag to report request and response progress.
|
|
91
176
|
*/
|
|
92
177
|
public httpCollectionsCreate(
|
|
93
|
-
|
|
94
|
-
collection: Collection,
|
|
178
|
+
requestParameters?: HttpCollectionsCreateRequestParams,
|
|
95
179
|
observe?: 'body',
|
|
96
180
|
reportProgress?: boolean,
|
|
97
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
181
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
98
182
|
): Observable<Collection>;
|
|
99
183
|
public httpCollectionsCreate(
|
|
100
|
-
|
|
101
|
-
collection: Collection,
|
|
184
|
+
requestParameters?: HttpCollectionsCreateRequestParams,
|
|
102
185
|
observe?: 'response',
|
|
103
186
|
reportProgress?: boolean,
|
|
104
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
187
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
105
188
|
): Observable<HttpResponse<Collection>>;
|
|
106
189
|
public httpCollectionsCreate(
|
|
107
|
-
|
|
108
|
-
collection: Collection,
|
|
190
|
+
requestParameters?: HttpCollectionsCreateRequestParams,
|
|
109
191
|
observe?: 'events',
|
|
110
192
|
reportProgress?: boolean,
|
|
111
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
193
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
112
194
|
): Observable<HttpEvent<Collection>>;
|
|
113
195
|
public httpCollectionsCreate(
|
|
114
|
-
|
|
115
|
-
collection: Collection,
|
|
196
|
+
requestParameters?: HttpCollectionsCreateRequestParams,
|
|
116
197
|
observe: any = 'body',
|
|
117
198
|
reportProgress: boolean = false,
|
|
118
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
199
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
119
200
|
): Observable<any> {
|
|
201
|
+
const collectiontypeid = requestParameters?.collectiontypeid;
|
|
120
202
|
if (collectiontypeid === null || collectiontypeid === undefined) {
|
|
121
203
|
throw new Error('Required parameter collectiontypeid was null or undefined when calling httpCollectionsCreate.');
|
|
122
204
|
}
|
|
205
|
+
const collection = requestParameters?.collection;
|
|
123
206
|
if (collection === null || collection === undefined) {
|
|
124
207
|
throw new Error('Required parameter collection was null or undefined when calling httpCollectionsCreate.');
|
|
125
208
|
}
|
|
209
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
126
210
|
|
|
127
|
-
let
|
|
211
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
128
212
|
if (collectiontypeid !== undefined && collectiontypeid !== null) {
|
|
129
|
-
|
|
213
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectiontypeid, 'collectiontypeid');
|
|
130
214
|
}
|
|
131
215
|
|
|
132
|
-
let
|
|
216
|
+
let localVarHeaders = this.defaultHeaders;
|
|
217
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
218
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
219
|
+
}
|
|
133
220
|
|
|
134
|
-
let
|
|
221
|
+
let localVarCredential: string | undefined;
|
|
135
222
|
// authentication (function_key) required
|
|
136
|
-
|
|
137
|
-
if (
|
|
138
|
-
|
|
223
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
224
|
+
if (localVarCredential) {
|
|
225
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
139
226
|
}
|
|
140
227
|
|
|
141
|
-
let
|
|
142
|
-
if (
|
|
228
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
229
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
143
230
|
// to determine the Accept header
|
|
144
231
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
145
|
-
|
|
232
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
146
233
|
}
|
|
147
|
-
if (
|
|
148
|
-
|
|
234
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
235
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
239
|
+
if (localVarHttpContext === undefined) {
|
|
240
|
+
localVarHttpContext = new HttpContext();
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
244
|
+
if (localVarTransferCache === undefined) {
|
|
245
|
+
localVarTransferCache = true;
|
|
149
246
|
}
|
|
150
247
|
|
|
151
248
|
// to determine the Content-Type header
|
|
152
249
|
const consumes: string[] = ['application/json'];
|
|
153
250
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
154
251
|
if (httpContentTypeSelected !== undefined) {
|
|
155
|
-
|
|
252
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
156
253
|
}
|
|
157
254
|
|
|
158
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
159
|
-
if (
|
|
160
|
-
|
|
255
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
256
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
257
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
258
|
+
responseType_ = 'text';
|
|
259
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
260
|
+
responseType_ = 'json';
|
|
261
|
+
} else {
|
|
262
|
+
responseType_ = 'blob';
|
|
263
|
+
}
|
|
161
264
|
}
|
|
162
265
|
|
|
163
|
-
|
|
164
|
-
|
|
266
|
+
let localVarPath = `/collections`;
|
|
267
|
+
return this.httpClient.request<Collection>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
268
|
+
context: localVarHttpContext,
|
|
269
|
+
body: collection,
|
|
270
|
+
params: localVarQueryParameters,
|
|
165
271
|
responseType: <any>responseType_,
|
|
166
272
|
withCredentials: this.configuration.withCredentials,
|
|
167
|
-
headers:
|
|
273
|
+
headers: localVarHeaders,
|
|
168
274
|
observe: observe,
|
|
275
|
+
transferCache: localVarTransferCache,
|
|
169
276
|
reportProgress: reportProgress
|
|
170
277
|
});
|
|
171
278
|
}
|
|
172
279
|
|
|
173
280
|
/**
|
|
174
281
|
* This lists all the collections which are stored in the database and not deleted (status \"A\"). This will include all specific properties from collection type.
|
|
175
|
-
* @param
|
|
176
|
-
* @param level The hierarchy level of collections which should be returned.
|
|
177
|
-
* @param parentid The ID of the parent collection which should be queried. (No collectiontypeid is required)
|
|
178
|
-
* @param fields This limits the fields which are returned, separated by comma (\',\').
|
|
179
|
-
* @param items The items can be extended to fully filled items.
|
|
180
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
282
|
+
* @param requestParameters
|
|
181
283
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
182
284
|
* @param reportProgress flag to report request and response progress.
|
|
183
285
|
*/
|
|
184
286
|
public httpCollectionsGet(
|
|
185
|
-
|
|
186
|
-
level?: number,
|
|
187
|
-
parentid?: string,
|
|
188
|
-
fields?: string,
|
|
189
|
-
items?: boolean,
|
|
190
|
-
translations?: boolean,
|
|
287
|
+
requestParameters?: HttpCollectionsGetRequestParams,
|
|
191
288
|
observe?: 'body',
|
|
192
289
|
reportProgress?: boolean,
|
|
193
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
290
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
194
291
|
): Observable<Array<Collection>>;
|
|
195
292
|
public httpCollectionsGet(
|
|
196
|
-
|
|
197
|
-
level?: number,
|
|
198
|
-
parentid?: string,
|
|
199
|
-
fields?: string,
|
|
200
|
-
items?: boolean,
|
|
201
|
-
translations?: boolean,
|
|
293
|
+
requestParameters?: HttpCollectionsGetRequestParams,
|
|
202
294
|
observe?: 'response',
|
|
203
295
|
reportProgress?: boolean,
|
|
204
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
296
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
205
297
|
): Observable<HttpResponse<Array<Collection>>>;
|
|
206
298
|
public httpCollectionsGet(
|
|
207
|
-
|
|
208
|
-
level?: number,
|
|
209
|
-
parentid?: string,
|
|
210
|
-
fields?: string,
|
|
211
|
-
items?: boolean,
|
|
212
|
-
translations?: boolean,
|
|
299
|
+
requestParameters?: HttpCollectionsGetRequestParams,
|
|
213
300
|
observe?: 'events',
|
|
214
301
|
reportProgress?: boolean,
|
|
215
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
302
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
216
303
|
): Observable<HttpEvent<Array<Collection>>>;
|
|
217
304
|
public httpCollectionsGet(
|
|
218
|
-
|
|
219
|
-
level?: number,
|
|
220
|
-
parentid?: string,
|
|
221
|
-
fields?: string,
|
|
222
|
-
items?: boolean,
|
|
223
|
-
translations?: boolean,
|
|
305
|
+
requestParameters?: HttpCollectionsGetRequestParams,
|
|
224
306
|
observe: any = 'body',
|
|
225
307
|
reportProgress: boolean = false,
|
|
226
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
308
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
227
309
|
): Observable<any> {
|
|
310
|
+
const collectiontypeid = requestParameters?.collectiontypeid;
|
|
228
311
|
if (collectiontypeid === null || collectiontypeid === undefined) {
|
|
229
312
|
throw new Error('Required parameter collectiontypeid was null or undefined when calling httpCollectionsGet.');
|
|
230
313
|
}
|
|
314
|
+
const level = requestParameters?.level;
|
|
315
|
+
const parentid = requestParameters?.parentid;
|
|
316
|
+
const fields = requestParameters?.fields;
|
|
317
|
+
const items = requestParameters?.items;
|
|
318
|
+
const translations = requestParameters?.translations;
|
|
319
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
231
320
|
|
|
232
|
-
let
|
|
321
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
233
322
|
if (collectiontypeid !== undefined && collectiontypeid !== null) {
|
|
234
|
-
|
|
323
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectiontypeid, 'collectiontypeid');
|
|
235
324
|
}
|
|
236
325
|
if (level !== undefined && level !== null) {
|
|
237
|
-
|
|
326
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>level, 'level');
|
|
238
327
|
}
|
|
239
328
|
if (parentid !== undefined && parentid !== null) {
|
|
240
|
-
|
|
329
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>parentid, 'parentid');
|
|
241
330
|
}
|
|
242
331
|
if (fields !== undefined && fields !== null) {
|
|
243
|
-
|
|
332
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
|
|
244
333
|
}
|
|
245
334
|
if (items !== undefined && items !== null) {
|
|
246
|
-
|
|
335
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
|
|
247
336
|
}
|
|
248
337
|
if (translations !== undefined && translations !== null) {
|
|
249
|
-
|
|
338
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
250
339
|
}
|
|
251
340
|
|
|
252
|
-
let
|
|
341
|
+
let localVarHeaders = this.defaultHeaders;
|
|
342
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
343
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
344
|
+
}
|
|
253
345
|
|
|
254
|
-
let
|
|
346
|
+
let localVarCredential: string | undefined;
|
|
255
347
|
// authentication (function_key) required
|
|
256
|
-
|
|
257
|
-
if (
|
|
258
|
-
|
|
348
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
349
|
+
if (localVarCredential) {
|
|
350
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
259
351
|
}
|
|
260
352
|
|
|
261
|
-
let
|
|
262
|
-
if (
|
|
353
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
354
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
263
355
|
// to determine the Accept header
|
|
264
356
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
265
|
-
|
|
357
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
358
|
+
}
|
|
359
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
360
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
266
361
|
}
|
|
267
|
-
|
|
268
|
-
|
|
362
|
+
|
|
363
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
364
|
+
if (localVarHttpContext === undefined) {
|
|
365
|
+
localVarHttpContext = new HttpContext();
|
|
269
366
|
}
|
|
270
367
|
|
|
271
|
-
let
|
|
272
|
-
if (
|
|
273
|
-
|
|
368
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
369
|
+
if (localVarTransferCache === undefined) {
|
|
370
|
+
localVarTransferCache = true;
|
|
274
371
|
}
|
|
275
372
|
|
|
276
|
-
|
|
277
|
-
|
|
373
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
374
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
375
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
376
|
+
responseType_ = 'text';
|
|
377
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
378
|
+
responseType_ = 'json';
|
|
379
|
+
} else {
|
|
380
|
+
responseType_ = 'blob';
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
let localVarPath = `/collections`;
|
|
385
|
+
return this.httpClient.request<Array<Collection>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
386
|
+
context: localVarHttpContext,
|
|
387
|
+
params: localVarQueryParameters,
|
|
278
388
|
responseType: <any>responseType_,
|
|
279
389
|
withCredentials: this.configuration.withCredentials,
|
|
280
|
-
headers:
|
|
390
|
+
headers: localVarHeaders,
|
|
281
391
|
observe: observe,
|
|
392
|
+
transferCache: localVarTransferCache,
|
|
282
393
|
reportProgress: reportProgress
|
|
283
394
|
});
|
|
284
395
|
}
|
|
285
396
|
|
|
286
397
|
/**
|
|
287
398
|
* Returns one single collection (from ID). This will include all specific properties from collection type.
|
|
288
|
-
* @param
|
|
289
|
-
* @param fields This limits the fields which are returned, separated by comma (\',\').
|
|
290
|
-
* @param items The items can be extended to fully filled items.
|
|
291
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
399
|
+
* @param requestParameters
|
|
292
400
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
293
401
|
* @param reportProgress flag to report request and response progress.
|
|
294
402
|
*/
|
|
295
403
|
public httpCollectionsGetById(
|
|
296
|
-
|
|
297
|
-
fields?: string,
|
|
298
|
-
items?: boolean,
|
|
299
|
-
translations?: boolean,
|
|
404
|
+
requestParameters?: HttpCollectionsGetByIdRequestParams,
|
|
300
405
|
observe?: 'body',
|
|
301
406
|
reportProgress?: boolean,
|
|
302
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
407
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
303
408
|
): Observable<Collection>;
|
|
304
409
|
public httpCollectionsGetById(
|
|
305
|
-
|
|
306
|
-
fields?: string,
|
|
307
|
-
items?: boolean,
|
|
308
|
-
translations?: boolean,
|
|
410
|
+
requestParameters?: HttpCollectionsGetByIdRequestParams,
|
|
309
411
|
observe?: 'response',
|
|
310
412
|
reportProgress?: boolean,
|
|
311
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
413
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
312
414
|
): Observable<HttpResponse<Collection>>;
|
|
313
415
|
public httpCollectionsGetById(
|
|
314
|
-
|
|
315
|
-
fields?: string,
|
|
316
|
-
items?: boolean,
|
|
317
|
-
translations?: boolean,
|
|
416
|
+
requestParameters?: HttpCollectionsGetByIdRequestParams,
|
|
318
417
|
observe?: 'events',
|
|
319
418
|
reportProgress?: boolean,
|
|
320
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
419
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
321
420
|
): Observable<HttpEvent<Collection>>;
|
|
322
421
|
public httpCollectionsGetById(
|
|
323
|
-
|
|
324
|
-
fields?: string,
|
|
325
|
-
items?: boolean,
|
|
326
|
-
translations?: boolean,
|
|
422
|
+
requestParameters?: HttpCollectionsGetByIdRequestParams,
|
|
327
423
|
observe: any = 'body',
|
|
328
424
|
reportProgress: boolean = false,
|
|
329
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
425
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
330
426
|
): Observable<any> {
|
|
427
|
+
const id = requestParameters?.id;
|
|
331
428
|
if (id === null || id === undefined) {
|
|
332
429
|
throw new Error('Required parameter id was null or undefined when calling httpCollectionsGetById.');
|
|
333
430
|
}
|
|
431
|
+
const fields = requestParameters?.fields;
|
|
432
|
+
const items = requestParameters?.items;
|
|
433
|
+
const translations = requestParameters?.translations;
|
|
434
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
334
435
|
|
|
335
|
-
let
|
|
436
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
336
437
|
if (fields !== undefined && fields !== null) {
|
|
337
|
-
|
|
438
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
|
|
338
439
|
}
|
|
339
440
|
if (items !== undefined && items !== null) {
|
|
340
|
-
|
|
441
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
|
|
341
442
|
}
|
|
342
443
|
if (translations !== undefined && translations !== null) {
|
|
343
|
-
|
|
444
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
344
445
|
}
|
|
345
446
|
|
|
346
|
-
let
|
|
447
|
+
let localVarHeaders = this.defaultHeaders;
|
|
448
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
449
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
450
|
+
}
|
|
347
451
|
|
|
348
|
-
let
|
|
452
|
+
let localVarCredential: string | undefined;
|
|
349
453
|
// authentication (function_key) required
|
|
350
|
-
|
|
351
|
-
if (
|
|
352
|
-
|
|
454
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
455
|
+
if (localVarCredential) {
|
|
456
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
353
457
|
}
|
|
354
458
|
|
|
355
|
-
let
|
|
356
|
-
if (
|
|
459
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
460
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
357
461
|
// to determine the Accept header
|
|
358
462
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
359
|
-
|
|
463
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
360
464
|
}
|
|
361
|
-
if (
|
|
362
|
-
|
|
465
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
466
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
363
467
|
}
|
|
364
468
|
|
|
365
|
-
let
|
|
366
|
-
if (
|
|
367
|
-
|
|
469
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
470
|
+
if (localVarHttpContext === undefined) {
|
|
471
|
+
localVarHttpContext = new HttpContext();
|
|
368
472
|
}
|
|
369
473
|
|
|
370
|
-
|
|
371
|
-
|
|
474
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
475
|
+
if (localVarTransferCache === undefined) {
|
|
476
|
+
localVarTransferCache = true;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
480
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
481
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
482
|
+
responseType_ = 'text';
|
|
483
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
484
|
+
responseType_ = 'json';
|
|
485
|
+
} else {
|
|
486
|
+
responseType_ = 'blob';
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
491
|
+
return this.httpClient.request<Collection>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
492
|
+
context: localVarHttpContext,
|
|
493
|
+
params: localVarQueryParameters,
|
|
372
494
|
responseType: <any>responseType_,
|
|
373
495
|
withCredentials: this.configuration.withCredentials,
|
|
374
|
-
headers:
|
|
496
|
+
headers: localVarHeaders,
|
|
375
497
|
observe: observe,
|
|
498
|
+
transferCache: localVarTransferCache,
|
|
376
499
|
reportProgress: reportProgress
|
|
377
500
|
});
|
|
378
501
|
}
|
|
379
502
|
|
|
380
503
|
/**
|
|
381
504
|
* Get the complete tree of descendants from a single collection.
|
|
382
|
-
* @param
|
|
383
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
505
|
+
* @param requestParameters
|
|
384
506
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
385
507
|
* @param reportProgress flag to report request and response progress.
|
|
386
508
|
*/
|
|
387
509
|
public httpCollectionsGetDescendantsTreeOfId(
|
|
388
|
-
|
|
389
|
-
translations?: boolean,
|
|
510
|
+
requestParameters?: HttpCollectionsGetDescendantsTreeOfIdRequestParams,
|
|
390
511
|
observe?: 'body',
|
|
391
512
|
reportProgress?: boolean,
|
|
392
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
513
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
393
514
|
): Observable<Array<Collection>>;
|
|
394
515
|
public httpCollectionsGetDescendantsTreeOfId(
|
|
395
|
-
|
|
396
|
-
translations?: boolean,
|
|
516
|
+
requestParameters?: HttpCollectionsGetDescendantsTreeOfIdRequestParams,
|
|
397
517
|
observe?: 'response',
|
|
398
518
|
reportProgress?: boolean,
|
|
399
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
519
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
400
520
|
): Observable<HttpResponse<Array<Collection>>>;
|
|
401
521
|
public httpCollectionsGetDescendantsTreeOfId(
|
|
402
|
-
|
|
403
|
-
translations?: boolean,
|
|
522
|
+
requestParameters?: HttpCollectionsGetDescendantsTreeOfIdRequestParams,
|
|
404
523
|
observe?: 'events',
|
|
405
524
|
reportProgress?: boolean,
|
|
406
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
525
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
407
526
|
): Observable<HttpEvent<Array<Collection>>>;
|
|
408
527
|
public httpCollectionsGetDescendantsTreeOfId(
|
|
409
|
-
|
|
410
|
-
translations?: boolean,
|
|
528
|
+
requestParameters?: HttpCollectionsGetDescendantsTreeOfIdRequestParams,
|
|
411
529
|
observe: any = 'body',
|
|
412
530
|
reportProgress: boolean = false,
|
|
413
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
531
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
414
532
|
): Observable<any> {
|
|
533
|
+
const id = requestParameters?.id;
|
|
415
534
|
if (id === null || id === undefined) {
|
|
416
535
|
throw new Error('Required parameter id was null or undefined when calling httpCollectionsGetDescendantsTreeOfId.');
|
|
417
536
|
}
|
|
537
|
+
const translations = requestParameters?.translations;
|
|
538
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
418
539
|
|
|
419
|
-
let
|
|
540
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
420
541
|
if (translations !== undefined && translations !== null) {
|
|
421
|
-
|
|
542
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
422
543
|
}
|
|
423
544
|
|
|
424
|
-
let
|
|
545
|
+
let localVarHeaders = this.defaultHeaders;
|
|
546
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
547
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
548
|
+
}
|
|
425
549
|
|
|
426
|
-
let
|
|
550
|
+
let localVarCredential: string | undefined;
|
|
427
551
|
// authentication (function_key) required
|
|
428
|
-
|
|
429
|
-
if (
|
|
430
|
-
|
|
552
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
553
|
+
if (localVarCredential) {
|
|
554
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
431
555
|
}
|
|
432
556
|
|
|
433
|
-
let
|
|
434
|
-
if (
|
|
557
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
558
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
435
559
|
// to determine the Accept header
|
|
436
560
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
437
|
-
|
|
561
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
562
|
+
}
|
|
563
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
564
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
568
|
+
if (localVarHttpContext === undefined) {
|
|
569
|
+
localVarHttpContext = new HttpContext();
|
|
438
570
|
}
|
|
439
|
-
|
|
440
|
-
|
|
571
|
+
|
|
572
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
573
|
+
if (localVarTransferCache === undefined) {
|
|
574
|
+
localVarTransferCache = true;
|
|
441
575
|
}
|
|
442
576
|
|
|
443
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
444
|
-
if (
|
|
445
|
-
|
|
577
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
578
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
579
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
580
|
+
responseType_ = 'text';
|
|
581
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
582
|
+
responseType_ = 'json';
|
|
583
|
+
} else {
|
|
584
|
+
responseType_ = 'blob';
|
|
585
|
+
}
|
|
446
586
|
}
|
|
447
587
|
|
|
448
|
-
|
|
449
|
-
|
|
588
|
+
let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/descendants`;
|
|
589
|
+
return this.httpClient.request<Array<Collection>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
590
|
+
context: localVarHttpContext,
|
|
591
|
+
params: localVarQueryParameters,
|
|
450
592
|
responseType: <any>responseType_,
|
|
451
593
|
withCredentials: this.configuration.withCredentials,
|
|
452
|
-
headers:
|
|
594
|
+
headers: localVarHeaders,
|
|
453
595
|
observe: observe,
|
|
596
|
+
transferCache: localVarTransferCache,
|
|
454
597
|
reportProgress: reportProgress
|
|
455
598
|
});
|
|
456
599
|
}
|
|
457
600
|
|
|
458
601
|
/**
|
|
459
602
|
* Get the complete tree of ancestors from a single collection.
|
|
460
|
-
* @param
|
|
461
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
603
|
+
* @param requestParameters
|
|
462
604
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
463
605
|
* @param reportProgress flag to report request and response progress.
|
|
464
606
|
*/
|
|
465
607
|
public httpCollectionsGetTreeAncestorsOfId(
|
|
466
|
-
|
|
467
|
-
translations?: boolean,
|
|
608
|
+
requestParameters?: HttpCollectionsGetTreeAncestorsOfIdRequestParams,
|
|
468
609
|
observe?: 'body',
|
|
469
610
|
reportProgress?: boolean,
|
|
470
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
611
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
471
612
|
): Observable<Array<Collection>>;
|
|
472
613
|
public httpCollectionsGetTreeAncestorsOfId(
|
|
473
|
-
|
|
474
|
-
translations?: boolean,
|
|
614
|
+
requestParameters?: HttpCollectionsGetTreeAncestorsOfIdRequestParams,
|
|
475
615
|
observe?: 'response',
|
|
476
616
|
reportProgress?: boolean,
|
|
477
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
617
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
478
618
|
): Observable<HttpResponse<Array<Collection>>>;
|
|
479
619
|
public httpCollectionsGetTreeAncestorsOfId(
|
|
480
|
-
|
|
481
|
-
translations?: boolean,
|
|
620
|
+
requestParameters?: HttpCollectionsGetTreeAncestorsOfIdRequestParams,
|
|
482
621
|
observe?: 'events',
|
|
483
622
|
reportProgress?: boolean,
|
|
484
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
623
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
485
624
|
): Observable<HttpEvent<Array<Collection>>>;
|
|
486
625
|
public httpCollectionsGetTreeAncestorsOfId(
|
|
487
|
-
|
|
488
|
-
translations?: boolean,
|
|
626
|
+
requestParameters?: HttpCollectionsGetTreeAncestorsOfIdRequestParams,
|
|
489
627
|
observe: any = 'body',
|
|
490
628
|
reportProgress: boolean = false,
|
|
491
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
629
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
492
630
|
): Observable<any> {
|
|
631
|
+
const id = requestParameters?.id;
|
|
493
632
|
if (id === null || id === undefined) {
|
|
494
633
|
throw new Error('Required parameter id was null or undefined when calling httpCollectionsGetTreeAncestorsOfId.');
|
|
495
634
|
}
|
|
635
|
+
const translations = requestParameters?.translations;
|
|
636
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
496
637
|
|
|
497
|
-
let
|
|
638
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
498
639
|
if (translations !== undefined && translations !== null) {
|
|
499
|
-
|
|
640
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
500
641
|
}
|
|
501
642
|
|
|
502
|
-
let
|
|
643
|
+
let localVarHeaders = this.defaultHeaders;
|
|
644
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
645
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
646
|
+
}
|
|
503
647
|
|
|
504
|
-
let
|
|
648
|
+
let localVarCredential: string | undefined;
|
|
505
649
|
// authentication (function_key) required
|
|
506
|
-
|
|
507
|
-
if (
|
|
508
|
-
|
|
650
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
651
|
+
if (localVarCredential) {
|
|
652
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
509
653
|
}
|
|
510
654
|
|
|
511
|
-
let
|
|
512
|
-
if (
|
|
655
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
656
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
513
657
|
// to determine the Accept header
|
|
514
658
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
515
|
-
|
|
659
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
660
|
+
}
|
|
661
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
662
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
516
663
|
}
|
|
517
|
-
|
|
518
|
-
|
|
664
|
+
|
|
665
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
666
|
+
if (localVarHttpContext === undefined) {
|
|
667
|
+
localVarHttpContext = new HttpContext();
|
|
519
668
|
}
|
|
520
669
|
|
|
521
|
-
let
|
|
522
|
-
if (
|
|
523
|
-
|
|
670
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
671
|
+
if (localVarTransferCache === undefined) {
|
|
672
|
+
localVarTransferCache = true;
|
|
524
673
|
}
|
|
525
674
|
|
|
526
|
-
|
|
527
|
-
|
|
675
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
676
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
677
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
678
|
+
responseType_ = 'text';
|
|
679
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
680
|
+
responseType_ = 'json';
|
|
681
|
+
} else {
|
|
682
|
+
responseType_ = 'blob';
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/ancestors`;
|
|
687
|
+
return this.httpClient.request<Array<Collection>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
688
|
+
context: localVarHttpContext,
|
|
689
|
+
params: localVarQueryParameters,
|
|
528
690
|
responseType: <any>responseType_,
|
|
529
691
|
withCredentials: this.configuration.withCredentials,
|
|
530
|
-
headers:
|
|
692
|
+
headers: localVarHeaders,
|
|
531
693
|
observe: observe,
|
|
694
|
+
transferCache: localVarTransferCache,
|
|
532
695
|
reportProgress: reportProgress
|
|
533
696
|
});
|
|
534
697
|
}
|
|
535
698
|
|
|
536
699
|
/**
|
|
537
700
|
* This endpoint returns a generated thumbnail as a preview of the containing assets.
|
|
538
|
-
* @param
|
|
701
|
+
* @param requestParameters
|
|
539
702
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
540
703
|
* @param reportProgress flag to report request and response progress.
|
|
541
704
|
*/
|
|
542
|
-
public httpGetCollectionPreviewsById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'image/png' | 'application/json' }): Observable<string>;
|
|
543
705
|
public httpGetCollectionPreviewsById(
|
|
544
|
-
|
|
706
|
+
requestParameters?: HttpGetCollectionPreviewsByIdRequestParams,
|
|
707
|
+
observe?: 'body',
|
|
708
|
+
reportProgress?: boolean,
|
|
709
|
+
options?: { httpHeaderAccept?: 'image/png' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
710
|
+
): Observable<string>;
|
|
711
|
+
public httpGetCollectionPreviewsById(
|
|
712
|
+
requestParameters?: HttpGetCollectionPreviewsByIdRequestParams,
|
|
545
713
|
observe?: 'response',
|
|
546
714
|
reportProgress?: boolean,
|
|
547
|
-
options?: { httpHeaderAccept?: 'image/png' | 'application/json' }
|
|
715
|
+
options?: { httpHeaderAccept?: 'image/png' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
548
716
|
): Observable<HttpResponse<string>>;
|
|
549
|
-
public httpGetCollectionPreviewsById(
|
|
550
|
-
|
|
717
|
+
public httpGetCollectionPreviewsById(
|
|
718
|
+
requestParameters?: HttpGetCollectionPreviewsByIdRequestParams,
|
|
719
|
+
observe?: 'events',
|
|
720
|
+
reportProgress?: boolean,
|
|
721
|
+
options?: { httpHeaderAccept?: 'image/png' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
722
|
+
): Observable<HttpEvent<string>>;
|
|
723
|
+
public httpGetCollectionPreviewsById(
|
|
724
|
+
requestParameters?: HttpGetCollectionPreviewsByIdRequestParams,
|
|
725
|
+
observe: any = 'body',
|
|
726
|
+
reportProgress: boolean = false,
|
|
727
|
+
options?: { httpHeaderAccept?: 'image/png' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
728
|
+
): Observable<any> {
|
|
729
|
+
const id = requestParameters?.id;
|
|
551
730
|
if (id === null || id === undefined) {
|
|
552
731
|
throw new Error('Required parameter id was null or undefined when calling httpGetCollectionPreviewsById.');
|
|
553
732
|
}
|
|
554
733
|
|
|
555
|
-
let
|
|
734
|
+
let localVarHeaders = this.defaultHeaders;
|
|
556
735
|
|
|
557
|
-
let
|
|
736
|
+
let localVarCredential: string | undefined;
|
|
558
737
|
// authentication (function_key) required
|
|
559
|
-
|
|
560
|
-
if (
|
|
561
|
-
|
|
738
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
739
|
+
if (localVarCredential) {
|
|
740
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
562
741
|
}
|
|
563
742
|
|
|
564
|
-
let
|
|
565
|
-
if (
|
|
743
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
744
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
566
745
|
// to determine the Accept header
|
|
567
746
|
const httpHeaderAccepts: string[] = ['image/png', 'application/json'];
|
|
568
|
-
|
|
747
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
569
748
|
}
|
|
570
|
-
if (
|
|
571
|
-
|
|
749
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
750
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
754
|
+
if (localVarHttpContext === undefined) {
|
|
755
|
+
localVarHttpContext = new HttpContext();
|
|
572
756
|
}
|
|
573
757
|
|
|
574
|
-
let
|
|
575
|
-
if (
|
|
576
|
-
|
|
758
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
759
|
+
if (localVarTransferCache === undefined) {
|
|
760
|
+
localVarTransferCache = true;
|
|
577
761
|
}
|
|
578
762
|
|
|
579
|
-
|
|
763
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
764
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
765
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
766
|
+
responseType_ = 'text';
|
|
767
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
768
|
+
responseType_ = 'json';
|
|
769
|
+
} else {
|
|
770
|
+
responseType_ = 'blob';
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/previews`;
|
|
775
|
+
return this.httpClient.request<string>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
776
|
+
context: localVarHttpContext,
|
|
580
777
|
responseType: <any>responseType_,
|
|
581
778
|
withCredentials: this.configuration.withCredentials,
|
|
582
|
-
headers:
|
|
779
|
+
headers: localVarHeaders,
|
|
583
780
|
observe: observe,
|
|
781
|
+
transferCache: localVarTransferCache,
|
|
584
782
|
reportProgress: reportProgress
|
|
585
783
|
});
|
|
586
784
|
}
|
|
587
785
|
|
|
588
786
|
/**
|
|
589
787
|
* This endpoint deletes the collection with the given ID (and their siblings).
|
|
590
|
-
* @param
|
|
591
|
-
* @param deleteassets If this is true the assigned assets are set to delete as well.
|
|
788
|
+
* @param requestParameters
|
|
592
789
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
593
790
|
* @param reportProgress flag to report request and response progress.
|
|
594
791
|
*/
|
|
595
|
-
public httpPublicCollectionsDeleteById(id: string, deleteassets?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
|
|
596
792
|
public httpPublicCollectionsDeleteById(
|
|
597
|
-
|
|
598
|
-
|
|
793
|
+
requestParameters?: HttpPublicCollectionsDeleteByIdRequestParams,
|
|
794
|
+
observe?: 'body',
|
|
795
|
+
reportProgress?: boolean,
|
|
796
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
797
|
+
): Observable<any>;
|
|
798
|
+
public httpPublicCollectionsDeleteById(
|
|
799
|
+
requestParameters?: HttpPublicCollectionsDeleteByIdRequestParams,
|
|
599
800
|
observe?: 'response',
|
|
600
801
|
reportProgress?: boolean,
|
|
601
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
802
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
602
803
|
): Observable<HttpResponse<any>>;
|
|
603
804
|
public httpPublicCollectionsDeleteById(
|
|
604
|
-
|
|
605
|
-
deleteassets?: boolean,
|
|
805
|
+
requestParameters?: HttpPublicCollectionsDeleteByIdRequestParams,
|
|
606
806
|
observe?: 'events',
|
|
607
807
|
reportProgress?: boolean,
|
|
608
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
808
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
609
809
|
): Observable<HttpEvent<any>>;
|
|
610
810
|
public httpPublicCollectionsDeleteById(
|
|
611
|
-
|
|
612
|
-
deleteassets?: boolean,
|
|
811
|
+
requestParameters?: HttpPublicCollectionsDeleteByIdRequestParams,
|
|
613
812
|
observe: any = 'body',
|
|
614
813
|
reportProgress: boolean = false,
|
|
615
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
814
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
616
815
|
): Observable<any> {
|
|
816
|
+
const id = requestParameters?.id;
|
|
617
817
|
if (id === null || id === undefined) {
|
|
618
818
|
throw new Error('Required parameter id was null or undefined when calling httpPublicCollectionsDeleteById.');
|
|
619
819
|
}
|
|
820
|
+
const deleteassets = requestParameters?.deleteassets;
|
|
620
821
|
|
|
621
|
-
let
|
|
822
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
622
823
|
if (deleteassets !== undefined && deleteassets !== null) {
|
|
623
|
-
|
|
824
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>deleteassets, 'deleteassets');
|
|
624
825
|
}
|
|
625
826
|
|
|
626
|
-
let
|
|
827
|
+
let localVarHeaders = this.defaultHeaders;
|
|
627
828
|
|
|
628
|
-
let
|
|
829
|
+
let localVarCredential: string | undefined;
|
|
629
830
|
// authentication (function_key) required
|
|
630
|
-
|
|
631
|
-
if (
|
|
632
|
-
|
|
831
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
832
|
+
if (localVarCredential) {
|
|
833
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
633
834
|
}
|
|
634
835
|
|
|
635
|
-
let
|
|
636
|
-
if (
|
|
836
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
837
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
637
838
|
// to determine the Accept header
|
|
638
839
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
639
|
-
|
|
840
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
841
|
+
}
|
|
842
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
843
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
640
844
|
}
|
|
641
|
-
|
|
642
|
-
|
|
845
|
+
|
|
846
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
847
|
+
if (localVarHttpContext === undefined) {
|
|
848
|
+
localVarHttpContext = new HttpContext();
|
|
643
849
|
}
|
|
644
850
|
|
|
645
|
-
let
|
|
646
|
-
if (
|
|
647
|
-
|
|
851
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
852
|
+
if (localVarTransferCache === undefined) {
|
|
853
|
+
localVarTransferCache = true;
|
|
648
854
|
}
|
|
649
855
|
|
|
650
|
-
|
|
651
|
-
|
|
856
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
857
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
858
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
859
|
+
responseType_ = 'text';
|
|
860
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
861
|
+
responseType_ = 'json';
|
|
862
|
+
} else {
|
|
863
|
+
responseType_ = 'blob';
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
868
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
869
|
+
context: localVarHttpContext,
|
|
870
|
+
params: localVarQueryParameters,
|
|
652
871
|
responseType: <any>responseType_,
|
|
653
872
|
withCredentials: this.configuration.withCredentials,
|
|
654
|
-
headers:
|
|
873
|
+
headers: localVarHeaders,
|
|
655
874
|
observe: observe,
|
|
875
|
+
transferCache: localVarTransferCache,
|
|
656
876
|
reportProgress: reportProgress
|
|
657
877
|
});
|
|
658
878
|
}
|
|
659
879
|
|
|
660
880
|
/**
|
|
661
881
|
* This endpoint updates the collection. Specific properties could be updated.
|
|
662
|
-
* @param
|
|
663
|
-
* @param collection The body has to be a valid collection json.Not fitting properties are ignored.
|
|
664
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
882
|
+
* @param requestParameters
|
|
665
883
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
666
884
|
* @param reportProgress flag to report request and response progress.
|
|
667
885
|
*/
|
|
668
886
|
public httpPublicCollectionsUpdateById(
|
|
669
|
-
|
|
670
|
-
collection: Collection,
|
|
671
|
-
translations?: boolean,
|
|
887
|
+
requestParameters?: HttpPublicCollectionsUpdateByIdRequestParams,
|
|
672
888
|
observe?: 'body',
|
|
673
889
|
reportProgress?: boolean,
|
|
674
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
890
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
675
891
|
): Observable<Collection>;
|
|
676
892
|
public httpPublicCollectionsUpdateById(
|
|
677
|
-
|
|
678
|
-
collection: Collection,
|
|
679
|
-
translations?: boolean,
|
|
893
|
+
requestParameters?: HttpPublicCollectionsUpdateByIdRequestParams,
|
|
680
894
|
observe?: 'response',
|
|
681
895
|
reportProgress?: boolean,
|
|
682
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
896
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
683
897
|
): Observable<HttpResponse<Collection>>;
|
|
684
898
|
public httpPublicCollectionsUpdateById(
|
|
685
|
-
|
|
686
|
-
collection: Collection,
|
|
687
|
-
translations?: boolean,
|
|
899
|
+
requestParameters?: HttpPublicCollectionsUpdateByIdRequestParams,
|
|
688
900
|
observe?: 'events',
|
|
689
901
|
reportProgress?: boolean,
|
|
690
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
902
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
691
903
|
): Observable<HttpEvent<Collection>>;
|
|
692
904
|
public httpPublicCollectionsUpdateById(
|
|
693
|
-
|
|
694
|
-
collection: Collection,
|
|
695
|
-
translations?: boolean,
|
|
905
|
+
requestParameters?: HttpPublicCollectionsUpdateByIdRequestParams,
|
|
696
906
|
observe: any = 'body',
|
|
697
907
|
reportProgress: boolean = false,
|
|
698
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
908
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
699
909
|
): Observable<any> {
|
|
910
|
+
const id = requestParameters?.id;
|
|
700
911
|
if (id === null || id === undefined) {
|
|
701
912
|
throw new Error('Required parameter id was null or undefined when calling httpPublicCollectionsUpdateById.');
|
|
702
913
|
}
|
|
914
|
+
const collection = requestParameters?.collection;
|
|
703
915
|
if (collection === null || collection === undefined) {
|
|
704
916
|
throw new Error('Required parameter collection was null or undefined when calling httpPublicCollectionsUpdateById.');
|
|
705
917
|
}
|
|
918
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
706
919
|
|
|
707
|
-
let
|
|
708
|
-
if (
|
|
709
|
-
|
|
920
|
+
let localVarHeaders = this.defaultHeaders;
|
|
921
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
922
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
710
923
|
}
|
|
711
924
|
|
|
712
|
-
let
|
|
713
|
-
|
|
714
|
-
let credential: string | undefined;
|
|
925
|
+
let localVarCredential: string | undefined;
|
|
715
926
|
// authentication (function_key) required
|
|
716
|
-
|
|
717
|
-
if (
|
|
718
|
-
|
|
927
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
928
|
+
if (localVarCredential) {
|
|
929
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
719
930
|
}
|
|
720
931
|
|
|
721
|
-
let
|
|
722
|
-
if (
|
|
932
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
933
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
723
934
|
// to determine the Accept header
|
|
724
935
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
725
|
-
|
|
936
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
937
|
+
}
|
|
938
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
939
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
726
940
|
}
|
|
727
|
-
|
|
728
|
-
|
|
941
|
+
|
|
942
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
943
|
+
if (localVarHttpContext === undefined) {
|
|
944
|
+
localVarHttpContext = new HttpContext();
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
948
|
+
if (localVarTransferCache === undefined) {
|
|
949
|
+
localVarTransferCache = true;
|
|
729
950
|
}
|
|
730
951
|
|
|
731
952
|
// to determine the Content-Type header
|
|
732
953
|
const consumes: string[] = ['application/json'];
|
|
733
954
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
734
955
|
if (httpContentTypeSelected !== undefined) {
|
|
735
|
-
|
|
956
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
736
957
|
}
|
|
737
958
|
|
|
738
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
739
|
-
if (
|
|
740
|
-
|
|
959
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
960
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
961
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
962
|
+
responseType_ = 'text';
|
|
963
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
964
|
+
responseType_ = 'json';
|
|
965
|
+
} else {
|
|
966
|
+
responseType_ = 'blob';
|
|
967
|
+
}
|
|
741
968
|
}
|
|
742
969
|
|
|
743
|
-
|
|
744
|
-
|
|
970
|
+
let localVarPath = `/collections/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
971
|
+
return this.httpClient.request<Collection>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
972
|
+
context: localVarHttpContext,
|
|
973
|
+
body: collection,
|
|
745
974
|
responseType: <any>responseType_,
|
|
746
975
|
withCredentials: this.configuration.withCredentials,
|
|
747
|
-
headers:
|
|
976
|
+
headers: localVarHeaders,
|
|
748
977
|
observe: observe,
|
|
978
|
+
transferCache: localVarTransferCache,
|
|
749
979
|
reportProgress: reportProgress
|
|
750
980
|
});
|
|
751
981
|
}
|