@agravity/private 7.3.1 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/assetIconRuleManagement.agravity.ts +344 -150
- package/api/assetManagement.agravity.ts +709 -389
- package/api/assetOperations.agravity.ts +1414 -650
- package/api/assetPublishing.agravity.ts +562 -255
- package/api/assetVersioning.agravity.ts +598 -278
- package/api/authenticationManagement.agravity.ts +731 -274
- package/api/collectionManagement.agravity.ts +618 -309
- package/api/collectionShareManagement.agravity.ts +256 -121
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
- package/api/collectionTypeManagement.agravity.ts +519 -250
- package/api/commentsManagement.agravity.ts +284 -90
- package/api/configurationManagement.agravity.ts +311 -128
- package/api/dashboardWidgetManagement.agravity.ts +342 -124
- package/api/dataImportExportManagement.agravity.ts +378 -148
- package/api/downloadFormatManagement.agravity.ts +450 -152
- package/api/downloadZip.agravity.ts +75 -30
- package/api/generalManagement.agravity.ts +374 -164
- package/api/helperTools.agravity.ts +804 -273
- package/api/historyEntryManagement.agravity.ts +75 -33
- package/api/iccProfileManagement.agravity.ts +64 -23
- package/api/listBlobs.agravity.ts +125 -47
- package/api/listQueues.agravity.ts +68 -24
- package/api/listTables.agravity.ts +68 -25
- package/api/permissionsManagement.agravity.ts +174 -77
- package/api/portalManagement.agravity.ts +511 -198
- package/api/publishing.agravity.ts +69 -38
- package/api/quickshareManagement.agravity.ts +349 -138
- package/api/savedSearchManagement.agravity.ts +205 -92
- package/api/searchManagement.agravity.ts +517 -297
- package/api/secureUpload.agravity.ts +325 -126
- package/api/signalRConnectionManagement.agravity.ts +175 -56
- package/api/staticDefinedListManagement.agravity.ts +342 -162
- package/api/stockImport.agravity.ts +138 -74
- package/api/structureImport.agravity.ts +68 -25
- package/api/translationManagement.agravity.ts +357 -206
- package/api/webAppData.agravity.ts +278 -88
- package/api/widgetLayoutManagement.agravity.ts +131 -47
- package/api/wordpressManagement.agravity.ts +152 -108
- package/api/workspaceManagement.agravity.ts +456 -197
- package/api.module.ts +0 -40
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.agravity.ts +3 -4
- package/model/agravityInfoResponse.agravity.ts +3 -4
- package/model/agravityUser.agravity.ts +16 -17
- package/model/agravityUserDto.agravity.ts +3 -4
- package/model/agravityVersion.agravity.ts +8 -9
- package/model/allWebAppData.agravity.ts +4 -5
- package/model/apiKeyResponse.agravity.ts +2 -3
- package/model/appConfigTableEntity.agravity.ts +8 -9
- package/model/artificialIntelligenceGroup.agravity.ts +3 -4
- package/model/asset.agravity.ts +22 -23
- package/model/assetAvailability.agravity.ts +1 -2
- package/model/assetBlob.agravity.ts +27 -28
- package/model/assetBulkUpdate.agravity.ts +2 -3
- package/model/assetCollectionLink.agravity.ts +2 -3
- package/model/assetIconRule.agravity.ts +17 -18
- package/model/assetIdFormat.agravity.ts +3 -4
- package/model/assetPageResult.agravity.ts +4 -5
- package/model/assetTextContent.agravity.ts +2 -3
- package/model/assetsOperationBody.agravity.ts +3 -4
- package/model/azSearchOptions.agravity.ts +8 -9
- package/model/azureIdentity.agravity.ts +4 -5
- package/model/blobInfoObj.agravity.ts +0 -1
- package/model/collTypeItem.agravity.ts +16 -17
- package/model/collTypeItemBlueprint.agravity.ts +12 -13
- package/model/collection.agravity.ts +15 -16
- package/model/collectionType.agravity.ts +14 -15
- package/model/collectionUDL.agravity.ts +4 -5
- package/model/collectionUDLListEntity.agravity.ts +9 -10
- package/model/collectionUDLReference.agravity.ts +3 -4
- package/model/comment.agravity.ts +9 -10
- package/model/createSftpUserResult.agravity.ts +2 -3
- package/model/dashboardWidget.agravity.ts +11 -12
- package/model/dataResult.agravity.ts +4 -5
- package/model/deletedEntities.agravity.ts +4 -5
- package/model/distZipResponse.agravity.ts +3 -4
- package/model/downloadFormat.agravity.ts +18 -16
- package/model/downloadObject.agravity.ts +16 -16
- package/model/downloadZipRequest.agravity.ts +9 -10
- package/model/dynamicImageOperation.agravity.ts +2 -3
- package/model/emailAddress.agravity.ts +2 -3
- package/model/entityId.agravity.ts +1 -2
- package/model/entityIdName.agravity.ts +3 -4
- package/model/entityTranslations.agravity.ts +2 -3
- package/model/excelExportTableEntity.agravity.ts +5 -5
- package/model/frontendAppConfig.agravity.ts +0 -1
- package/model/groupAllAppData.agravity.ts +5 -6
- package/model/historyEntry.agravity.ts +9 -10
- package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
- package/model/metadata.agravity.ts +3 -4
- package/model/models.ts +0 -1
- package/model/moveCollectionBody.agravity.ts +3 -4
- package/model/permissionChange.agravity.ts +1 -2
- package/model/permissionEntity.agravity.ts +1 -2
- package/model/permissionSetting.agravity.ts +8 -9
- package/model/portal.agravity.ts +18 -20
- package/model/portalLinks.agravity.ts +3 -4
- package/model/portalTheme.agravity.ts +6 -7
- package/model/portalZipRequest.agravity.ts +14 -15
- package/model/publishEntity.agravity.ts +9 -10
- package/model/publishedAsset.agravity.ts +12 -13
- package/model/quickShare.agravity.ts +12 -13
- package/model/quickShareFull.agravity.ts +15 -16
- package/model/sasToken.agravity.ts +6 -7
- package/model/savedSearch.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.agravity.ts +2 -3
- package/model/searchAdminStatistics.agravity.ts +2 -3
- package/model/searchAdminStatus.agravity.ts +4 -5
- package/model/searchFacet.agravity.ts +2 -3
- package/model/searchFacetEntity.agravity.ts +2 -3
- package/model/searchResult.agravity.ts +3 -4
- package/model/searchableItem.agravity.ts +3 -4
- package/model/secureUploadEntity.agravity.ts +10 -11
- package/model/sharedAllowedFormat.agravity.ts +2 -3
- package/model/sharedAsset.agravity.ts +5 -6
- package/model/sharedCollection.agravity.ts +15 -16
- package/model/sharedCollectionFull.agravity.ts +18 -19
- package/model/signalRConnectionInfo.agravity.ts +0 -1
- package/model/simpleAsset.agravity.ts +10 -11
- package/model/staticDefinedList.agravity.ts +12 -13
- package/model/translation.agravity.ts +2 -3
- package/model/translationRequest.agravity.ts +3 -4
- package/model/uiTutorials.agravity.ts +0 -1
- package/model/versionEntity.agravity.ts +9 -10
- package/model/versionedAsset.agravity.ts +5 -6
- package/model/whereParam.agravity.ts +0 -1
- package/model/widgetLayout.agravity.ts +8 -9
- package/model/widgetProperties.agravity.ts +6 -7
- package/model/workspace.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- package/model/portalLanguages.agravity.ts +0 -16
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Agravity OpenAPI Documentation - Private Functions
|
|
3
3
|
* <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.3.1
|
|
6
5
|
* Contact: office@agravity.io
|
|
7
6
|
*
|
|
8
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,16 +11,54 @@
|
|
|
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 { DashboardWidget } from '../model/dashboardWidget.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 HttpDashboardWidgetsCreateRequestParams {
|
|
28
|
+
/** The dashboard widget to create. */
|
|
29
|
+
dashboardWidget: DashboardWidget;
|
|
30
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
31
|
+
acceptLanguage?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface HttpDashboardWidgetsDeleteByIdRequestParams {
|
|
35
|
+
/** The ID of the dashboard widget. */
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface HttpDashboardWidgetsGetAllRequestParams {
|
|
40
|
+
/** If widgetdata should be populated. */
|
|
41
|
+
populate?: boolean;
|
|
42
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
43
|
+
acceptLanguage?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface HttpDashboardWidgetsGetByIdRequestParams {
|
|
47
|
+
/** The ID of the dashboard widget. */
|
|
48
|
+
id: string;
|
|
49
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
50
|
+
acceptLanguage?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface HttpDashboardWidgetsUpdateByIdRequestParams {
|
|
54
|
+
/** The ID of the dashboard widget. */
|
|
55
|
+
id: string;
|
|
56
|
+
/** Body has to be a valid dashboard widget item. */
|
|
57
|
+
dashboardWidget: DashboardWidget;
|
|
58
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
59
|
+
acceptLanguage?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
25
62
|
@Injectable({
|
|
26
63
|
providedIn: 'root'
|
|
27
64
|
})
|
|
@@ -33,13 +70,18 @@ export class DashboardWidgetManagementService {
|
|
|
33
70
|
|
|
34
71
|
constructor(
|
|
35
72
|
protected httpClient: HttpClient,
|
|
36
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
73
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
37
74
|
@Optional() configuration: AgravityConfiguration
|
|
38
75
|
) {
|
|
39
76
|
if (configuration) {
|
|
40
77
|
this.configuration = configuration;
|
|
41
78
|
}
|
|
42
79
|
if (typeof this.configuration.basePath !== 'string') {
|
|
80
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
81
|
+
if (firstBasePath != undefined) {
|
|
82
|
+
basePath = firstBasePath;
|
|
83
|
+
}
|
|
84
|
+
|
|
43
85
|
if (typeof basePath !== 'string') {
|
|
44
86
|
basePath = this.basePath;
|
|
45
87
|
}
|
|
@@ -48,6 +90,7 @@ export class DashboardWidgetManagementService {
|
|
|
48
90
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
91
|
}
|
|
50
92
|
|
|
93
|
+
// @ts-ignore
|
|
51
94
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
52
95
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
53
96
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -67,7 +110,7 @@ export class DashboardWidgetManagementService {
|
|
|
67
110
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
68
111
|
} else if (value instanceof Date) {
|
|
69
112
|
if (key != null) {
|
|
70
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
113
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
71
114
|
} else {
|
|
72
115
|
throw Error('key may not be null if value is Date');
|
|
73
116
|
}
|
|
@@ -84,299 +127,474 @@ export class DashboardWidgetManagementService {
|
|
|
84
127
|
|
|
85
128
|
/**
|
|
86
129
|
* This endpoint creates a dashboard widget in database.
|
|
87
|
-
* @param
|
|
130
|
+
* @param requestParameters
|
|
88
131
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
89
132
|
* @param reportProgress flag to report request and response progress.
|
|
90
133
|
*/
|
|
91
|
-
public httpDashboardWidgetsCreate(dashboardWidget: DashboardWidget, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<DashboardWidget>;
|
|
92
134
|
public httpDashboardWidgetsCreate(
|
|
93
|
-
|
|
135
|
+
requestParameters?: HttpDashboardWidgetsCreateRequestParams,
|
|
136
|
+
observe?: 'body',
|
|
137
|
+
reportProgress?: boolean,
|
|
138
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
139
|
+
): Observable<DashboardWidget>;
|
|
140
|
+
public httpDashboardWidgetsCreate(
|
|
141
|
+
requestParameters?: HttpDashboardWidgetsCreateRequestParams,
|
|
94
142
|
observe?: 'response',
|
|
95
143
|
reportProgress?: boolean,
|
|
96
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
144
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
97
145
|
): Observable<HttpResponse<DashboardWidget>>;
|
|
98
146
|
public httpDashboardWidgetsCreate(
|
|
99
|
-
|
|
147
|
+
requestParameters?: HttpDashboardWidgetsCreateRequestParams,
|
|
100
148
|
observe?: 'events',
|
|
101
149
|
reportProgress?: boolean,
|
|
102
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
150
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
103
151
|
): Observable<HttpEvent<DashboardWidget>>;
|
|
104
|
-
public httpDashboardWidgetsCreate(
|
|
152
|
+
public httpDashboardWidgetsCreate(
|
|
153
|
+
requestParameters?: HttpDashboardWidgetsCreateRequestParams,
|
|
154
|
+
observe: any = 'body',
|
|
155
|
+
reportProgress: boolean = false,
|
|
156
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
157
|
+
): Observable<any> {
|
|
158
|
+
const dashboardWidget = requestParameters?.dashboardWidget;
|
|
105
159
|
if (dashboardWidget === null || dashboardWidget === undefined) {
|
|
106
160
|
throw new Error('Required parameter dashboardWidget was null or undefined when calling httpDashboardWidgetsCreate.');
|
|
107
161
|
}
|
|
162
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
108
163
|
|
|
109
|
-
let
|
|
164
|
+
let localVarHeaders = this.defaultHeaders;
|
|
165
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
166
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
167
|
+
}
|
|
110
168
|
|
|
111
|
-
let
|
|
169
|
+
let localVarCredential: string | undefined;
|
|
112
170
|
// authentication (msal_auth) required
|
|
113
|
-
|
|
114
|
-
if (
|
|
115
|
-
|
|
171
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
172
|
+
if (localVarCredential) {
|
|
173
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
116
174
|
}
|
|
117
175
|
|
|
118
|
-
let
|
|
119
|
-
if (
|
|
176
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
177
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
120
178
|
// to determine the Accept header
|
|
121
179
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
122
|
-
|
|
180
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
123
181
|
}
|
|
124
|
-
if (
|
|
125
|
-
|
|
182
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
183
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
187
|
+
if (localVarHttpContext === undefined) {
|
|
188
|
+
localVarHttpContext = new HttpContext();
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
192
|
+
if (localVarTransferCache === undefined) {
|
|
193
|
+
localVarTransferCache = true;
|
|
126
194
|
}
|
|
127
195
|
|
|
128
196
|
// to determine the Content-Type header
|
|
129
197
|
const consumes: string[] = ['application/json'];
|
|
130
198
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
131
199
|
if (httpContentTypeSelected !== undefined) {
|
|
132
|
-
|
|
200
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
133
201
|
}
|
|
134
202
|
|
|
135
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
136
|
-
if (
|
|
137
|
-
|
|
203
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
204
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
205
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
206
|
+
responseType_ = 'text';
|
|
207
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
208
|
+
responseType_ = 'json';
|
|
209
|
+
} else {
|
|
210
|
+
responseType_ = 'blob';
|
|
211
|
+
}
|
|
138
212
|
}
|
|
139
213
|
|
|
140
|
-
|
|
214
|
+
let localVarPath = `/dashboard/widgets`;
|
|
215
|
+
return this.httpClient.request<DashboardWidget>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
216
|
+
context: localVarHttpContext,
|
|
217
|
+
body: dashboardWidget,
|
|
141
218
|
responseType: <any>responseType_,
|
|
142
219
|
withCredentials: this.configuration.withCredentials,
|
|
143
|
-
headers:
|
|
220
|
+
headers: localVarHeaders,
|
|
144
221
|
observe: observe,
|
|
222
|
+
transferCache: localVarTransferCache,
|
|
145
223
|
reportProgress: reportProgress
|
|
146
224
|
});
|
|
147
225
|
}
|
|
148
226
|
|
|
149
227
|
/**
|
|
150
228
|
* This endpoint deletes a single dashboard widget.
|
|
151
|
-
* @param
|
|
229
|
+
* @param requestParameters
|
|
152
230
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
153
231
|
* @param reportProgress flag to report request and response progress.
|
|
154
232
|
*/
|
|
155
|
-
public httpDashboardWidgetsDeleteById(
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
233
|
+
public httpDashboardWidgetsDeleteById(
|
|
234
|
+
requestParameters?: HttpDashboardWidgetsDeleteByIdRequestParams,
|
|
235
|
+
observe?: 'body',
|
|
236
|
+
reportProgress?: boolean,
|
|
237
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
238
|
+
): Observable<any>;
|
|
239
|
+
public httpDashboardWidgetsDeleteById(
|
|
240
|
+
requestParameters?: HttpDashboardWidgetsDeleteByIdRequestParams,
|
|
241
|
+
observe?: 'response',
|
|
242
|
+
reportProgress?: boolean,
|
|
243
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
244
|
+
): Observable<HttpResponse<any>>;
|
|
245
|
+
public httpDashboardWidgetsDeleteById(
|
|
246
|
+
requestParameters?: HttpDashboardWidgetsDeleteByIdRequestParams,
|
|
247
|
+
observe?: 'events',
|
|
248
|
+
reportProgress?: boolean,
|
|
249
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
250
|
+
): Observable<HttpEvent<any>>;
|
|
251
|
+
public httpDashboardWidgetsDeleteById(
|
|
252
|
+
requestParameters?: HttpDashboardWidgetsDeleteByIdRequestParams,
|
|
253
|
+
observe: any = 'body',
|
|
254
|
+
reportProgress: boolean = false,
|
|
255
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
256
|
+
): Observable<any> {
|
|
257
|
+
const id = requestParameters?.id;
|
|
159
258
|
if (id === null || id === undefined) {
|
|
160
259
|
throw new Error('Required parameter id was null or undefined when calling httpDashboardWidgetsDeleteById.');
|
|
161
260
|
}
|
|
162
261
|
|
|
163
|
-
let
|
|
262
|
+
let localVarHeaders = this.defaultHeaders;
|
|
164
263
|
|
|
165
|
-
let
|
|
264
|
+
let localVarCredential: string | undefined;
|
|
166
265
|
// authentication (msal_auth) required
|
|
167
|
-
|
|
168
|
-
if (
|
|
169
|
-
|
|
266
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
267
|
+
if (localVarCredential) {
|
|
268
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
170
269
|
}
|
|
171
270
|
|
|
172
|
-
let
|
|
173
|
-
if (
|
|
271
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
272
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
174
273
|
// to determine the Accept header
|
|
175
274
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
176
|
-
|
|
275
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
276
|
+
}
|
|
277
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
278
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
177
279
|
}
|
|
178
|
-
|
|
179
|
-
|
|
280
|
+
|
|
281
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
282
|
+
if (localVarHttpContext === undefined) {
|
|
283
|
+
localVarHttpContext = new HttpContext();
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
287
|
+
if (localVarTransferCache === undefined) {
|
|
288
|
+
localVarTransferCache = true;
|
|
180
289
|
}
|
|
181
290
|
|
|
182
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
183
|
-
if (
|
|
184
|
-
|
|
291
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
292
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
293
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
294
|
+
responseType_ = 'text';
|
|
295
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
296
|
+
responseType_ = 'json';
|
|
297
|
+
} else {
|
|
298
|
+
responseType_ = 'blob';
|
|
299
|
+
}
|
|
185
300
|
}
|
|
186
301
|
|
|
187
|
-
|
|
302
|
+
let localVarPath = `/dashboard/widgets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
303
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
304
|
+
context: localVarHttpContext,
|
|
188
305
|
responseType: <any>responseType_,
|
|
189
306
|
withCredentials: this.configuration.withCredentials,
|
|
190
|
-
headers:
|
|
307
|
+
headers: localVarHeaders,
|
|
191
308
|
observe: observe,
|
|
309
|
+
transferCache: localVarTransferCache,
|
|
192
310
|
reportProgress: reportProgress
|
|
193
311
|
});
|
|
194
312
|
}
|
|
195
313
|
|
|
196
314
|
/**
|
|
197
315
|
* This endpoint lists all dashboard widgets in database.
|
|
198
|
-
* @param
|
|
316
|
+
* @param requestParameters
|
|
199
317
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
200
318
|
* @param reportProgress flag to report request and response progress.
|
|
201
319
|
*/
|
|
202
|
-
public httpDashboardWidgetsGetAll(populate?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<DashboardWidget>>;
|
|
203
320
|
public httpDashboardWidgetsGetAll(
|
|
204
|
-
|
|
321
|
+
requestParameters?: HttpDashboardWidgetsGetAllRequestParams,
|
|
322
|
+
observe?: 'body',
|
|
323
|
+
reportProgress?: boolean,
|
|
324
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
325
|
+
): Observable<Array<DashboardWidget>>;
|
|
326
|
+
public httpDashboardWidgetsGetAll(
|
|
327
|
+
requestParameters?: HttpDashboardWidgetsGetAllRequestParams,
|
|
205
328
|
observe?: 'response',
|
|
206
329
|
reportProgress?: boolean,
|
|
207
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
330
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
208
331
|
): Observable<HttpResponse<Array<DashboardWidget>>>;
|
|
209
332
|
public httpDashboardWidgetsGetAll(
|
|
210
|
-
|
|
333
|
+
requestParameters?: HttpDashboardWidgetsGetAllRequestParams,
|
|
211
334
|
observe?: 'events',
|
|
212
335
|
reportProgress?: boolean,
|
|
213
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
336
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
214
337
|
): Observable<HttpEvent<Array<DashboardWidget>>>;
|
|
215
|
-
public httpDashboardWidgetsGetAll(
|
|
216
|
-
|
|
338
|
+
public httpDashboardWidgetsGetAll(
|
|
339
|
+
requestParameters?: HttpDashboardWidgetsGetAllRequestParams,
|
|
340
|
+
observe: any = 'body',
|
|
341
|
+
reportProgress: boolean = false,
|
|
342
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
343
|
+
): Observable<any> {
|
|
344
|
+
const populate = requestParameters?.populate;
|
|
345
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
346
|
+
|
|
347
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
217
348
|
if (populate !== undefined && populate !== null) {
|
|
218
|
-
|
|
349
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>populate, 'populate');
|
|
219
350
|
}
|
|
220
351
|
|
|
221
|
-
let
|
|
352
|
+
let localVarHeaders = this.defaultHeaders;
|
|
353
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
354
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
355
|
+
}
|
|
222
356
|
|
|
223
|
-
let
|
|
357
|
+
let localVarCredential: string | undefined;
|
|
224
358
|
// authentication (msal_auth) required
|
|
225
|
-
|
|
226
|
-
if (
|
|
227
|
-
|
|
359
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
360
|
+
if (localVarCredential) {
|
|
361
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
228
362
|
}
|
|
229
363
|
|
|
230
|
-
let
|
|
231
|
-
if (
|
|
364
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
365
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
232
366
|
// to determine the Accept header
|
|
233
367
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
234
|
-
|
|
368
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
235
369
|
}
|
|
236
|
-
if (
|
|
237
|
-
|
|
370
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
371
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
375
|
+
if (localVarHttpContext === undefined) {
|
|
376
|
+
localVarHttpContext = new HttpContext();
|
|
238
377
|
}
|
|
239
378
|
|
|
240
|
-
let
|
|
241
|
-
if (
|
|
242
|
-
|
|
379
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
380
|
+
if (localVarTransferCache === undefined) {
|
|
381
|
+
localVarTransferCache = true;
|
|
243
382
|
}
|
|
244
383
|
|
|
245
|
-
|
|
246
|
-
|
|
384
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
385
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
386
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
387
|
+
responseType_ = 'text';
|
|
388
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
389
|
+
responseType_ = 'json';
|
|
390
|
+
} else {
|
|
391
|
+
responseType_ = 'blob';
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
let localVarPath = `/dashboard/widgets`;
|
|
396
|
+
return this.httpClient.request<Array<DashboardWidget>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
397
|
+
context: localVarHttpContext,
|
|
398
|
+
params: localVarQueryParameters,
|
|
247
399
|
responseType: <any>responseType_,
|
|
248
400
|
withCredentials: this.configuration.withCredentials,
|
|
249
|
-
headers:
|
|
401
|
+
headers: localVarHeaders,
|
|
250
402
|
observe: observe,
|
|
403
|
+
transferCache: localVarTransferCache,
|
|
251
404
|
reportProgress: reportProgress
|
|
252
405
|
});
|
|
253
406
|
}
|
|
254
407
|
|
|
255
408
|
/**
|
|
256
409
|
* This endpoint gets a dashboard widget from database.
|
|
257
|
-
* @param
|
|
410
|
+
* @param requestParameters
|
|
258
411
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
259
412
|
* @param reportProgress flag to report request and response progress.
|
|
260
413
|
*/
|
|
261
|
-
public httpDashboardWidgetsGetById(
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
414
|
+
public httpDashboardWidgetsGetById(
|
|
415
|
+
requestParameters?: HttpDashboardWidgetsGetByIdRequestParams,
|
|
416
|
+
observe?: 'body',
|
|
417
|
+
reportProgress?: boolean,
|
|
418
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
419
|
+
): Observable<DashboardWidget>;
|
|
420
|
+
public httpDashboardWidgetsGetById(
|
|
421
|
+
requestParameters?: HttpDashboardWidgetsGetByIdRequestParams,
|
|
422
|
+
observe?: 'response',
|
|
423
|
+
reportProgress?: boolean,
|
|
424
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
425
|
+
): Observable<HttpResponse<DashboardWidget>>;
|
|
426
|
+
public httpDashboardWidgetsGetById(
|
|
427
|
+
requestParameters?: HttpDashboardWidgetsGetByIdRequestParams,
|
|
428
|
+
observe?: 'events',
|
|
429
|
+
reportProgress?: boolean,
|
|
430
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
431
|
+
): Observable<HttpEvent<DashboardWidget>>;
|
|
432
|
+
public httpDashboardWidgetsGetById(
|
|
433
|
+
requestParameters?: HttpDashboardWidgetsGetByIdRequestParams,
|
|
434
|
+
observe: any = 'body',
|
|
435
|
+
reportProgress: boolean = false,
|
|
436
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
437
|
+
): Observable<any> {
|
|
438
|
+
const id = requestParameters?.id;
|
|
265
439
|
if (id === null || id === undefined) {
|
|
266
440
|
throw new Error('Required parameter id was null or undefined when calling httpDashboardWidgetsGetById.');
|
|
267
441
|
}
|
|
442
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
268
443
|
|
|
269
|
-
let
|
|
444
|
+
let localVarHeaders = this.defaultHeaders;
|
|
445
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
446
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
447
|
+
}
|
|
270
448
|
|
|
271
|
-
let
|
|
449
|
+
let localVarCredential: string | undefined;
|
|
272
450
|
// authentication (msal_auth) required
|
|
273
|
-
|
|
274
|
-
if (
|
|
275
|
-
|
|
451
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
452
|
+
if (localVarCredential) {
|
|
453
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
276
454
|
}
|
|
277
455
|
|
|
278
|
-
let
|
|
279
|
-
if (
|
|
456
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
457
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
280
458
|
// to determine the Accept header
|
|
281
459
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
282
|
-
|
|
460
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
461
|
+
}
|
|
462
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
463
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
467
|
+
if (localVarHttpContext === undefined) {
|
|
468
|
+
localVarHttpContext = new HttpContext();
|
|
283
469
|
}
|
|
284
|
-
|
|
285
|
-
|
|
470
|
+
|
|
471
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
472
|
+
if (localVarTransferCache === undefined) {
|
|
473
|
+
localVarTransferCache = true;
|
|
286
474
|
}
|
|
287
475
|
|
|
288
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
289
|
-
if (
|
|
290
|
-
|
|
476
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
477
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
478
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
479
|
+
responseType_ = 'text';
|
|
480
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
481
|
+
responseType_ = 'json';
|
|
482
|
+
} else {
|
|
483
|
+
responseType_ = 'blob';
|
|
484
|
+
}
|
|
291
485
|
}
|
|
292
486
|
|
|
293
|
-
|
|
487
|
+
let localVarPath = `/dashboard/widgets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
488
|
+
return this.httpClient.request<DashboardWidget>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
489
|
+
context: localVarHttpContext,
|
|
294
490
|
responseType: <any>responseType_,
|
|
295
491
|
withCredentials: this.configuration.withCredentials,
|
|
296
|
-
headers:
|
|
492
|
+
headers: localVarHeaders,
|
|
297
493
|
observe: observe,
|
|
494
|
+
transferCache: localVarTransferCache,
|
|
298
495
|
reportProgress: reportProgress
|
|
299
496
|
});
|
|
300
497
|
}
|
|
301
498
|
|
|
302
499
|
/**
|
|
303
500
|
* Updates a dashboard widget in database.
|
|
304
|
-
* @param
|
|
305
|
-
* @param dashboardWidget Body has to be a valid dashboard widget item.
|
|
501
|
+
* @param requestParameters
|
|
306
502
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
307
503
|
* @param reportProgress flag to report request and response progress.
|
|
308
504
|
*/
|
|
309
505
|
public httpDashboardWidgetsUpdateById(
|
|
310
|
-
|
|
311
|
-
dashboardWidget: DashboardWidget,
|
|
506
|
+
requestParameters?: HttpDashboardWidgetsUpdateByIdRequestParams,
|
|
312
507
|
observe?: 'body',
|
|
313
508
|
reportProgress?: boolean,
|
|
314
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
509
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
315
510
|
): Observable<DashboardWidget>;
|
|
316
511
|
public httpDashboardWidgetsUpdateById(
|
|
317
|
-
|
|
318
|
-
dashboardWidget: DashboardWidget,
|
|
512
|
+
requestParameters?: HttpDashboardWidgetsUpdateByIdRequestParams,
|
|
319
513
|
observe?: 'response',
|
|
320
514
|
reportProgress?: boolean,
|
|
321
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
515
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
322
516
|
): Observable<HttpResponse<DashboardWidget>>;
|
|
323
517
|
public httpDashboardWidgetsUpdateById(
|
|
324
|
-
|
|
325
|
-
dashboardWidget: DashboardWidget,
|
|
518
|
+
requestParameters?: HttpDashboardWidgetsUpdateByIdRequestParams,
|
|
326
519
|
observe?: 'events',
|
|
327
520
|
reportProgress?: boolean,
|
|
328
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
521
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
329
522
|
): Observable<HttpEvent<DashboardWidget>>;
|
|
330
523
|
public httpDashboardWidgetsUpdateById(
|
|
331
|
-
|
|
332
|
-
dashboardWidget: DashboardWidget,
|
|
524
|
+
requestParameters?: HttpDashboardWidgetsUpdateByIdRequestParams,
|
|
333
525
|
observe: any = 'body',
|
|
334
526
|
reportProgress: boolean = false,
|
|
335
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
527
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
336
528
|
): Observable<any> {
|
|
529
|
+
const id = requestParameters?.id;
|
|
337
530
|
if (id === null || id === undefined) {
|
|
338
531
|
throw new Error('Required parameter id was null or undefined when calling httpDashboardWidgetsUpdateById.');
|
|
339
532
|
}
|
|
533
|
+
const dashboardWidget = requestParameters?.dashboardWidget;
|
|
340
534
|
if (dashboardWidget === null || dashboardWidget === undefined) {
|
|
341
535
|
throw new Error('Required parameter dashboardWidget was null or undefined when calling httpDashboardWidgetsUpdateById.');
|
|
342
536
|
}
|
|
537
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
343
538
|
|
|
344
|
-
let
|
|
539
|
+
let localVarHeaders = this.defaultHeaders;
|
|
540
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
541
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
542
|
+
}
|
|
345
543
|
|
|
346
|
-
let
|
|
544
|
+
let localVarCredential: string | undefined;
|
|
347
545
|
// authentication (msal_auth) required
|
|
348
|
-
|
|
349
|
-
if (
|
|
350
|
-
|
|
546
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
547
|
+
if (localVarCredential) {
|
|
548
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
351
549
|
}
|
|
352
550
|
|
|
353
|
-
let
|
|
354
|
-
if (
|
|
551
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
552
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
355
553
|
// to determine the Accept header
|
|
356
554
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
357
|
-
|
|
555
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
556
|
+
}
|
|
557
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
558
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
358
559
|
}
|
|
359
|
-
|
|
360
|
-
|
|
560
|
+
|
|
561
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
562
|
+
if (localVarHttpContext === undefined) {
|
|
563
|
+
localVarHttpContext = new HttpContext();
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
567
|
+
if (localVarTransferCache === undefined) {
|
|
568
|
+
localVarTransferCache = true;
|
|
361
569
|
}
|
|
362
570
|
|
|
363
571
|
// to determine the Content-Type header
|
|
364
572
|
const consumes: string[] = ['application/json'];
|
|
365
573
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
366
574
|
if (httpContentTypeSelected !== undefined) {
|
|
367
|
-
|
|
575
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
368
576
|
}
|
|
369
577
|
|
|
370
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
371
|
-
if (
|
|
372
|
-
|
|
578
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
579
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
580
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
581
|
+
responseType_ = 'text';
|
|
582
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
583
|
+
responseType_ = 'json';
|
|
584
|
+
} else {
|
|
585
|
+
responseType_ = 'blob';
|
|
586
|
+
}
|
|
373
587
|
}
|
|
374
588
|
|
|
375
|
-
|
|
589
|
+
let localVarPath = `/dashboard/widgets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
590
|
+
return this.httpClient.request<DashboardWidget>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
591
|
+
context: localVarHttpContext,
|
|
592
|
+
body: dashboardWidget,
|
|
376
593
|
responseType: <any>responseType_,
|
|
377
594
|
withCredentials: this.configuration.withCredentials,
|
|
378
|
-
headers:
|
|
595
|
+
headers: localVarHeaders,
|
|
379
596
|
observe: observe,
|
|
597
|
+
transferCache: localVarTransferCache,
|
|
380
598
|
reportProgress: reportProgress
|
|
381
599
|
});
|
|
382
600
|
}
|