@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.
Files changed (93) 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/comment.agravity.ts +1 -0
  69. package/model/dashboardWidget.agravity.ts +1 -1
  70. package/model/downloadFormat.agravity.ts +1 -1
  71. package/model/downloadZipRequest.agravity.ts +6 -6
  72. package/model/downloadZipStatus.agravity.ts +6 -6
  73. package/model/entityIdName.agravity.ts +1 -1
  74. package/model/entityTranslations.agravity.ts +1 -1
  75. package/model/groupAllAppData.agravity.ts +1 -1
  76. package/model/historyEntry.agravity.ts +16 -30
  77. package/model/models.ts +5 -2
  78. package/model/notificationSettingDto.agravity.ts +18 -0
  79. package/model/permissionChange.agravity.ts +7 -7
  80. package/model/permissionEntity.agravity.ts +5 -5
  81. package/model/portalAuthentication.agravity.ts +7 -7
  82. package/model/portalTheme.agravity.ts +1 -1
  83. package/model/publishedAsset.agravity.ts +1 -1
  84. package/model/savedSearch.agravity.ts +1 -1
  85. package/model/searchSettings.agravity.ts +26 -0
  86. package/model/staticDefinedList.agravity.ts +1 -1
  87. package/model/uiTutorials.agravity.ts +4 -4
  88. package/model/whereParam.agravity.ts +17 -17
  89. package/model/workspace.agravity.ts +1 -1
  90. package/package.json +5 -4
  91. package/provide-api.ts +15 -0
  92. package/tsconfig.json +2 -0
  93. package/api/aISettingsManagement.agravity.ts +0 -264
@@ -26,6 +26,7 @@ import { VersionedAsset } from '../model/versionedAsset.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 HttpAssetCreateNewVersionRequestParams {
31
32
  /** The ID of the asset. */
@@ -96,81 +97,13 @@ export interface HttpVersionedAssetsGetRequestParams {
96
97
  @Injectable({
97
98
  providedIn: 'root'
98
99
  })
99
- export class AssetVersioningService {
100
- protected basePath = 'http://localhost:7071/api';
101
- public defaultHeaders = new HttpHeaders();
102
- public configuration = new AgravityConfiguration();
103
- public encoder: HttpParameterCodec;
104
-
100
+ export class AssetVersioningService extends BaseService {
105
101
  constructor(
106
102
  protected httpClient: HttpClient,
107
103
  @Optional() @Inject(BASE_PATH) basePath: string | string[],
108
- @Optional() configuration: AgravityConfiguration
104
+ @Optional() configuration?: AgravityConfiguration
109
105
  ) {
110
- if (configuration) {
111
- this.configuration = configuration;
112
- }
113
- if (typeof this.configuration.basePath !== 'string') {
114
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
115
- if (firstBasePath != undefined) {
116
- basePath = firstBasePath;
117
- }
118
-
119
- if (typeof basePath !== 'string') {
120
- basePath = this.basePath;
121
- }
122
- this.configuration.basePath = basePath;
123
- }
124
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
125
- }
126
-
127
- /**
128
- * @param consumes string[] mime-types
129
- * @return true: consumes contains 'multipart/form-data', false: otherwise
130
- */
131
- private canConsumeForm(consumes: string[]): boolean {
132
- const form = 'multipart/form-data';
133
- for (const consume of consumes) {
134
- if (form === consume) {
135
- return true;
136
- }
137
- }
138
- return false;
139
- }
140
-
141
- // @ts-ignore
142
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
143
- if (typeof value === 'object' && value instanceof Date === false) {
144
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
145
- } else {
146
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
147
- }
148
- return httpParams;
149
- }
150
-
151
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
152
- if (value == null) {
153
- return httpParams;
154
- }
155
-
156
- if (typeof value === 'object') {
157
- if (Array.isArray(value)) {
158
- (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
159
- } else if (value instanceof Date) {
160
- if (key != null) {
161
- httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
162
- } else {
163
- throw Error('key may not be null if value is Date');
164
- }
165
- } else {
166
- Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
167
- }
168
- } else if (key != null) {
169
- httpParams = httpParams.append(key, value);
170
- } else {
171
- throw Error('key may not be null if value is not object or array');
172
- }
173
- return httpParams;
106
+ super(basePath, configuration);
174
107
  }
175
108
 
176
109
  /**
@@ -180,25 +113,25 @@ export class AssetVersioningService {
180
113
  * @param reportProgress flag to report request and response progress.
181
114
  */
182
115
  public httpAssetCreateNewVersion(
183
- requestParameters?: HttpAssetCreateNewVersionRequestParams,
116
+ requestParameters: HttpAssetCreateNewVersionRequestParams,
184
117
  observe?: 'body',
185
118
  reportProgress?: boolean,
186
119
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
187
120
  ): Observable<VersionedAsset>;
188
121
  public httpAssetCreateNewVersion(
189
- requestParameters?: HttpAssetCreateNewVersionRequestParams,
122
+ requestParameters: HttpAssetCreateNewVersionRequestParams,
190
123
  observe?: 'response',
191
124
  reportProgress?: boolean,
192
125
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
193
126
  ): Observable<HttpResponse<VersionedAsset>>;
194
127
  public httpAssetCreateNewVersion(
195
- requestParameters?: HttpAssetCreateNewVersionRequestParams,
128
+ requestParameters: HttpAssetCreateNewVersionRequestParams,
196
129
  observe?: 'events',
197
130
  reportProgress?: boolean,
198
131
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
199
132
  ): Observable<HttpEvent<VersionedAsset>>;
200
133
  public httpAssetCreateNewVersion(
201
- requestParameters?: HttpAssetCreateNewVersionRequestParams,
134
+ requestParameters: HttpAssetCreateNewVersionRequestParams,
202
135
  observe: any = 'body',
203
136
  reportProgress: boolean = false,
204
137
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -214,38 +147,23 @@ export class AssetVersioningService {
214
147
 
215
148
  let localVarHeaders = this.defaultHeaders;
216
149
 
217
- let localVarCredential: string | undefined;
218
150
  // authentication (msal_auth) required
219
- localVarCredential = this.configuration.lookupCredential('msal_auth');
220
- if (localVarCredential) {
221
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
222
- }
151
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
223
152
 
224
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
225
- if (localVarHttpHeaderAcceptSelected === undefined) {
226
- // to determine the Accept header
227
- const httpHeaderAccepts: string[] = ['application/json'];
228
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
229
- }
153
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
230
154
  if (localVarHttpHeaderAcceptSelected !== undefined) {
231
155
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
232
156
  }
233
157
 
234
- let localVarHttpContext: HttpContext | undefined = options && options.context;
235
- if (localVarHttpContext === undefined) {
236
- localVarHttpContext = new HttpContext();
237
- }
158
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
238
159
 
239
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
240
- if (localVarTransferCache === undefined) {
241
- localVarTransferCache = true;
242
- }
160
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
243
161
 
244
162
  // to determine the Content-Type header
245
163
  const consumes: string[] = ['application/json'];
246
164
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
247
165
  if (httpContentTypeSelected !== undefined) {
248
- // localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
166
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
249
167
  }
250
168
 
251
169
  let responseType_: 'text' | 'json' | 'blob' = 'json';
@@ -260,11 +178,12 @@ export class AssetVersioningService {
260
178
  }
261
179
 
262
180
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions`;
263
- return this.httpClient.request<VersionedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
181
+ const { basePath, withCredentials } = this.configuration;
182
+ return this.httpClient.request<VersionedAsset>('post', `${basePath}${localVarPath}`, {
264
183
  context: localVarHttpContext,
265
184
  body: versionedAsset,
266
185
  responseType: <any>responseType_,
267
- withCredentials: this.configuration.withCredentials,
186
+ ...(withCredentials ? { withCredentials } : {}),
268
187
  headers: localVarHeaders,
269
188
  observe: observe,
270
189
  transferCache: localVarTransferCache,
@@ -279,25 +198,25 @@ export class AssetVersioningService {
279
198
  * @param reportProgress flag to report request and response progress.
280
199
  */
281
200
  public httpAssetCreateUploadVersion(
282
- requestParameters?: HttpAssetCreateUploadVersionRequestParams,
201
+ requestParameters: HttpAssetCreateUploadVersionRequestParams,
283
202
  observe?: 'body',
284
203
  reportProgress?: boolean,
285
204
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
286
205
  ): Observable<VersionedAsset>;
287
206
  public httpAssetCreateUploadVersion(
288
- requestParameters?: HttpAssetCreateUploadVersionRequestParams,
207
+ requestParameters: HttpAssetCreateUploadVersionRequestParams,
289
208
  observe?: 'response',
290
209
  reportProgress?: boolean,
291
210
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
292
211
  ): Observable<HttpResponse<VersionedAsset>>;
293
212
  public httpAssetCreateUploadVersion(
294
- requestParameters?: HttpAssetCreateUploadVersionRequestParams,
213
+ requestParameters: HttpAssetCreateUploadVersionRequestParams,
295
214
  observe?: 'events',
296
215
  reportProgress?: boolean,
297
216
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
298
217
  ): Observable<HttpEvent<VersionedAsset>>;
299
218
  public httpAssetCreateUploadVersion(
300
- requestParameters?: HttpAssetCreateUploadVersionRequestParams,
219
+ requestParameters: HttpAssetCreateUploadVersionRequestParams,
301
220
  observe: any = 'body',
302
221
  reportProgress: boolean = false,
303
222
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -314,32 +233,17 @@ export class AssetVersioningService {
314
233
 
315
234
  let localVarHeaders = this.defaultHeaders;
316
235
 
317
- let localVarCredential: string | undefined;
318
236
  // authentication (msal_auth) required
319
- localVarCredential = this.configuration.lookupCredential('msal_auth');
320
- if (localVarCredential) {
321
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
322
- }
237
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
323
238
 
324
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
325
- if (localVarHttpHeaderAcceptSelected === undefined) {
326
- // to determine the Accept header
327
- const httpHeaderAccepts: string[] = ['application/json'];
328
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
329
- }
239
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
330
240
  if (localVarHttpHeaderAcceptSelected !== undefined) {
331
241
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
332
242
  }
333
243
 
334
- let localVarHttpContext: HttpContext | undefined = options && options.context;
335
- if (localVarHttpContext === undefined) {
336
- localVarHttpContext = new HttpContext();
337
- }
244
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
338
245
 
339
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
340
- if (localVarTransferCache === undefined) {
341
- localVarTransferCache = true;
342
- }
246
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
343
247
 
344
248
  // to determine the Content-Type header
345
249
  const consumes: string[] = ['multipart/form-data'];
@@ -386,11 +290,12 @@ export class AssetVersioningService {
386
290
  }
387
291
 
388
292
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versionsupload`;
389
- return this.httpClient.request<VersionedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
293
+ const { basePath, withCredentials } = this.configuration;
294
+ return this.httpClient.request<VersionedAsset>('post', `${basePath}${localVarPath}`, {
390
295
  context: localVarHttpContext,
391
296
  body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
392
297
  responseType: <any>responseType_,
393
- withCredentials: this.configuration.withCredentials,
298
+ ...(withCredentials ? { withCredentials } : {}),
394
299
  headers: localVarHeaders,
395
300
  observe: observe,
396
301
  transferCache: localVarTransferCache,
@@ -405,25 +310,25 @@ export class AssetVersioningService {
405
310
  * @param reportProgress flag to report request and response progress.
406
311
  */
407
312
  public httpAssetRestoreLastVersion(
408
- requestParameters?: HttpAssetRestoreLastVersionRequestParams,
313
+ requestParameters: HttpAssetRestoreLastVersionRequestParams,
409
314
  observe?: 'body',
410
315
  reportProgress?: boolean,
411
316
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
412
317
  ): Observable<VersionedAsset>;
413
318
  public httpAssetRestoreLastVersion(
414
- requestParameters?: HttpAssetRestoreLastVersionRequestParams,
319
+ requestParameters: HttpAssetRestoreLastVersionRequestParams,
415
320
  observe?: 'response',
416
321
  reportProgress?: boolean,
417
322
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
418
323
  ): Observable<HttpResponse<VersionedAsset>>;
419
324
  public httpAssetRestoreLastVersion(
420
- requestParameters?: HttpAssetRestoreLastVersionRequestParams,
325
+ requestParameters: HttpAssetRestoreLastVersionRequestParams,
421
326
  observe?: 'events',
422
327
  reportProgress?: boolean,
423
328
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
424
329
  ): Observable<HttpEvent<VersionedAsset>>;
425
330
  public httpAssetRestoreLastVersion(
426
- requestParameters?: HttpAssetRestoreLastVersionRequestParams,
331
+ requestParameters: HttpAssetRestoreLastVersionRequestParams,
427
332
  observe: any = 'body',
428
333
  reportProgress: boolean = false,
429
334
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -435,32 +340,17 @@ export class AssetVersioningService {
435
340
 
436
341
  let localVarHeaders = this.defaultHeaders;
437
342
 
438
- let localVarCredential: string | undefined;
439
343
  // authentication (msal_auth) required
440
- localVarCredential = this.configuration.lookupCredential('msal_auth');
441
- if (localVarCredential) {
442
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
443
- }
344
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
444
345
 
445
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
446
- if (localVarHttpHeaderAcceptSelected === undefined) {
447
- // to determine the Accept header
448
- const httpHeaderAccepts: string[] = ['application/json'];
449
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
450
- }
346
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
451
347
  if (localVarHttpHeaderAcceptSelected !== undefined) {
452
348
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
453
349
  }
454
350
 
455
- let localVarHttpContext: HttpContext | undefined = options && options.context;
456
- if (localVarHttpContext === undefined) {
457
- localVarHttpContext = new HttpContext();
458
- }
351
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
459
352
 
460
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
461
- if (localVarTransferCache === undefined) {
462
- localVarTransferCache = true;
463
- }
353
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
464
354
 
465
355
  let responseType_: 'text' | 'json' | 'blob' = 'json';
466
356
  if (localVarHttpHeaderAcceptSelected) {
@@ -474,10 +364,11 @@ export class AssetVersioningService {
474
364
  }
475
365
 
476
366
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versionsrestore`;
477
- return this.httpClient.request<VersionedAsset>('patch', `${this.configuration.basePath}${localVarPath}`, {
367
+ const { basePath, withCredentials } = this.configuration;
368
+ return this.httpClient.request<VersionedAsset>('patch', `${basePath}${localVarPath}`, {
478
369
  context: localVarHttpContext,
479
370
  responseType: <any>responseType_,
480
- withCredentials: this.configuration.withCredentials,
371
+ ...(withCredentials ? { withCredentials } : {}),
481
372
  headers: localVarHeaders,
482
373
  observe: observe,
483
374
  transferCache: localVarTransferCache,
@@ -492,25 +383,25 @@ export class AssetVersioningService {
492
383
  * @param reportProgress flag to report request and response progress.
493
384
  */
494
385
  public httpDeleteVersionedAssetsById(
495
- requestParameters?: HttpDeleteVersionedAssetsByIdRequestParams,
386
+ requestParameters: HttpDeleteVersionedAssetsByIdRequestParams,
496
387
  observe?: 'body',
497
388
  reportProgress?: boolean,
498
389
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
499
390
  ): Observable<any>;
500
391
  public httpDeleteVersionedAssetsById(
501
- requestParameters?: HttpDeleteVersionedAssetsByIdRequestParams,
392
+ requestParameters: HttpDeleteVersionedAssetsByIdRequestParams,
502
393
  observe?: 'response',
503
394
  reportProgress?: boolean,
504
395
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
505
396
  ): Observable<HttpResponse<any>>;
506
397
  public httpDeleteVersionedAssetsById(
507
- requestParameters?: HttpDeleteVersionedAssetsByIdRequestParams,
398
+ requestParameters: HttpDeleteVersionedAssetsByIdRequestParams,
508
399
  observe?: 'events',
509
400
  reportProgress?: boolean,
510
401
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
511
402
  ): Observable<HttpEvent<any>>;
512
403
  public httpDeleteVersionedAssetsById(
513
- requestParameters?: HttpDeleteVersionedAssetsByIdRequestParams,
404
+ requestParameters: HttpDeleteVersionedAssetsByIdRequestParams,
514
405
  observe: any = 'body',
515
406
  reportProgress: boolean = false,
516
407
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -526,32 +417,17 @@ export class AssetVersioningService {
526
417
 
527
418
  let localVarHeaders = this.defaultHeaders;
528
419
 
529
- let localVarCredential: string | undefined;
530
420
  // authentication (msal_auth) required
531
- localVarCredential = this.configuration.lookupCredential('msal_auth');
532
- if (localVarCredential) {
533
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
534
- }
421
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
535
422
 
536
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
537
- if (localVarHttpHeaderAcceptSelected === undefined) {
538
- // to determine the Accept header
539
- const httpHeaderAccepts: string[] = ['application/json'];
540
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
541
- }
423
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
542
424
  if (localVarHttpHeaderAcceptSelected !== undefined) {
543
425
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
544
426
  }
545
427
 
546
- let localVarHttpContext: HttpContext | undefined = options && options.context;
547
- if (localVarHttpContext === undefined) {
548
- localVarHttpContext = new HttpContext();
549
- }
428
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
550
429
 
551
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
552
- if (localVarTransferCache === undefined) {
553
- localVarTransferCache = true;
554
- }
430
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
555
431
 
556
432
  let responseType_: 'text' | 'json' | 'blob' = 'json';
557
433
  if (localVarHttpHeaderAcceptSelected) {
@@ -565,10 +441,11 @@ export class AssetVersioningService {
565
441
  }
566
442
 
567
443
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions/${this.configuration.encodeParam({ name: 'vNr', value: vNr, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
568
- return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
444
+ const { basePath, withCredentials } = this.configuration;
445
+ return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
569
446
  context: localVarHttpContext,
570
447
  responseType: <any>responseType_,
571
- withCredentials: this.configuration.withCredentials,
448
+ ...(withCredentials ? { withCredentials } : {}),
572
449
  headers: localVarHeaders,
573
450
  observe: observe,
574
451
  transferCache: localVarTransferCache,
@@ -583,25 +460,25 @@ export class AssetVersioningService {
583
460
  * @param reportProgress flag to report request and response progress.
584
461
  */
585
462
  public httpGetVersionedAssetBlobById(
586
- requestParameters?: HttpGetVersionedAssetBlobByIdRequestParams,
463
+ requestParameters: HttpGetVersionedAssetBlobByIdRequestParams,
587
464
  observe?: 'body',
588
465
  reportProgress?: boolean,
589
466
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
590
467
  ): Observable<AssetBlob>;
591
468
  public httpGetVersionedAssetBlobById(
592
- requestParameters?: HttpGetVersionedAssetBlobByIdRequestParams,
469
+ requestParameters: HttpGetVersionedAssetBlobByIdRequestParams,
593
470
  observe?: 'response',
594
471
  reportProgress?: boolean,
595
472
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
596
473
  ): Observable<HttpResponse<AssetBlob>>;
597
474
  public httpGetVersionedAssetBlobById(
598
- requestParameters?: HttpGetVersionedAssetBlobByIdRequestParams,
475
+ requestParameters: HttpGetVersionedAssetBlobByIdRequestParams,
599
476
  observe?: 'events',
600
477
  reportProgress?: boolean,
601
478
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
602
479
  ): Observable<HttpEvent<AssetBlob>>;
603
480
  public httpGetVersionedAssetBlobById(
604
- requestParameters?: HttpGetVersionedAssetBlobByIdRequestParams,
481
+ requestParameters: HttpGetVersionedAssetBlobByIdRequestParams,
605
482
  observe: any = 'body',
606
483
  reportProgress: boolean = false,
607
484
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -617,38 +494,21 @@ export class AssetVersioningService {
617
494
  const c = requestParameters?.c;
618
495
 
619
496
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
620
- if (c !== undefined && c !== null) {
621
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
622
- }
497
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
623
498
 
624
499
  let localVarHeaders = this.defaultHeaders;
625
500
 
626
- let localVarCredential: string | undefined;
627
501
  // authentication (msal_auth) required
628
- localVarCredential = this.configuration.lookupCredential('msal_auth');
629
- if (localVarCredential) {
630
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
631
- }
502
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
632
503
 
633
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
634
- if (localVarHttpHeaderAcceptSelected === undefined) {
635
- // to determine the Accept header
636
- const httpHeaderAccepts: string[] = ['application/json'];
637
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
638
- }
504
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
639
505
  if (localVarHttpHeaderAcceptSelected !== undefined) {
640
506
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
641
507
  }
642
508
 
643
- let localVarHttpContext: HttpContext | undefined = options && options.context;
644
- if (localVarHttpContext === undefined) {
645
- localVarHttpContext = new HttpContext();
646
- }
509
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
647
510
 
648
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
649
- if (localVarTransferCache === undefined) {
650
- localVarTransferCache = true;
651
- }
511
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
652
512
 
653
513
  let responseType_: 'text' | 'json' | 'blob' = 'json';
654
514
  if (localVarHttpHeaderAcceptSelected) {
@@ -662,11 +522,12 @@ export class AssetVersioningService {
662
522
  }
663
523
 
664
524
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions/${this.configuration.encodeParam({ name: 'vNr', value: vNr, in: 'path', style: 'simple', explode: false, dataType: 'number', dataFormat: 'int32' })}/blobs`;
665
- return this.httpClient.request<AssetBlob>('get', `${this.configuration.basePath}${localVarPath}`, {
525
+ const { basePath, withCredentials } = this.configuration;
526
+ return this.httpClient.request<AssetBlob>('get', `${basePath}${localVarPath}`, {
666
527
  context: localVarHttpContext,
667
528
  params: localVarQueryParameters,
668
529
  responseType: <any>responseType_,
669
- withCredentials: this.configuration.withCredentials,
530
+ ...(withCredentials ? { withCredentials } : {}),
670
531
  headers: localVarHeaders,
671
532
  observe: observe,
672
533
  transferCache: localVarTransferCache,
@@ -681,25 +542,25 @@ export class AssetVersioningService {
681
542
  * @param reportProgress flag to report request and response progress.
682
543
  */
683
544
  public httpRestoreVersionedAssetsById(
684
- requestParameters?: HttpRestoreVersionedAssetsByIdRequestParams,
545
+ requestParameters: HttpRestoreVersionedAssetsByIdRequestParams,
685
546
  observe?: 'body',
686
547
  reportProgress?: boolean,
687
548
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
688
549
  ): Observable<VersionedAsset>;
689
550
  public httpRestoreVersionedAssetsById(
690
- requestParameters?: HttpRestoreVersionedAssetsByIdRequestParams,
551
+ requestParameters: HttpRestoreVersionedAssetsByIdRequestParams,
691
552
  observe?: 'response',
692
553
  reportProgress?: boolean,
693
554
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
694
555
  ): Observable<HttpResponse<VersionedAsset>>;
695
556
  public httpRestoreVersionedAssetsById(
696
- requestParameters?: HttpRestoreVersionedAssetsByIdRequestParams,
557
+ requestParameters: HttpRestoreVersionedAssetsByIdRequestParams,
697
558
  observe?: 'events',
698
559
  reportProgress?: boolean,
699
560
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
700
561
  ): Observable<HttpEvent<VersionedAsset>>;
701
562
  public httpRestoreVersionedAssetsById(
702
- requestParameters?: HttpRestoreVersionedAssetsByIdRequestParams,
563
+ requestParameters: HttpRestoreVersionedAssetsByIdRequestParams,
703
564
  observe: any = 'body',
704
565
  reportProgress: boolean = false,
705
566
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -719,32 +580,17 @@ export class AssetVersioningService {
719
580
 
720
581
  let localVarHeaders = this.defaultHeaders;
721
582
 
722
- let localVarCredential: string | undefined;
723
583
  // authentication (msal_auth) required
724
- localVarCredential = this.configuration.lookupCredential('msal_auth');
725
- if (localVarCredential) {
726
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
727
- }
584
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
728
585
 
729
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
730
- if (localVarHttpHeaderAcceptSelected === undefined) {
731
- // to determine the Accept header
732
- const httpHeaderAccepts: string[] = ['application/json'];
733
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
734
- }
586
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
735
587
  if (localVarHttpHeaderAcceptSelected !== undefined) {
736
588
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
737
589
  }
738
590
 
739
- let localVarHttpContext: HttpContext | undefined = options && options.context;
740
- if (localVarHttpContext === undefined) {
741
- localVarHttpContext = new HttpContext();
742
- }
591
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
743
592
 
744
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
745
- if (localVarTransferCache === undefined) {
746
- localVarTransferCache = true;
747
- }
593
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
748
594
 
749
595
  // to determine the Content-Type header
750
596
  const consumes: string[] = ['application/json'];
@@ -765,11 +611,12 @@ export class AssetVersioningService {
765
611
  }
766
612
 
767
613
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions/${this.configuration.encodeParam({ name: 'vNr', value: vNr, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/restore`;
768
- return this.httpClient.request<VersionedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
614
+ const { basePath, withCredentials } = this.configuration;
615
+ return this.httpClient.request<VersionedAsset>('post', `${basePath}${localVarPath}`, {
769
616
  context: localVarHttpContext,
770
617
  body: versionedAsset,
771
618
  responseType: <any>responseType_,
772
- withCredentials: this.configuration.withCredentials,
619
+ ...(withCredentials ? { withCredentials } : {}),
773
620
  headers: localVarHeaders,
774
621
  observe: observe,
775
622
  transferCache: localVarTransferCache,
@@ -784,25 +631,25 @@ export class AssetVersioningService {
784
631
  * @param reportProgress flag to report request and response progress.
785
632
  */
786
633
  public httpUpdateVersionedAssetsById(
787
- requestParameters?: HttpUpdateVersionedAssetsByIdRequestParams,
634
+ requestParameters: HttpUpdateVersionedAssetsByIdRequestParams,
788
635
  observe?: 'body',
789
636
  reportProgress?: boolean,
790
637
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
791
638
  ): Observable<VersionedAsset>;
792
639
  public httpUpdateVersionedAssetsById(
793
- requestParameters?: HttpUpdateVersionedAssetsByIdRequestParams,
640
+ requestParameters: HttpUpdateVersionedAssetsByIdRequestParams,
794
641
  observe?: 'response',
795
642
  reportProgress?: boolean,
796
643
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
797
644
  ): Observable<HttpResponse<VersionedAsset>>;
798
645
  public httpUpdateVersionedAssetsById(
799
- requestParameters?: HttpUpdateVersionedAssetsByIdRequestParams,
646
+ requestParameters: HttpUpdateVersionedAssetsByIdRequestParams,
800
647
  observe?: 'events',
801
648
  reportProgress?: boolean,
802
649
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
803
650
  ): Observable<HttpEvent<VersionedAsset>>;
804
651
  public httpUpdateVersionedAssetsById(
805
- requestParameters?: HttpUpdateVersionedAssetsByIdRequestParams,
652
+ requestParameters: HttpUpdateVersionedAssetsByIdRequestParams,
806
653
  observe: any = 'body',
807
654
  reportProgress: boolean = false,
808
655
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -822,32 +669,17 @@ export class AssetVersioningService {
822
669
 
823
670
  let localVarHeaders = this.defaultHeaders;
824
671
 
825
- let localVarCredential: string | undefined;
826
672
  // authentication (msal_auth) required
827
- localVarCredential = this.configuration.lookupCredential('msal_auth');
828
- if (localVarCredential) {
829
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
830
- }
673
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
831
674
 
832
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
833
- if (localVarHttpHeaderAcceptSelected === undefined) {
834
- // to determine the Accept header
835
- const httpHeaderAccepts: string[] = ['application/json'];
836
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
837
- }
675
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
838
676
  if (localVarHttpHeaderAcceptSelected !== undefined) {
839
677
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
840
678
  }
841
679
 
842
- let localVarHttpContext: HttpContext | undefined = options && options.context;
843
- if (localVarHttpContext === undefined) {
844
- localVarHttpContext = new HttpContext();
845
- }
680
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
846
681
 
847
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
848
- if (localVarTransferCache === undefined) {
849
- localVarTransferCache = true;
850
- }
682
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
851
683
 
852
684
  // to determine the Content-Type header
853
685
  const consumes: string[] = ['application/json'];
@@ -868,11 +700,12 @@ export class AssetVersioningService {
868
700
  }
869
701
 
870
702
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions/${this.configuration.encodeParam({ name: 'vNr', value: vNr, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
871
- return this.httpClient.request<VersionedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
703
+ const { basePath, withCredentials } = this.configuration;
704
+ return this.httpClient.request<VersionedAsset>('post', `${basePath}${localVarPath}`, {
872
705
  context: localVarHttpContext,
873
706
  body: versionedAsset,
874
707
  responseType: <any>responseType_,
875
- withCredentials: this.configuration.withCredentials,
708
+ ...(withCredentials ? { withCredentials } : {}),
876
709
  headers: localVarHeaders,
877
710
  observe: observe,
878
711
  transferCache: localVarTransferCache,
@@ -887,25 +720,25 @@ export class AssetVersioningService {
887
720
  * @param reportProgress flag to report request and response progress.
888
721
  */
889
722
  public httpVersionedAssetsDeleteAll(
890
- requestParameters?: HttpVersionedAssetsDeleteAllRequestParams,
723
+ requestParameters: HttpVersionedAssetsDeleteAllRequestParams,
891
724
  observe?: 'body',
892
725
  reportProgress?: boolean,
893
726
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
894
727
  ): Observable<any>;
895
728
  public httpVersionedAssetsDeleteAll(
896
- requestParameters?: HttpVersionedAssetsDeleteAllRequestParams,
729
+ requestParameters: HttpVersionedAssetsDeleteAllRequestParams,
897
730
  observe?: 'response',
898
731
  reportProgress?: boolean,
899
732
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
900
733
  ): Observable<HttpResponse<any>>;
901
734
  public httpVersionedAssetsDeleteAll(
902
- requestParameters?: HttpVersionedAssetsDeleteAllRequestParams,
735
+ requestParameters: HttpVersionedAssetsDeleteAllRequestParams,
903
736
  observe?: 'events',
904
737
  reportProgress?: boolean,
905
738
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
906
739
  ): Observable<HttpEvent<any>>;
907
740
  public httpVersionedAssetsDeleteAll(
908
- requestParameters?: HttpVersionedAssetsDeleteAllRequestParams,
741
+ requestParameters: HttpVersionedAssetsDeleteAllRequestParams,
909
742
  observe: any = 'body',
910
743
  reportProgress: boolean = false,
911
744
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -917,32 +750,17 @@ export class AssetVersioningService {
917
750
 
918
751
  let localVarHeaders = this.defaultHeaders;
919
752
 
920
- let localVarCredential: string | undefined;
921
753
  // authentication (msal_auth) required
922
- localVarCredential = this.configuration.lookupCredential('msal_auth');
923
- if (localVarCredential) {
924
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
925
- }
754
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
926
755
 
927
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
928
- if (localVarHttpHeaderAcceptSelected === undefined) {
929
- // to determine the Accept header
930
- const httpHeaderAccepts: string[] = ['application/json'];
931
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
932
- }
756
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
933
757
  if (localVarHttpHeaderAcceptSelected !== undefined) {
934
758
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
935
759
  }
936
760
 
937
- let localVarHttpContext: HttpContext | undefined = options && options.context;
938
- if (localVarHttpContext === undefined) {
939
- localVarHttpContext = new HttpContext();
940
- }
761
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
941
762
 
942
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
943
- if (localVarTransferCache === undefined) {
944
- localVarTransferCache = true;
945
- }
763
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
946
764
 
947
765
  let responseType_: 'text' | 'json' | 'blob' = 'json';
948
766
  if (localVarHttpHeaderAcceptSelected) {
@@ -956,10 +774,11 @@ export class AssetVersioningService {
956
774
  }
957
775
 
958
776
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions`;
959
- return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
777
+ const { basePath, withCredentials } = this.configuration;
778
+ return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
960
779
  context: localVarHttpContext,
961
780
  responseType: <any>responseType_,
962
- withCredentials: this.configuration.withCredentials,
781
+ ...(withCredentials ? { withCredentials } : {}),
963
782
  headers: localVarHeaders,
964
783
  observe: observe,
965
784
  transferCache: localVarTransferCache,
@@ -974,25 +793,25 @@ export class AssetVersioningService {
974
793
  * @param reportProgress flag to report request and response progress.
975
794
  */
976
795
  public httpVersionedAssetsGet(
977
- requestParameters?: HttpVersionedAssetsGetRequestParams,
796
+ requestParameters: HttpVersionedAssetsGetRequestParams,
978
797
  observe?: 'body',
979
798
  reportProgress?: boolean,
980
799
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
981
800
  ): Observable<VersionEntity>;
982
801
  public httpVersionedAssetsGet(
983
- requestParameters?: HttpVersionedAssetsGetRequestParams,
802
+ requestParameters: HttpVersionedAssetsGetRequestParams,
984
803
  observe?: 'response',
985
804
  reportProgress?: boolean,
986
805
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
987
806
  ): Observable<HttpResponse<VersionEntity>>;
988
807
  public httpVersionedAssetsGet(
989
- requestParameters?: HttpVersionedAssetsGetRequestParams,
808
+ requestParameters: HttpVersionedAssetsGetRequestParams,
990
809
  observe?: 'events',
991
810
  reportProgress?: boolean,
992
811
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
993
812
  ): Observable<HttpEvent<VersionEntity>>;
994
813
  public httpVersionedAssetsGet(
995
- requestParameters?: HttpVersionedAssetsGetRequestParams,
814
+ requestParameters: HttpVersionedAssetsGetRequestParams,
996
815
  observe: any = 'body',
997
816
  reportProgress: boolean = false,
998
817
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -1004,32 +823,17 @@ export class AssetVersioningService {
1004
823
 
1005
824
  let localVarHeaders = this.defaultHeaders;
1006
825
 
1007
- let localVarCredential: string | undefined;
1008
826
  // authentication (msal_auth) required
1009
- localVarCredential = this.configuration.lookupCredential('msal_auth');
1010
- if (localVarCredential) {
1011
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1012
- }
827
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
1013
828
 
1014
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1015
- if (localVarHttpHeaderAcceptSelected === undefined) {
1016
- // to determine the Accept header
1017
- const httpHeaderAccepts: string[] = ['application/json'];
1018
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1019
- }
829
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
1020
830
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1021
831
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1022
832
  }
1023
833
 
1024
- let localVarHttpContext: HttpContext | undefined = options && options.context;
1025
- if (localVarHttpContext === undefined) {
1026
- localVarHttpContext = new HttpContext();
1027
- }
834
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
1028
835
 
1029
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
1030
- if (localVarTransferCache === undefined) {
1031
- localVarTransferCache = true;
1032
- }
836
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
1033
837
 
1034
838
  let responseType_: 'text' | 'json' | 'blob' = 'json';
1035
839
  if (localVarHttpHeaderAcceptSelected) {
@@ -1043,10 +847,11 @@ export class AssetVersioningService {
1043
847
  }
1044
848
 
1045
849
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions`;
1046
- return this.httpClient.request<VersionEntity>('get', `${this.configuration.basePath}${localVarPath}`, {
850
+ const { basePath, withCredentials } = this.configuration;
851
+ return this.httpClient.request<VersionEntity>('get', `${basePath}${localVarPath}`, {
1047
852
  context: localVarHttpContext,
1048
853
  responseType: <any>responseType_,
1049
- withCredentials: this.configuration.withCredentials,
854
+ ...(withCredentials ? { withCredentials } : {}),
1050
855
  headers: localVarHeaders,
1051
856
  observe: observe,
1052
857
  transferCache: localVarTransferCache,