@agravity/private 9.4.0 → 10.0.1

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.
Files changed (92) hide show
  1. package/.openapi-generator/FILES +11 -3
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +97 -142
  4. package/api/aIOperations.agravity.ts +878 -0
  5. package/api/api.ts +9 -3
  6. package/api/assetIconRuleManagement.agravity.ts +59 -190
  7. package/api/assetManagement.agravity.ts +118 -355
  8. package/api/assetOperations.agravity.ts +290 -917
  9. package/api/assetPublishing.agravity.ts +107 -288
  10. package/api/assetRelationManagement.agravity.ts +61 -196
  11. package/api/assetRelationTypeManagement.agravity.ts +70 -215
  12. package/api/assetVersioning.agravity.ts +105 -300
  13. package/api/authenticationManagement.agravity.ts +137 -392
  14. package/api/collectionManagement.agravity.ts +217 -376
  15. package/api/collectionShareManagement.agravity.ts +59 -190
  16. package/api/collectionTypeItemBlueprintManagement.agravity.ts +47 -162
  17. package/api/collectionTypeManagement.agravity.ts +91 -270
  18. package/api/commentsManagement.agravity.ts +48 -157
  19. package/api/configurationManagement.agravity.ts +53 -180
  20. package/api/dashboardWidgetManagement.agravity.ts +56 -181
  21. package/api/dataImportExportManagement.agravity.ts +58 -203
  22. package/api/downloadFormatManagement.agravity.ts +70 -215
  23. package/api/downloadZip.agravity.ts +37 -132
  24. package/api/generalManagement.agravity.ts +64 -229
  25. package/api/helperTools.agravity.ts +214 -404
  26. package/api/historyEntryManagement.agravity.ts +16 -85
  27. package/api/iccProfileManagement.agravity.ts +11 -78
  28. package/api/listBlobs.agravity.ts +18 -99
  29. package/api/listQueues.agravity.ts +11 -78
  30. package/api/listTables.agravity.ts +11 -78
  31. package/api/notificationManagement.agravity.ts +267 -0
  32. package/api/permissionsManagement.agravity.ts +44 -153
  33. package/api/portalManagement.agravity.ts +88 -253
  34. package/api/portalsUsersManagement.agravity.ts +55 -178
  35. package/api/publishing.agravity.ts +13 -84
  36. package/api/quickshareManagement.agravity.ts +67 -214
  37. package/api/savedSearchManagement.agravity.ts +37 -140
  38. package/api/searchManagement.agravity.ts +102 -327
  39. package/api/searchSettingsOperations.agravity.ts +187 -0
  40. package/api/secureUpload.agravity.ts +68 -209
  41. package/api/signalRConnectionManagement.agravity.ts +26 -109
  42. package/api/staticDefinedListManagement.agravity.ts +60 -193
  43. package/api/stockImport.agravity.ts +31 -122
  44. package/api/structureImport.agravity.ts +11 -78
  45. package/api/translationManagement.agravity.ts +86 -229
  46. package/api/webAppData.agravity.ts +48 -157
  47. package/api/widgetLayoutManagement.agravity.ts +22 -103
  48. package/api/wordpressManagement.agravity.ts +34 -131
  49. package/api/workspaceManagement.agravity.ts +77 -236
  50. package/api.base.service.ts +78 -0
  51. package/configuration.ts +33 -17
  52. package/index.ts +1 -0
  53. package/model/{aiGroupEntity.agravity.ts → aiAsset.agravity.ts} +2 -3
  54. package/model/aiFieldGeneration.agravity.ts +1 -5
  55. package/model/{aiGroup.agravity.ts → aiModelDeployment.agravity.ts} +6 -5
  56. package/model/aiSettings.agravity.ts +4 -3
  57. package/model/aiTypeSettings.agravity.ts +17 -0
  58. package/model/asset.agravity.ts +6 -6
  59. package/model/assetBlob.agravity.ts +15 -15
  60. package/model/assetIconRule.agravity.ts +1 -1
  61. package/model/assetRelationType.agravity.ts +1 -1
  62. package/model/azureIdentity.agravity.ts +7 -7
  63. package/model/collTypeItem.agravity.ts +1 -1
  64. package/model/collTypeItemBlueprint.agravity.ts +1 -1
  65. package/model/collection.agravity.ts +6 -6
  66. package/model/collectionType.agravity.ts +6 -6
  67. package/model/collectionUDL.agravity.ts +1 -1
  68. package/model/dashboardWidget.agravity.ts +1 -1
  69. package/model/downloadFormat.agravity.ts +1 -1
  70. package/model/downloadZipRequest.agravity.ts +6 -6
  71. package/model/downloadZipStatus.agravity.ts +6 -6
  72. package/model/entityIdName.agravity.ts +1 -1
  73. package/model/entityTranslations.agravity.ts +1 -1
  74. package/model/groupAllAppData.agravity.ts +1 -1
  75. package/model/historyEntry.agravity.ts +16 -30
  76. package/model/models.ts +5 -2
  77. package/model/notificationSettingDto.agravity.ts +18 -0
  78. package/model/permissionChange.agravity.ts +7 -7
  79. package/model/permissionEntity.agravity.ts +5 -5
  80. package/model/portalAuthentication.agravity.ts +7 -7
  81. package/model/portalTheme.agravity.ts +1 -1
  82. package/model/publishedAsset.agravity.ts +1 -1
  83. package/model/savedSearch.agravity.ts +1 -1
  84. package/model/searchSettings.agravity.ts +26 -0
  85. package/model/staticDefinedList.agravity.ts +1 -1
  86. package/model/uiTutorials.agravity.ts +4 -4
  87. package/model/whereParam.agravity.ts +17 -17
  88. package/model/workspace.agravity.ts +1 -1
  89. package/package.json +5 -4
  90. package/provide-api.ts +15 -0
  91. package/tsconfig.json +2 -0
  92. package/api/aISettingsManagement.agravity.ts +0 -264
@@ -26,6 +26,7 @@ import { DeletedEntities } from '../model/deletedEntities.agravity';
26
26
  // @ts-ignore
27
27
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
28
28
  import { AgravityConfiguration } from '../configuration';
29
+ import { BaseService } from '../api.base.service';
29
30
 
30
31
  export interface HttpCleanupRequestParams {
31
32
  /** (Default 90 days) - How many days in the entity. */
@@ -53,67 +54,13 @@ export interface HttpSetupRequestParams {
53
54
  @Injectable({
54
55
  providedIn: 'root'
55
56
  })
56
- export class GeneralManagementService {
57
- protected basePath = 'http://localhost:7071/api';
58
- public defaultHeaders = new HttpHeaders();
59
- public configuration = new AgravityConfiguration();
60
- public encoder: HttpParameterCodec;
61
-
57
+ export class GeneralManagementService extends BaseService {
62
58
  constructor(
63
59
  protected httpClient: HttpClient,
64
60
  @Optional() @Inject(BASE_PATH) basePath: string | string[],
65
- @Optional() configuration: AgravityConfiguration
61
+ @Optional() configuration?: AgravityConfiguration
66
62
  ) {
67
- if (configuration) {
68
- this.configuration = configuration;
69
- }
70
- if (typeof this.configuration.basePath !== 'string') {
71
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
72
- if (firstBasePath != undefined) {
73
- basePath = firstBasePath;
74
- }
75
-
76
- if (typeof basePath !== 'string') {
77
- basePath = this.basePath;
78
- }
79
- this.configuration.basePath = basePath;
80
- }
81
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
82
- }
83
-
84
- // @ts-ignore
85
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
86
- if (typeof value === 'object' && value instanceof Date === false) {
87
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
88
- } else {
89
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
90
- }
91
- return httpParams;
92
- }
93
-
94
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
95
- if (value == null) {
96
- return httpParams;
97
- }
98
-
99
- if (typeof value === 'object') {
100
- if (Array.isArray(value)) {
101
- (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
102
- } else if (value instanceof Date) {
103
- if (key != null) {
104
- httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
105
- } else {
106
- throw Error('key may not be null if value is Date');
107
- }
108
- } else {
109
- Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
110
- }
111
- } else if (key != null) {
112
- httpParams = httpParams.append(key, value);
113
- } else {
114
- throw Error('key may not be null if value is not object or array');
115
- }
116
- return httpParams;
63
+ super(basePath, configuration);
117
64
  }
118
65
 
119
66
  /**
@@ -143,32 +90,17 @@ export class GeneralManagementService {
143
90
  ): Observable<any> {
144
91
  let localVarHeaders = this.defaultHeaders;
145
92
 
146
- let localVarCredential: string | undefined;
147
93
  // authentication (msal_auth) required
148
- localVarCredential = this.configuration.lookupCredential('msal_auth');
149
- if (localVarCredential) {
150
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
151
- }
94
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
152
95
 
153
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
154
- if (localVarHttpHeaderAcceptSelected === undefined) {
155
- // to determine the Accept header
156
- const httpHeaderAccepts: string[] = ['application/json'];
157
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
158
- }
96
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
159
97
  if (localVarHttpHeaderAcceptSelected !== undefined) {
160
98
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
161
99
  }
162
100
 
163
- let localVarHttpContext: HttpContext | undefined = options && options.context;
164
- if (localVarHttpContext === undefined) {
165
- localVarHttpContext = new HttpContext();
166
- }
101
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
167
102
 
168
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
169
- if (localVarTransferCache === undefined) {
170
- localVarTransferCache = true;
171
- }
103
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
172
104
 
173
105
  let responseType_: 'text' | 'json' | 'blob' = 'json';
174
106
  if (localVarHttpHeaderAcceptSelected) {
@@ -182,10 +114,11 @@ export class GeneralManagementService {
182
114
  }
183
115
 
184
116
  let localVarPath = `/version`;
185
- return this.httpClient.request<AgravityVersion>('get', `${this.configuration.basePath}${localVarPath}`, {
117
+ const { basePath, withCredentials } = this.configuration;
118
+ return this.httpClient.request<AgravityVersion>('get', `${basePath}${localVarPath}`, {
186
119
  context: localVarHttpContext,
187
120
  responseType: <any>responseType_,
188
- withCredentials: this.configuration.withCredentials,
121
+ ...(withCredentials ? { withCredentials } : {}),
189
122
  headers: localVarHeaders,
190
123
  observe: observe,
191
124
  transferCache: localVarTransferCache,
@@ -220,32 +153,17 @@ export class GeneralManagementService {
220
153
  ): Observable<any> {
221
154
  let localVarHeaders = this.defaultHeaders;
222
155
 
223
- let localVarCredential: string | undefined;
224
156
  // authentication (msal_auth) required
225
- localVarCredential = this.configuration.lookupCredential('msal_auth');
226
- if (localVarCredential) {
227
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
228
- }
157
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
229
158
 
230
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
231
- if (localVarHttpHeaderAcceptSelected === undefined) {
232
- // to determine the Accept header
233
- const httpHeaderAccepts: string[] = ['application/json'];
234
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
235
- }
159
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
236
160
  if (localVarHttpHeaderAcceptSelected !== undefined) {
237
161
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
238
162
  }
239
163
 
240
- let localVarHttpContext: HttpContext | undefined = options && options.context;
241
- if (localVarHttpContext === undefined) {
242
- localVarHttpContext = new HttpContext();
243
- }
164
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
244
165
 
245
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
246
- if (localVarTransferCache === undefined) {
247
- localVarTransferCache = true;
248
- }
166
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
249
167
 
250
168
  let responseType_: 'text' | 'json' | 'blob' = 'json';
251
169
  if (localVarHttpHeaderAcceptSelected) {
@@ -259,10 +177,11 @@ export class GeneralManagementService {
259
177
  }
260
178
 
261
179
  let localVarPath = `/cosmosdb!!`;
262
- return this.httpClient.request<AgravityInfoResponse>('delete', `${this.configuration.basePath}${localVarPath}`, {
180
+ const { basePath, withCredentials } = this.configuration;
181
+ return this.httpClient.request<AgravityInfoResponse>('delete', `${basePath}${localVarPath}`, {
263
182
  context: localVarHttpContext,
264
183
  responseType: <any>responseType_,
265
- withCredentials: this.configuration.withCredentials,
184
+ ...(withCredentials ? { withCredentials } : {}),
266
185
  headers: localVarHeaders,
267
186
  observe: observe,
268
187
  transferCache: localVarTransferCache,
@@ -303,38 +222,21 @@ export class GeneralManagementService {
303
222
  const olderThanDays = requestParameters?.olderThanDays;
304
223
 
305
224
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
306
- if (olderThanDays !== undefined && olderThanDays !== null) {
307
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>olderThanDays, 'olderThanDays');
308
- }
225
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>olderThanDays, 'olderThanDays');
309
226
 
310
227
  let localVarHeaders = this.defaultHeaders;
311
228
 
312
- let localVarCredential: string | undefined;
313
229
  // authentication (msal_auth) required
314
- localVarCredential = this.configuration.lookupCredential('msal_auth');
315
- if (localVarCredential) {
316
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
317
- }
230
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
318
231
 
319
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
320
- if (localVarHttpHeaderAcceptSelected === undefined) {
321
- // to determine the Accept header
322
- const httpHeaderAccepts: string[] = ['application/json'];
323
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
324
- }
232
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
325
233
  if (localVarHttpHeaderAcceptSelected !== undefined) {
326
234
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
327
235
  }
328
236
 
329
- let localVarHttpContext: HttpContext | undefined = options && options.context;
330
- if (localVarHttpContext === undefined) {
331
- localVarHttpContext = new HttpContext();
332
- }
237
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
333
238
 
334
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
335
- if (localVarTransferCache === undefined) {
336
- localVarTransferCache = true;
337
- }
239
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
338
240
 
339
241
  let responseType_: 'text' | 'json' | 'blob' = 'json';
340
242
  if (localVarHttpHeaderAcceptSelected) {
@@ -348,11 +250,12 @@ export class GeneralManagementService {
348
250
  }
349
251
 
350
252
  let localVarPath = `/cleanup`;
351
- return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
253
+ const { basePath, withCredentials } = this.configuration;
254
+ return this.httpClient.request<AgravityInfoResponse>('patch', `${basePath}${localVarPath}`, {
352
255
  context: localVarHttpContext,
353
256
  params: localVarQueryParameters,
354
257
  responseType: <any>responseType_,
355
- withCredentials: this.configuration.withCredentials,
258
+ ...(withCredentials ? { withCredentials } : {}),
356
259
  headers: localVarHeaders,
357
260
  observe: observe,
358
261
  transferCache: localVarTransferCache,
@@ -387,32 +290,17 @@ export class GeneralManagementService {
387
290
  ): Observable<any> {
388
291
  let localVarHeaders = this.defaultHeaders;
389
292
 
390
- let localVarCredential: string | undefined;
391
293
  // authentication (msal_auth) required
392
- localVarCredential = this.configuration.lookupCredential('msal_auth');
393
- if (localVarCredential) {
394
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
395
- }
294
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
396
295
 
397
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
398
- if (localVarHttpHeaderAcceptSelected === undefined) {
399
- // to determine the Accept header
400
- const httpHeaderAccepts: string[] = ['application/json'];
401
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
402
- }
296
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
403
297
  if (localVarHttpHeaderAcceptSelected !== undefined) {
404
298
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
405
299
  }
406
300
 
407
- let localVarHttpContext: HttpContext | undefined = options && options.context;
408
- if (localVarHttpContext === undefined) {
409
- localVarHttpContext = new HttpContext();
410
- }
301
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
411
302
 
412
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
413
- if (localVarTransferCache === undefined) {
414
- localVarTransferCache = true;
415
- }
303
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
416
304
 
417
305
  let responseType_: 'text' | 'json' | 'blob' = 'json';
418
306
  if (localVarHttpHeaderAcceptSelected) {
@@ -426,10 +314,11 @@ export class GeneralManagementService {
426
314
  }
427
315
 
428
316
  let localVarPath = `/cleanup`;
429
- return this.httpClient.request<AgravityInfoResponse>('post', `${this.configuration.basePath}${localVarPath}`, {
317
+ const { basePath, withCredentials } = this.configuration;
318
+ return this.httpClient.request<AgravityInfoResponse>('post', `${basePath}${localVarPath}`, {
430
319
  context: localVarHttpContext,
431
320
  responseType: <any>responseType_,
432
- withCredentials: this.configuration.withCredentials,
321
+ ...(withCredentials ? { withCredentials } : {}),
433
322
  headers: localVarHeaders,
434
323
  observe: observe,
435
324
  transferCache: localVarTransferCache,
@@ -473,47 +362,24 @@ export class GeneralManagementService {
473
362
  const portalId = requestParameters?.portalId;
474
363
 
475
364
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
476
- if (entityType !== undefined && entityType !== null) {
477
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>entityType, 'entity_type');
478
- }
479
- if (since !== undefined && since !== null) {
480
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>since, 'since');
481
- }
482
- if (until !== undefined && until !== null) {
483
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>until, 'until');
484
- }
485
- if (portalId !== undefined && portalId !== null) {
486
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
487
- }
365
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>entityType, 'entity_type');
366
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>since, 'since');
367
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>until, 'until');
368
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
488
369
 
489
370
  let localVarHeaders = this.defaultHeaders;
490
371
 
491
- let localVarCredential: string | undefined;
492
372
  // authentication (msal_auth) required
493
- localVarCredential = this.configuration.lookupCredential('msal_auth');
494
- if (localVarCredential) {
495
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
496
- }
373
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
497
374
 
498
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
499
- if (localVarHttpHeaderAcceptSelected === undefined) {
500
- // to determine the Accept header
501
- const httpHeaderAccepts: string[] = ['application/json'];
502
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
503
- }
375
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
504
376
  if (localVarHttpHeaderAcceptSelected !== undefined) {
505
377
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
506
378
  }
507
379
 
508
- let localVarHttpContext: HttpContext | undefined = options && options.context;
509
- if (localVarHttpContext === undefined) {
510
- localVarHttpContext = new HttpContext();
511
- }
380
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
512
381
 
513
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
514
- if (localVarTransferCache === undefined) {
515
- localVarTransferCache = true;
516
- }
382
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
517
383
 
518
384
  let responseType_: 'text' | 'json' | 'blob' = 'json';
519
385
  if (localVarHttpHeaderAcceptSelected) {
@@ -527,11 +393,12 @@ export class GeneralManagementService {
527
393
  }
528
394
 
529
395
  let localVarPath = `/deleted`;
530
- return this.httpClient.request<Array<DeletedEntities>>('get', `${this.configuration.basePath}${localVarPath}`, {
396
+ const { basePath, withCredentials } = this.configuration;
397
+ return this.httpClient.request<Array<DeletedEntities>>('get', `${basePath}${localVarPath}`, {
531
398
  context: localVarHttpContext,
532
399
  params: localVarQueryParameters,
533
400
  responseType: <any>responseType_,
534
- withCredentials: this.configuration.withCredentials,
401
+ ...(withCredentials ? { withCredentials } : {}),
535
402
  headers: localVarHeaders,
536
403
  observe: observe,
537
404
  transferCache: localVarTransferCache,
@@ -546,25 +413,25 @@ export class GeneralManagementService {
546
413
  * @param reportProgress flag to report request and response progress.
547
414
  */
548
415
  public httpSetup(
549
- requestParameters?: HttpSetupRequestParams,
416
+ requestParameters: HttpSetupRequestParams,
550
417
  observe?: 'body',
551
418
  reportProgress?: boolean,
552
419
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
553
420
  ): Observable<AgravityInfoResponse>;
554
421
  public httpSetup(
555
- requestParameters?: HttpSetupRequestParams,
422
+ requestParameters: HttpSetupRequestParams,
556
423
  observe?: 'response',
557
424
  reportProgress?: boolean,
558
425
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
559
426
  ): Observable<HttpResponse<AgravityInfoResponse>>;
560
427
  public httpSetup(
561
- requestParameters?: HttpSetupRequestParams,
428
+ requestParameters: HttpSetupRequestParams,
562
429
  observe?: 'events',
563
430
  reportProgress?: boolean,
564
431
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
565
432
  ): Observable<HttpEvent<AgravityInfoResponse>>;
566
433
  public httpSetup(
567
- requestParameters?: HttpSetupRequestParams,
434
+ requestParameters: HttpSetupRequestParams,
568
435
  observe: any = 'body',
569
436
  reportProgress: boolean = false,
570
437
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -576,41 +443,22 @@ export class GeneralManagementService {
576
443
  const addconfigqueues = requestParameters?.addconfigqueues;
577
444
 
578
445
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
579
- if (createfolder !== undefined && createfolder !== null) {
580
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>createfolder, 'createfolder');
581
- }
582
- if (addconfigqueues !== undefined && addconfigqueues !== null) {
583
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>addconfigqueues, 'addconfigqueues');
584
- }
446
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>createfolder, 'createfolder');
447
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>addconfigqueues, 'addconfigqueues');
585
448
 
586
449
  let localVarHeaders = this.defaultHeaders;
587
450
 
588
- let localVarCredential: string | undefined;
589
451
  // authentication (msal_auth) required
590
- localVarCredential = this.configuration.lookupCredential('msal_auth');
591
- if (localVarCredential) {
592
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
593
- }
452
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
594
453
 
595
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
596
- if (localVarHttpHeaderAcceptSelected === undefined) {
597
- // to determine the Accept header
598
- const httpHeaderAccepts: string[] = ['application/json'];
599
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
600
- }
454
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
601
455
  if (localVarHttpHeaderAcceptSelected !== undefined) {
602
456
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
603
457
  }
604
458
 
605
- let localVarHttpContext: HttpContext | undefined = options && options.context;
606
- if (localVarHttpContext === undefined) {
607
- localVarHttpContext = new HttpContext();
608
- }
459
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
609
460
 
610
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
611
- if (localVarTransferCache === undefined) {
612
- localVarTransferCache = true;
613
- }
461
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
614
462
 
615
463
  let responseType_: 'text' | 'json' | 'blob' = 'json';
616
464
  if (localVarHttpHeaderAcceptSelected) {
@@ -624,11 +472,12 @@ export class GeneralManagementService {
624
472
  }
625
473
 
626
474
  let localVarPath = `/setup`;
627
- return this.httpClient.request<AgravityInfoResponse>('post', `${this.configuration.basePath}${localVarPath}`, {
475
+ const { basePath, withCredentials } = this.configuration;
476
+ return this.httpClient.request<AgravityInfoResponse>('post', `${basePath}${localVarPath}`, {
628
477
  context: localVarHttpContext,
629
478
  params: localVarQueryParameters,
630
479
  responseType: <any>responseType_,
631
- withCredentials: this.configuration.withCredentials,
480
+ ...(withCredentials ? { withCredentials } : {}),
632
481
  headers: localVarHeaders,
633
482
  observe: observe,
634
483
  transferCache: localVarTransferCache,
@@ -663,32 +512,17 @@ export class GeneralManagementService {
663
512
  ): Observable<any> {
664
513
  let localVarHeaders = this.defaultHeaders;
665
514
 
666
- let localVarCredential: string | undefined;
667
515
  // authentication (msal_auth) required
668
- localVarCredential = this.configuration.lookupCredential('msal_auth');
669
- if (localVarCredential) {
670
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
671
- }
516
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
672
517
 
673
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
674
- if (localVarHttpHeaderAcceptSelected === undefined) {
675
- // to determine the Accept header
676
- const httpHeaderAccepts: string[] = ['application/json'];
677
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
678
- }
518
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
679
519
  if (localVarHttpHeaderAcceptSelected !== undefined) {
680
520
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
681
521
  }
682
522
 
683
- let localVarHttpContext: HttpContext | undefined = options && options.context;
684
- if (localVarHttpContext === undefined) {
685
- localVarHttpContext = new HttpContext();
686
- }
523
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
687
524
 
688
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
689
- if (localVarTransferCache === undefined) {
690
- localVarTransferCache = true;
691
- }
525
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
692
526
 
693
527
  let responseType_: 'text' | 'json' | 'blob' = 'json';
694
528
  if (localVarHttpHeaderAcceptSelected) {
@@ -702,10 +536,11 @@ export class GeneralManagementService {
702
536
  }
703
537
 
704
538
  let localVarPath = `/backup`;
705
- return this.httpClient.request<AgravityInfoResponse>('post', `${this.configuration.basePath}${localVarPath}`, {
539
+ const { basePath, withCredentials } = this.configuration;
540
+ return this.httpClient.request<AgravityInfoResponse>('post', `${basePath}${localVarPath}`, {
706
541
  context: localVarHttpContext,
707
542
  responseType: <any>responseType_,
708
- withCredentials: this.configuration.withCredentials,
543
+ ...(withCredentials ? { withCredentials } : {}),
709
544
  headers: localVarHeaders,
710
545
  observe: observe,
711
546
  transferCache: localVarTransferCache,