@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,24 @@
|
|
|
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 { WidgetLayout } from '../model/widgetLayout.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 HttpWidgetLayoutUpdateRequestParams {
|
|
28
|
+
/** Body has to be a valid widget layout item. */
|
|
29
|
+
widgetLayout: WidgetLayout;
|
|
30
|
+
}
|
|
31
|
+
|
|
25
32
|
@Injectable({
|
|
26
33
|
providedIn: 'root'
|
|
27
34
|
})
|
|
@@ -33,13 +40,18 @@ export class WidgetLayoutManagementService {
|
|
|
33
40
|
|
|
34
41
|
constructor(
|
|
35
42
|
protected httpClient: HttpClient,
|
|
36
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
43
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
37
44
|
@Optional() configuration: AgravityConfiguration
|
|
38
45
|
) {
|
|
39
46
|
if (configuration) {
|
|
40
47
|
this.configuration = configuration;
|
|
41
48
|
}
|
|
42
49
|
if (typeof this.configuration.basePath !== 'string') {
|
|
50
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
51
|
+
if (firstBasePath != undefined) {
|
|
52
|
+
basePath = firstBasePath;
|
|
53
|
+
}
|
|
54
|
+
|
|
43
55
|
if (typeof basePath !== 'string') {
|
|
44
56
|
basePath = this.basePath;
|
|
45
57
|
}
|
|
@@ -48,6 +60,7 @@ export class WidgetLayoutManagementService {
|
|
|
48
60
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
61
|
}
|
|
50
62
|
|
|
63
|
+
// @ts-ignore
|
|
51
64
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
52
65
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
53
66
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -67,7 +80,7 @@ export class WidgetLayoutManagementService {
|
|
|
67
80
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
68
81
|
} else if (value instanceof Date) {
|
|
69
82
|
if (key != null) {
|
|
70
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
83
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
71
84
|
} else {
|
|
72
85
|
throw Error('key may not be null if value is Date');
|
|
73
86
|
}
|
|
@@ -87,98 +100,169 @@ export class WidgetLayoutManagementService {
|
|
|
87
100
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
88
101
|
* @param reportProgress flag to report request and response progress.
|
|
89
102
|
*/
|
|
90
|
-
public httpWidgetLayoutGet(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
103
|
+
public httpWidgetLayoutGet(
|
|
104
|
+
observe?: 'body',
|
|
105
|
+
reportProgress?: boolean,
|
|
106
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
107
|
+
): Observable<WidgetLayout>;
|
|
108
|
+
public httpWidgetLayoutGet(
|
|
109
|
+
observe?: 'response',
|
|
110
|
+
reportProgress?: boolean,
|
|
111
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
112
|
+
): Observable<HttpResponse<WidgetLayout>>;
|
|
113
|
+
public httpWidgetLayoutGet(
|
|
114
|
+
observe?: 'events',
|
|
115
|
+
reportProgress?: boolean,
|
|
116
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
117
|
+
): Observable<HttpEvent<WidgetLayout>>;
|
|
118
|
+
public httpWidgetLayoutGet(
|
|
119
|
+
observe: any = 'body',
|
|
120
|
+
reportProgress: boolean = false,
|
|
121
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
122
|
+
): Observable<any> {
|
|
123
|
+
let localVarHeaders = this.defaultHeaders;
|
|
95
124
|
|
|
96
|
-
let
|
|
125
|
+
let localVarCredential: string | undefined;
|
|
97
126
|
// authentication (msal_auth) required
|
|
98
|
-
|
|
99
|
-
if (
|
|
100
|
-
|
|
127
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
128
|
+
if (localVarCredential) {
|
|
129
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
101
130
|
}
|
|
102
131
|
|
|
103
|
-
let
|
|
104
|
-
if (
|
|
132
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
133
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
105
134
|
// to determine the Accept header
|
|
106
135
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
107
|
-
|
|
136
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
137
|
+
}
|
|
138
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
139
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
108
140
|
}
|
|
109
|
-
|
|
110
|
-
|
|
141
|
+
|
|
142
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
143
|
+
if (localVarHttpContext === undefined) {
|
|
144
|
+
localVarHttpContext = new HttpContext();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
148
|
+
if (localVarTransferCache === undefined) {
|
|
149
|
+
localVarTransferCache = true;
|
|
111
150
|
}
|
|
112
151
|
|
|
113
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
114
|
-
if (
|
|
115
|
-
|
|
152
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
153
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
154
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
155
|
+
responseType_ = 'text';
|
|
156
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
157
|
+
responseType_ = 'json';
|
|
158
|
+
} else {
|
|
159
|
+
responseType_ = 'blob';
|
|
160
|
+
}
|
|
116
161
|
}
|
|
117
162
|
|
|
118
|
-
|
|
163
|
+
let localVarPath = `/dashboard/layout`;
|
|
164
|
+
return this.httpClient.request<WidgetLayout>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
165
|
+
context: localVarHttpContext,
|
|
119
166
|
responseType: <any>responseType_,
|
|
120
167
|
withCredentials: this.configuration.withCredentials,
|
|
121
|
-
headers:
|
|
168
|
+
headers: localVarHeaders,
|
|
122
169
|
observe: observe,
|
|
170
|
+
transferCache: localVarTransferCache,
|
|
123
171
|
reportProgress: reportProgress
|
|
124
172
|
});
|
|
125
173
|
}
|
|
126
174
|
|
|
127
175
|
/**
|
|
128
176
|
* Updates the widget layout in database.
|
|
129
|
-
* @param
|
|
177
|
+
* @param requestParameters
|
|
130
178
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
131
179
|
* @param reportProgress flag to report request and response progress.
|
|
132
180
|
*/
|
|
133
|
-
public httpWidgetLayoutUpdate(widgetLayout: WidgetLayout, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<WidgetLayout>;
|
|
134
181
|
public httpWidgetLayoutUpdate(
|
|
135
|
-
|
|
182
|
+
requestParameters?: HttpWidgetLayoutUpdateRequestParams,
|
|
183
|
+
observe?: 'body',
|
|
184
|
+
reportProgress?: boolean,
|
|
185
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
186
|
+
): Observable<WidgetLayout>;
|
|
187
|
+
public httpWidgetLayoutUpdate(
|
|
188
|
+
requestParameters?: HttpWidgetLayoutUpdateRequestParams,
|
|
136
189
|
observe?: 'response',
|
|
137
190
|
reportProgress?: boolean,
|
|
138
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
191
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
139
192
|
): Observable<HttpResponse<WidgetLayout>>;
|
|
140
|
-
public httpWidgetLayoutUpdate(
|
|
141
|
-
|
|
193
|
+
public httpWidgetLayoutUpdate(
|
|
194
|
+
requestParameters?: HttpWidgetLayoutUpdateRequestParams,
|
|
195
|
+
observe?: 'events',
|
|
196
|
+
reportProgress?: boolean,
|
|
197
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
198
|
+
): Observable<HttpEvent<WidgetLayout>>;
|
|
199
|
+
public httpWidgetLayoutUpdate(
|
|
200
|
+
requestParameters?: HttpWidgetLayoutUpdateRequestParams,
|
|
201
|
+
observe: any = 'body',
|
|
202
|
+
reportProgress: boolean = false,
|
|
203
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
204
|
+
): Observable<any> {
|
|
205
|
+
const widgetLayout = requestParameters?.widgetLayout;
|
|
142
206
|
if (widgetLayout === null || widgetLayout === undefined) {
|
|
143
207
|
throw new Error('Required parameter widgetLayout was null or undefined when calling httpWidgetLayoutUpdate.');
|
|
144
208
|
}
|
|
145
209
|
|
|
146
|
-
let
|
|
210
|
+
let localVarHeaders = this.defaultHeaders;
|
|
147
211
|
|
|
148
|
-
let
|
|
212
|
+
let localVarCredential: string | undefined;
|
|
149
213
|
// authentication (msal_auth) required
|
|
150
|
-
|
|
151
|
-
if (
|
|
152
|
-
|
|
214
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
215
|
+
if (localVarCredential) {
|
|
216
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
153
217
|
}
|
|
154
218
|
|
|
155
|
-
let
|
|
156
|
-
if (
|
|
219
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
220
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
157
221
|
// to determine the Accept header
|
|
158
222
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
159
|
-
|
|
223
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
160
224
|
}
|
|
161
|
-
if (
|
|
162
|
-
|
|
225
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
226
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
230
|
+
if (localVarHttpContext === undefined) {
|
|
231
|
+
localVarHttpContext = new HttpContext();
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
235
|
+
if (localVarTransferCache === undefined) {
|
|
236
|
+
localVarTransferCache = true;
|
|
163
237
|
}
|
|
164
238
|
|
|
165
239
|
// to determine the Content-Type header
|
|
166
240
|
const consumes: string[] = ['application/json'];
|
|
167
241
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
168
242
|
if (httpContentTypeSelected !== undefined) {
|
|
169
|
-
|
|
243
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
170
244
|
}
|
|
171
245
|
|
|
172
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
173
|
-
if (
|
|
174
|
-
|
|
246
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
247
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
248
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
249
|
+
responseType_ = 'text';
|
|
250
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
251
|
+
responseType_ = 'json';
|
|
252
|
+
} else {
|
|
253
|
+
responseType_ = 'blob';
|
|
254
|
+
}
|
|
175
255
|
}
|
|
176
256
|
|
|
177
|
-
|
|
257
|
+
let localVarPath = `/dashboard/layout`;
|
|
258
|
+
return this.httpClient.request<WidgetLayout>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
259
|
+
context: localVarHttpContext,
|
|
260
|
+
body: widgetLayout,
|
|
178
261
|
responseType: <any>responseType_,
|
|
179
262
|
withCredentials: this.configuration.withCredentials,
|
|
180
|
-
headers:
|
|
263
|
+
headers: localVarHeaders,
|
|
181
264
|
observe: observe,
|
|
265
|
+
transferCache: localVarTransferCache,
|
|
182
266
|
reportProgress: reportProgress
|
|
183
267
|
});
|
|
184
268
|
}
|