@agravity/private 7.3.1 → 8.1.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 +262 -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 +20 -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,19 +11,89 @@
|
|
|
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
|
-
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
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 { CollTypeItem } from '../model/collTypeItem.agravity';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { CollectionType } from '../model/collectionType.agravity';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { PermissionChange } from '../model/permissionChange.agravity';
|
|
28
|
+
|
|
29
|
+
// @ts-ignore
|
|
25
30
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
26
31
|
import { AgravityConfiguration } from '../configuration';
|
|
27
32
|
|
|
33
|
+
export interface HttpCollectionTypesCreateRequestParams {
|
|
34
|
+
/** This endpoint creates a unique collection type ID and adds the information to the database. */
|
|
35
|
+
collectionType: CollectionType;
|
|
36
|
+
/** (optional) The ID of the workspace where this collection type should be assigned. */
|
|
37
|
+
workspaceid?: string;
|
|
38
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
39
|
+
translations?: boolean;
|
|
40
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
41
|
+
acceptLanguage?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface HttpCollectionTypesDeleteRequestParams {
|
|
45
|
+
/** The ID of the collection type. */
|
|
46
|
+
id: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface HttpCollectionTypesGetRequestParams {
|
|
50
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
51
|
+
translations?: boolean;
|
|
52
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
53
|
+
acceptLanguage?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface HttpCollectionTypesGetByIdRequestParams {
|
|
57
|
+
/** The ID of the collection type. */
|
|
58
|
+
id: string;
|
|
59
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
60
|
+
translations?: boolean;
|
|
61
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
62
|
+
acceptLanguage?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface HttpCollectionTypesUpdateRequestParams {
|
|
66
|
+
/** The ID of the collection type. */
|
|
67
|
+
id: string;
|
|
68
|
+
/** The body has to be a valid collection type json. Not fitting properties are ignored. */
|
|
69
|
+
collectionType: CollectionType;
|
|
70
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
71
|
+
translations?: boolean;
|
|
72
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
73
|
+
acceptLanguage?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface HttpCollectionTypesUpdatePermissionsByIdRequestParams {
|
|
77
|
+
/** The ID of the collection type. */
|
|
78
|
+
id: string;
|
|
79
|
+
/** The changes which ids and how they should be added / removed / replaced / etc. */
|
|
80
|
+
permissionChange: PermissionChange;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface HttpGetCollectionTypeItemsRequestParams {
|
|
84
|
+
/** True if the blueprint items should be included. */
|
|
85
|
+
includeblueprint?: boolean;
|
|
86
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
87
|
+
translations?: boolean;
|
|
88
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
89
|
+
acceptLanguage?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface HttpUpdateCollectionTypeItemsRequestParams {
|
|
93
|
+
/** Items which should be updated. */
|
|
94
|
+
collTypeItem: Array<CollTypeItem>;
|
|
95
|
+
}
|
|
96
|
+
|
|
28
97
|
@Injectable({
|
|
29
98
|
providedIn: 'root'
|
|
30
99
|
})
|
|
@@ -36,13 +105,18 @@ export class CollectionTypeManagementService {
|
|
|
36
105
|
|
|
37
106
|
constructor(
|
|
38
107
|
protected httpClient: HttpClient,
|
|
39
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
108
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
40
109
|
@Optional() configuration: AgravityConfiguration
|
|
41
110
|
) {
|
|
42
111
|
if (configuration) {
|
|
43
112
|
this.configuration = configuration;
|
|
44
113
|
}
|
|
45
114
|
if (typeof this.configuration.basePath !== 'string') {
|
|
115
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
116
|
+
if (firstBasePath != undefined) {
|
|
117
|
+
basePath = firstBasePath;
|
|
118
|
+
}
|
|
119
|
+
|
|
46
120
|
if (typeof basePath !== 'string') {
|
|
47
121
|
basePath = this.basePath;
|
|
48
122
|
}
|
|
@@ -51,6 +125,7 @@ export class CollectionTypeManagementService {
|
|
|
51
125
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
52
126
|
}
|
|
53
127
|
|
|
128
|
+
// @ts-ignore
|
|
54
129
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
55
130
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
56
131
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -70,7 +145,7 @@ export class CollectionTypeManagementService {
|
|
|
70
145
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
71
146
|
} else if (value instanceof Date) {
|
|
72
147
|
if (key != null) {
|
|
73
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
148
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
74
149
|
} else {
|
|
75
150
|
throw Error('key may not be null if value is Date');
|
|
76
151
|
}
|
|
@@ -87,597 +162,791 @@ export class CollectionTypeManagementService {
|
|
|
87
162
|
|
|
88
163
|
/**
|
|
89
164
|
* This endpoint creates a unique collection type ID and adds the information to the database.
|
|
90
|
-
* @param
|
|
91
|
-
* @param workspaceid (optional) The ID of the workspace where this collection type should be assigned.
|
|
92
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
165
|
+
* @param requestParameters
|
|
93
166
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
94
167
|
* @param reportProgress flag to report request and response progress.
|
|
95
168
|
*/
|
|
96
169
|
public httpCollectionTypesCreate(
|
|
97
|
-
|
|
98
|
-
workspaceid?: string,
|
|
99
|
-
translations?: boolean,
|
|
170
|
+
requestParameters?: HttpCollectionTypesCreateRequestParams,
|
|
100
171
|
observe?: 'body',
|
|
101
172
|
reportProgress?: boolean,
|
|
102
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
173
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
103
174
|
): Observable<CollectionType>;
|
|
104
175
|
public httpCollectionTypesCreate(
|
|
105
|
-
|
|
106
|
-
workspaceid?: string,
|
|
107
|
-
translations?: boolean,
|
|
176
|
+
requestParameters?: HttpCollectionTypesCreateRequestParams,
|
|
108
177
|
observe?: 'response',
|
|
109
178
|
reportProgress?: boolean,
|
|
110
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
179
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
111
180
|
): Observable<HttpResponse<CollectionType>>;
|
|
112
181
|
public httpCollectionTypesCreate(
|
|
113
|
-
|
|
114
|
-
workspaceid?: string,
|
|
115
|
-
translations?: boolean,
|
|
182
|
+
requestParameters?: HttpCollectionTypesCreateRequestParams,
|
|
116
183
|
observe?: 'events',
|
|
117
184
|
reportProgress?: boolean,
|
|
118
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
185
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
119
186
|
): Observable<HttpEvent<CollectionType>>;
|
|
120
187
|
public httpCollectionTypesCreate(
|
|
121
|
-
|
|
122
|
-
workspaceid?: string,
|
|
123
|
-
translations?: boolean,
|
|
188
|
+
requestParameters?: HttpCollectionTypesCreateRequestParams,
|
|
124
189
|
observe: any = 'body',
|
|
125
190
|
reportProgress: boolean = false,
|
|
126
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
191
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
127
192
|
): Observable<any> {
|
|
193
|
+
const collectionType = requestParameters?.collectionType;
|
|
128
194
|
if (collectionType === null || collectionType === undefined) {
|
|
129
195
|
throw new Error('Required parameter collectionType was null or undefined when calling httpCollectionTypesCreate.');
|
|
130
196
|
}
|
|
197
|
+
const workspaceid = requestParameters?.workspaceid;
|
|
198
|
+
const translations = requestParameters?.translations;
|
|
199
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
131
200
|
|
|
132
|
-
let
|
|
201
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
133
202
|
if (workspaceid !== undefined && workspaceid !== null) {
|
|
134
|
-
|
|
203
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>workspaceid, 'workspaceid');
|
|
135
204
|
}
|
|
136
205
|
if (translations !== undefined && translations !== null) {
|
|
137
|
-
|
|
206
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
138
207
|
}
|
|
139
208
|
|
|
140
|
-
let
|
|
209
|
+
let localVarHeaders = this.defaultHeaders;
|
|
210
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
211
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
212
|
+
}
|
|
141
213
|
|
|
142
|
-
let
|
|
214
|
+
let localVarCredential: string | undefined;
|
|
143
215
|
// authentication (msal_auth) required
|
|
144
|
-
|
|
145
|
-
if (
|
|
146
|
-
|
|
216
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
217
|
+
if (localVarCredential) {
|
|
218
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
147
219
|
}
|
|
148
220
|
|
|
149
|
-
let
|
|
150
|
-
if (
|
|
221
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
222
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
151
223
|
// to determine the Accept header
|
|
152
224
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
153
|
-
|
|
225
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
226
|
+
}
|
|
227
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
228
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
154
229
|
}
|
|
155
|
-
|
|
156
|
-
|
|
230
|
+
|
|
231
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
232
|
+
if (localVarHttpContext === undefined) {
|
|
233
|
+
localVarHttpContext = new HttpContext();
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
237
|
+
if (localVarTransferCache === undefined) {
|
|
238
|
+
localVarTransferCache = true;
|
|
157
239
|
}
|
|
158
240
|
|
|
159
241
|
// to determine the Content-Type header
|
|
160
242
|
const consumes: string[] = ['application/json'];
|
|
161
243
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
162
244
|
if (httpContentTypeSelected !== undefined) {
|
|
163
|
-
|
|
245
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
164
246
|
}
|
|
165
247
|
|
|
166
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
167
|
-
if (
|
|
168
|
-
|
|
248
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
249
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
250
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
251
|
+
responseType_ = 'text';
|
|
252
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
253
|
+
responseType_ = 'json';
|
|
254
|
+
} else {
|
|
255
|
+
responseType_ = 'blob';
|
|
256
|
+
}
|
|
169
257
|
}
|
|
170
258
|
|
|
171
|
-
|
|
172
|
-
|
|
259
|
+
let localVarPath = `/collectiontypes`;
|
|
260
|
+
return this.httpClient.request<CollectionType>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
261
|
+
context: localVarHttpContext,
|
|
262
|
+
body: collectionType,
|
|
263
|
+
params: localVarQueryParameters,
|
|
173
264
|
responseType: <any>responseType_,
|
|
174
265
|
withCredentials: this.configuration.withCredentials,
|
|
175
|
-
headers:
|
|
266
|
+
headers: localVarHeaders,
|
|
176
267
|
observe: observe,
|
|
268
|
+
transferCache: localVarTransferCache,
|
|
177
269
|
reportProgress: reportProgress
|
|
178
270
|
});
|
|
179
271
|
}
|
|
180
272
|
|
|
181
273
|
/**
|
|
182
274
|
* This endpoint deletes the collection type with the given ID.
|
|
183
|
-
* @param
|
|
275
|
+
* @param requestParameters
|
|
184
276
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
185
277
|
* @param reportProgress flag to report request and response progress.
|
|
186
278
|
*/
|
|
187
|
-
public httpCollectionTypesDelete(
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
279
|
+
public httpCollectionTypesDelete(
|
|
280
|
+
requestParameters?: HttpCollectionTypesDeleteRequestParams,
|
|
281
|
+
observe?: 'body',
|
|
282
|
+
reportProgress?: boolean,
|
|
283
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
284
|
+
): Observable<any>;
|
|
285
|
+
public httpCollectionTypesDelete(
|
|
286
|
+
requestParameters?: HttpCollectionTypesDeleteRequestParams,
|
|
287
|
+
observe?: 'response',
|
|
288
|
+
reportProgress?: boolean,
|
|
289
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
290
|
+
): Observable<HttpResponse<any>>;
|
|
291
|
+
public httpCollectionTypesDelete(
|
|
292
|
+
requestParameters?: HttpCollectionTypesDeleteRequestParams,
|
|
293
|
+
observe?: 'events',
|
|
294
|
+
reportProgress?: boolean,
|
|
295
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
296
|
+
): Observable<HttpEvent<any>>;
|
|
297
|
+
public httpCollectionTypesDelete(
|
|
298
|
+
requestParameters?: HttpCollectionTypesDeleteRequestParams,
|
|
299
|
+
observe: any = 'body',
|
|
300
|
+
reportProgress: boolean = false,
|
|
301
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
302
|
+
): Observable<any> {
|
|
303
|
+
const id = requestParameters?.id;
|
|
191
304
|
if (id === null || id === undefined) {
|
|
192
305
|
throw new Error('Required parameter id was null or undefined when calling httpCollectionTypesDelete.');
|
|
193
306
|
}
|
|
194
307
|
|
|
195
|
-
let
|
|
308
|
+
let localVarHeaders = this.defaultHeaders;
|
|
196
309
|
|
|
197
|
-
let
|
|
310
|
+
let localVarCredential: string | undefined;
|
|
198
311
|
// authentication (msal_auth) required
|
|
199
|
-
|
|
200
|
-
if (
|
|
201
|
-
|
|
312
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
313
|
+
if (localVarCredential) {
|
|
314
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
202
315
|
}
|
|
203
316
|
|
|
204
|
-
let
|
|
205
|
-
if (
|
|
317
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
318
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
206
319
|
// to determine the Accept header
|
|
207
320
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
208
|
-
|
|
321
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
322
|
+
}
|
|
323
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
324
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
209
325
|
}
|
|
210
|
-
|
|
211
|
-
|
|
326
|
+
|
|
327
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
328
|
+
if (localVarHttpContext === undefined) {
|
|
329
|
+
localVarHttpContext = new HttpContext();
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
333
|
+
if (localVarTransferCache === undefined) {
|
|
334
|
+
localVarTransferCache = true;
|
|
212
335
|
}
|
|
213
336
|
|
|
214
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
215
|
-
if (
|
|
216
|
-
|
|
337
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
338
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
339
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
340
|
+
responseType_ = 'text';
|
|
341
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
342
|
+
responseType_ = 'json';
|
|
343
|
+
} else {
|
|
344
|
+
responseType_ = 'blob';
|
|
345
|
+
}
|
|
217
346
|
}
|
|
218
347
|
|
|
219
|
-
|
|
348
|
+
let localVarPath = `/collectiontypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
349
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
350
|
+
context: localVarHttpContext,
|
|
220
351
|
responseType: <any>responseType_,
|
|
221
352
|
withCredentials: this.configuration.withCredentials,
|
|
222
|
-
headers:
|
|
353
|
+
headers: localVarHeaders,
|
|
223
354
|
observe: observe,
|
|
355
|
+
transferCache: localVarTransferCache,
|
|
224
356
|
reportProgress: reportProgress
|
|
225
357
|
});
|
|
226
358
|
}
|
|
227
359
|
|
|
228
360
|
/**
|
|
229
361
|
* This endpoint lists all available collection types, which are stored in the database and not deleted (status \"A\").
|
|
230
|
-
* @param
|
|
362
|
+
* @param requestParameters
|
|
231
363
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
232
364
|
* @param reportProgress flag to report request and response progress.
|
|
233
365
|
*/
|
|
234
|
-
public httpCollectionTypesGet(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<CollectionType>>;
|
|
235
366
|
public httpCollectionTypesGet(
|
|
236
|
-
|
|
367
|
+
requestParameters?: HttpCollectionTypesGetRequestParams,
|
|
368
|
+
observe?: 'body',
|
|
369
|
+
reportProgress?: boolean,
|
|
370
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
371
|
+
): Observable<Array<CollectionType>>;
|
|
372
|
+
public httpCollectionTypesGet(
|
|
373
|
+
requestParameters?: HttpCollectionTypesGetRequestParams,
|
|
237
374
|
observe?: 'response',
|
|
238
375
|
reportProgress?: boolean,
|
|
239
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
376
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
240
377
|
): Observable<HttpResponse<Array<CollectionType>>>;
|
|
241
378
|
public httpCollectionTypesGet(
|
|
242
|
-
|
|
379
|
+
requestParameters?: HttpCollectionTypesGetRequestParams,
|
|
243
380
|
observe?: 'events',
|
|
244
381
|
reportProgress?: boolean,
|
|
245
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
382
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
246
383
|
): Observable<HttpEvent<Array<CollectionType>>>;
|
|
247
|
-
public httpCollectionTypesGet(
|
|
248
|
-
|
|
384
|
+
public httpCollectionTypesGet(
|
|
385
|
+
requestParameters?: HttpCollectionTypesGetRequestParams,
|
|
386
|
+
observe: any = 'body',
|
|
387
|
+
reportProgress: boolean = false,
|
|
388
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
389
|
+
): Observable<any> {
|
|
390
|
+
const translations = requestParameters?.translations;
|
|
391
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
392
|
+
|
|
393
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
249
394
|
if (translations !== undefined && translations !== null) {
|
|
250
|
-
|
|
395
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
251
396
|
}
|
|
252
397
|
|
|
253
|
-
let
|
|
398
|
+
let localVarHeaders = this.defaultHeaders;
|
|
399
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
400
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
401
|
+
}
|
|
254
402
|
|
|
255
|
-
let
|
|
403
|
+
let localVarCredential: string | undefined;
|
|
256
404
|
// authentication (msal_auth) required
|
|
257
|
-
|
|
258
|
-
if (
|
|
259
|
-
|
|
405
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
406
|
+
if (localVarCredential) {
|
|
407
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
260
408
|
}
|
|
261
409
|
|
|
262
|
-
let
|
|
263
|
-
if (
|
|
410
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
411
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
264
412
|
// to determine the Accept header
|
|
265
413
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
266
|
-
|
|
414
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
415
|
+
}
|
|
416
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
417
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
421
|
+
if (localVarHttpContext === undefined) {
|
|
422
|
+
localVarHttpContext = new HttpContext();
|
|
267
423
|
}
|
|
268
|
-
|
|
269
|
-
|
|
424
|
+
|
|
425
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
426
|
+
if (localVarTransferCache === undefined) {
|
|
427
|
+
localVarTransferCache = true;
|
|
270
428
|
}
|
|
271
429
|
|
|
272
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
273
|
-
if (
|
|
274
|
-
|
|
430
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
431
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
432
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
433
|
+
responseType_ = 'text';
|
|
434
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
435
|
+
responseType_ = 'json';
|
|
436
|
+
} else {
|
|
437
|
+
responseType_ = 'blob';
|
|
438
|
+
}
|
|
275
439
|
}
|
|
276
440
|
|
|
277
|
-
|
|
278
|
-
|
|
441
|
+
let localVarPath = `/collectiontypes`;
|
|
442
|
+
return this.httpClient.request<Array<CollectionType>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
443
|
+
context: localVarHttpContext,
|
|
444
|
+
params: localVarQueryParameters,
|
|
279
445
|
responseType: <any>responseType_,
|
|
280
446
|
withCredentials: this.configuration.withCredentials,
|
|
281
|
-
headers:
|
|
447
|
+
headers: localVarHeaders,
|
|
282
448
|
observe: observe,
|
|
449
|
+
transferCache: localVarTransferCache,
|
|
283
450
|
reportProgress: reportProgress
|
|
284
451
|
});
|
|
285
452
|
}
|
|
286
453
|
|
|
287
454
|
/**
|
|
288
455
|
* This endpoint returns one single collection type (from ID).
|
|
289
|
-
* @param
|
|
290
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
456
|
+
* @param requestParameters
|
|
291
457
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
292
458
|
* @param reportProgress flag to report request and response progress.
|
|
293
459
|
*/
|
|
294
|
-
public httpCollectionTypesGetById(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<CollectionType>;
|
|
295
460
|
public httpCollectionTypesGetById(
|
|
296
|
-
|
|
297
|
-
|
|
461
|
+
requestParameters?: HttpCollectionTypesGetByIdRequestParams,
|
|
462
|
+
observe?: 'body',
|
|
463
|
+
reportProgress?: boolean,
|
|
464
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
465
|
+
): Observable<CollectionType>;
|
|
466
|
+
public httpCollectionTypesGetById(
|
|
467
|
+
requestParameters?: HttpCollectionTypesGetByIdRequestParams,
|
|
298
468
|
observe?: 'response',
|
|
299
469
|
reportProgress?: boolean,
|
|
300
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
470
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
301
471
|
): Observable<HttpResponse<CollectionType>>;
|
|
302
472
|
public httpCollectionTypesGetById(
|
|
303
|
-
|
|
304
|
-
translations?: boolean,
|
|
473
|
+
requestParameters?: HttpCollectionTypesGetByIdRequestParams,
|
|
305
474
|
observe?: 'events',
|
|
306
475
|
reportProgress?: boolean,
|
|
307
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
476
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
308
477
|
): Observable<HttpEvent<CollectionType>>;
|
|
309
478
|
public httpCollectionTypesGetById(
|
|
310
|
-
|
|
311
|
-
translations?: boolean,
|
|
479
|
+
requestParameters?: HttpCollectionTypesGetByIdRequestParams,
|
|
312
480
|
observe: any = 'body',
|
|
313
481
|
reportProgress: boolean = false,
|
|
314
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
482
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
315
483
|
): Observable<any> {
|
|
484
|
+
const id = requestParameters?.id;
|
|
316
485
|
if (id === null || id === undefined) {
|
|
317
486
|
throw new Error('Required parameter id was null or undefined when calling httpCollectionTypesGetById.');
|
|
318
487
|
}
|
|
488
|
+
const translations = requestParameters?.translations;
|
|
489
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
319
490
|
|
|
320
|
-
let
|
|
491
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
321
492
|
if (translations !== undefined && translations !== null) {
|
|
322
|
-
|
|
493
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
323
494
|
}
|
|
324
495
|
|
|
325
|
-
let
|
|
496
|
+
let localVarHeaders = this.defaultHeaders;
|
|
497
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
498
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
499
|
+
}
|
|
326
500
|
|
|
327
|
-
let
|
|
501
|
+
let localVarCredential: string | undefined;
|
|
328
502
|
// authentication (msal_auth) required
|
|
329
|
-
|
|
330
|
-
if (
|
|
331
|
-
|
|
503
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
504
|
+
if (localVarCredential) {
|
|
505
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
332
506
|
}
|
|
333
507
|
|
|
334
|
-
let
|
|
335
|
-
if (
|
|
508
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
509
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
336
510
|
// to determine the Accept header
|
|
337
511
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
338
|
-
|
|
512
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
513
|
+
}
|
|
514
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
515
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
339
516
|
}
|
|
340
|
-
|
|
341
|
-
|
|
517
|
+
|
|
518
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
519
|
+
if (localVarHttpContext === undefined) {
|
|
520
|
+
localVarHttpContext = new HttpContext();
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
524
|
+
if (localVarTransferCache === undefined) {
|
|
525
|
+
localVarTransferCache = true;
|
|
342
526
|
}
|
|
343
527
|
|
|
344
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
345
|
-
if (
|
|
346
|
-
|
|
528
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
529
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
530
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
531
|
+
responseType_ = 'text';
|
|
532
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
533
|
+
responseType_ = 'json';
|
|
534
|
+
} else {
|
|
535
|
+
responseType_ = 'blob';
|
|
536
|
+
}
|
|
347
537
|
}
|
|
348
538
|
|
|
349
|
-
|
|
350
|
-
|
|
539
|
+
let localVarPath = `/collectiontypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
540
|
+
return this.httpClient.request<CollectionType>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
541
|
+
context: localVarHttpContext,
|
|
542
|
+
params: localVarQueryParameters,
|
|
351
543
|
responseType: <any>responseType_,
|
|
352
544
|
withCredentials: this.configuration.withCredentials,
|
|
353
|
-
headers:
|
|
545
|
+
headers: localVarHeaders,
|
|
354
546
|
observe: observe,
|
|
547
|
+
transferCache: localVarTransferCache,
|
|
355
548
|
reportProgress: reportProgress
|
|
356
549
|
});
|
|
357
550
|
}
|
|
358
551
|
|
|
359
552
|
/**
|
|
360
553
|
* This endpoint updates the collection type. Null fields will be ignored. If \'items\' are set they are fully reset (like PUT).
|
|
361
|
-
* @param
|
|
362
|
-
* @param collectionType The body has to be a valid collection type json. Not fitting properties are ignored.
|
|
363
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
554
|
+
* @param requestParameters
|
|
364
555
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
365
556
|
* @param reportProgress flag to report request and response progress.
|
|
366
557
|
*/
|
|
367
558
|
public httpCollectionTypesUpdate(
|
|
368
|
-
|
|
369
|
-
collectionType: CollectionType,
|
|
370
|
-
translations?: boolean,
|
|
559
|
+
requestParameters?: HttpCollectionTypesUpdateRequestParams,
|
|
371
560
|
observe?: 'body',
|
|
372
561
|
reportProgress?: boolean,
|
|
373
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
562
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
374
563
|
): Observable<CollectionType>;
|
|
375
564
|
public httpCollectionTypesUpdate(
|
|
376
|
-
|
|
377
|
-
collectionType: CollectionType,
|
|
378
|
-
translations?: boolean,
|
|
565
|
+
requestParameters?: HttpCollectionTypesUpdateRequestParams,
|
|
379
566
|
observe?: 'response',
|
|
380
567
|
reportProgress?: boolean,
|
|
381
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
568
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
382
569
|
): Observable<HttpResponse<CollectionType>>;
|
|
383
570
|
public httpCollectionTypesUpdate(
|
|
384
|
-
|
|
385
|
-
collectionType: CollectionType,
|
|
386
|
-
translations?: boolean,
|
|
571
|
+
requestParameters?: HttpCollectionTypesUpdateRequestParams,
|
|
387
572
|
observe?: 'events',
|
|
388
573
|
reportProgress?: boolean,
|
|
389
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
574
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
390
575
|
): Observable<HttpEvent<CollectionType>>;
|
|
391
576
|
public httpCollectionTypesUpdate(
|
|
392
|
-
|
|
393
|
-
collectionType: CollectionType,
|
|
394
|
-
translations?: boolean,
|
|
577
|
+
requestParameters?: HttpCollectionTypesUpdateRequestParams,
|
|
395
578
|
observe: any = 'body',
|
|
396
579
|
reportProgress: boolean = false,
|
|
397
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
580
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
398
581
|
): Observable<any> {
|
|
582
|
+
const id = requestParameters?.id;
|
|
399
583
|
if (id === null || id === undefined) {
|
|
400
584
|
throw new Error('Required parameter id was null or undefined when calling httpCollectionTypesUpdate.');
|
|
401
585
|
}
|
|
586
|
+
const collectionType = requestParameters?.collectionType;
|
|
402
587
|
if (collectionType === null || collectionType === undefined) {
|
|
403
588
|
throw new Error('Required parameter collectionType was null or undefined when calling httpCollectionTypesUpdate.');
|
|
404
589
|
}
|
|
590
|
+
const translations = requestParameters?.translations;
|
|
591
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
405
592
|
|
|
406
|
-
let
|
|
593
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
407
594
|
if (translations !== undefined && translations !== null) {
|
|
408
|
-
|
|
595
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
409
596
|
}
|
|
410
597
|
|
|
411
|
-
let
|
|
598
|
+
let localVarHeaders = this.defaultHeaders;
|
|
599
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
600
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
601
|
+
}
|
|
412
602
|
|
|
413
|
-
let
|
|
603
|
+
let localVarCredential: string | undefined;
|
|
414
604
|
// authentication (msal_auth) required
|
|
415
|
-
|
|
416
|
-
if (
|
|
417
|
-
|
|
605
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
606
|
+
if (localVarCredential) {
|
|
607
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
418
608
|
}
|
|
419
609
|
|
|
420
|
-
let
|
|
421
|
-
if (
|
|
610
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
611
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
422
612
|
// to determine the Accept header
|
|
423
613
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
424
|
-
|
|
614
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
425
615
|
}
|
|
426
|
-
if (
|
|
427
|
-
|
|
616
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
617
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
621
|
+
if (localVarHttpContext === undefined) {
|
|
622
|
+
localVarHttpContext = new HttpContext();
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
626
|
+
if (localVarTransferCache === undefined) {
|
|
627
|
+
localVarTransferCache = true;
|
|
428
628
|
}
|
|
429
629
|
|
|
430
630
|
// to determine the Content-Type header
|
|
431
631
|
const consumes: string[] = ['application/json'];
|
|
432
632
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
433
633
|
if (httpContentTypeSelected !== undefined) {
|
|
434
|
-
|
|
634
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
435
635
|
}
|
|
436
636
|
|
|
437
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
438
|
-
if (
|
|
439
|
-
|
|
637
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
638
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
639
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
640
|
+
responseType_ = 'text';
|
|
641
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
642
|
+
responseType_ = 'json';
|
|
643
|
+
} else {
|
|
644
|
+
responseType_ = 'blob';
|
|
645
|
+
}
|
|
440
646
|
}
|
|
441
647
|
|
|
442
|
-
|
|
443
|
-
|
|
648
|
+
let localVarPath = `/collectiontypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
649
|
+
return this.httpClient.request<CollectionType>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
650
|
+
context: localVarHttpContext,
|
|
651
|
+
body: collectionType,
|
|
652
|
+
params: localVarQueryParameters,
|
|
444
653
|
responseType: <any>responseType_,
|
|
445
654
|
withCredentials: this.configuration.withCredentials,
|
|
446
|
-
headers:
|
|
655
|
+
headers: localVarHeaders,
|
|
447
656
|
observe: observe,
|
|
657
|
+
transferCache: localVarTransferCache,
|
|
448
658
|
reportProgress: reportProgress
|
|
449
659
|
});
|
|
450
660
|
}
|
|
451
661
|
|
|
452
662
|
/**
|
|
453
663
|
* This endpoint updates the permissions of the collection type. The modifier tells the system what to do with the list of ids.
|
|
454
|
-
* @param
|
|
455
|
-
* @param permissionChange The changes which ids and how they should be added / removed / replaced / etc.
|
|
664
|
+
* @param requestParameters
|
|
456
665
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
457
666
|
* @param reportProgress flag to report request and response progress.
|
|
458
667
|
*/
|
|
459
668
|
public httpCollectionTypesUpdatePermissionsById(
|
|
460
|
-
|
|
461
|
-
permissionChange: PermissionChange,
|
|
669
|
+
requestParameters?: HttpCollectionTypesUpdatePermissionsByIdRequestParams,
|
|
462
670
|
observe?: 'body',
|
|
463
671
|
reportProgress?: boolean,
|
|
464
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
672
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
465
673
|
): Observable<AgravityInfoResponse>;
|
|
466
674
|
public httpCollectionTypesUpdatePermissionsById(
|
|
467
|
-
|
|
468
|
-
permissionChange: PermissionChange,
|
|
675
|
+
requestParameters?: HttpCollectionTypesUpdatePermissionsByIdRequestParams,
|
|
469
676
|
observe?: 'response',
|
|
470
677
|
reportProgress?: boolean,
|
|
471
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
678
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
472
679
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
473
680
|
public httpCollectionTypesUpdatePermissionsById(
|
|
474
|
-
|
|
475
|
-
permissionChange: PermissionChange,
|
|
681
|
+
requestParameters?: HttpCollectionTypesUpdatePermissionsByIdRequestParams,
|
|
476
682
|
observe?: 'events',
|
|
477
683
|
reportProgress?: boolean,
|
|
478
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
684
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
479
685
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
480
686
|
public httpCollectionTypesUpdatePermissionsById(
|
|
481
|
-
|
|
482
|
-
permissionChange: PermissionChange,
|
|
687
|
+
requestParameters?: HttpCollectionTypesUpdatePermissionsByIdRequestParams,
|
|
483
688
|
observe: any = 'body',
|
|
484
689
|
reportProgress: boolean = false,
|
|
485
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
690
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
486
691
|
): Observable<any> {
|
|
692
|
+
const id = requestParameters?.id;
|
|
487
693
|
if (id === null || id === undefined) {
|
|
488
694
|
throw new Error('Required parameter id was null or undefined when calling httpCollectionTypesUpdatePermissionsById.');
|
|
489
695
|
}
|
|
696
|
+
const permissionChange = requestParameters?.permissionChange;
|
|
490
697
|
if (permissionChange === null || permissionChange === undefined) {
|
|
491
698
|
throw new Error('Required parameter permissionChange was null or undefined when calling httpCollectionTypesUpdatePermissionsById.');
|
|
492
699
|
}
|
|
493
700
|
|
|
494
|
-
let
|
|
701
|
+
let localVarHeaders = this.defaultHeaders;
|
|
495
702
|
|
|
496
|
-
let
|
|
703
|
+
let localVarCredential: string | undefined;
|
|
497
704
|
// authentication (msal_auth) required
|
|
498
|
-
|
|
499
|
-
if (
|
|
500
|
-
|
|
705
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
706
|
+
if (localVarCredential) {
|
|
707
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
501
708
|
}
|
|
502
709
|
|
|
503
|
-
let
|
|
504
|
-
if (
|
|
710
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
711
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
505
712
|
// to determine the Accept header
|
|
506
713
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
507
|
-
|
|
714
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
715
|
+
}
|
|
716
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
717
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
721
|
+
if (localVarHttpContext === undefined) {
|
|
722
|
+
localVarHttpContext = new HttpContext();
|
|
508
723
|
}
|
|
509
|
-
|
|
510
|
-
|
|
724
|
+
|
|
725
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
726
|
+
if (localVarTransferCache === undefined) {
|
|
727
|
+
localVarTransferCache = true;
|
|
511
728
|
}
|
|
512
729
|
|
|
513
730
|
// to determine the Content-Type header
|
|
514
731
|
const consumes: string[] = ['application/json'];
|
|
515
732
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
516
733
|
if (httpContentTypeSelected !== undefined) {
|
|
517
|
-
|
|
734
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
518
735
|
}
|
|
519
736
|
|
|
520
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
521
|
-
if (
|
|
522
|
-
|
|
737
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
738
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
739
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
740
|
+
responseType_ = 'text';
|
|
741
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
742
|
+
responseType_ = 'json';
|
|
743
|
+
} else {
|
|
744
|
+
responseType_ = 'blob';
|
|
745
|
+
}
|
|
523
746
|
}
|
|
524
747
|
|
|
525
|
-
|
|
748
|
+
let localVarPath = `/collectiontypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/permissions`;
|
|
749
|
+
return this.httpClient.request<AgravityInfoResponse>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
750
|
+
context: localVarHttpContext,
|
|
751
|
+
body: permissionChange,
|
|
526
752
|
responseType: <any>responseType_,
|
|
527
753
|
withCredentials: this.configuration.withCredentials,
|
|
528
|
-
headers:
|
|
754
|
+
headers: localVarHeaders,
|
|
529
755
|
observe: observe,
|
|
756
|
+
transferCache: localVarTransferCache,
|
|
530
757
|
reportProgress: reportProgress
|
|
531
758
|
});
|
|
532
759
|
}
|
|
533
760
|
|
|
534
761
|
/**
|
|
535
762
|
* This method returns a list of all collection types items. (Regardless of the permissions)
|
|
536
|
-
* @param
|
|
537
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
763
|
+
* @param requestParameters
|
|
538
764
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
539
765
|
* @param reportProgress flag to report request and response progress.
|
|
540
766
|
*/
|
|
541
767
|
public httpGetCollectionTypeItems(
|
|
542
|
-
|
|
543
|
-
translations?: boolean,
|
|
768
|
+
requestParameters?: HttpGetCollectionTypeItemsRequestParams,
|
|
544
769
|
observe?: 'body',
|
|
545
770
|
reportProgress?: boolean,
|
|
546
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
771
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
547
772
|
): Observable<Array<CollTypeItem>>;
|
|
548
773
|
public httpGetCollectionTypeItems(
|
|
549
|
-
|
|
550
|
-
translations?: boolean,
|
|
774
|
+
requestParameters?: HttpGetCollectionTypeItemsRequestParams,
|
|
551
775
|
observe?: 'response',
|
|
552
776
|
reportProgress?: boolean,
|
|
553
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
777
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
554
778
|
): Observable<HttpResponse<Array<CollTypeItem>>>;
|
|
555
779
|
public httpGetCollectionTypeItems(
|
|
556
|
-
|
|
557
|
-
translations?: boolean,
|
|
780
|
+
requestParameters?: HttpGetCollectionTypeItemsRequestParams,
|
|
558
781
|
observe?: 'events',
|
|
559
782
|
reportProgress?: boolean,
|
|
560
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
783
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
561
784
|
): Observable<HttpEvent<Array<CollTypeItem>>>;
|
|
562
785
|
public httpGetCollectionTypeItems(
|
|
563
|
-
|
|
564
|
-
translations?: boolean,
|
|
786
|
+
requestParameters?: HttpGetCollectionTypeItemsRequestParams,
|
|
565
787
|
observe: any = 'body',
|
|
566
788
|
reportProgress: boolean = false,
|
|
567
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
789
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
568
790
|
): Observable<any> {
|
|
569
|
-
|
|
791
|
+
const includeblueprint = requestParameters?.includeblueprint;
|
|
792
|
+
const translations = requestParameters?.translations;
|
|
793
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
794
|
+
|
|
795
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
570
796
|
if (includeblueprint !== undefined && includeblueprint !== null) {
|
|
571
|
-
|
|
797
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>includeblueprint, 'includeblueprint');
|
|
572
798
|
}
|
|
573
799
|
if (translations !== undefined && translations !== null) {
|
|
574
|
-
|
|
800
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
575
801
|
}
|
|
576
802
|
|
|
577
|
-
let
|
|
803
|
+
let localVarHeaders = this.defaultHeaders;
|
|
804
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
805
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
806
|
+
}
|
|
578
807
|
|
|
579
|
-
let
|
|
808
|
+
let localVarCredential: string | undefined;
|
|
580
809
|
// authentication (msal_auth) required
|
|
581
|
-
|
|
582
|
-
if (
|
|
583
|
-
|
|
810
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
811
|
+
if (localVarCredential) {
|
|
812
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
584
813
|
}
|
|
585
814
|
|
|
586
|
-
let
|
|
587
|
-
if (
|
|
815
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
816
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
588
817
|
// to determine the Accept header
|
|
589
818
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
590
|
-
|
|
819
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
591
820
|
}
|
|
592
|
-
if (
|
|
593
|
-
|
|
821
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
822
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
594
823
|
}
|
|
595
824
|
|
|
596
|
-
let
|
|
597
|
-
if (
|
|
598
|
-
|
|
825
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
826
|
+
if (localVarHttpContext === undefined) {
|
|
827
|
+
localVarHttpContext = new HttpContext();
|
|
599
828
|
}
|
|
600
829
|
|
|
601
|
-
|
|
602
|
-
|
|
830
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
831
|
+
if (localVarTransferCache === undefined) {
|
|
832
|
+
localVarTransferCache = true;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
836
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
837
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
838
|
+
responseType_ = 'text';
|
|
839
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
840
|
+
responseType_ = 'json';
|
|
841
|
+
} else {
|
|
842
|
+
responseType_ = 'blob';
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
let localVarPath = `/collectiontypesitems`;
|
|
847
|
+
return this.httpClient.request<Array<CollTypeItem>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
848
|
+
context: localVarHttpContext,
|
|
849
|
+
params: localVarQueryParameters,
|
|
603
850
|
responseType: <any>responseType_,
|
|
604
851
|
withCredentials: this.configuration.withCredentials,
|
|
605
|
-
headers:
|
|
852
|
+
headers: localVarHeaders,
|
|
606
853
|
observe: observe,
|
|
854
|
+
transferCache: localVarTransferCache,
|
|
607
855
|
reportProgress: reportProgress
|
|
608
856
|
});
|
|
609
857
|
}
|
|
610
858
|
|
|
611
859
|
/**
|
|
612
860
|
* This endpoint updates all collection type items in all collection types regarding: Label, Order, Translations and Group
|
|
613
|
-
* @param
|
|
861
|
+
* @param requestParameters
|
|
614
862
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
615
863
|
* @param reportProgress flag to report request and response progress.
|
|
616
864
|
*/
|
|
617
865
|
public httpUpdateCollectionTypeItems(
|
|
618
|
-
|
|
866
|
+
requestParameters?: HttpUpdateCollectionTypeItemsRequestParams,
|
|
619
867
|
observe?: 'body',
|
|
620
868
|
reportProgress?: boolean,
|
|
621
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
869
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
622
870
|
): Observable<Array<CollectionType>>;
|
|
623
871
|
public httpUpdateCollectionTypeItems(
|
|
624
|
-
|
|
872
|
+
requestParameters?: HttpUpdateCollectionTypeItemsRequestParams,
|
|
625
873
|
observe?: 'response',
|
|
626
874
|
reportProgress?: boolean,
|
|
627
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
875
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
628
876
|
): Observable<HttpResponse<Array<CollectionType>>>;
|
|
629
877
|
public httpUpdateCollectionTypeItems(
|
|
630
|
-
|
|
878
|
+
requestParameters?: HttpUpdateCollectionTypeItemsRequestParams,
|
|
631
879
|
observe?: 'events',
|
|
632
880
|
reportProgress?: boolean,
|
|
633
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
881
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
634
882
|
): Observable<HttpEvent<Array<CollectionType>>>;
|
|
635
883
|
public httpUpdateCollectionTypeItems(
|
|
636
|
-
|
|
884
|
+
requestParameters?: HttpUpdateCollectionTypeItemsRequestParams,
|
|
637
885
|
observe: any = 'body',
|
|
638
886
|
reportProgress: boolean = false,
|
|
639
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
887
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
640
888
|
): Observable<any> {
|
|
889
|
+
const collTypeItem = requestParameters?.collTypeItem;
|
|
641
890
|
if (collTypeItem === null || collTypeItem === undefined) {
|
|
642
891
|
throw new Error('Required parameter collTypeItem was null or undefined when calling httpUpdateCollectionTypeItems.');
|
|
643
892
|
}
|
|
644
893
|
|
|
645
|
-
let
|
|
894
|
+
let localVarHeaders = this.defaultHeaders;
|
|
646
895
|
|
|
647
|
-
let
|
|
896
|
+
let localVarCredential: string | undefined;
|
|
648
897
|
// authentication (msal_auth) required
|
|
649
|
-
|
|
650
|
-
if (
|
|
651
|
-
|
|
898
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
899
|
+
if (localVarCredential) {
|
|
900
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
652
901
|
}
|
|
653
902
|
|
|
654
|
-
let
|
|
655
|
-
if (
|
|
903
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
904
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
656
905
|
// to determine the Accept header
|
|
657
906
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
658
|
-
|
|
907
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
659
908
|
}
|
|
660
|
-
if (
|
|
661
|
-
|
|
909
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
910
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
914
|
+
if (localVarHttpContext === undefined) {
|
|
915
|
+
localVarHttpContext = new HttpContext();
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
919
|
+
if (localVarTransferCache === undefined) {
|
|
920
|
+
localVarTransferCache = true;
|
|
662
921
|
}
|
|
663
922
|
|
|
664
923
|
// to determine the Content-Type header
|
|
665
924
|
const consumes: string[] = ['application/json'];
|
|
666
925
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
667
926
|
if (httpContentTypeSelected !== undefined) {
|
|
668
|
-
|
|
927
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
669
928
|
}
|
|
670
929
|
|
|
671
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
672
|
-
if (
|
|
673
|
-
|
|
930
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
931
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
932
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
933
|
+
responseType_ = 'text';
|
|
934
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
935
|
+
responseType_ = 'json';
|
|
936
|
+
} else {
|
|
937
|
+
responseType_ = 'blob';
|
|
938
|
+
}
|
|
674
939
|
}
|
|
675
940
|
|
|
676
|
-
|
|
941
|
+
let localVarPath = `/collectiontypesitems`;
|
|
942
|
+
return this.httpClient.request<Array<CollectionType>>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
943
|
+
context: localVarHttpContext,
|
|
944
|
+
body: collTypeItem,
|
|
677
945
|
responseType: <any>responseType_,
|
|
678
946
|
withCredentials: this.configuration.withCredentials,
|
|
679
|
-
headers:
|
|
947
|
+
headers: localVarHeaders,
|
|
680
948
|
observe: observe,
|
|
949
|
+
transferCache: localVarTransferCache,
|
|
681
950
|
reportProgress: reportProgress
|
|
682
951
|
});
|
|
683
952
|
}
|