@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
@@ -19,8 +19,6 @@ import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
19
19
  // @ts-ignore
20
20
  import { AgravityInfoResponse } from '../model/agravityInfoResponse.agravity';
21
21
  // @ts-ignore
22
- import { AiGroupEntity } from '../model/aiGroupEntity.agravity';
23
- // @ts-ignore
24
22
  import { Asset } from '../model/asset.agravity';
25
23
  // @ts-ignore
26
24
  import { AssetAvailability } from '../model/assetAvailability.agravity';
@@ -44,6 +42,7 @@ import { MoveCollectionBody } from '../model/moveCollectionBody.agravity';
44
42
  // @ts-ignore
45
43
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
46
44
  import { AgravityConfiguration } from '../configuration';
45
+ import { BaseService } from '../api.base.service';
47
46
 
48
47
  export interface HttpAssetImageEditRequestParams {
49
48
  /** The ID of the asset. */
@@ -120,11 +119,6 @@ export interface HttpDeleteSpecificBlobRequestParams {
120
119
  name: string;
121
120
  }
122
121
 
123
- export interface HttpGetAiGroupEntityByIdRequestParams {
124
- /** The ID of the asset. */
125
- id: string;
126
- }
127
-
128
122
  export interface HttpGetAllAssetsCheckOnCriteriaRequestParams {
129
123
  /** Give the plain md5 string as parameter to be checked on all assets. */
130
124
  md5: string;
@@ -137,11 +131,6 @@ export interface HttpGetAssetBlobRequestParams {
137
131
  c?: string;
138
132
  }
139
133
 
140
- export interface HttpGetAssetCaptionByIdRequestParams {
141
- /** The ID of the asset. */
142
- id: string;
143
- }
144
-
145
134
  export interface HttpGetAssetCollectionsByIdRequestParams {
146
135
  /** The ID of the asset. */
147
136
  id: string;
@@ -239,67 +228,13 @@ export interface HttpRestoreAssetRequestParams {
239
228
  @Injectable({
240
229
  providedIn: 'root'
241
230
  })
242
- export class AssetOperationsService {
243
- protected basePath = 'http://localhost:7071/api';
244
- public defaultHeaders = new HttpHeaders();
245
- public configuration = new AgravityConfiguration();
246
- public encoder: HttpParameterCodec;
247
-
231
+ export class AssetOperationsService extends BaseService {
248
232
  constructor(
249
233
  protected httpClient: HttpClient,
250
234
  @Optional() @Inject(BASE_PATH) basePath: string | string[],
251
- @Optional() configuration: AgravityConfiguration
235
+ @Optional() configuration?: AgravityConfiguration
252
236
  ) {
253
- if (configuration) {
254
- this.configuration = configuration;
255
- }
256
- if (typeof this.configuration.basePath !== 'string') {
257
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
258
- if (firstBasePath != undefined) {
259
- basePath = firstBasePath;
260
- }
261
-
262
- if (typeof basePath !== 'string') {
263
- basePath = this.basePath;
264
- }
265
- this.configuration.basePath = basePath;
266
- }
267
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
268
- }
269
-
270
- // @ts-ignore
271
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
272
- if (typeof value === 'object' && value instanceof Date === false) {
273
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
274
- } else {
275
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
276
- }
277
- return httpParams;
278
- }
279
-
280
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
281
- if (value == null) {
282
- return httpParams;
283
- }
284
-
285
- if (typeof value === 'object') {
286
- if (Array.isArray(value)) {
287
- (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
288
- } else if (value instanceof Date) {
289
- if (key != null) {
290
- httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
291
- } else {
292
- throw Error('key may not be null if value is Date');
293
- }
294
- } else {
295
- Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
296
- }
297
- } else if (key != null) {
298
- httpParams = httpParams.append(key, value);
299
- } else {
300
- throw Error('key may not be null if value is not object or array');
301
- }
302
- return httpParams;
237
+ super(basePath, configuration);
303
238
  }
304
239
 
305
240
  /**
@@ -309,25 +244,25 @@ export class AssetOperationsService {
309
244
  * @param reportProgress flag to report request and response progress.
310
245
  */
311
246
  public httpAssetImageEdit(
312
- requestParameters?: HttpAssetImageEditRequestParams,
247
+ requestParameters: HttpAssetImageEditRequestParams,
313
248
  observe?: 'body',
314
249
  reportProgress?: boolean,
315
250
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
316
251
  ): Observable<Blob>;
317
252
  public httpAssetImageEdit(
318
- requestParameters?: HttpAssetImageEditRequestParams,
253
+ requestParameters: HttpAssetImageEditRequestParams,
319
254
  observe?: 'response',
320
255
  reportProgress?: boolean,
321
256
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
322
257
  ): Observable<HttpResponse<Blob>>;
323
258
  public httpAssetImageEdit(
324
- requestParameters?: HttpAssetImageEditRequestParams,
259
+ requestParameters: HttpAssetImageEditRequestParams,
325
260
  observe?: 'events',
326
261
  reportProgress?: boolean,
327
262
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
328
263
  ): Observable<HttpEvent<Blob>>;
329
264
  public httpAssetImageEdit(
330
- requestParameters?: HttpAssetImageEditRequestParams,
265
+ requestParameters: HttpAssetImageEditRequestParams,
331
266
  observe: any = 'body',
332
267
  reportProgress: boolean = false,
333
268
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -354,90 +289,44 @@ export class AssetOperationsService {
354
289
  const origin = requestParameters?.origin;
355
290
 
356
291
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
357
- if (width !== undefined && width !== null) {
358
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>width, 'width');
359
- }
360
- if (height !== undefined && height !== null) {
361
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>height, 'height');
362
- }
363
- if (mode !== undefined && mode !== null) {
364
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mode, 'mode');
365
- }
366
- if (target !== undefined && target !== null) {
367
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>target, 'target');
368
- }
369
- if (bgcolor !== undefined && bgcolor !== null) {
370
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>bgcolor, 'bgcolor');
371
- }
372
- if (dpi !== undefined && dpi !== null) {
373
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>dpi, 'dpi');
374
- }
375
- if (depth !== undefined && depth !== null) {
376
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>depth, 'depth');
377
- }
378
- if (quality !== undefined && quality !== null) {
379
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>quality, 'quality');
380
- }
381
- if (colorspace !== undefined && colorspace !== null) {
382
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>colorspace, 'colorspace');
383
- }
384
- if (cropX !== undefined && cropX !== null) {
385
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropX, 'crop_x');
386
- }
387
- if (cropY !== undefined && cropY !== null) {
388
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropY, 'crop_y');
389
- }
390
- if (cropWidth !== undefined && cropWidth !== null) {
391
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropWidth, 'crop_width');
392
- }
393
- if (cropHeight !== undefined && cropHeight !== null) {
394
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropHeight, 'crop_height');
395
- }
396
- if (filter !== undefined && filter !== null) {
397
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
398
- }
399
- if (original !== undefined && original !== null) {
400
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>original, 'original');
401
- }
402
- if (origin !== undefined && origin !== null) {
403
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>origin, 'origin');
404
- }
292
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>width, 'width');
293
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>height, 'height');
294
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mode, 'mode');
295
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>target, 'target');
296
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>bgcolor, 'bgcolor');
297
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>dpi, 'dpi');
298
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>depth, 'depth');
299
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>quality, 'quality');
300
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>colorspace, 'colorspace');
301
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropX, 'crop_x');
302
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropY, 'crop_y');
303
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropWidth, 'crop_width');
304
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropHeight, 'crop_height');
305
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
306
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>original, 'original');
307
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>origin, 'origin');
405
308
 
406
309
  let localVarHeaders = this.defaultHeaders;
407
310
 
408
- let localVarCredential: string | undefined;
409
311
  // authentication (msal_auth) required
410
- localVarCredential = this.configuration.lookupCredential('msal_auth');
411
- if (localVarCredential) {
412
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
413
- }
312
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
414
313
 
415
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
416
- if (localVarHttpHeaderAcceptSelected === undefined) {
417
- // to determine the Accept header
418
- const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
419
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
420
- }
314
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['image/xyz', 'application/json']);
421
315
  if (localVarHttpHeaderAcceptSelected !== undefined) {
422
316
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
423
317
  }
424
318
 
425
- let localVarHttpContext: HttpContext | undefined = options && options.context;
426
- if (localVarHttpContext === undefined) {
427
- localVarHttpContext = new HttpContext();
428
- }
319
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
429
320
 
430
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
431
- if (localVarTransferCache === undefined) {
432
- localVarTransferCache = true;
433
- }
321
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
434
322
 
435
323
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/imageedit`;
436
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
324
+ const { basePath, withCredentials } = this.configuration;
325
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
437
326
  context: localVarHttpContext,
438
327
  params: localVarQueryParameters,
439
328
  responseType: 'blob',
440
- withCredentials: this.configuration.withCredentials,
329
+ ...(withCredentials ? { withCredentials } : {}),
441
330
  headers: localVarHeaders,
442
331
  observe: observe,
443
332
  transferCache: localVarTransferCache,
@@ -452,25 +341,25 @@ export class AssetOperationsService {
452
341
  * @param reportProgress flag to report request and response progress.
453
342
  */
454
343
  public httpAssetImageRotateClockwise(
455
- requestParameters?: HttpAssetImageRotateClockwiseRequestParams,
344
+ requestParameters: HttpAssetImageRotateClockwiseRequestParams,
456
345
  observe?: 'body',
457
346
  reportProgress?: boolean,
458
347
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
459
348
  ): Observable<Asset>;
460
349
  public httpAssetImageRotateClockwise(
461
- requestParameters?: HttpAssetImageRotateClockwiseRequestParams,
350
+ requestParameters: HttpAssetImageRotateClockwiseRequestParams,
462
351
  observe?: 'response',
463
352
  reportProgress?: boolean,
464
353
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
465
354
  ): Observable<HttpResponse<Asset>>;
466
355
  public httpAssetImageRotateClockwise(
467
- requestParameters?: HttpAssetImageRotateClockwiseRequestParams,
356
+ requestParameters: HttpAssetImageRotateClockwiseRequestParams,
468
357
  observe?: 'events',
469
358
  reportProgress?: boolean,
470
359
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
471
360
  ): Observable<HttpEvent<Asset>>;
472
361
  public httpAssetImageRotateClockwise(
473
- requestParameters?: HttpAssetImageRotateClockwiseRequestParams,
362
+ requestParameters: HttpAssetImageRotateClockwiseRequestParams,
474
363
  observe: any = 'body',
475
364
  reportProgress: boolean = false,
476
365
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -483,41 +372,24 @@ export class AssetOperationsService {
483
372
  const acceptLanguage = requestParameters?.acceptLanguage;
484
373
 
485
374
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
486
- if (translations !== undefined && translations !== null) {
487
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
488
- }
375
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
489
376
 
490
377
  let localVarHeaders = this.defaultHeaders;
491
378
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
492
379
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
493
380
  }
494
381
 
495
- let localVarCredential: string | undefined;
496
382
  // authentication (msal_auth) required
497
- localVarCredential = this.configuration.lookupCredential('msal_auth');
498
- if (localVarCredential) {
499
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
500
- }
383
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
501
384
 
502
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
503
- if (localVarHttpHeaderAcceptSelected === undefined) {
504
- // to determine the Accept header
505
- const httpHeaderAccepts: string[] = ['application/json'];
506
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
507
- }
385
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
508
386
  if (localVarHttpHeaderAcceptSelected !== undefined) {
509
387
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
510
388
  }
511
389
 
512
- let localVarHttpContext: HttpContext | undefined = options && options.context;
513
- if (localVarHttpContext === undefined) {
514
- localVarHttpContext = new HttpContext();
515
- }
390
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
516
391
 
517
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
518
- if (localVarTransferCache === undefined) {
519
- localVarTransferCache = true;
520
- }
392
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
521
393
 
522
394
  let responseType_: 'text' | 'json' | 'blob' = 'json';
523
395
  if (localVarHttpHeaderAcceptSelected) {
@@ -531,11 +403,12 @@ export class AssetOperationsService {
531
403
  }
532
404
 
533
405
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/rotate`;
534
- return this.httpClient.request<Asset>('post', `${this.configuration.basePath}${localVarPath}`, {
406
+ const { basePath, withCredentials } = this.configuration;
407
+ return this.httpClient.request<Asset>('post', `${basePath}${localVarPath}`, {
535
408
  context: localVarHttpContext,
536
409
  params: localVarQueryParameters,
537
410
  responseType: <any>responseType_,
538
- withCredentials: this.configuration.withCredentials,
411
+ ...(withCredentials ? { withCredentials } : {}),
539
412
  headers: localVarHeaders,
540
413
  observe: observe,
541
414
  transferCache: localVarTransferCache,
@@ -550,25 +423,25 @@ export class AssetOperationsService {
550
423
  * @param reportProgress flag to report request and response progress.
551
424
  */
552
425
  public httpAssetResize(
553
- requestParameters?: HttpAssetResizeRequestParams,
426
+ requestParameters: HttpAssetResizeRequestParams,
554
427
  observe?: 'body',
555
428
  reportProgress?: boolean,
556
429
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
557
430
  ): Observable<Blob>;
558
431
  public httpAssetResize(
559
- requestParameters?: HttpAssetResizeRequestParams,
432
+ requestParameters: HttpAssetResizeRequestParams,
560
433
  observe?: 'response',
561
434
  reportProgress?: boolean,
562
435
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
563
436
  ): Observable<HttpResponse<Blob>>;
564
437
  public httpAssetResize(
565
- requestParameters?: HttpAssetResizeRequestParams,
438
+ requestParameters: HttpAssetResizeRequestParams,
566
439
  observe?: 'events',
567
440
  reportProgress?: boolean,
568
441
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
569
442
  ): Observable<HttpEvent<Blob>>;
570
443
  public httpAssetResize(
571
- requestParameters?: HttpAssetResizeRequestParams,
444
+ requestParameters: HttpAssetResizeRequestParams,
572
445
  observe: any = 'body',
573
446
  reportProgress: boolean = false,
574
447
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -580,38 +453,24 @@ export class AssetOperationsService {
580
453
 
581
454
  let localVarHeaders = this.defaultHeaders;
582
455
 
583
- let localVarCredential: string | undefined;
584
456
  // authentication (msal_auth) required
585
- localVarCredential = this.configuration.lookupCredential('msal_auth');
586
- if (localVarCredential) {
587
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
588
- }
457
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
589
458
 
590
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
591
- if (localVarHttpHeaderAcceptSelected === undefined) {
592
- // to determine the Accept header
593
- const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
594
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
595
- }
459
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['image/xyz', 'application/json']);
596
460
  if (localVarHttpHeaderAcceptSelected !== undefined) {
597
461
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
598
462
  }
599
463
 
600
- let localVarHttpContext: HttpContext | undefined = options && options.context;
601
- if (localVarHttpContext === undefined) {
602
- localVarHttpContext = new HttpContext();
603
- }
464
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
604
465
 
605
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
606
- if (localVarTransferCache === undefined) {
607
- localVarTransferCache = true;
608
- }
466
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
609
467
 
610
468
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/resize`;
611
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
469
+ const { basePath, withCredentials } = this.configuration;
470
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
612
471
  context: localVarHttpContext,
613
472
  responseType: 'blob',
614
- withCredentials: this.configuration.withCredentials,
473
+ ...(withCredentials ? { withCredentials } : {}),
615
474
  headers: localVarHeaders,
616
475
  observe: observe,
617
476
  transferCache: localVarTransferCache,
@@ -626,25 +485,25 @@ export class AssetOperationsService {
626
485
  * @param reportProgress flag to report request and response progress.
627
486
  */
628
487
  public httpAssetToCollection(
629
- requestParameters?: HttpAssetToCollectionRequestParams,
488
+ requestParameters: HttpAssetToCollectionRequestParams,
630
489
  observe?: 'body',
631
490
  reportProgress?: boolean,
632
491
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
633
492
  ): Observable<any>;
634
493
  public httpAssetToCollection(
635
- requestParameters?: HttpAssetToCollectionRequestParams,
494
+ requestParameters: HttpAssetToCollectionRequestParams,
636
495
  observe?: 'response',
637
496
  reportProgress?: boolean,
638
497
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
639
498
  ): Observable<HttpResponse<any>>;
640
499
  public httpAssetToCollection(
641
- requestParameters?: HttpAssetToCollectionRequestParams,
500
+ requestParameters: HttpAssetToCollectionRequestParams,
642
501
  observe?: 'events',
643
502
  reportProgress?: boolean,
644
503
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
645
504
  ): Observable<HttpEvent<any>>;
646
505
  public httpAssetToCollection(
647
- requestParameters?: HttpAssetToCollectionRequestParams,
506
+ requestParameters: HttpAssetToCollectionRequestParams,
648
507
  observe: any = 'body',
649
508
  reportProgress: boolean = false,
650
509
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -660,32 +519,17 @@ export class AssetOperationsService {
660
519
 
661
520
  let localVarHeaders = this.defaultHeaders;
662
521
 
663
- let localVarCredential: string | undefined;
664
522
  // authentication (msal_auth) required
665
- localVarCredential = this.configuration.lookupCredential('msal_auth');
666
- if (localVarCredential) {
667
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
668
- }
523
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
669
524
 
670
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
671
- if (localVarHttpHeaderAcceptSelected === undefined) {
672
- // to determine the Accept header
673
- const httpHeaderAccepts: string[] = ['application/json'];
674
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
675
- }
525
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
676
526
  if (localVarHttpHeaderAcceptSelected !== undefined) {
677
527
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
678
528
  }
679
529
 
680
- let localVarHttpContext: HttpContext | undefined = options && options.context;
681
- if (localVarHttpContext === undefined) {
682
- localVarHttpContext = new HttpContext();
683
- }
530
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
684
531
 
685
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
686
- if (localVarTransferCache === undefined) {
687
- localVarTransferCache = true;
688
- }
532
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
689
533
 
690
534
  // to determine the Content-Type header
691
535
  const consumes: string[] = ['application/json'];
@@ -706,11 +550,12 @@ export class AssetOperationsService {
706
550
  }
707
551
 
708
552
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/tocollection`;
709
- return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`, {
553
+ const { basePath, withCredentials } = this.configuration;
554
+ return this.httpClient.request<any>('post', `${basePath}${localVarPath}`, {
710
555
  context: localVarHttpContext,
711
556
  body: moveCollectionBody,
712
557
  responseType: <any>responseType_,
713
- withCredentials: this.configuration.withCredentials,
558
+ ...(withCredentials ? { withCredentials } : {}),
714
559
  headers: localVarHeaders,
715
560
  observe: observe,
716
561
  transferCache: localVarTransferCache,
@@ -725,25 +570,25 @@ export class AssetOperationsService {
725
570
  * @param reportProgress flag to report request and response progress.
726
571
  */
727
572
  public httpAssetsToCollection(
728
- requestParameters?: HttpAssetsToCollectionRequestParams,
573
+ requestParameters: HttpAssetsToCollectionRequestParams,
729
574
  observe?: 'body',
730
575
  reportProgress?: boolean,
731
576
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
732
577
  ): Observable<any>;
733
578
  public httpAssetsToCollection(
734
- requestParameters?: HttpAssetsToCollectionRequestParams,
579
+ requestParameters: HttpAssetsToCollectionRequestParams,
735
580
  observe?: 'response',
736
581
  reportProgress?: boolean,
737
582
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
738
583
  ): Observable<HttpResponse<any>>;
739
584
  public httpAssetsToCollection(
740
- requestParameters?: HttpAssetsToCollectionRequestParams,
585
+ requestParameters: HttpAssetsToCollectionRequestParams,
741
586
  observe?: 'events',
742
587
  reportProgress?: boolean,
743
588
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
744
589
  ): Observable<HttpEvent<any>>;
745
590
  public httpAssetsToCollection(
746
- requestParameters?: HttpAssetsToCollectionRequestParams,
591
+ requestParameters: HttpAssetsToCollectionRequestParams,
747
592
  observe: any = 'body',
748
593
  reportProgress: boolean = false,
749
594
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -755,32 +600,17 @@ export class AssetOperationsService {
755
600
 
756
601
  let localVarHeaders = this.defaultHeaders;
757
602
 
758
- let localVarCredential: string | undefined;
759
603
  // authentication (msal_auth) required
760
- localVarCredential = this.configuration.lookupCredential('msal_auth');
761
- if (localVarCredential) {
762
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
763
- }
604
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
764
605
 
765
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
766
- if (localVarHttpHeaderAcceptSelected === undefined) {
767
- // to determine the Accept header
768
- const httpHeaderAccepts: string[] = ['application/json'];
769
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
770
- }
606
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
771
607
  if (localVarHttpHeaderAcceptSelected !== undefined) {
772
608
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
773
609
  }
774
610
 
775
- let localVarHttpContext: HttpContext | undefined = options && options.context;
776
- if (localVarHttpContext === undefined) {
777
- localVarHttpContext = new HttpContext();
778
- }
611
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
779
612
 
780
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
781
- if (localVarTransferCache === undefined) {
782
- localVarTransferCache = true;
783
- }
613
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
784
614
 
785
615
  // to determine the Content-Type header
786
616
  const consumes: string[] = ['application/json'];
@@ -801,11 +631,12 @@ export class AssetOperationsService {
801
631
  }
802
632
 
803
633
  let localVarPath = `/assetsoperations/tocollection`;
804
- return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`, {
634
+ const { basePath, withCredentials } = this.configuration;
635
+ return this.httpClient.request<any>('post', `${basePath}${localVarPath}`, {
805
636
  context: localVarHttpContext,
806
637
  body: assetsOperationBody,
807
638
  responseType: <any>responseType_,
808
- withCredentials: this.configuration.withCredentials,
639
+ ...(withCredentials ? { withCredentials } : {}),
809
640
  headers: localVarHeaders,
810
641
  observe: observe,
811
642
  transferCache: localVarTransferCache,
@@ -820,25 +651,25 @@ export class AssetOperationsService {
820
651
  * @param reportProgress flag to report request and response progress.
821
652
  */
822
653
  public httpDeleteAlternativeThumb(
823
- requestParameters?: HttpDeleteAlternativeThumbRequestParams,
654
+ requestParameters: HttpDeleteAlternativeThumbRequestParams,
824
655
  observe?: 'body',
825
656
  reportProgress?: boolean,
826
657
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
827
658
  ): Observable<AgravityInfoResponse>;
828
659
  public httpDeleteAlternativeThumb(
829
- requestParameters?: HttpDeleteAlternativeThumbRequestParams,
660
+ requestParameters: HttpDeleteAlternativeThumbRequestParams,
830
661
  observe?: 'response',
831
662
  reportProgress?: boolean,
832
663
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
833
664
  ): Observable<HttpResponse<AgravityInfoResponse>>;
834
665
  public httpDeleteAlternativeThumb(
835
- requestParameters?: HttpDeleteAlternativeThumbRequestParams,
666
+ requestParameters: HttpDeleteAlternativeThumbRequestParams,
836
667
  observe?: 'events',
837
668
  reportProgress?: boolean,
838
669
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
839
670
  ): Observable<HttpEvent<AgravityInfoResponse>>;
840
671
  public httpDeleteAlternativeThumb(
841
- requestParameters?: HttpDeleteAlternativeThumbRequestParams,
672
+ requestParameters: HttpDeleteAlternativeThumbRequestParams,
842
673
  observe: any = 'body',
843
674
  reportProgress: boolean = false,
844
675
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -850,32 +681,17 @@ export class AssetOperationsService {
850
681
 
851
682
  let localVarHeaders = this.defaultHeaders;
852
683
 
853
- let localVarCredential: string | undefined;
854
684
  // authentication (msal_auth) required
855
- localVarCredential = this.configuration.lookupCredential('msal_auth');
856
- if (localVarCredential) {
857
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
858
- }
685
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
859
686
 
860
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
861
- if (localVarHttpHeaderAcceptSelected === undefined) {
862
- // to determine the Accept header
863
- const httpHeaderAccepts: string[] = ['application/json'];
864
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
865
- }
687
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
866
688
  if (localVarHttpHeaderAcceptSelected !== undefined) {
867
689
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
868
690
  }
869
691
 
870
- let localVarHttpContext: HttpContext | undefined = options && options.context;
871
- if (localVarHttpContext === undefined) {
872
- localVarHttpContext = new HttpContext();
873
- }
692
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
874
693
 
875
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
876
- if (localVarTransferCache === undefined) {
877
- localVarTransferCache = true;
878
- }
694
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
879
695
 
880
696
  let responseType_: 'text' | 'json' | 'blob' = 'json';
881
697
  if (localVarHttpHeaderAcceptSelected) {
@@ -889,10 +705,11 @@ export class AssetOperationsService {
889
705
  }
890
706
 
891
707
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/alternative`;
892
- return this.httpClient.request<AgravityInfoResponse>('delete', `${this.configuration.basePath}${localVarPath}`, {
708
+ const { basePath, withCredentials } = this.configuration;
709
+ return this.httpClient.request<AgravityInfoResponse>('delete', `${basePath}${localVarPath}`, {
893
710
  context: localVarHttpContext,
894
711
  responseType: <any>responseType_,
895
- withCredentials: this.configuration.withCredentials,
712
+ ...(withCredentials ? { withCredentials } : {}),
896
713
  headers: localVarHeaders,
897
714
  observe: observe,
898
715
  transferCache: localVarTransferCache,
@@ -907,25 +724,25 @@ export class AssetOperationsService {
907
724
  * @param reportProgress flag to report request and response progress.
908
725
  */
909
726
  public httpDeleteSpecificBlob(
910
- requestParameters?: HttpDeleteSpecificBlobRequestParams,
727
+ requestParameters: HttpDeleteSpecificBlobRequestParams,
911
728
  observe?: 'body',
912
729
  reportProgress?: boolean,
913
730
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
914
731
  ): Observable<AgravityInfoResponse>;
915
732
  public httpDeleteSpecificBlob(
916
- requestParameters?: HttpDeleteSpecificBlobRequestParams,
733
+ requestParameters: HttpDeleteSpecificBlobRequestParams,
917
734
  observe?: 'response',
918
735
  reportProgress?: boolean,
919
736
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
920
737
  ): Observable<HttpResponse<AgravityInfoResponse>>;
921
738
  public httpDeleteSpecificBlob(
922
- requestParameters?: HttpDeleteSpecificBlobRequestParams,
739
+ requestParameters: HttpDeleteSpecificBlobRequestParams,
923
740
  observe?: 'events',
924
741
  reportProgress?: boolean,
925
742
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
926
743
  ): Observable<HttpEvent<AgravityInfoResponse>>;
927
744
  public httpDeleteSpecificBlob(
928
- requestParameters?: HttpDeleteSpecificBlobRequestParams,
745
+ requestParameters: HttpDeleteSpecificBlobRequestParams,
929
746
  observe: any = 'body',
930
747
  reportProgress: boolean = false,
931
748
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -941,32 +758,17 @@ export class AssetOperationsService {
941
758
 
942
759
  let localVarHeaders = this.defaultHeaders;
943
760
 
944
- let localVarCredential: string | undefined;
945
761
  // authentication (msal_auth) required
946
- localVarCredential = this.configuration.lookupCredential('msal_auth');
947
- if (localVarCredential) {
948
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
949
- }
762
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
950
763
 
951
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
952
- if (localVarHttpHeaderAcceptSelected === undefined) {
953
- // to determine the Accept header
954
- const httpHeaderAccepts: string[] = ['application/json'];
955
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
956
- }
764
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
957
765
  if (localVarHttpHeaderAcceptSelected !== undefined) {
958
766
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
959
767
  }
960
768
 
961
- let localVarHttpContext: HttpContext | undefined = options && options.context;
962
- if (localVarHttpContext === undefined) {
963
- localVarHttpContext = new HttpContext();
964
- }
769
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
965
770
 
966
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
967
- if (localVarTransferCache === undefined) {
968
- localVarTransferCache = true;
969
- }
771
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
970
772
 
971
773
  let responseType_: 'text' | 'json' | 'blob' = 'json';
972
774
  if (localVarHttpHeaderAcceptSelected) {
@@ -980,97 +782,11 @@ export class AssetOperationsService {
980
782
  }
981
783
 
982
784
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/blobs/${this.configuration.encodeParam({ name: 'name', value: name, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
983
- return this.httpClient.request<AgravityInfoResponse>('delete', `${this.configuration.basePath}${localVarPath}`, {
785
+ const { basePath, withCredentials } = this.configuration;
786
+ return this.httpClient.request<AgravityInfoResponse>('delete', `${basePath}${localVarPath}`, {
984
787
  context: localVarHttpContext,
985
788
  responseType: <any>responseType_,
986
- withCredentials: this.configuration.withCredentials,
987
- headers: localVarHeaders,
988
- observe: observe,
989
- transferCache: localVarTransferCache,
990
- reportProgress: reportProgress
991
- });
992
- }
993
-
994
- /**
995
- * This endpoint returns the asset ai group entity
996
- * @param requestParameters
997
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
998
- * @param reportProgress flag to report request and response progress.
999
- */
1000
- public httpGetAiGroupEntityById(
1001
- requestParameters?: HttpGetAiGroupEntityByIdRequestParams,
1002
- observe?: 'body',
1003
- reportProgress?: boolean,
1004
- options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1005
- ): Observable<AiGroupEntity>;
1006
- public httpGetAiGroupEntityById(
1007
- requestParameters?: HttpGetAiGroupEntityByIdRequestParams,
1008
- observe?: 'response',
1009
- reportProgress?: boolean,
1010
- options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1011
- ): Observable<HttpResponse<AiGroupEntity>>;
1012
- public httpGetAiGroupEntityById(
1013
- requestParameters?: HttpGetAiGroupEntityByIdRequestParams,
1014
- observe?: 'events',
1015
- reportProgress?: boolean,
1016
- options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1017
- ): Observable<HttpEvent<AiGroupEntity>>;
1018
- public httpGetAiGroupEntityById(
1019
- requestParameters?: HttpGetAiGroupEntityByIdRequestParams,
1020
- observe: any = 'body',
1021
- reportProgress: boolean = false,
1022
- options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1023
- ): Observable<any> {
1024
- const id = requestParameters?.id;
1025
- if (id === null || id === undefined) {
1026
- throw new Error('Required parameter id was null or undefined when calling httpGetAiGroupEntityById.');
1027
- }
1028
-
1029
- let localVarHeaders = this.defaultHeaders;
1030
-
1031
- let localVarCredential: string | undefined;
1032
- // authentication (msal_auth) required
1033
- localVarCredential = this.configuration.lookupCredential('msal_auth');
1034
- if (localVarCredential) {
1035
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1036
- }
1037
-
1038
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1039
- if (localVarHttpHeaderAcceptSelected === undefined) {
1040
- // to determine the Accept header
1041
- const httpHeaderAccepts: string[] = ['application/json'];
1042
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1043
- }
1044
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1045
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1046
- }
1047
-
1048
- let localVarHttpContext: HttpContext | undefined = options && options.context;
1049
- if (localVarHttpContext === undefined) {
1050
- localVarHttpContext = new HttpContext();
1051
- }
1052
-
1053
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
1054
- if (localVarTransferCache === undefined) {
1055
- localVarTransferCache = true;
1056
- }
1057
-
1058
- let responseType_: 'text' | 'json' | 'blob' = 'json';
1059
- if (localVarHttpHeaderAcceptSelected) {
1060
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1061
- responseType_ = 'text';
1062
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1063
- responseType_ = 'json';
1064
- } else {
1065
- responseType_ = 'blob';
1066
- }
1067
- }
1068
-
1069
- let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/aigroup`;
1070
- return this.httpClient.request<AiGroupEntity>('get', `${this.configuration.basePath}${localVarPath}`, {
1071
- context: localVarHttpContext,
1072
- responseType: <any>responseType_,
1073
- withCredentials: this.configuration.withCredentials,
789
+ ...(withCredentials ? { withCredentials } : {}),
1074
790
  headers: localVarHeaders,
1075
791
  observe: observe,
1076
792
  transferCache: localVarTransferCache,
@@ -1085,25 +801,25 @@ export class AssetOperationsService {
1085
801
  * @param reportProgress flag to report request and response progress.
1086
802
  */
1087
803
  public httpGetAllAssetsCheckOnCriteria(
1088
- requestParameters?: HttpGetAllAssetsCheckOnCriteriaRequestParams,
804
+ requestParameters: HttpGetAllAssetsCheckOnCriteriaRequestParams,
1089
805
  observe?: 'body',
1090
806
  reportProgress?: boolean,
1091
807
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1092
808
  ): Observable<Array<Asset>>;
1093
809
  public httpGetAllAssetsCheckOnCriteria(
1094
- requestParameters?: HttpGetAllAssetsCheckOnCriteriaRequestParams,
810
+ requestParameters: HttpGetAllAssetsCheckOnCriteriaRequestParams,
1095
811
  observe?: 'response',
1096
812
  reportProgress?: boolean,
1097
813
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1098
814
  ): Observable<HttpResponse<Array<Asset>>>;
1099
815
  public httpGetAllAssetsCheckOnCriteria(
1100
- requestParameters?: HttpGetAllAssetsCheckOnCriteriaRequestParams,
816
+ requestParameters: HttpGetAllAssetsCheckOnCriteriaRequestParams,
1101
817
  observe?: 'events',
1102
818
  reportProgress?: boolean,
1103
819
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1104
820
  ): Observable<HttpEvent<Array<Asset>>>;
1105
821
  public httpGetAllAssetsCheckOnCriteria(
1106
- requestParameters?: HttpGetAllAssetsCheckOnCriteriaRequestParams,
822
+ requestParameters: HttpGetAllAssetsCheckOnCriteriaRequestParams,
1107
823
  observe: any = 'body',
1108
824
  reportProgress: boolean = false,
1109
825
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -1114,38 +830,21 @@ export class AssetOperationsService {
1114
830
  }
1115
831
 
1116
832
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1117
- if (md5 !== undefined && md5 !== null) {
1118
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>md5, 'md5');
1119
- }
833
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>md5, 'md5');
1120
834
 
1121
835
  let localVarHeaders = this.defaultHeaders;
1122
836
 
1123
- let localVarCredential: string | undefined;
1124
837
  // authentication (msal_auth) required
1125
- localVarCredential = this.configuration.lookupCredential('msal_auth');
1126
- if (localVarCredential) {
1127
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1128
- }
838
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
1129
839
 
1130
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1131
- if (localVarHttpHeaderAcceptSelected === undefined) {
1132
- // to determine the Accept header
1133
- const httpHeaderAccepts: string[] = ['application/json'];
1134
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1135
- }
840
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
1136
841
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1137
842
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1138
843
  }
1139
844
 
1140
- let localVarHttpContext: HttpContext | undefined = options && options.context;
1141
- if (localVarHttpContext === undefined) {
1142
- localVarHttpContext = new HttpContext();
1143
- }
845
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
1144
846
 
1145
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
1146
- if (localVarTransferCache === undefined) {
1147
- localVarTransferCache = true;
1148
- }
847
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
1149
848
 
1150
849
  let responseType_: 'text' | 'json' | 'blob' = 'json';
1151
850
  if (localVarHttpHeaderAcceptSelected) {
@@ -1159,11 +858,12 @@ export class AssetOperationsService {
1159
858
  }
1160
859
 
1161
860
  let localVarPath = `/assetscheck`;
1162
- return this.httpClient.request<Array<Asset>>('get', `${this.configuration.basePath}${localVarPath}`, {
861
+ const { basePath, withCredentials } = this.configuration;
862
+ return this.httpClient.request<Array<Asset>>('get', `${basePath}${localVarPath}`, {
1163
863
  context: localVarHttpContext,
1164
864
  params: localVarQueryParameters,
1165
865
  responseType: <any>responseType_,
1166
- withCredentials: this.configuration.withCredentials,
866
+ ...(withCredentials ? { withCredentials } : {}),
1167
867
  headers: localVarHeaders,
1168
868
  observe: observe,
1169
869
  transferCache: localVarTransferCache,
@@ -1178,25 +878,25 @@ export class AssetOperationsService {
1178
878
  * @param reportProgress flag to report request and response progress.
1179
879
  */
1180
880
  public httpGetAssetBlob(
1181
- requestParameters?: HttpGetAssetBlobRequestParams,
881
+ requestParameters: HttpGetAssetBlobRequestParams,
1182
882
  observe?: 'body',
1183
883
  reportProgress?: boolean,
1184
884
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1185
885
  ): Observable<AssetBlob>;
1186
886
  public httpGetAssetBlob(
1187
- requestParameters?: HttpGetAssetBlobRequestParams,
887
+ requestParameters: HttpGetAssetBlobRequestParams,
1188
888
  observe?: 'response',
1189
889
  reportProgress?: boolean,
1190
890
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1191
891
  ): Observable<HttpResponse<AssetBlob>>;
1192
892
  public httpGetAssetBlob(
1193
- requestParameters?: HttpGetAssetBlobRequestParams,
893
+ requestParameters: HttpGetAssetBlobRequestParams,
1194
894
  observe?: 'events',
1195
895
  reportProgress?: boolean,
1196
896
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1197
897
  ): Observable<HttpEvent<AssetBlob>>;
1198
898
  public httpGetAssetBlob(
1199
- requestParameters?: HttpGetAssetBlobRequestParams,
899
+ requestParameters: HttpGetAssetBlobRequestParams,
1200
900
  observe: any = 'body',
1201
901
  reportProgress: boolean = false,
1202
902
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -1208,38 +908,21 @@ export class AssetOperationsService {
1208
908
  const c = requestParameters?.c;
1209
909
 
1210
910
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1211
- if (c !== undefined && c !== null) {
1212
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
1213
- }
911
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
1214
912
 
1215
913
  let localVarHeaders = this.defaultHeaders;
1216
914
 
1217
- let localVarCredential: string | undefined;
1218
915
  // authentication (msal_auth) required
1219
- localVarCredential = this.configuration.lookupCredential('msal_auth');
1220
- if (localVarCredential) {
1221
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1222
- }
916
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
1223
917
 
1224
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1225
- if (localVarHttpHeaderAcceptSelected === undefined) {
1226
- // to determine the Accept header
1227
- const httpHeaderAccepts: string[] = ['application/json'];
1228
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1229
- }
918
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
1230
919
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1231
920
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1232
921
  }
1233
922
 
1234
- let localVarHttpContext: HttpContext | undefined = options && options.context;
1235
- if (localVarHttpContext === undefined) {
1236
- localVarHttpContext = new HttpContext();
1237
- }
923
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
1238
924
 
1239
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
1240
- if (localVarTransferCache === undefined) {
1241
- localVarTransferCache = true;
1242
- }
925
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
1243
926
 
1244
927
  let responseType_: 'text' | 'json' | 'blob' = 'json';
1245
928
  if (localVarHttpHeaderAcceptSelected) {
@@ -1253,98 +936,12 @@ export class AssetOperationsService {
1253
936
  }
1254
937
 
1255
938
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/blobs`;
1256
- return this.httpClient.request<AssetBlob>('get', `${this.configuration.basePath}${localVarPath}`, {
939
+ const { basePath, withCredentials } = this.configuration;
940
+ return this.httpClient.request<AssetBlob>('get', `${basePath}${localVarPath}`, {
1257
941
  context: localVarHttpContext,
1258
942
  params: localVarQueryParameters,
1259
943
  responseType: <any>responseType_,
1260
- withCredentials: this.configuration.withCredentials,
1261
- headers: localVarHeaders,
1262
- observe: observe,
1263
- transferCache: localVarTransferCache,
1264
- reportProgress: reportProgress
1265
- });
1266
- }
1267
-
1268
- /**
1269
- * This endpoint returns the asset caption
1270
- * @param requestParameters
1271
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1272
- * @param reportProgress flag to report request and response progress.
1273
- */
1274
- public httpGetAssetCaptionById(
1275
- requestParameters?: HttpGetAssetCaptionByIdRequestParams,
1276
- observe?: 'body',
1277
- reportProgress?: boolean,
1278
- options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1279
- ): Observable<string>;
1280
- public httpGetAssetCaptionById(
1281
- requestParameters?: HttpGetAssetCaptionByIdRequestParams,
1282
- observe?: 'response',
1283
- reportProgress?: boolean,
1284
- options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1285
- ): Observable<HttpResponse<string>>;
1286
- public httpGetAssetCaptionById(
1287
- requestParameters?: HttpGetAssetCaptionByIdRequestParams,
1288
- observe?: 'events',
1289
- reportProgress?: boolean,
1290
- options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1291
- ): Observable<HttpEvent<string>>;
1292
- public httpGetAssetCaptionById(
1293
- requestParameters?: HttpGetAssetCaptionByIdRequestParams,
1294
- observe: any = 'body',
1295
- reportProgress: boolean = false,
1296
- options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1297
- ): Observable<any> {
1298
- const id = requestParameters?.id;
1299
- if (id === null || id === undefined) {
1300
- throw new Error('Required parameter id was null or undefined when calling httpGetAssetCaptionById.');
1301
- }
1302
-
1303
- let localVarHeaders = this.defaultHeaders;
1304
-
1305
- let localVarCredential: string | undefined;
1306
- // authentication (msal_auth) required
1307
- localVarCredential = this.configuration.lookupCredential('msal_auth');
1308
- if (localVarCredential) {
1309
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1310
- }
1311
-
1312
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1313
- if (localVarHttpHeaderAcceptSelected === undefined) {
1314
- // to determine the Accept header
1315
- const httpHeaderAccepts: string[] = ['application/json'];
1316
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1317
- }
1318
- if (localVarHttpHeaderAcceptSelected !== undefined) {
1319
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1320
- }
1321
-
1322
- let localVarHttpContext: HttpContext | undefined = options && options.context;
1323
- if (localVarHttpContext === undefined) {
1324
- localVarHttpContext = new HttpContext();
1325
- }
1326
-
1327
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
1328
- if (localVarTransferCache === undefined) {
1329
- localVarTransferCache = true;
1330
- }
1331
-
1332
- let responseType_: 'text' | 'json' | 'blob' = 'json';
1333
- if (localVarHttpHeaderAcceptSelected) {
1334
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1335
- responseType_ = 'text';
1336
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1337
- responseType_ = 'json';
1338
- } else {
1339
- responseType_ = 'blob';
1340
- }
1341
- }
1342
-
1343
- let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/caption`;
1344
- return this.httpClient.request<string>('get', `${this.configuration.basePath}${localVarPath}`, {
1345
- context: localVarHttpContext,
1346
- responseType: <any>responseType_,
1347
- withCredentials: this.configuration.withCredentials,
944
+ ...(withCredentials ? { withCredentials } : {}),
1348
945
  headers: localVarHeaders,
1349
946
  observe: observe,
1350
947
  transferCache: localVarTransferCache,
@@ -1359,25 +956,25 @@ export class AssetOperationsService {
1359
956
  * @param reportProgress flag to report request and response progress.
1360
957
  */
1361
958
  public httpGetAssetCollectionsById(
1362
- requestParameters?: HttpGetAssetCollectionsByIdRequestParams,
959
+ requestParameters: HttpGetAssetCollectionsByIdRequestParams,
1363
960
  observe?: 'body',
1364
961
  reportProgress?: boolean,
1365
962
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1366
963
  ): Observable<Array<Collection>>;
1367
964
  public httpGetAssetCollectionsById(
1368
- requestParameters?: HttpGetAssetCollectionsByIdRequestParams,
965
+ requestParameters: HttpGetAssetCollectionsByIdRequestParams,
1369
966
  observe?: 'response',
1370
967
  reportProgress?: boolean,
1371
968
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1372
969
  ): Observable<HttpResponse<Array<Collection>>>;
1373
970
  public httpGetAssetCollectionsById(
1374
- requestParameters?: HttpGetAssetCollectionsByIdRequestParams,
971
+ requestParameters: HttpGetAssetCollectionsByIdRequestParams,
1375
972
  observe?: 'events',
1376
973
  reportProgress?: boolean,
1377
974
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1378
975
  ): Observable<HttpEvent<Array<Collection>>>;
1379
976
  public httpGetAssetCollectionsById(
1380
- requestParameters?: HttpGetAssetCollectionsByIdRequestParams,
977
+ requestParameters: HttpGetAssetCollectionsByIdRequestParams,
1381
978
  observe: any = 'body',
1382
979
  reportProgress: boolean = false,
1383
980
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -1391,44 +988,25 @@ export class AssetOperationsService {
1391
988
  const acceptLanguage = requestParameters?.acceptLanguage;
1392
989
 
1393
990
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1394
- if (fields !== undefined && fields !== null) {
1395
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
1396
- }
1397
- if (translations !== undefined && translations !== null) {
1398
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
1399
- }
991
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
992
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
1400
993
 
1401
994
  let localVarHeaders = this.defaultHeaders;
1402
995
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
1403
996
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
1404
997
  }
1405
998
 
1406
- let localVarCredential: string | undefined;
1407
999
  // authentication (msal_auth) required
1408
- localVarCredential = this.configuration.lookupCredential('msal_auth');
1409
- if (localVarCredential) {
1410
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1411
- }
1000
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
1412
1001
 
1413
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1414
- if (localVarHttpHeaderAcceptSelected === undefined) {
1415
- // to determine the Accept header
1416
- const httpHeaderAccepts: string[] = ['application/json'];
1417
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1418
- }
1002
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
1419
1003
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1420
1004
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1421
1005
  }
1422
1006
 
1423
- let localVarHttpContext: HttpContext | undefined = options && options.context;
1424
- if (localVarHttpContext === undefined) {
1425
- localVarHttpContext = new HttpContext();
1426
- }
1007
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
1427
1008
 
1428
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
1429
- if (localVarTransferCache === undefined) {
1430
- localVarTransferCache = true;
1431
- }
1009
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
1432
1010
 
1433
1011
  let responseType_: 'text' | 'json' | 'blob' = 'json';
1434
1012
  if (localVarHttpHeaderAcceptSelected) {
@@ -1442,11 +1020,12 @@ export class AssetOperationsService {
1442
1020
  }
1443
1021
 
1444
1022
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/collections`;
1445
- return this.httpClient.request<Array<Collection>>('get', `${this.configuration.basePath}${localVarPath}`, {
1023
+ const { basePath, withCredentials } = this.configuration;
1024
+ return this.httpClient.request<Array<Collection>>('get', `${basePath}${localVarPath}`, {
1446
1025
  context: localVarHttpContext,
1447
1026
  params: localVarQueryParameters,
1448
1027
  responseType: <any>responseType_,
1449
- withCredentials: this.configuration.withCredentials,
1028
+ ...(withCredentials ? { withCredentials } : {}),
1450
1029
  headers: localVarHeaders,
1451
1030
  observe: observe,
1452
1031
  transferCache: localVarTransferCache,
@@ -1461,25 +1040,25 @@ export class AssetOperationsService {
1461
1040
  * @param reportProgress flag to report request and response progress.
1462
1041
  */
1463
1042
  public httpGetAssetDownload(
1464
- requestParameters?: HttpGetAssetDownloadRequestParams,
1043
+ requestParameters: HttpGetAssetDownloadRequestParams,
1465
1044
  observe?: 'body',
1466
1045
  reportProgress?: boolean,
1467
1046
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1468
1047
  ): Observable<AssetBlob>;
1469
1048
  public httpGetAssetDownload(
1470
- requestParameters?: HttpGetAssetDownloadRequestParams,
1049
+ requestParameters: HttpGetAssetDownloadRequestParams,
1471
1050
  observe?: 'response',
1472
1051
  reportProgress?: boolean,
1473
1052
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1474
1053
  ): Observable<HttpResponse<AssetBlob>>;
1475
1054
  public httpGetAssetDownload(
1476
- requestParameters?: HttpGetAssetDownloadRequestParams,
1055
+ requestParameters: HttpGetAssetDownloadRequestParams,
1477
1056
  observe?: 'events',
1478
1057
  reportProgress?: boolean,
1479
1058
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1480
1059
  ): Observable<HttpEvent<AssetBlob>>;
1481
1060
  public httpGetAssetDownload(
1482
- requestParameters?: HttpGetAssetDownloadRequestParams,
1061
+ requestParameters: HttpGetAssetDownloadRequestParams,
1483
1062
  observe: any = 'body',
1484
1063
  reportProgress: boolean = false,
1485
1064
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -1493,44 +1072,23 @@ export class AssetOperationsService {
1493
1072
  const portalId = requestParameters?.portalId;
1494
1073
 
1495
1074
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1496
- if (c !== undefined && c !== null) {
1497
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
1498
- }
1499
- if (f !== undefined && f !== null) {
1500
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>f, 'f');
1501
- }
1502
- if (portalId !== undefined && portalId !== null) {
1503
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
1504
- }
1075
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
1076
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>f, 'f');
1077
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
1505
1078
 
1506
1079
  let localVarHeaders = this.defaultHeaders;
1507
1080
 
1508
- let localVarCredential: string | undefined;
1509
1081
  // authentication (msal_auth) required
1510
- localVarCredential = this.configuration.lookupCredential('msal_auth');
1511
- if (localVarCredential) {
1512
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1513
- }
1082
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
1514
1083
 
1515
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1516
- if (localVarHttpHeaderAcceptSelected === undefined) {
1517
- // to determine the Accept header
1518
- const httpHeaderAccepts: string[] = ['application/json'];
1519
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1520
- }
1084
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
1521
1085
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1522
1086
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1523
1087
  }
1524
1088
 
1525
- let localVarHttpContext: HttpContext | undefined = options && options.context;
1526
- if (localVarHttpContext === undefined) {
1527
- localVarHttpContext = new HttpContext();
1528
- }
1089
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
1529
1090
 
1530
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
1531
- if (localVarTransferCache === undefined) {
1532
- localVarTransferCache = true;
1533
- }
1091
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
1534
1092
 
1535
1093
  let responseType_: 'text' | 'json' | 'blob' = 'json';
1536
1094
  if (localVarHttpHeaderAcceptSelected) {
@@ -1544,11 +1102,12 @@ export class AssetOperationsService {
1544
1102
  }
1545
1103
 
1546
1104
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/download`;
1547
- return this.httpClient.request<AssetBlob>('get', `${this.configuration.basePath}${localVarPath}`, {
1105
+ const { basePath, withCredentials } = this.configuration;
1106
+ return this.httpClient.request<AssetBlob>('get', `${basePath}${localVarPath}`, {
1548
1107
  context: localVarHttpContext,
1549
1108
  params: localVarQueryParameters,
1550
1109
  responseType: <any>responseType_,
1551
- withCredentials: this.configuration.withCredentials,
1110
+ ...(withCredentials ? { withCredentials } : {}),
1552
1111
  headers: localVarHeaders,
1553
1112
  observe: observe,
1554
1113
  transferCache: localVarTransferCache,
@@ -1563,25 +1122,25 @@ export class AssetOperationsService {
1563
1122
  * @param reportProgress flag to report request and response progress.
1564
1123
  */
1565
1124
  public httpGetAssetRelationsById(
1566
- requestParameters?: HttpGetAssetRelationsByIdRequestParams,
1125
+ requestParameters: HttpGetAssetRelationsByIdRequestParams,
1567
1126
  observe?: 'body',
1568
1127
  reportProgress?: boolean,
1569
1128
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1570
1129
  ): Observable<Array<AssetRelation>>;
1571
1130
  public httpGetAssetRelationsById(
1572
- requestParameters?: HttpGetAssetRelationsByIdRequestParams,
1131
+ requestParameters: HttpGetAssetRelationsByIdRequestParams,
1573
1132
  observe?: 'response',
1574
1133
  reportProgress?: boolean,
1575
1134
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1576
1135
  ): Observable<HttpResponse<Array<AssetRelation>>>;
1577
1136
  public httpGetAssetRelationsById(
1578
- requestParameters?: HttpGetAssetRelationsByIdRequestParams,
1137
+ requestParameters: HttpGetAssetRelationsByIdRequestParams,
1579
1138
  observe?: 'events',
1580
1139
  reportProgress?: boolean,
1581
1140
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1582
1141
  ): Observable<HttpEvent<Array<AssetRelation>>>;
1583
1142
  public httpGetAssetRelationsById(
1584
- requestParameters?: HttpGetAssetRelationsByIdRequestParams,
1143
+ requestParameters: HttpGetAssetRelationsByIdRequestParams,
1585
1144
  observe: any = 'body',
1586
1145
  reportProgress: boolean = false,
1587
1146
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -1593,32 +1152,17 @@ export class AssetOperationsService {
1593
1152
 
1594
1153
  let localVarHeaders = this.defaultHeaders;
1595
1154
 
1596
- let localVarCredential: string | undefined;
1597
1155
  // authentication (msal_auth) required
1598
- localVarCredential = this.configuration.lookupCredential('msal_auth');
1599
- if (localVarCredential) {
1600
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1601
- }
1156
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
1602
1157
 
1603
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1604
- if (localVarHttpHeaderAcceptSelected === undefined) {
1605
- // to determine the Accept header
1606
- const httpHeaderAccepts: string[] = ['application/json'];
1607
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1608
- }
1158
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
1609
1159
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1610
1160
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1611
1161
  }
1612
1162
 
1613
- let localVarHttpContext: HttpContext | undefined = options && options.context;
1614
- if (localVarHttpContext === undefined) {
1615
- localVarHttpContext = new HttpContext();
1616
- }
1163
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
1617
1164
 
1618
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
1619
- if (localVarTransferCache === undefined) {
1620
- localVarTransferCache = true;
1621
- }
1165
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
1622
1166
 
1623
1167
  let responseType_: 'text' | 'json' | 'blob' = 'json';
1624
1168
  if (localVarHttpHeaderAcceptSelected) {
@@ -1632,10 +1176,11 @@ export class AssetOperationsService {
1632
1176
  }
1633
1177
 
1634
1178
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/relations`;
1635
- return this.httpClient.request<Array<AssetRelation>>('get', `${this.configuration.basePath}${localVarPath}`, {
1179
+ const { basePath, withCredentials } = this.configuration;
1180
+ return this.httpClient.request<Array<AssetRelation>>('get', `${basePath}${localVarPath}`, {
1636
1181
  context: localVarHttpContext,
1637
1182
  responseType: <any>responseType_,
1638
- withCredentials: this.configuration.withCredentials,
1183
+ ...(withCredentials ? { withCredentials } : {}),
1639
1184
  headers: localVarHeaders,
1640
1185
  observe: observe,
1641
1186
  transferCache: localVarTransferCache,
@@ -1650,25 +1195,25 @@ export class AssetOperationsService {
1650
1195
  * @param reportProgress flag to report request and response progress.
1651
1196
  */
1652
1197
  public httpGetAssetTechDataById(
1653
- requestParameters?: HttpGetAssetTechDataByIdRequestParams,
1198
+ requestParameters: HttpGetAssetTechDataByIdRequestParams,
1654
1199
  observe?: 'body',
1655
1200
  reportProgress?: boolean,
1656
1201
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1657
1202
  ): Observable<Array<Metadata>>;
1658
1203
  public httpGetAssetTechDataById(
1659
- requestParameters?: HttpGetAssetTechDataByIdRequestParams,
1204
+ requestParameters: HttpGetAssetTechDataByIdRequestParams,
1660
1205
  observe?: 'response',
1661
1206
  reportProgress?: boolean,
1662
1207
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1663
1208
  ): Observable<HttpResponse<Array<Metadata>>>;
1664
1209
  public httpGetAssetTechDataById(
1665
- requestParameters?: HttpGetAssetTechDataByIdRequestParams,
1210
+ requestParameters: HttpGetAssetTechDataByIdRequestParams,
1666
1211
  observe?: 'events',
1667
1212
  reportProgress?: boolean,
1668
1213
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1669
1214
  ): Observable<HttpEvent<Array<Metadata>>>;
1670
1215
  public httpGetAssetTechDataById(
1671
- requestParameters?: HttpGetAssetTechDataByIdRequestParams,
1216
+ requestParameters: HttpGetAssetTechDataByIdRequestParams,
1672
1217
  observe: any = 'body',
1673
1218
  reportProgress: boolean = false,
1674
1219
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -1680,32 +1225,17 @@ export class AssetOperationsService {
1680
1225
 
1681
1226
  let localVarHeaders = this.defaultHeaders;
1682
1227
 
1683
- let localVarCredential: string | undefined;
1684
1228
  // authentication (msal_auth) required
1685
- localVarCredential = this.configuration.lookupCredential('msal_auth');
1686
- if (localVarCredential) {
1687
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1688
- }
1229
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
1689
1230
 
1690
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1691
- if (localVarHttpHeaderAcceptSelected === undefined) {
1692
- // to determine the Accept header
1693
- const httpHeaderAccepts: string[] = ['application/json'];
1694
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1695
- }
1231
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
1696
1232
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1697
1233
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1698
1234
  }
1699
1235
 
1700
- let localVarHttpContext: HttpContext | undefined = options && options.context;
1701
- if (localVarHttpContext === undefined) {
1702
- localVarHttpContext = new HttpContext();
1703
- }
1236
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
1704
1237
 
1705
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
1706
- if (localVarTransferCache === undefined) {
1707
- localVarTransferCache = true;
1708
- }
1238
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
1709
1239
 
1710
1240
  let responseType_: 'text' | 'json' | 'blob' = 'json';
1711
1241
  if (localVarHttpHeaderAcceptSelected) {
@@ -1719,10 +1249,11 @@ export class AssetOperationsService {
1719
1249
  }
1720
1250
 
1721
1251
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/techdata`;
1722
- return this.httpClient.request<Array<Metadata>>('get', `${this.configuration.basePath}${localVarPath}`, {
1252
+ const { basePath, withCredentials } = this.configuration;
1253
+ return this.httpClient.request<Array<Metadata>>('get', `${basePath}${localVarPath}`, {
1723
1254
  context: localVarHttpContext,
1724
1255
  responseType: <any>responseType_,
1725
- withCredentials: this.configuration.withCredentials,
1256
+ ...(withCredentials ? { withCredentials } : {}),
1726
1257
  headers: localVarHeaders,
1727
1258
  observe: observe,
1728
1259
  transferCache: localVarTransferCache,
@@ -1737,25 +1268,25 @@ export class AssetOperationsService {
1737
1268
  * @param reportProgress flag to report request and response progress.
1738
1269
  */
1739
1270
  public httpGetAssetTextContentById(
1740
- requestParameters?: HttpGetAssetTextContentByIdRequestParams,
1271
+ requestParameters: HttpGetAssetTextContentByIdRequestParams,
1741
1272
  observe?: 'body',
1742
1273
  reportProgress?: boolean,
1743
1274
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1744
1275
  ): Observable<AssetTextContent>;
1745
1276
  public httpGetAssetTextContentById(
1746
- requestParameters?: HttpGetAssetTextContentByIdRequestParams,
1277
+ requestParameters: HttpGetAssetTextContentByIdRequestParams,
1747
1278
  observe?: 'response',
1748
1279
  reportProgress?: boolean,
1749
1280
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1750
1281
  ): Observable<HttpResponse<AssetTextContent>>;
1751
1282
  public httpGetAssetTextContentById(
1752
- requestParameters?: HttpGetAssetTextContentByIdRequestParams,
1283
+ requestParameters: HttpGetAssetTextContentByIdRequestParams,
1753
1284
  observe?: 'events',
1754
1285
  reportProgress?: boolean,
1755
1286
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1756
1287
  ): Observable<HttpEvent<AssetTextContent>>;
1757
1288
  public httpGetAssetTextContentById(
1758
- requestParameters?: HttpGetAssetTextContentByIdRequestParams,
1289
+ requestParameters: HttpGetAssetTextContentByIdRequestParams,
1759
1290
  observe: any = 'body',
1760
1291
  reportProgress: boolean = false,
1761
1292
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -1767,32 +1298,17 @@ export class AssetOperationsService {
1767
1298
 
1768
1299
  let localVarHeaders = this.defaultHeaders;
1769
1300
 
1770
- let localVarCredential: string | undefined;
1771
1301
  // authentication (msal_auth) required
1772
- localVarCredential = this.configuration.lookupCredential('msal_auth');
1773
- if (localVarCredential) {
1774
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1775
- }
1302
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
1776
1303
 
1777
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1778
- if (localVarHttpHeaderAcceptSelected === undefined) {
1779
- // to determine the Accept header
1780
- const httpHeaderAccepts: string[] = ['application/json'];
1781
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1782
- }
1304
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
1783
1305
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1784
1306
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1785
1307
  }
1786
1308
 
1787
- let localVarHttpContext: HttpContext | undefined = options && options.context;
1788
- if (localVarHttpContext === undefined) {
1789
- localVarHttpContext = new HttpContext();
1790
- }
1309
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
1791
1310
 
1792
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
1793
- if (localVarTransferCache === undefined) {
1794
- localVarTransferCache = true;
1795
- }
1311
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
1796
1312
 
1797
1313
  let responseType_: 'text' | 'json' | 'blob' = 'json';
1798
1314
  if (localVarHttpHeaderAcceptSelected) {
@@ -1806,10 +1322,11 @@ export class AssetOperationsService {
1806
1322
  }
1807
1323
 
1808
1324
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/textcontent`;
1809
- return this.httpClient.request<AssetTextContent>('get', `${this.configuration.basePath}${localVarPath}`, {
1325
+ const { basePath, withCredentials } = this.configuration;
1326
+ return this.httpClient.request<AssetTextContent>('get', `${basePath}${localVarPath}`, {
1810
1327
  context: localVarHttpContext,
1811
1328
  responseType: <any>responseType_,
1812
- withCredentials: this.configuration.withCredentials,
1329
+ ...(withCredentials ? { withCredentials } : {}),
1813
1330
  headers: localVarHeaders,
1814
1331
  observe: observe,
1815
1332
  transferCache: localVarTransferCache,
@@ -1824,25 +1341,25 @@ export class AssetOperationsService {
1824
1341
  * @param reportProgress flag to report request and response progress.
1825
1342
  */
1826
1343
  public httpImageDynamicEdit(
1827
- requestParameters?: HttpImageDynamicEditRequestParams,
1344
+ requestParameters: HttpImageDynamicEditRequestParams,
1828
1345
  observe?: 'body',
1829
1346
  reportProgress?: boolean,
1830
1347
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
1831
1348
  ): Observable<Blob>;
1832
1349
  public httpImageDynamicEdit(
1833
- requestParameters?: HttpImageDynamicEditRequestParams,
1350
+ requestParameters: HttpImageDynamicEditRequestParams,
1834
1351
  observe?: 'response',
1835
1352
  reportProgress?: boolean,
1836
1353
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
1837
1354
  ): Observable<HttpResponse<Blob>>;
1838
1355
  public httpImageDynamicEdit(
1839
- requestParameters?: HttpImageDynamicEditRequestParams,
1356
+ requestParameters: HttpImageDynamicEditRequestParams,
1840
1357
  observe?: 'events',
1841
1358
  reportProgress?: boolean,
1842
1359
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
1843
1360
  ): Observable<HttpEvent<Blob>>;
1844
1361
  public httpImageDynamicEdit(
1845
- requestParameters?: HttpImageDynamicEditRequestParams,
1362
+ requestParameters: HttpImageDynamicEditRequestParams,
1846
1363
  observe: any = 'body',
1847
1364
  reportProgress: boolean = false,
1848
1365
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -1858,32 +1375,17 @@ export class AssetOperationsService {
1858
1375
 
1859
1376
  let localVarHeaders = this.defaultHeaders;
1860
1377
 
1861
- let localVarCredential: string | undefined;
1862
1378
  // authentication (msal_auth) required
1863
- localVarCredential = this.configuration.lookupCredential('msal_auth');
1864
- if (localVarCredential) {
1865
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1866
- }
1379
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
1867
1380
 
1868
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1869
- if (localVarHttpHeaderAcceptSelected === undefined) {
1870
- // to determine the Accept header
1871
- const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
1872
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1873
- }
1381
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['image/xyz', 'application/json']);
1874
1382
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1875
1383
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1876
1384
  }
1877
1385
 
1878
- let localVarHttpContext: HttpContext | undefined = options && options.context;
1879
- if (localVarHttpContext === undefined) {
1880
- localVarHttpContext = new HttpContext();
1881
- }
1386
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
1882
1387
 
1883
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
1884
- if (localVarTransferCache === undefined) {
1885
- localVarTransferCache = true;
1886
- }
1388
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
1887
1389
 
1888
1390
  // to determine the Content-Type header
1889
1391
  const consumes: string[] = ['application/json'];
@@ -1893,11 +1395,12 @@ export class AssetOperationsService {
1893
1395
  }
1894
1396
 
1895
1397
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/imageedit`;
1896
- return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1398
+ const { basePath, withCredentials } = this.configuration;
1399
+ return this.httpClient.request('post', `${basePath}${localVarPath}`, {
1897
1400
  context: localVarHttpContext,
1898
1401
  body: dynamicImageOperation,
1899
1402
  responseType: 'blob',
1900
- withCredentials: this.configuration.withCredentials,
1403
+ ...(withCredentials ? { withCredentials } : {}),
1901
1404
  headers: localVarHeaders,
1902
1405
  observe: observe,
1903
1406
  transferCache: localVarTransferCache,
@@ -1912,25 +1415,25 @@ export class AssetOperationsService {
1912
1415
  * @param reportProgress flag to report request and response progress.
1913
1416
  */
1914
1417
  public httpImageDynamicGetFromDownloadId(
1915
- requestParameters?: HttpImageDynamicGetFromDownloadIdRequestParams,
1418
+ requestParameters: HttpImageDynamicGetFromDownloadIdRequestParams,
1916
1419
  observe?: 'body',
1917
1420
  reportProgress?: boolean,
1918
1421
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
1919
1422
  ): Observable<Blob>;
1920
1423
  public httpImageDynamicGetFromDownloadId(
1921
- requestParameters?: HttpImageDynamicGetFromDownloadIdRequestParams,
1424
+ requestParameters: HttpImageDynamicGetFromDownloadIdRequestParams,
1922
1425
  observe?: 'response',
1923
1426
  reportProgress?: boolean,
1924
1427
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
1925
1428
  ): Observable<HttpResponse<Blob>>;
1926
1429
  public httpImageDynamicGetFromDownloadId(
1927
- requestParameters?: HttpImageDynamicGetFromDownloadIdRequestParams,
1430
+ requestParameters: HttpImageDynamicGetFromDownloadIdRequestParams,
1928
1431
  observe?: 'events',
1929
1432
  reportProgress?: boolean,
1930
1433
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
1931
1434
  ): Observable<HttpEvent<Blob>>;
1932
1435
  public httpImageDynamicGetFromDownloadId(
1933
- requestParameters?: HttpImageDynamicGetFromDownloadIdRequestParams,
1436
+ requestParameters: HttpImageDynamicGetFromDownloadIdRequestParams,
1934
1437
  observe: any = 'body',
1935
1438
  reportProgress: boolean = false,
1936
1439
  options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -1946,38 +1449,24 @@ export class AssetOperationsService {
1946
1449
 
1947
1450
  let localVarHeaders = this.defaultHeaders;
1948
1451
 
1949
- let localVarCredential: string | undefined;
1950
1452
  // authentication (msal_auth) required
1951
- localVarCredential = this.configuration.lookupCredential('msal_auth');
1952
- if (localVarCredential) {
1953
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1954
- }
1453
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
1955
1454
 
1956
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1957
- if (localVarHttpHeaderAcceptSelected === undefined) {
1958
- // to determine the Accept header
1959
- const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
1960
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1961
- }
1455
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['image/xyz', 'application/json']);
1962
1456
  if (localVarHttpHeaderAcceptSelected !== undefined) {
1963
1457
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1964
1458
  }
1965
1459
 
1966
- let localVarHttpContext: HttpContext | undefined = options && options.context;
1967
- if (localVarHttpContext === undefined) {
1968
- localVarHttpContext = new HttpContext();
1969
- }
1460
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
1970
1461
 
1971
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
1972
- if (localVarTransferCache === undefined) {
1973
- localVarTransferCache = true;
1974
- }
1462
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
1975
1463
 
1976
1464
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/imageedit/${this.configuration.encodeParam({ name: 'downloadFormatId', value: downloadFormatId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
1977
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1465
+ const { basePath, withCredentials } = this.configuration;
1466
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1978
1467
  context: localVarHttpContext,
1979
1468
  responseType: 'blob',
1980
- withCredentials: this.configuration.withCredentials,
1469
+ ...(withCredentials ? { withCredentials } : {}),
1981
1470
  headers: localVarHeaders,
1982
1471
  observe: observe,
1983
1472
  transferCache: localVarTransferCache,
@@ -1992,25 +1481,25 @@ export class AssetOperationsService {
1992
1481
  * @param reportProgress flag to report request and response progress.
1993
1482
  */
1994
1483
  public httpPatchAssetPurgeCdn(
1995
- requestParameters?: HttpPatchAssetPurgeCdnRequestParams,
1484
+ requestParameters: HttpPatchAssetPurgeCdnRequestParams,
1996
1485
  observe?: 'body',
1997
1486
  reportProgress?: boolean,
1998
1487
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1999
1488
  ): Observable<AgravityInfoResponse>;
2000
1489
  public httpPatchAssetPurgeCdn(
2001
- requestParameters?: HttpPatchAssetPurgeCdnRequestParams,
1490
+ requestParameters: HttpPatchAssetPurgeCdnRequestParams,
2002
1491
  observe?: 'response',
2003
1492
  reportProgress?: boolean,
2004
1493
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2005
1494
  ): Observable<HttpResponse<AgravityInfoResponse>>;
2006
1495
  public httpPatchAssetPurgeCdn(
2007
- requestParameters?: HttpPatchAssetPurgeCdnRequestParams,
1496
+ requestParameters: HttpPatchAssetPurgeCdnRequestParams,
2008
1497
  observe?: 'events',
2009
1498
  reportProgress?: boolean,
2010
1499
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2011
1500
  ): Observable<HttpEvent<AgravityInfoResponse>>;
2012
1501
  public httpPatchAssetPurgeCdn(
2013
- requestParameters?: HttpPatchAssetPurgeCdnRequestParams,
1502
+ requestParameters: HttpPatchAssetPurgeCdnRequestParams,
2014
1503
  observe: any = 'body',
2015
1504
  reportProgress: boolean = false,
2016
1505
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -2022,32 +1511,17 @@ export class AssetOperationsService {
2022
1511
 
2023
1512
  let localVarHeaders = this.defaultHeaders;
2024
1513
 
2025
- let localVarCredential: string | undefined;
2026
1514
  // authentication (msal_auth) required
2027
- localVarCredential = this.configuration.lookupCredential('msal_auth');
2028
- if (localVarCredential) {
2029
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
2030
- }
1515
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
2031
1516
 
2032
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
2033
- if (localVarHttpHeaderAcceptSelected === undefined) {
2034
- // to determine the Accept header
2035
- const httpHeaderAccepts: string[] = ['application/json'];
2036
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2037
- }
1517
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
2038
1518
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2039
1519
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2040
1520
  }
2041
1521
 
2042
- let localVarHttpContext: HttpContext | undefined = options && options.context;
2043
- if (localVarHttpContext === undefined) {
2044
- localVarHttpContext = new HttpContext();
2045
- }
1522
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
2046
1523
 
2047
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
2048
- if (localVarTransferCache === undefined) {
2049
- localVarTransferCache = true;
2050
- }
1524
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
2051
1525
 
2052
1526
  let responseType_: 'text' | 'json' | 'blob' = 'json';
2053
1527
  if (localVarHttpHeaderAcceptSelected) {
@@ -2061,10 +1535,11 @@ export class AssetOperationsService {
2061
1535
  }
2062
1536
 
2063
1537
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/purgecdn`;
2064
- return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
1538
+ const { basePath, withCredentials } = this.configuration;
1539
+ return this.httpClient.request<AgravityInfoResponse>('patch', `${basePath}${localVarPath}`, {
2065
1540
  context: localVarHttpContext,
2066
1541
  responseType: <any>responseType_,
2067
- withCredentials: this.configuration.withCredentials,
1542
+ ...(withCredentials ? { withCredentials } : {}),
2068
1543
  headers: localVarHeaders,
2069
1544
  observe: observe,
2070
1545
  transferCache: localVarTransferCache,
@@ -2079,25 +1554,25 @@ export class AssetOperationsService {
2079
1554
  * @param reportProgress flag to report request and response progress.
2080
1555
  */
2081
1556
  public httpPatchAssetReindex(
2082
- requestParameters?: HttpPatchAssetReindexRequestParams,
1557
+ requestParameters: HttpPatchAssetReindexRequestParams,
2083
1558
  observe?: 'body',
2084
1559
  reportProgress?: boolean,
2085
1560
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2086
1561
  ): Observable<AgravityInfoResponse>;
2087
1562
  public httpPatchAssetReindex(
2088
- requestParameters?: HttpPatchAssetReindexRequestParams,
1563
+ requestParameters: HttpPatchAssetReindexRequestParams,
2089
1564
  observe?: 'response',
2090
1565
  reportProgress?: boolean,
2091
1566
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2092
1567
  ): Observable<HttpResponse<AgravityInfoResponse>>;
2093
1568
  public httpPatchAssetReindex(
2094
- requestParameters?: HttpPatchAssetReindexRequestParams,
1569
+ requestParameters: HttpPatchAssetReindexRequestParams,
2095
1570
  observe?: 'events',
2096
1571
  reportProgress?: boolean,
2097
1572
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2098
1573
  ): Observable<HttpEvent<AgravityInfoResponse>>;
2099
1574
  public httpPatchAssetReindex(
2100
- requestParameters?: HttpPatchAssetReindexRequestParams,
1575
+ requestParameters: HttpPatchAssetReindexRequestParams,
2101
1576
  observe: any = 'body',
2102
1577
  reportProgress: boolean = false,
2103
1578
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -2109,32 +1584,17 @@ export class AssetOperationsService {
2109
1584
 
2110
1585
  let localVarHeaders = this.defaultHeaders;
2111
1586
 
2112
- let localVarCredential: string | undefined;
2113
1587
  // authentication (msal_auth) required
2114
- localVarCredential = this.configuration.lookupCredential('msal_auth');
2115
- if (localVarCredential) {
2116
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
2117
- }
1588
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
2118
1589
 
2119
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
2120
- if (localVarHttpHeaderAcceptSelected === undefined) {
2121
- // to determine the Accept header
2122
- const httpHeaderAccepts: string[] = ['application/json'];
2123
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2124
- }
1590
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
2125
1591
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2126
1592
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2127
1593
  }
2128
1594
 
2129
- let localVarHttpContext: HttpContext | undefined = options && options.context;
2130
- if (localVarHttpContext === undefined) {
2131
- localVarHttpContext = new HttpContext();
2132
- }
1595
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
2133
1596
 
2134
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
2135
- if (localVarTransferCache === undefined) {
2136
- localVarTransferCache = true;
2137
- }
1597
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
2138
1598
 
2139
1599
  let responseType_: 'text' | 'json' | 'blob' = 'json';
2140
1600
  if (localVarHttpHeaderAcceptSelected) {
@@ -2148,10 +1608,11 @@ export class AssetOperationsService {
2148
1608
  }
2149
1609
 
2150
1610
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/reindex`;
2151
- return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
1611
+ const { basePath, withCredentials } = this.configuration;
1612
+ return this.httpClient.request<AgravityInfoResponse>('patch', `${basePath}${localVarPath}`, {
2152
1613
  context: localVarHttpContext,
2153
1614
  responseType: <any>responseType_,
2154
- withCredentials: this.configuration.withCredentials,
1615
+ ...(withCredentials ? { withCredentials } : {}),
2155
1616
  headers: localVarHeaders,
2156
1617
  observe: observe,
2157
1618
  transferCache: localVarTransferCache,
@@ -2166,25 +1627,25 @@ export class AssetOperationsService {
2166
1627
  * @param reportProgress flag to report request and response progress.
2167
1628
  */
2168
1629
  public httpPatchAssetRenew(
2169
- requestParameters?: HttpPatchAssetRenewRequestParams,
1630
+ requestParameters: HttpPatchAssetRenewRequestParams,
2170
1631
  observe?: 'body',
2171
1632
  reportProgress?: boolean,
2172
1633
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2173
1634
  ): Observable<AgravityInfoResponse>;
2174
1635
  public httpPatchAssetRenew(
2175
- requestParameters?: HttpPatchAssetRenewRequestParams,
1636
+ requestParameters: HttpPatchAssetRenewRequestParams,
2176
1637
  observe?: 'response',
2177
1638
  reportProgress?: boolean,
2178
1639
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2179
1640
  ): Observable<HttpResponse<AgravityInfoResponse>>;
2180
1641
  public httpPatchAssetRenew(
2181
- requestParameters?: HttpPatchAssetRenewRequestParams,
1642
+ requestParameters: HttpPatchAssetRenewRequestParams,
2182
1643
  observe?: 'events',
2183
1644
  reportProgress?: boolean,
2184
1645
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2185
1646
  ): Observable<HttpEvent<AgravityInfoResponse>>;
2186
1647
  public httpPatchAssetRenew(
2187
- requestParameters?: HttpPatchAssetRenewRequestParams,
1648
+ requestParameters: HttpPatchAssetRenewRequestParams,
2188
1649
  observe: any = 'body',
2189
1650
  reportProgress: boolean = false,
2190
1651
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -2196,32 +1657,17 @@ export class AssetOperationsService {
2196
1657
 
2197
1658
  let localVarHeaders = this.defaultHeaders;
2198
1659
 
2199
- let localVarCredential: string | undefined;
2200
1660
  // authentication (msal_auth) required
2201
- localVarCredential = this.configuration.lookupCredential('msal_auth');
2202
- if (localVarCredential) {
2203
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
2204
- }
1661
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
2205
1662
 
2206
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
2207
- if (localVarHttpHeaderAcceptSelected === undefined) {
2208
- // to determine the Accept header
2209
- const httpHeaderAccepts: string[] = ['application/json'];
2210
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2211
- }
1663
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
2212
1664
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2213
1665
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2214
1666
  }
2215
1667
 
2216
- let localVarHttpContext: HttpContext | undefined = options && options.context;
2217
- if (localVarHttpContext === undefined) {
2218
- localVarHttpContext = new HttpContext();
2219
- }
1668
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
2220
1669
 
2221
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
2222
- if (localVarTransferCache === undefined) {
2223
- localVarTransferCache = true;
2224
- }
1670
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
2225
1671
 
2226
1672
  let responseType_: 'text' | 'json' | 'blob' = 'json';
2227
1673
  if (localVarHttpHeaderAcceptSelected) {
@@ -2235,10 +1681,11 @@ export class AssetOperationsService {
2235
1681
  }
2236
1682
 
2237
1683
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/renew`;
2238
- return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
1684
+ const { basePath, withCredentials } = this.configuration;
1685
+ return this.httpClient.request<AgravityInfoResponse>('patch', `${basePath}${localVarPath}`, {
2239
1686
  context: localVarHttpContext,
2240
1687
  responseType: <any>responseType_,
2241
- withCredentials: this.configuration.withCredentials,
1688
+ ...(withCredentials ? { withCredentials } : {}),
2242
1689
  headers: localVarHeaders,
2243
1690
  observe: observe,
2244
1691
  transferCache: localVarTransferCache,
@@ -2253,25 +1700,25 @@ export class AssetOperationsService {
2253
1700
  * @param reportProgress flag to report request and response progress.
2254
1701
  */
2255
1702
  public httpPatchAssetRepair(
2256
- requestParameters?: HttpPatchAssetRepairRequestParams,
1703
+ requestParameters: HttpPatchAssetRepairRequestParams,
2257
1704
  observe?: 'body',
2258
1705
  reportProgress?: boolean,
2259
1706
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2260
1707
  ): Observable<AgravityInfoResponse>;
2261
1708
  public httpPatchAssetRepair(
2262
- requestParameters?: HttpPatchAssetRepairRequestParams,
1709
+ requestParameters: HttpPatchAssetRepairRequestParams,
2263
1710
  observe?: 'response',
2264
1711
  reportProgress?: boolean,
2265
1712
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2266
1713
  ): Observable<HttpResponse<AgravityInfoResponse>>;
2267
1714
  public httpPatchAssetRepair(
2268
- requestParameters?: HttpPatchAssetRepairRequestParams,
1715
+ requestParameters: HttpPatchAssetRepairRequestParams,
2269
1716
  observe?: 'events',
2270
1717
  reportProgress?: boolean,
2271
1718
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2272
1719
  ): Observable<HttpEvent<AgravityInfoResponse>>;
2273
1720
  public httpPatchAssetRepair(
2274
- requestParameters?: HttpPatchAssetRepairRequestParams,
1721
+ requestParameters: HttpPatchAssetRepairRequestParams,
2275
1722
  observe: any = 'body',
2276
1723
  reportProgress: boolean = false,
2277
1724
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -2283,32 +1730,17 @@ export class AssetOperationsService {
2283
1730
 
2284
1731
  let localVarHeaders = this.defaultHeaders;
2285
1732
 
2286
- let localVarCredential: string | undefined;
2287
1733
  // authentication (msal_auth) required
2288
- localVarCredential = this.configuration.lookupCredential('msal_auth');
2289
- if (localVarCredential) {
2290
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
2291
- }
1734
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
2292
1735
 
2293
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
2294
- if (localVarHttpHeaderAcceptSelected === undefined) {
2295
- // to determine the Accept header
2296
- const httpHeaderAccepts: string[] = ['application/json'];
2297
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2298
- }
1736
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
2299
1737
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2300
1738
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2301
1739
  }
2302
1740
 
2303
- let localVarHttpContext: HttpContext | undefined = options && options.context;
2304
- if (localVarHttpContext === undefined) {
2305
- localVarHttpContext = new HttpContext();
2306
- }
1741
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
2307
1742
 
2308
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
2309
- if (localVarTransferCache === undefined) {
2310
- localVarTransferCache = true;
2311
- }
1743
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
2312
1744
 
2313
1745
  let responseType_: 'text' | 'json' | 'blob' = 'json';
2314
1746
  if (localVarHttpHeaderAcceptSelected) {
@@ -2322,10 +1754,11 @@ export class AssetOperationsService {
2322
1754
  }
2323
1755
 
2324
1756
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/repair`;
2325
- return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
1757
+ const { basePath, withCredentials } = this.configuration;
1758
+ return this.httpClient.request<AgravityInfoResponse>('patch', `${basePath}${localVarPath}`, {
2326
1759
  context: localVarHttpContext,
2327
1760
  responseType: <any>responseType_,
2328
- withCredentials: this.configuration.withCredentials,
1761
+ ...(withCredentials ? { withCredentials } : {}),
2329
1762
  headers: localVarHeaders,
2330
1763
  observe: observe,
2331
1764
  transferCache: localVarTransferCache,
@@ -2340,25 +1773,25 @@ export class AssetOperationsService {
2340
1773
  * @param reportProgress flag to report request and response progress.
2341
1774
  */
2342
1775
  public httpPatchAssetRunQueue(
2343
- requestParameters?: HttpPatchAssetRunQueueRequestParams,
1776
+ requestParameters: HttpPatchAssetRunQueueRequestParams,
2344
1777
  observe?: 'body',
2345
1778
  reportProgress?: boolean,
2346
1779
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2347
1780
  ): Observable<AgravityInfoResponse>;
2348
1781
  public httpPatchAssetRunQueue(
2349
- requestParameters?: HttpPatchAssetRunQueueRequestParams,
1782
+ requestParameters: HttpPatchAssetRunQueueRequestParams,
2350
1783
  observe?: 'response',
2351
1784
  reportProgress?: boolean,
2352
1785
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2353
1786
  ): Observable<HttpResponse<AgravityInfoResponse>>;
2354
1787
  public httpPatchAssetRunQueue(
2355
- requestParameters?: HttpPatchAssetRunQueueRequestParams,
1788
+ requestParameters: HttpPatchAssetRunQueueRequestParams,
2356
1789
  observe?: 'events',
2357
1790
  reportProgress?: boolean,
2358
1791
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2359
1792
  ): Observable<HttpEvent<AgravityInfoResponse>>;
2360
1793
  public httpPatchAssetRunQueue(
2361
- requestParameters?: HttpPatchAssetRunQueueRequestParams,
1794
+ requestParameters: HttpPatchAssetRunQueueRequestParams,
2362
1795
  observe: any = 'body',
2363
1796
  reportProgress: boolean = false,
2364
1797
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -2374,32 +1807,17 @@ export class AssetOperationsService {
2374
1807
 
2375
1808
  let localVarHeaders = this.defaultHeaders;
2376
1809
 
2377
- let localVarCredential: string | undefined;
2378
1810
  // authentication (msal_auth) required
2379
- localVarCredential = this.configuration.lookupCredential('msal_auth');
2380
- if (localVarCredential) {
2381
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
2382
- }
1811
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
2383
1812
 
2384
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
2385
- if (localVarHttpHeaderAcceptSelected === undefined) {
2386
- // to determine the Accept header
2387
- const httpHeaderAccepts: string[] = ['application/json'];
2388
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2389
- }
1813
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
2390
1814
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2391
1815
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2392
1816
  }
2393
1817
 
2394
- let localVarHttpContext: HttpContext | undefined = options && options.context;
2395
- if (localVarHttpContext === undefined) {
2396
- localVarHttpContext = new HttpContext();
2397
- }
1818
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
2398
1819
 
2399
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
2400
- if (localVarTransferCache === undefined) {
2401
- localVarTransferCache = true;
2402
- }
1820
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
2403
1821
 
2404
1822
  let responseType_: 'text' | 'json' | 'blob' = 'json';
2405
1823
  if (localVarHttpHeaderAcceptSelected) {
@@ -2413,10 +1831,11 @@ export class AssetOperationsService {
2413
1831
  }
2414
1832
 
2415
1833
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/runqueue/${this.configuration.encodeParam({ name: 'queueInput', value: queueInput, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
2416
- return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
1834
+ const { basePath, withCredentials } = this.configuration;
1835
+ return this.httpClient.request<AgravityInfoResponse>('patch', `${basePath}${localVarPath}`, {
2417
1836
  context: localVarHttpContext,
2418
1837
  responseType: <any>responseType_,
2419
- withCredentials: this.configuration.withCredentials,
1838
+ ...(withCredentials ? { withCredentials } : {}),
2420
1839
  headers: localVarHeaders,
2421
1840
  observe: observe,
2422
1841
  transferCache: localVarTransferCache,
@@ -2451,32 +1870,17 @@ export class AssetOperationsService {
2451
1870
  ): Observable<any> {
2452
1871
  let localVarHeaders = this.defaultHeaders;
2453
1872
 
2454
- let localVarCredential: string | undefined;
2455
1873
  // authentication (msal_auth) required
2456
- localVarCredential = this.configuration.lookupCredential('msal_auth');
2457
- if (localVarCredential) {
2458
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
2459
- }
1874
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
2460
1875
 
2461
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
2462
- if (localVarHttpHeaderAcceptSelected === undefined) {
2463
- // to determine the Accept header
2464
- const httpHeaderAccepts: string[] = ['application/json'];
2465
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2466
- }
1876
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
2467
1877
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2468
1878
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2469
1879
  }
2470
1880
 
2471
- let localVarHttpContext: HttpContext | undefined = options && options.context;
2472
- if (localVarHttpContext === undefined) {
2473
- localVarHttpContext = new HttpContext();
2474
- }
1881
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
2475
1882
 
2476
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
2477
- if (localVarTransferCache === undefined) {
2478
- localVarTransferCache = true;
2479
- }
1883
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
2480
1884
 
2481
1885
  let responseType_: 'text' | 'json' | 'blob' = 'json';
2482
1886
  if (localVarHttpHeaderAcceptSelected) {
@@ -2490,10 +1894,11 @@ export class AssetOperationsService {
2490
1894
  }
2491
1895
 
2492
1896
  let localVarPath = `/assetsrenew!!`;
2493
- return this.httpClient.request<AgravityInfoResponse>('patch', `${this.configuration.basePath}${localVarPath}`, {
1897
+ const { basePath, withCredentials } = this.configuration;
1898
+ return this.httpClient.request<AgravityInfoResponse>('patch', `${basePath}${localVarPath}`, {
2494
1899
  context: localVarHttpContext,
2495
1900
  responseType: <any>responseType_,
2496
- withCredentials: this.configuration.withCredentials,
1901
+ ...(withCredentials ? { withCredentials } : {}),
2497
1902
  headers: localVarHeaders,
2498
1903
  observe: observe,
2499
1904
  transferCache: localVarTransferCache,
@@ -2508,25 +1913,25 @@ export class AssetOperationsService {
2508
1913
  * @param reportProgress flag to report request and response progress.
2509
1914
  */
2510
1915
  public httpPutAssetAvailability(
2511
- requestParameters?: HttpPutAssetAvailabilityRequestParams,
1916
+ requestParameters: HttpPutAssetAvailabilityRequestParams,
2512
1917
  observe?: 'body',
2513
1918
  reportProgress?: boolean,
2514
1919
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2515
1920
  ): Observable<AssetAvailability>;
2516
1921
  public httpPutAssetAvailability(
2517
- requestParameters?: HttpPutAssetAvailabilityRequestParams,
1922
+ requestParameters: HttpPutAssetAvailabilityRequestParams,
2518
1923
  observe?: 'response',
2519
1924
  reportProgress?: boolean,
2520
1925
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2521
1926
  ): Observable<HttpResponse<AssetAvailability>>;
2522
1927
  public httpPutAssetAvailability(
2523
- requestParameters?: HttpPutAssetAvailabilityRequestParams,
1928
+ requestParameters: HttpPutAssetAvailabilityRequestParams,
2524
1929
  observe?: 'events',
2525
1930
  reportProgress?: boolean,
2526
1931
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2527
1932
  ): Observable<HttpEvent<AssetAvailability>>;
2528
1933
  public httpPutAssetAvailability(
2529
- requestParameters?: HttpPutAssetAvailabilityRequestParams,
1934
+ requestParameters: HttpPutAssetAvailabilityRequestParams,
2530
1935
  observe: any = 'body',
2531
1936
  reportProgress: boolean = false,
2532
1937
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -2542,32 +1947,17 @@ export class AssetOperationsService {
2542
1947
 
2543
1948
  let localVarHeaders = this.defaultHeaders;
2544
1949
 
2545
- let localVarCredential: string | undefined;
2546
1950
  // authentication (msal_auth) required
2547
- localVarCredential = this.configuration.lookupCredential('msal_auth');
2548
- if (localVarCredential) {
2549
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
2550
- }
1951
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
2551
1952
 
2552
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
2553
- if (localVarHttpHeaderAcceptSelected === undefined) {
2554
- // to determine the Accept header
2555
- const httpHeaderAccepts: string[] = ['application/json'];
2556
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2557
- }
1953
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
2558
1954
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2559
1955
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2560
1956
  }
2561
1957
 
2562
- let localVarHttpContext: HttpContext | undefined = options && options.context;
2563
- if (localVarHttpContext === undefined) {
2564
- localVarHttpContext = new HttpContext();
2565
- }
1958
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
2566
1959
 
2567
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
2568
- if (localVarTransferCache === undefined) {
2569
- localVarTransferCache = true;
2570
- }
1960
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
2571
1961
 
2572
1962
  // to determine the Content-Type header
2573
1963
  const consumes: string[] = ['application/json'];
@@ -2588,11 +1978,12 @@ export class AssetOperationsService {
2588
1978
  }
2589
1979
 
2590
1980
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/availability`;
2591
- return this.httpClient.request<AssetAvailability>('put', `${this.configuration.basePath}${localVarPath}`, {
1981
+ const { basePath, withCredentials } = this.configuration;
1982
+ return this.httpClient.request<AssetAvailability>('put', `${basePath}${localVarPath}`, {
2592
1983
  context: localVarHttpContext,
2593
1984
  body: assetAvailability,
2594
1985
  responseType: <any>responseType_,
2595
- withCredentials: this.configuration.withCredentials,
1986
+ ...(withCredentials ? { withCredentials } : {}),
2596
1987
  headers: localVarHeaders,
2597
1988
  observe: observe,
2598
1989
  transferCache: localVarTransferCache,
@@ -2607,25 +1998,25 @@ export class AssetOperationsService {
2607
1998
  * @param reportProgress flag to report request and response progress.
2608
1999
  */
2609
2000
  public httpRestoreAsset(
2610
- requestParameters?: HttpRestoreAssetRequestParams,
2001
+ requestParameters: HttpRestoreAssetRequestParams,
2611
2002
  observe?: 'body',
2612
2003
  reportProgress?: boolean,
2613
2004
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2614
2005
  ): Observable<Asset>;
2615
2006
  public httpRestoreAsset(
2616
- requestParameters?: HttpRestoreAssetRequestParams,
2007
+ requestParameters: HttpRestoreAssetRequestParams,
2617
2008
  observe?: 'response',
2618
2009
  reportProgress?: boolean,
2619
2010
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2620
2011
  ): Observable<HttpResponse<Asset>>;
2621
2012
  public httpRestoreAsset(
2622
- requestParameters?: HttpRestoreAssetRequestParams,
2013
+ requestParameters: HttpRestoreAssetRequestParams,
2623
2014
  observe?: 'events',
2624
2015
  reportProgress?: boolean,
2625
2016
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
2626
2017
  ): Observable<HttpEvent<Asset>>;
2627
2018
  public httpRestoreAsset(
2628
- requestParameters?: HttpRestoreAssetRequestParams,
2019
+ requestParameters: HttpRestoreAssetRequestParams,
2629
2020
  observe: any = 'body',
2630
2021
  reportProgress: boolean = false,
2631
2022
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -2641,41 +2032,22 @@ export class AssetOperationsService {
2641
2032
  const altcollection = requestParameters?.altcollection;
2642
2033
 
2643
2034
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2644
- if (pointintime !== undefined && pointintime !== null) {
2645
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pointintime, 'pointintime');
2646
- }
2647
- if (altcollection !== undefined && altcollection !== null) {
2648
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>altcollection, 'altcollection');
2649
- }
2035
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pointintime, 'pointintime');
2036
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>altcollection, 'altcollection');
2650
2037
 
2651
2038
  let localVarHeaders = this.defaultHeaders;
2652
2039
 
2653
- let localVarCredential: string | undefined;
2654
2040
  // authentication (msal_auth) required
2655
- localVarCredential = this.configuration.lookupCredential('msal_auth');
2656
- if (localVarCredential) {
2657
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
2658
- }
2041
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
2659
2042
 
2660
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
2661
- if (localVarHttpHeaderAcceptSelected === undefined) {
2662
- // to determine the Accept header
2663
- const httpHeaderAccepts: string[] = ['application/json'];
2664
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2665
- }
2043
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
2666
2044
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2667
2045
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2668
2046
  }
2669
2047
 
2670
- let localVarHttpContext: HttpContext | undefined = options && options.context;
2671
- if (localVarHttpContext === undefined) {
2672
- localVarHttpContext = new HttpContext();
2673
- }
2048
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
2674
2049
 
2675
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
2676
- if (localVarTransferCache === undefined) {
2677
- localVarTransferCache = true;
2678
- }
2050
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
2679
2051
 
2680
2052
  let responseType_: 'text' | 'json' | 'blob' = 'json';
2681
2053
  if (localVarHttpHeaderAcceptSelected) {
@@ -2689,11 +2061,12 @@ export class AssetOperationsService {
2689
2061
  }
2690
2062
 
2691
2063
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/restore`;
2692
- return this.httpClient.request<Asset>('post', `${this.configuration.basePath}${localVarPath}`, {
2064
+ const { basePath, withCredentials } = this.configuration;
2065
+ return this.httpClient.request<Asset>('post', `${basePath}${localVarPath}`, {
2693
2066
  context: localVarHttpContext,
2694
2067
  params: localVarQueryParameters,
2695
2068
  responseType: <any>responseType_,
2696
- withCredentials: this.configuration.withCredentials,
2069
+ ...(withCredentials ? { withCredentials } : {}),
2697
2070
  headers: localVarHeaders,
2698
2071
  observe: observe,
2699
2072
  transferCache: localVarTransferCache,