@agravity/private 7.3.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +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 +19 -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.0
|
|
6
5
|
* Contact: office@agravity.io
|
|
7
6
|
*
|
|
8
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,16 +11,51 @@
|
|
|
12
11
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
12
|
|
|
14
13
|
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
-
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
14
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
16
15
|
import { CustomHttpParameterCodec } from '../encoder';
|
|
17
16
|
import { Observable } from 'rxjs';
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
import {
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { CollTypeItemBlueprint } from '../model/collTypeItemBlueprint.agravity';
|
|
21
22
|
|
|
23
|
+
// @ts-ignore
|
|
22
24
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
23
25
|
import { AgravityConfiguration } from '../configuration';
|
|
24
26
|
|
|
27
|
+
export interface HttpCollTypeItemBlueprintsCreateRequestParams {
|
|
28
|
+
/** This endpoint creates an unique blueprint and adds the information to the database. */
|
|
29
|
+
collTypeItemBlueprint: CollTypeItemBlueprint;
|
|
30
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
31
|
+
translations?: boolean;
|
|
32
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
33
|
+
acceptLanguage?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface HttpCollTypeItemBlueprintsDeleteByIdRequestParams {
|
|
37
|
+
/** The ID of the blueprint. */
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface HttpCollTypeItemBlueprintsGetAllRequestParams {
|
|
42
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
43
|
+
translations?: boolean;
|
|
44
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
45
|
+
acceptLanguage?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface HttpCollTypeItemBlueprintsUpdateByIdRequestParams {
|
|
49
|
+
/** The ID of the blueprint. */
|
|
50
|
+
id: string;
|
|
51
|
+
/** This endpoint updates an the given blueprint with ID and adds the information to the database. */
|
|
52
|
+
collTypeItemBlueprint: CollTypeItemBlueprint;
|
|
53
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
54
|
+
translations?: boolean;
|
|
55
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
56
|
+
acceptLanguage?: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
25
59
|
@Injectable({
|
|
26
60
|
providedIn: 'root'
|
|
27
61
|
})
|
|
@@ -33,13 +67,18 @@ export class CollectionTypeItemBlueprintManagementService {
|
|
|
33
67
|
|
|
34
68
|
constructor(
|
|
35
69
|
protected httpClient: HttpClient,
|
|
36
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
70
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
37
71
|
@Optional() configuration: AgravityConfiguration
|
|
38
72
|
) {
|
|
39
73
|
if (configuration) {
|
|
40
74
|
this.configuration = configuration;
|
|
41
75
|
}
|
|
42
76
|
if (typeof this.configuration.basePath !== 'string') {
|
|
77
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
78
|
+
if (firstBasePath != undefined) {
|
|
79
|
+
basePath = firstBasePath;
|
|
80
|
+
}
|
|
81
|
+
|
|
43
82
|
if (typeof basePath !== 'string') {
|
|
44
83
|
basePath = this.basePath;
|
|
45
84
|
}
|
|
@@ -48,6 +87,7 @@ export class CollectionTypeItemBlueprintManagementService {
|
|
|
48
87
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
88
|
}
|
|
50
89
|
|
|
90
|
+
// @ts-ignore
|
|
51
91
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
52
92
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
53
93
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -67,7 +107,7 @@ export class CollectionTypeItemBlueprintManagementService {
|
|
|
67
107
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
68
108
|
} else if (value instanceof Date) {
|
|
69
109
|
if (key != null) {
|
|
70
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
110
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
71
111
|
} else {
|
|
72
112
|
throw Error('key may not be null if value is Date');
|
|
73
113
|
}
|
|
@@ -84,289 +124,397 @@ export class CollectionTypeItemBlueprintManagementService {
|
|
|
84
124
|
|
|
85
125
|
/**
|
|
86
126
|
* This endpoint creates one collection type item blueprint entry in the database.
|
|
87
|
-
* @param
|
|
88
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
127
|
+
* @param requestParameters
|
|
89
128
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
90
129
|
* @param reportProgress flag to report request and response progress.
|
|
91
130
|
*/
|
|
92
131
|
public httpCollTypeItemBlueprintsCreate(
|
|
93
|
-
|
|
94
|
-
translations?: boolean,
|
|
132
|
+
requestParameters?: HttpCollTypeItemBlueprintsCreateRequestParams,
|
|
95
133
|
observe?: 'body',
|
|
96
134
|
reportProgress?: boolean,
|
|
97
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
135
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
98
136
|
): Observable<CollTypeItemBlueprint>;
|
|
99
137
|
public httpCollTypeItemBlueprintsCreate(
|
|
100
|
-
|
|
101
|
-
translations?: boolean,
|
|
138
|
+
requestParameters?: HttpCollTypeItemBlueprintsCreateRequestParams,
|
|
102
139
|
observe?: 'response',
|
|
103
140
|
reportProgress?: boolean,
|
|
104
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
141
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
105
142
|
): Observable<HttpResponse<CollTypeItemBlueprint>>;
|
|
106
143
|
public httpCollTypeItemBlueprintsCreate(
|
|
107
|
-
|
|
108
|
-
translations?: boolean,
|
|
144
|
+
requestParameters?: HttpCollTypeItemBlueprintsCreateRequestParams,
|
|
109
145
|
observe?: 'events',
|
|
110
146
|
reportProgress?: boolean,
|
|
111
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
147
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
112
148
|
): Observable<HttpEvent<CollTypeItemBlueprint>>;
|
|
113
149
|
public httpCollTypeItemBlueprintsCreate(
|
|
114
|
-
|
|
115
|
-
translations?: boolean,
|
|
150
|
+
requestParameters?: HttpCollTypeItemBlueprintsCreateRequestParams,
|
|
116
151
|
observe: any = 'body',
|
|
117
152
|
reportProgress: boolean = false,
|
|
118
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
153
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
119
154
|
): Observable<any> {
|
|
155
|
+
const collTypeItemBlueprint = requestParameters?.collTypeItemBlueprint;
|
|
120
156
|
if (collTypeItemBlueprint === null || collTypeItemBlueprint === undefined) {
|
|
121
157
|
throw new Error('Required parameter collTypeItemBlueprint was null or undefined when calling httpCollTypeItemBlueprintsCreate.');
|
|
122
158
|
}
|
|
159
|
+
const translations = requestParameters?.translations;
|
|
160
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
123
161
|
|
|
124
|
-
let
|
|
162
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
125
163
|
if (translations !== undefined && translations !== null) {
|
|
126
|
-
|
|
164
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
127
165
|
}
|
|
128
166
|
|
|
129
|
-
let
|
|
167
|
+
let localVarHeaders = this.defaultHeaders;
|
|
168
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
169
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
170
|
+
}
|
|
130
171
|
|
|
131
|
-
let
|
|
172
|
+
let localVarCredential: string | undefined;
|
|
132
173
|
// authentication (msal_auth) required
|
|
133
|
-
|
|
134
|
-
if (
|
|
135
|
-
|
|
174
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
175
|
+
if (localVarCredential) {
|
|
176
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
136
177
|
}
|
|
137
178
|
|
|
138
|
-
let
|
|
139
|
-
if (
|
|
179
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
180
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
140
181
|
// to determine the Accept header
|
|
141
182
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
142
|
-
|
|
183
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
184
|
+
}
|
|
185
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
186
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
190
|
+
if (localVarHttpContext === undefined) {
|
|
191
|
+
localVarHttpContext = new HttpContext();
|
|
143
192
|
}
|
|
144
|
-
|
|
145
|
-
|
|
193
|
+
|
|
194
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
195
|
+
if (localVarTransferCache === undefined) {
|
|
196
|
+
localVarTransferCache = true;
|
|
146
197
|
}
|
|
147
198
|
|
|
148
199
|
// to determine the Content-Type header
|
|
149
200
|
const consumes: string[] = ['application/json'];
|
|
150
201
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
151
202
|
if (httpContentTypeSelected !== undefined) {
|
|
152
|
-
|
|
203
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
153
204
|
}
|
|
154
205
|
|
|
155
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
156
|
-
if (
|
|
157
|
-
|
|
206
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
207
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
208
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
209
|
+
responseType_ = 'text';
|
|
210
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
211
|
+
responseType_ = 'json';
|
|
212
|
+
} else {
|
|
213
|
+
responseType_ = 'blob';
|
|
214
|
+
}
|
|
158
215
|
}
|
|
159
216
|
|
|
160
|
-
|
|
161
|
-
|
|
217
|
+
let localVarPath = `/colltypeitemblueprints`;
|
|
218
|
+
return this.httpClient.request<CollTypeItemBlueprint>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
219
|
+
context: localVarHttpContext,
|
|
220
|
+
body: collTypeItemBlueprint,
|
|
221
|
+
params: localVarQueryParameters,
|
|
162
222
|
responseType: <any>responseType_,
|
|
163
223
|
withCredentials: this.configuration.withCredentials,
|
|
164
|
-
headers:
|
|
224
|
+
headers: localVarHeaders,
|
|
165
225
|
observe: observe,
|
|
226
|
+
transferCache: localVarTransferCache,
|
|
166
227
|
reportProgress: reportProgress
|
|
167
228
|
});
|
|
168
229
|
}
|
|
169
230
|
|
|
170
231
|
/**
|
|
171
232
|
* This endpoint deletes a single collection type item blueprint.
|
|
172
|
-
* @param
|
|
233
|
+
* @param requestParameters
|
|
173
234
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
174
235
|
* @param reportProgress flag to report request and response progress.
|
|
175
236
|
*/
|
|
176
|
-
public httpCollTypeItemBlueprintsDeleteById(
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
237
|
+
public httpCollTypeItemBlueprintsDeleteById(
|
|
238
|
+
requestParameters?: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
|
|
239
|
+
observe?: 'body',
|
|
240
|
+
reportProgress?: boolean,
|
|
241
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
242
|
+
): Observable<any>;
|
|
243
|
+
public httpCollTypeItemBlueprintsDeleteById(
|
|
244
|
+
requestParameters?: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
|
|
245
|
+
observe?: 'response',
|
|
246
|
+
reportProgress?: boolean,
|
|
247
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
248
|
+
): Observable<HttpResponse<any>>;
|
|
249
|
+
public httpCollTypeItemBlueprintsDeleteById(
|
|
250
|
+
requestParameters?: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
|
|
251
|
+
observe?: 'events',
|
|
252
|
+
reportProgress?: boolean,
|
|
253
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
254
|
+
): Observable<HttpEvent<any>>;
|
|
255
|
+
public httpCollTypeItemBlueprintsDeleteById(
|
|
256
|
+
requestParameters?: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
|
|
257
|
+
observe: any = 'body',
|
|
258
|
+
reportProgress: boolean = false,
|
|
259
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
260
|
+
): Observable<any> {
|
|
261
|
+
const id = requestParameters?.id;
|
|
180
262
|
if (id === null || id === undefined) {
|
|
181
263
|
throw new Error('Required parameter id was null or undefined when calling httpCollTypeItemBlueprintsDeleteById.');
|
|
182
264
|
}
|
|
183
265
|
|
|
184
|
-
let
|
|
266
|
+
let localVarHeaders = this.defaultHeaders;
|
|
185
267
|
|
|
186
|
-
let
|
|
268
|
+
let localVarCredential: string | undefined;
|
|
187
269
|
// authentication (msal_auth) required
|
|
188
|
-
|
|
189
|
-
if (
|
|
190
|
-
|
|
270
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
271
|
+
if (localVarCredential) {
|
|
272
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
191
273
|
}
|
|
192
274
|
|
|
193
|
-
let
|
|
194
|
-
if (
|
|
275
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
276
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
195
277
|
// to determine the Accept header
|
|
196
278
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
197
|
-
|
|
279
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
198
280
|
}
|
|
199
|
-
if (
|
|
200
|
-
|
|
281
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
282
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
201
283
|
}
|
|
202
284
|
|
|
203
|
-
let
|
|
204
|
-
if (
|
|
205
|
-
|
|
285
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
286
|
+
if (localVarHttpContext === undefined) {
|
|
287
|
+
localVarHttpContext = new HttpContext();
|
|
206
288
|
}
|
|
207
289
|
|
|
208
|
-
|
|
290
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
291
|
+
if (localVarTransferCache === undefined) {
|
|
292
|
+
localVarTransferCache = true;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
296
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
297
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
298
|
+
responseType_ = 'text';
|
|
299
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
300
|
+
responseType_ = 'json';
|
|
301
|
+
} else {
|
|
302
|
+
responseType_ = 'blob';
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
let localVarPath = `/colltypeitemblueprints/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
307
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
308
|
+
context: localVarHttpContext,
|
|
209
309
|
responseType: <any>responseType_,
|
|
210
310
|
withCredentials: this.configuration.withCredentials,
|
|
211
|
-
headers:
|
|
311
|
+
headers: localVarHeaders,
|
|
212
312
|
observe: observe,
|
|
313
|
+
transferCache: localVarTransferCache,
|
|
213
314
|
reportProgress: reportProgress
|
|
214
315
|
});
|
|
215
316
|
}
|
|
216
317
|
|
|
217
318
|
/**
|
|
218
319
|
* This endpoint lists all collection type item blueprint in database.
|
|
219
|
-
* @param
|
|
320
|
+
* @param requestParameters
|
|
220
321
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
221
322
|
* @param reportProgress flag to report request and response progress.
|
|
222
323
|
*/
|
|
223
324
|
public httpCollTypeItemBlueprintsGetAll(
|
|
224
|
-
|
|
325
|
+
requestParameters?: HttpCollTypeItemBlueprintsGetAllRequestParams,
|
|
225
326
|
observe?: 'body',
|
|
226
327
|
reportProgress?: boolean,
|
|
227
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
328
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
228
329
|
): Observable<Array<CollTypeItemBlueprint>>;
|
|
229
330
|
public httpCollTypeItemBlueprintsGetAll(
|
|
230
|
-
|
|
331
|
+
requestParameters?: HttpCollTypeItemBlueprintsGetAllRequestParams,
|
|
231
332
|
observe?: 'response',
|
|
232
333
|
reportProgress?: boolean,
|
|
233
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
334
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
234
335
|
): Observable<HttpResponse<Array<CollTypeItemBlueprint>>>;
|
|
235
336
|
public httpCollTypeItemBlueprintsGetAll(
|
|
236
|
-
|
|
337
|
+
requestParameters?: HttpCollTypeItemBlueprintsGetAllRequestParams,
|
|
237
338
|
observe?: 'events',
|
|
238
339
|
reportProgress?: boolean,
|
|
239
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
340
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
240
341
|
): Observable<HttpEvent<Array<CollTypeItemBlueprint>>>;
|
|
241
|
-
public httpCollTypeItemBlueprintsGetAll(
|
|
242
|
-
|
|
342
|
+
public httpCollTypeItemBlueprintsGetAll(
|
|
343
|
+
requestParameters?: HttpCollTypeItemBlueprintsGetAllRequestParams,
|
|
344
|
+
observe: any = 'body',
|
|
345
|
+
reportProgress: boolean = false,
|
|
346
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
347
|
+
): Observable<any> {
|
|
348
|
+
const translations = requestParameters?.translations;
|
|
349
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
350
|
+
|
|
351
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
243
352
|
if (translations !== undefined && translations !== null) {
|
|
244
|
-
|
|
353
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
245
354
|
}
|
|
246
355
|
|
|
247
|
-
let
|
|
356
|
+
let localVarHeaders = this.defaultHeaders;
|
|
357
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
358
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
359
|
+
}
|
|
248
360
|
|
|
249
|
-
let
|
|
361
|
+
let localVarCredential: string | undefined;
|
|
250
362
|
// authentication (msal_auth) required
|
|
251
|
-
|
|
252
|
-
if (
|
|
253
|
-
|
|
363
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
364
|
+
if (localVarCredential) {
|
|
365
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
254
366
|
}
|
|
255
367
|
|
|
256
|
-
let
|
|
257
|
-
if (
|
|
368
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
369
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
258
370
|
// to determine the Accept header
|
|
259
371
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
260
|
-
|
|
372
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
261
373
|
}
|
|
262
|
-
if (
|
|
263
|
-
|
|
374
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
375
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
264
376
|
}
|
|
265
377
|
|
|
266
|
-
let
|
|
267
|
-
if (
|
|
268
|
-
|
|
378
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
379
|
+
if (localVarHttpContext === undefined) {
|
|
380
|
+
localVarHttpContext = new HttpContext();
|
|
269
381
|
}
|
|
270
382
|
|
|
271
|
-
|
|
272
|
-
|
|
383
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
384
|
+
if (localVarTransferCache === undefined) {
|
|
385
|
+
localVarTransferCache = true;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
389
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
390
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
391
|
+
responseType_ = 'text';
|
|
392
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
393
|
+
responseType_ = 'json';
|
|
394
|
+
} else {
|
|
395
|
+
responseType_ = 'blob';
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
let localVarPath = `/colltypeitemblueprints`;
|
|
400
|
+
return this.httpClient.request<Array<CollTypeItemBlueprint>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
401
|
+
context: localVarHttpContext,
|
|
402
|
+
params: localVarQueryParameters,
|
|
273
403
|
responseType: <any>responseType_,
|
|
274
404
|
withCredentials: this.configuration.withCredentials,
|
|
275
|
-
headers:
|
|
405
|
+
headers: localVarHeaders,
|
|
276
406
|
observe: observe,
|
|
407
|
+
transferCache: localVarTransferCache,
|
|
277
408
|
reportProgress: reportProgress
|
|
278
409
|
});
|
|
279
410
|
}
|
|
280
411
|
|
|
281
412
|
/**
|
|
282
413
|
* This endpoint updates a single collection type item blueprint.
|
|
283
|
-
* @param
|
|
284
|
-
* @param collTypeItemBlueprint This endpoint updates an the given blueprint with ID and adds the information to the database.
|
|
285
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
414
|
+
* @param requestParameters
|
|
286
415
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
287
416
|
* @param reportProgress flag to report request and response progress.
|
|
288
417
|
*/
|
|
289
418
|
public httpCollTypeItemBlueprintsUpdateById(
|
|
290
|
-
|
|
291
|
-
collTypeItemBlueprint: CollTypeItemBlueprint,
|
|
292
|
-
translations?: boolean,
|
|
419
|
+
requestParameters?: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
|
|
293
420
|
observe?: 'body',
|
|
294
421
|
reportProgress?: boolean,
|
|
295
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
422
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
296
423
|
): Observable<CollTypeItemBlueprint>;
|
|
297
424
|
public httpCollTypeItemBlueprintsUpdateById(
|
|
298
|
-
|
|
299
|
-
collTypeItemBlueprint: CollTypeItemBlueprint,
|
|
300
|
-
translations?: boolean,
|
|
425
|
+
requestParameters?: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
|
|
301
426
|
observe?: 'response',
|
|
302
427
|
reportProgress?: boolean,
|
|
303
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
428
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
304
429
|
): Observable<HttpResponse<CollTypeItemBlueprint>>;
|
|
305
430
|
public httpCollTypeItemBlueprintsUpdateById(
|
|
306
|
-
|
|
307
|
-
collTypeItemBlueprint: CollTypeItemBlueprint,
|
|
308
|
-
translations?: boolean,
|
|
431
|
+
requestParameters?: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
|
|
309
432
|
observe?: 'events',
|
|
310
433
|
reportProgress?: boolean,
|
|
311
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
434
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
312
435
|
): Observable<HttpEvent<CollTypeItemBlueprint>>;
|
|
313
436
|
public httpCollTypeItemBlueprintsUpdateById(
|
|
314
|
-
|
|
315
|
-
collTypeItemBlueprint: CollTypeItemBlueprint,
|
|
316
|
-
translations?: boolean,
|
|
437
|
+
requestParameters?: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
|
|
317
438
|
observe: any = 'body',
|
|
318
439
|
reportProgress: boolean = false,
|
|
319
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
440
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
320
441
|
): Observable<any> {
|
|
442
|
+
const id = requestParameters?.id;
|
|
321
443
|
if (id === null || id === undefined) {
|
|
322
444
|
throw new Error('Required parameter id was null or undefined when calling httpCollTypeItemBlueprintsUpdateById.');
|
|
323
445
|
}
|
|
446
|
+
const collTypeItemBlueprint = requestParameters?.collTypeItemBlueprint;
|
|
324
447
|
if (collTypeItemBlueprint === null || collTypeItemBlueprint === undefined) {
|
|
325
448
|
throw new Error('Required parameter collTypeItemBlueprint was null or undefined when calling httpCollTypeItemBlueprintsUpdateById.');
|
|
326
449
|
}
|
|
450
|
+
const translations = requestParameters?.translations;
|
|
451
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
327
452
|
|
|
328
|
-
let
|
|
453
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
329
454
|
if (translations !== undefined && translations !== null) {
|
|
330
|
-
|
|
455
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
331
456
|
}
|
|
332
457
|
|
|
333
|
-
let
|
|
458
|
+
let localVarHeaders = this.defaultHeaders;
|
|
459
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
460
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
461
|
+
}
|
|
334
462
|
|
|
335
|
-
let
|
|
463
|
+
let localVarCredential: string | undefined;
|
|
336
464
|
// authentication (msal_auth) required
|
|
337
|
-
|
|
338
|
-
if (
|
|
339
|
-
|
|
465
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
466
|
+
if (localVarCredential) {
|
|
467
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
340
468
|
}
|
|
341
469
|
|
|
342
|
-
let
|
|
343
|
-
if (
|
|
470
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
471
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
344
472
|
// to determine the Accept header
|
|
345
473
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
346
|
-
|
|
474
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
347
475
|
}
|
|
348
|
-
if (
|
|
349
|
-
|
|
476
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
477
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
481
|
+
if (localVarHttpContext === undefined) {
|
|
482
|
+
localVarHttpContext = new HttpContext();
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
486
|
+
if (localVarTransferCache === undefined) {
|
|
487
|
+
localVarTransferCache = true;
|
|
350
488
|
}
|
|
351
489
|
|
|
352
490
|
// to determine the Content-Type header
|
|
353
491
|
const consumes: string[] = ['application/json'];
|
|
354
492
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
355
493
|
if (httpContentTypeSelected !== undefined) {
|
|
356
|
-
|
|
494
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
357
495
|
}
|
|
358
496
|
|
|
359
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
360
|
-
if (
|
|
361
|
-
|
|
497
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
498
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
499
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
500
|
+
responseType_ = 'text';
|
|
501
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
502
|
+
responseType_ = 'json';
|
|
503
|
+
} else {
|
|
504
|
+
responseType_ = 'blob';
|
|
505
|
+
}
|
|
362
506
|
}
|
|
363
507
|
|
|
364
|
-
|
|
365
|
-
|
|
508
|
+
let localVarPath = `/colltypeitemblueprints/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
509
|
+
return this.httpClient.request<CollTypeItemBlueprint>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
510
|
+
context: localVarHttpContext,
|
|
511
|
+
body: collTypeItemBlueprint,
|
|
512
|
+
params: localVarQueryParameters,
|
|
366
513
|
responseType: <any>responseType_,
|
|
367
514
|
withCredentials: this.configuration.withCredentials,
|
|
368
|
-
headers:
|
|
515
|
+
headers: localVarHeaders,
|
|
369
516
|
observe: observe,
|
|
517
|
+
transferCache: localVarTransferCache,
|
|
370
518
|
reportProgress: reportProgress
|
|
371
519
|
});
|
|
372
520
|
}
|