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