@agravity/private 9.3.0 → 10.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 +11 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +97 -142
- package/api/aIOperations.agravity.ts +878 -0
- package/api/api.ts +9 -3
- package/api/assetIconRuleManagement.agravity.ts +59 -190
- package/api/assetManagement.agravity.ts +118 -355
- package/api/assetOperations.agravity.ts +290 -917
- package/api/assetPublishing.agravity.ts +107 -288
- package/api/assetRelationManagement.agravity.ts +61 -196
- package/api/assetRelationTypeManagement.agravity.ts +70 -215
- package/api/assetVersioning.agravity.ts +105 -300
- package/api/authenticationManagement.agravity.ts +137 -392
- package/api/collectionManagement.agravity.ts +217 -376
- package/api/collectionShareManagement.agravity.ts +59 -190
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +47 -162
- package/api/collectionTypeManagement.agravity.ts +91 -270
- package/api/commentsManagement.agravity.ts +48 -157
- package/api/configurationManagement.agravity.ts +53 -180
- package/api/dashboardWidgetManagement.agravity.ts +56 -181
- package/api/dataImportExportManagement.agravity.ts +58 -203
- package/api/downloadFormatManagement.agravity.ts +70 -215
- package/api/downloadZip.agravity.ts +37 -132
- package/api/generalManagement.agravity.ts +64 -229
- package/api/helperTools.agravity.ts +214 -404
- package/api/historyEntryManagement.agravity.ts +16 -85
- package/api/iccProfileManagement.agravity.ts +11 -78
- package/api/listBlobs.agravity.ts +18 -99
- package/api/listQueues.agravity.ts +11 -78
- package/api/listTables.agravity.ts +11 -78
- package/api/notificationManagement.agravity.ts +267 -0
- package/api/permissionsManagement.agravity.ts +44 -153
- package/api/portalManagement.agravity.ts +88 -253
- package/api/portalsUsersManagement.agravity.ts +55 -178
- package/api/publishing.agravity.ts +13 -84
- package/api/quickshareManagement.agravity.ts +67 -214
- package/api/savedSearchManagement.agravity.ts +37 -140
- package/api/searchManagement.agravity.ts +102 -327
- package/api/searchSettingsOperations.agravity.ts +187 -0
- package/api/secureUpload.agravity.ts +68 -209
- package/api/signalRConnectionManagement.agravity.ts +26 -109
- package/api/staticDefinedListManagement.agravity.ts +60 -193
- package/api/stockImport.agravity.ts +31 -122
- package/api/structureImport.agravity.ts +11 -78
- package/api/translationManagement.agravity.ts +86 -229
- package/api/webAppData.agravity.ts +48 -157
- package/api/widgetLayoutManagement.agravity.ts +22 -103
- package/api/wordpressManagement.agravity.ts +34 -131
- package/api/workspaceManagement.agravity.ts +77 -236
- package/api.base.service.ts +78 -0
- package/configuration.ts +33 -17
- package/index.ts +1 -0
- package/model/{aiGroupEntity.agravity.ts → aiAsset.agravity.ts} +2 -3
- package/model/aiFieldGeneration.agravity.ts +1 -5
- package/model/{aiGroup.agravity.ts → aiModelDeployment.agravity.ts} +6 -5
- package/model/aiSettings.agravity.ts +4 -3
- package/model/aiTypeSettings.agravity.ts +17 -0
- package/model/asset.agravity.ts +6 -6
- package/model/assetBlob.agravity.ts +15 -15
- package/model/assetIconRule.agravity.ts +1 -1
- package/model/assetRelationType.agravity.ts +1 -1
- package/model/azureIdentity.agravity.ts +7 -7
- package/model/collTypeItem.agravity.ts +1 -1
- package/model/collTypeItemBlueprint.agravity.ts +1 -1
- package/model/collection.agravity.ts +6 -6
- package/model/collectionType.agravity.ts +6 -6
- package/model/collectionUDL.agravity.ts +1 -1
- package/model/comment.agravity.ts +1 -0
- package/model/dashboardWidget.agravity.ts +1 -1
- package/model/downloadFormat.agravity.ts +1 -1
- package/model/downloadZipRequest.agravity.ts +6 -6
- package/model/downloadZipStatus.agravity.ts +6 -6
- package/model/entityIdName.agravity.ts +1 -1
- package/model/entityTranslations.agravity.ts +1 -1
- package/model/groupAllAppData.agravity.ts +1 -1
- package/model/historyEntry.agravity.ts +16 -30
- package/model/models.ts +5 -2
- package/model/notificationSettingDto.agravity.ts +18 -0
- package/model/permissionChange.agravity.ts +7 -7
- package/model/permissionEntity.agravity.ts +5 -5
- package/model/portalAuthentication.agravity.ts +7 -7
- package/model/portalTheme.agravity.ts +1 -1
- package/model/publishedAsset.agravity.ts +1 -1
- package/model/savedSearch.agravity.ts +1 -1
- package/model/searchSettings.agravity.ts +26 -0
- package/model/staticDefinedList.agravity.ts +1 -1
- package/model/uiTutorials.agravity.ts +4 -4
- package/model/whereParam.agravity.ts +17 -17
- package/model/workspace.agravity.ts +1 -1
- package/package.json +5 -4
- package/provide-api.ts +15 -0
- package/tsconfig.json +2 -0
- package/api/aISettingsManagement.agravity.ts +0 -264
|
@@ -22,6 +22,7 @@ import { DashboardWidget } from '../model/dashboardWidget.agravity';
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
24
|
import { AgravityConfiguration } from '../configuration';
|
|
25
|
+
import { BaseService } from '../api.base.service';
|
|
25
26
|
|
|
26
27
|
export interface HttpDashboardWidgetsCreateRequestParams {
|
|
27
28
|
/** The dashboard widget to create. */
|
|
@@ -61,67 +62,13 @@ export interface HttpDashboardWidgetsUpdateByIdRequestParams {
|
|
|
61
62
|
@Injectable({
|
|
62
63
|
providedIn: 'root'
|
|
63
64
|
})
|
|
64
|
-
export class DashboardWidgetManagementService {
|
|
65
|
-
protected basePath = 'http://localhost:7071/api';
|
|
66
|
-
public defaultHeaders = new HttpHeaders();
|
|
67
|
-
public configuration = new AgravityConfiguration();
|
|
68
|
-
public encoder: HttpParameterCodec;
|
|
69
|
-
|
|
65
|
+
export class DashboardWidgetManagementService extends BaseService {
|
|
70
66
|
constructor(
|
|
71
67
|
protected httpClient: HttpClient,
|
|
72
68
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
73
|
-
@Optional() configuration
|
|
69
|
+
@Optional() configuration?: AgravityConfiguration
|
|
74
70
|
) {
|
|
75
|
-
|
|
76
|
-
this.configuration = configuration;
|
|
77
|
-
}
|
|
78
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
79
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
80
|
-
if (firstBasePath != undefined) {
|
|
81
|
-
basePath = firstBasePath;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (typeof basePath !== 'string') {
|
|
85
|
-
basePath = this.basePath;
|
|
86
|
-
}
|
|
87
|
-
this.configuration.basePath = basePath;
|
|
88
|
-
}
|
|
89
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// @ts-ignore
|
|
93
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
94
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
95
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
96
|
-
} else {
|
|
97
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
98
|
-
}
|
|
99
|
-
return httpParams;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
103
|
-
if (value == null) {
|
|
104
|
-
return httpParams;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
if (typeof value === 'object') {
|
|
108
|
-
if (Array.isArray(value)) {
|
|
109
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
110
|
-
} else if (value instanceof Date) {
|
|
111
|
-
if (key != null) {
|
|
112
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
113
|
-
} else {
|
|
114
|
-
throw Error('key may not be null if value is Date');
|
|
115
|
-
}
|
|
116
|
-
} else {
|
|
117
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
118
|
-
}
|
|
119
|
-
} else if (key != null) {
|
|
120
|
-
httpParams = httpParams.append(key, value);
|
|
121
|
-
} else {
|
|
122
|
-
throw Error('key may not be null if value is not object or array');
|
|
123
|
-
}
|
|
124
|
-
return httpParams;
|
|
71
|
+
super(basePath, configuration);
|
|
125
72
|
}
|
|
126
73
|
|
|
127
74
|
/**
|
|
@@ -131,25 +78,25 @@ export class DashboardWidgetManagementService {
|
|
|
131
78
|
* @param reportProgress flag to report request and response progress.
|
|
132
79
|
*/
|
|
133
80
|
public httpDashboardWidgetsCreate(
|
|
134
|
-
requestParameters
|
|
81
|
+
requestParameters: HttpDashboardWidgetsCreateRequestParams,
|
|
135
82
|
observe?: 'body',
|
|
136
83
|
reportProgress?: boolean,
|
|
137
84
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
138
85
|
): Observable<DashboardWidget>;
|
|
139
86
|
public httpDashboardWidgetsCreate(
|
|
140
|
-
requestParameters
|
|
87
|
+
requestParameters: HttpDashboardWidgetsCreateRequestParams,
|
|
141
88
|
observe?: 'response',
|
|
142
89
|
reportProgress?: boolean,
|
|
143
90
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
144
91
|
): Observable<HttpResponse<DashboardWidget>>;
|
|
145
92
|
public httpDashboardWidgetsCreate(
|
|
146
|
-
requestParameters
|
|
93
|
+
requestParameters: HttpDashboardWidgetsCreateRequestParams,
|
|
147
94
|
observe?: 'events',
|
|
148
95
|
reportProgress?: boolean,
|
|
149
96
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
150
97
|
): Observable<HttpEvent<DashboardWidget>>;
|
|
151
98
|
public httpDashboardWidgetsCreate(
|
|
152
|
-
requestParameters
|
|
99
|
+
requestParameters: HttpDashboardWidgetsCreateRequestParams,
|
|
153
100
|
observe: any = 'body',
|
|
154
101
|
reportProgress: boolean = false,
|
|
155
102
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -165,32 +112,17 @@ export class DashboardWidgetManagementService {
|
|
|
165
112
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
166
113
|
}
|
|
167
114
|
|
|
168
|
-
let localVarCredential: string | undefined;
|
|
169
115
|
// authentication (msal_auth) required
|
|
170
|
-
|
|
171
|
-
if (localVarCredential) {
|
|
172
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
173
|
-
}
|
|
116
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
174
117
|
|
|
175
|
-
|
|
176
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
177
|
-
// to determine the Accept header
|
|
178
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
179
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
180
|
-
}
|
|
118
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
181
119
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
182
120
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
183
121
|
}
|
|
184
122
|
|
|
185
|
-
|
|
186
|
-
if (localVarHttpContext === undefined) {
|
|
187
|
-
localVarHttpContext = new HttpContext();
|
|
188
|
-
}
|
|
123
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
189
124
|
|
|
190
|
-
|
|
191
|
-
if (localVarTransferCache === undefined) {
|
|
192
|
-
localVarTransferCache = true;
|
|
193
|
-
}
|
|
125
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
194
126
|
|
|
195
127
|
// to determine the Content-Type header
|
|
196
128
|
const consumes: string[] = ['application/json'];
|
|
@@ -211,11 +143,12 @@ export class DashboardWidgetManagementService {
|
|
|
211
143
|
}
|
|
212
144
|
|
|
213
145
|
let localVarPath = `/dashboard/widgets`;
|
|
214
|
-
|
|
146
|
+
const { basePath, withCredentials } = this.configuration;
|
|
147
|
+
return this.httpClient.request<DashboardWidget>('post', `${basePath}${localVarPath}`, {
|
|
215
148
|
context: localVarHttpContext,
|
|
216
149
|
body: dashboardWidget,
|
|
217
150
|
responseType: <any>responseType_,
|
|
218
|
-
withCredentials:
|
|
151
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
219
152
|
headers: localVarHeaders,
|
|
220
153
|
observe: observe,
|
|
221
154
|
transferCache: localVarTransferCache,
|
|
@@ -230,25 +163,25 @@ export class DashboardWidgetManagementService {
|
|
|
230
163
|
* @param reportProgress flag to report request and response progress.
|
|
231
164
|
*/
|
|
232
165
|
public httpDashboardWidgetsDeleteById(
|
|
233
|
-
requestParameters
|
|
166
|
+
requestParameters: HttpDashboardWidgetsDeleteByIdRequestParams,
|
|
234
167
|
observe?: 'body',
|
|
235
168
|
reportProgress?: boolean,
|
|
236
169
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
237
170
|
): Observable<any>;
|
|
238
171
|
public httpDashboardWidgetsDeleteById(
|
|
239
|
-
requestParameters
|
|
172
|
+
requestParameters: HttpDashboardWidgetsDeleteByIdRequestParams,
|
|
240
173
|
observe?: 'response',
|
|
241
174
|
reportProgress?: boolean,
|
|
242
175
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
243
176
|
): Observable<HttpResponse<any>>;
|
|
244
177
|
public httpDashboardWidgetsDeleteById(
|
|
245
|
-
requestParameters
|
|
178
|
+
requestParameters: HttpDashboardWidgetsDeleteByIdRequestParams,
|
|
246
179
|
observe?: 'events',
|
|
247
180
|
reportProgress?: boolean,
|
|
248
181
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
249
182
|
): Observable<HttpEvent<any>>;
|
|
250
183
|
public httpDashboardWidgetsDeleteById(
|
|
251
|
-
requestParameters
|
|
184
|
+
requestParameters: HttpDashboardWidgetsDeleteByIdRequestParams,
|
|
252
185
|
observe: any = 'body',
|
|
253
186
|
reportProgress: boolean = false,
|
|
254
187
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -260,32 +193,17 @@ export class DashboardWidgetManagementService {
|
|
|
260
193
|
|
|
261
194
|
let localVarHeaders = this.defaultHeaders;
|
|
262
195
|
|
|
263
|
-
let localVarCredential: string | undefined;
|
|
264
196
|
// authentication (msal_auth) required
|
|
265
|
-
|
|
266
|
-
if (localVarCredential) {
|
|
267
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
268
|
-
}
|
|
197
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
269
198
|
|
|
270
|
-
|
|
271
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
272
|
-
// to determine the Accept header
|
|
273
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
274
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
275
|
-
}
|
|
199
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
276
200
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
277
201
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
278
202
|
}
|
|
279
203
|
|
|
280
|
-
|
|
281
|
-
if (localVarHttpContext === undefined) {
|
|
282
|
-
localVarHttpContext = new HttpContext();
|
|
283
|
-
}
|
|
204
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
284
205
|
|
|
285
|
-
|
|
286
|
-
if (localVarTransferCache === undefined) {
|
|
287
|
-
localVarTransferCache = true;
|
|
288
|
-
}
|
|
206
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
289
207
|
|
|
290
208
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
291
209
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -299,10 +217,11 @@ export class DashboardWidgetManagementService {
|
|
|
299
217
|
}
|
|
300
218
|
|
|
301
219
|
let localVarPath = `/dashboard/widgets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
302
|
-
|
|
220
|
+
const { basePath, withCredentials } = this.configuration;
|
|
221
|
+
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
|
|
303
222
|
context: localVarHttpContext,
|
|
304
223
|
responseType: <any>responseType_,
|
|
305
|
-
withCredentials:
|
|
224
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
306
225
|
headers: localVarHeaders,
|
|
307
226
|
observe: observe,
|
|
308
227
|
transferCache: localVarTransferCache,
|
|
@@ -344,41 +263,24 @@ export class DashboardWidgetManagementService {
|
|
|
344
263
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
345
264
|
|
|
346
265
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
347
|
-
|
|
348
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>populate, 'populate');
|
|
349
|
-
}
|
|
266
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>populate, 'populate');
|
|
350
267
|
|
|
351
268
|
let localVarHeaders = this.defaultHeaders;
|
|
352
269
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
353
270
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
354
271
|
}
|
|
355
272
|
|
|
356
|
-
let localVarCredential: string | undefined;
|
|
357
273
|
// authentication (msal_auth) required
|
|
358
|
-
|
|
359
|
-
if (localVarCredential) {
|
|
360
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
361
|
-
}
|
|
274
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
362
275
|
|
|
363
|
-
|
|
364
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
365
|
-
// to determine the Accept header
|
|
366
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
367
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
368
|
-
}
|
|
276
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
369
277
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
370
278
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
371
279
|
}
|
|
372
280
|
|
|
373
|
-
|
|
374
|
-
if (localVarHttpContext === undefined) {
|
|
375
|
-
localVarHttpContext = new HttpContext();
|
|
376
|
-
}
|
|
281
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
377
282
|
|
|
378
|
-
|
|
379
|
-
if (localVarTransferCache === undefined) {
|
|
380
|
-
localVarTransferCache = true;
|
|
381
|
-
}
|
|
283
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
382
284
|
|
|
383
285
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
384
286
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -392,11 +294,12 @@ export class DashboardWidgetManagementService {
|
|
|
392
294
|
}
|
|
393
295
|
|
|
394
296
|
let localVarPath = `/dashboard/widgets`;
|
|
395
|
-
|
|
297
|
+
const { basePath, withCredentials } = this.configuration;
|
|
298
|
+
return this.httpClient.request<Array<DashboardWidget>>('get', `${basePath}${localVarPath}`, {
|
|
396
299
|
context: localVarHttpContext,
|
|
397
300
|
params: localVarQueryParameters,
|
|
398
301
|
responseType: <any>responseType_,
|
|
399
|
-
withCredentials:
|
|
302
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
400
303
|
headers: localVarHeaders,
|
|
401
304
|
observe: observe,
|
|
402
305
|
transferCache: localVarTransferCache,
|
|
@@ -411,25 +314,25 @@ export class DashboardWidgetManagementService {
|
|
|
411
314
|
* @param reportProgress flag to report request and response progress.
|
|
412
315
|
*/
|
|
413
316
|
public httpDashboardWidgetsGetById(
|
|
414
|
-
requestParameters
|
|
317
|
+
requestParameters: HttpDashboardWidgetsGetByIdRequestParams,
|
|
415
318
|
observe?: 'body',
|
|
416
319
|
reportProgress?: boolean,
|
|
417
320
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
418
321
|
): Observable<DashboardWidget>;
|
|
419
322
|
public httpDashboardWidgetsGetById(
|
|
420
|
-
requestParameters
|
|
323
|
+
requestParameters: HttpDashboardWidgetsGetByIdRequestParams,
|
|
421
324
|
observe?: 'response',
|
|
422
325
|
reportProgress?: boolean,
|
|
423
326
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
424
327
|
): Observable<HttpResponse<DashboardWidget>>;
|
|
425
328
|
public httpDashboardWidgetsGetById(
|
|
426
|
-
requestParameters
|
|
329
|
+
requestParameters: HttpDashboardWidgetsGetByIdRequestParams,
|
|
427
330
|
observe?: 'events',
|
|
428
331
|
reportProgress?: boolean,
|
|
429
332
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
430
333
|
): Observable<HttpEvent<DashboardWidget>>;
|
|
431
334
|
public httpDashboardWidgetsGetById(
|
|
432
|
-
requestParameters
|
|
335
|
+
requestParameters: HttpDashboardWidgetsGetByIdRequestParams,
|
|
433
336
|
observe: any = 'body',
|
|
434
337
|
reportProgress: boolean = false,
|
|
435
338
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -445,32 +348,17 @@ export class DashboardWidgetManagementService {
|
|
|
445
348
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
446
349
|
}
|
|
447
350
|
|
|
448
|
-
let localVarCredential: string | undefined;
|
|
449
351
|
// authentication (msal_auth) required
|
|
450
|
-
|
|
451
|
-
if (localVarCredential) {
|
|
452
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
453
|
-
}
|
|
352
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
454
353
|
|
|
455
|
-
|
|
456
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
457
|
-
// to determine the Accept header
|
|
458
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
459
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
460
|
-
}
|
|
354
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
461
355
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
462
356
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
463
357
|
}
|
|
464
358
|
|
|
465
|
-
|
|
466
|
-
if (localVarHttpContext === undefined) {
|
|
467
|
-
localVarHttpContext = new HttpContext();
|
|
468
|
-
}
|
|
359
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
469
360
|
|
|
470
|
-
|
|
471
|
-
if (localVarTransferCache === undefined) {
|
|
472
|
-
localVarTransferCache = true;
|
|
473
|
-
}
|
|
361
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
474
362
|
|
|
475
363
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
476
364
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -484,10 +372,11 @@ export class DashboardWidgetManagementService {
|
|
|
484
372
|
}
|
|
485
373
|
|
|
486
374
|
let localVarPath = `/dashboard/widgets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
487
|
-
|
|
375
|
+
const { basePath, withCredentials } = this.configuration;
|
|
376
|
+
return this.httpClient.request<DashboardWidget>('get', `${basePath}${localVarPath}`, {
|
|
488
377
|
context: localVarHttpContext,
|
|
489
378
|
responseType: <any>responseType_,
|
|
490
|
-
withCredentials:
|
|
379
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
491
380
|
headers: localVarHeaders,
|
|
492
381
|
observe: observe,
|
|
493
382
|
transferCache: localVarTransferCache,
|
|
@@ -502,25 +391,25 @@ export class DashboardWidgetManagementService {
|
|
|
502
391
|
* @param reportProgress flag to report request and response progress.
|
|
503
392
|
*/
|
|
504
393
|
public httpDashboardWidgetsUpdateById(
|
|
505
|
-
requestParameters
|
|
394
|
+
requestParameters: HttpDashboardWidgetsUpdateByIdRequestParams,
|
|
506
395
|
observe?: 'body',
|
|
507
396
|
reportProgress?: boolean,
|
|
508
397
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
509
398
|
): Observable<DashboardWidget>;
|
|
510
399
|
public httpDashboardWidgetsUpdateById(
|
|
511
|
-
requestParameters
|
|
400
|
+
requestParameters: HttpDashboardWidgetsUpdateByIdRequestParams,
|
|
512
401
|
observe?: 'response',
|
|
513
402
|
reportProgress?: boolean,
|
|
514
403
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
515
404
|
): Observable<HttpResponse<DashboardWidget>>;
|
|
516
405
|
public httpDashboardWidgetsUpdateById(
|
|
517
|
-
requestParameters
|
|
406
|
+
requestParameters: HttpDashboardWidgetsUpdateByIdRequestParams,
|
|
518
407
|
observe?: 'events',
|
|
519
408
|
reportProgress?: boolean,
|
|
520
409
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
521
410
|
): Observable<HttpEvent<DashboardWidget>>;
|
|
522
411
|
public httpDashboardWidgetsUpdateById(
|
|
523
|
-
requestParameters
|
|
412
|
+
requestParameters: HttpDashboardWidgetsUpdateByIdRequestParams,
|
|
524
413
|
observe: any = 'body',
|
|
525
414
|
reportProgress: boolean = false,
|
|
526
415
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -540,32 +429,17 @@ export class DashboardWidgetManagementService {
|
|
|
540
429
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
541
430
|
}
|
|
542
431
|
|
|
543
|
-
let localVarCredential: string | undefined;
|
|
544
432
|
// authentication (msal_auth) required
|
|
545
|
-
|
|
546
|
-
if (localVarCredential) {
|
|
547
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
548
|
-
}
|
|
433
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
549
434
|
|
|
550
|
-
|
|
551
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
552
|
-
// to determine the Accept header
|
|
553
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
554
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
555
|
-
}
|
|
435
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
556
436
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
557
437
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
558
438
|
}
|
|
559
439
|
|
|
560
|
-
|
|
561
|
-
if (localVarHttpContext === undefined) {
|
|
562
|
-
localVarHttpContext = new HttpContext();
|
|
563
|
-
}
|
|
440
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
564
441
|
|
|
565
|
-
|
|
566
|
-
if (localVarTransferCache === undefined) {
|
|
567
|
-
localVarTransferCache = true;
|
|
568
|
-
}
|
|
442
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
569
443
|
|
|
570
444
|
// to determine the Content-Type header
|
|
571
445
|
const consumes: string[] = ['application/json'];
|
|
@@ -586,11 +460,12 @@ export class DashboardWidgetManagementService {
|
|
|
586
460
|
}
|
|
587
461
|
|
|
588
462
|
let localVarPath = `/dashboard/widgets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
589
|
-
|
|
463
|
+
const { basePath, withCredentials } = this.configuration;
|
|
464
|
+
return this.httpClient.request<DashboardWidget>('post', `${basePath}${localVarPath}`, {
|
|
590
465
|
context: localVarHttpContext,
|
|
591
466
|
body: dashboardWidget,
|
|
592
467
|
responseType: <any>responseType_,
|
|
593
|
-
withCredentials:
|
|
468
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
594
469
|
headers: localVarHeaders,
|
|
595
470
|
observe: observe,
|
|
596
471
|
transferCache: localVarTransferCache,
|