@agravity/private 9.4.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 (92) hide show
  1. package/.openapi-generator/FILES +11 -3
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +97 -142
  4. package/api/aIOperations.agravity.ts +878 -0
  5. package/api/api.ts +9 -3
  6. package/api/assetIconRuleManagement.agravity.ts +59 -190
  7. package/api/assetManagement.agravity.ts +118 -355
  8. package/api/assetOperations.agravity.ts +290 -917
  9. package/api/assetPublishing.agravity.ts +107 -288
  10. package/api/assetRelationManagement.agravity.ts +61 -196
  11. package/api/assetRelationTypeManagement.agravity.ts +70 -215
  12. package/api/assetVersioning.agravity.ts +105 -300
  13. package/api/authenticationManagement.agravity.ts +137 -392
  14. package/api/collectionManagement.agravity.ts +217 -376
  15. package/api/collectionShareManagement.agravity.ts +59 -190
  16. package/api/collectionTypeItemBlueprintManagement.agravity.ts +47 -162
  17. package/api/collectionTypeManagement.agravity.ts +91 -270
  18. package/api/commentsManagement.agravity.ts +48 -157
  19. package/api/configurationManagement.agravity.ts +53 -180
  20. package/api/dashboardWidgetManagement.agravity.ts +56 -181
  21. package/api/dataImportExportManagement.agravity.ts +58 -203
  22. package/api/downloadFormatManagement.agravity.ts +70 -215
  23. package/api/downloadZip.agravity.ts +37 -132
  24. package/api/generalManagement.agravity.ts +64 -229
  25. package/api/helperTools.agravity.ts +214 -404
  26. package/api/historyEntryManagement.agravity.ts +16 -85
  27. package/api/iccProfileManagement.agravity.ts +11 -78
  28. package/api/listBlobs.agravity.ts +18 -99
  29. package/api/listQueues.agravity.ts +11 -78
  30. package/api/listTables.agravity.ts +11 -78
  31. package/api/notificationManagement.agravity.ts +267 -0
  32. package/api/permissionsManagement.agravity.ts +44 -153
  33. package/api/portalManagement.agravity.ts +88 -253
  34. package/api/portalsUsersManagement.agravity.ts +55 -178
  35. package/api/publishing.agravity.ts +13 -84
  36. package/api/quickshareManagement.agravity.ts +67 -214
  37. package/api/savedSearchManagement.agravity.ts +37 -140
  38. package/api/searchManagement.agravity.ts +102 -327
  39. package/api/searchSettingsOperations.agravity.ts +187 -0
  40. package/api/secureUpload.agravity.ts +68 -209
  41. package/api/signalRConnectionManagement.agravity.ts +26 -109
  42. package/api/staticDefinedListManagement.agravity.ts +60 -193
  43. package/api/stockImport.agravity.ts +31 -122
  44. package/api/structureImport.agravity.ts +11 -78
  45. package/api/translationManagement.agravity.ts +86 -229
  46. package/api/webAppData.agravity.ts +48 -157
  47. package/api/widgetLayoutManagement.agravity.ts +22 -103
  48. package/api/wordpressManagement.agravity.ts +34 -131
  49. package/api/workspaceManagement.agravity.ts +77 -236
  50. package/api.base.service.ts +78 -0
  51. package/configuration.ts +33 -17
  52. package/index.ts +1 -0
  53. package/model/{aiGroupEntity.agravity.ts → aiAsset.agravity.ts} +2 -3
  54. package/model/aiFieldGeneration.agravity.ts +1 -5
  55. package/model/{aiGroup.agravity.ts → aiModelDeployment.agravity.ts} +6 -5
  56. package/model/aiSettings.agravity.ts +4 -3
  57. package/model/aiTypeSettings.agravity.ts +17 -0
  58. package/model/asset.agravity.ts +6 -6
  59. package/model/assetBlob.agravity.ts +15 -15
  60. package/model/assetIconRule.agravity.ts +1 -1
  61. package/model/assetRelationType.agravity.ts +1 -1
  62. package/model/azureIdentity.agravity.ts +7 -7
  63. package/model/collTypeItem.agravity.ts +1 -1
  64. package/model/collTypeItemBlueprint.agravity.ts +1 -1
  65. package/model/collection.agravity.ts +6 -6
  66. package/model/collectionType.agravity.ts +6 -6
  67. package/model/collectionUDL.agravity.ts +1 -1
  68. package/model/dashboardWidget.agravity.ts +1 -1
  69. package/model/downloadFormat.agravity.ts +1 -1
  70. package/model/downloadZipRequest.agravity.ts +6 -6
  71. package/model/downloadZipStatus.agravity.ts +6 -6
  72. package/model/entityIdName.agravity.ts +1 -1
  73. package/model/entityTranslations.agravity.ts +1 -1
  74. package/model/groupAllAppData.agravity.ts +1 -1
  75. package/model/historyEntry.agravity.ts +16 -30
  76. package/model/models.ts +5 -2
  77. package/model/notificationSettingDto.agravity.ts +18 -0
  78. package/model/permissionChange.agravity.ts +7 -7
  79. package/model/permissionEntity.agravity.ts +5 -5
  80. package/model/portalAuthentication.agravity.ts +7 -7
  81. package/model/portalTheme.agravity.ts +1 -1
  82. package/model/publishedAsset.agravity.ts +1 -1
  83. package/model/savedSearch.agravity.ts +1 -1
  84. package/model/searchSettings.agravity.ts +26 -0
  85. package/model/staticDefinedList.agravity.ts +1 -1
  86. package/model/uiTutorials.agravity.ts +4 -4
  87. package/model/whereParam.agravity.ts +17 -17
  88. package/model/workspace.agravity.ts +1 -1
  89. package/package.json +5 -4
  90. package/provide-api.ts +15 -0
  91. package/tsconfig.json +2 -0
  92. package/api/aISettingsManagement.agravity.ts +0 -264
@@ -24,6 +24,7 @@ import { SecureUploadEntity } from '../model/secureUploadEntity.agravity';
24
24
  // @ts-ignore
25
25
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
26
26
  import { AgravityConfiguration } from '../configuration';
27
+ import { BaseService } from '../api.base.service';
27
28
 
28
29
  export interface HttpGetSecureUploadApiKeyByIdRequestParams {
29
30
  /** The ID of the secure upload collection. */
@@ -62,67 +63,13 @@ export interface HttpSecureUploadUpdateWithIdRequestParams {
62
63
  @Injectable({
63
64
  providedIn: 'root'
64
65
  })
65
- export class SecureUploadService {
66
- protected basePath = 'http://localhost:7071/api';
67
- public defaultHeaders = new HttpHeaders();
68
- public configuration = new AgravityConfiguration();
69
- public encoder: HttpParameterCodec;
70
-
66
+ export class SecureUploadService extends BaseService {
71
67
  constructor(
72
68
  protected httpClient: HttpClient,
73
69
  @Optional() @Inject(BASE_PATH) basePath: string | string[],
74
- @Optional() configuration: AgravityConfiguration
70
+ @Optional() configuration?: AgravityConfiguration
75
71
  ) {
76
- if (configuration) {
77
- this.configuration = configuration;
78
- }
79
- if (typeof this.configuration.basePath !== 'string') {
80
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
81
- if (firstBasePath != undefined) {
82
- basePath = firstBasePath;
83
- }
84
-
85
- if (typeof basePath !== 'string') {
86
- basePath = this.basePath;
87
- }
88
- this.configuration.basePath = basePath;
89
- }
90
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
91
- }
92
-
93
- // @ts-ignore
94
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
95
- if (typeof value === 'object' && value instanceof Date === false) {
96
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
97
- } else {
98
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
99
- }
100
- return httpParams;
101
- }
102
-
103
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
104
- if (value == null) {
105
- return httpParams;
106
- }
107
-
108
- if (typeof value === 'object') {
109
- if (Array.isArray(value)) {
110
- (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
111
- } else if (value instanceof Date) {
112
- if (key != null) {
113
- httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
114
- } else {
115
- throw Error('key may not be null if value is Date');
116
- }
117
- } else {
118
- Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
119
- }
120
- } else if (key != null) {
121
- httpParams = httpParams.append(key, value);
122
- } else {
123
- throw Error('key may not be null if value is not object or array');
124
- }
125
- return httpParams;
72
+ super(basePath, configuration);
126
73
  }
127
74
 
128
75
  /**
@@ -132,25 +79,25 @@ export class SecureUploadService {
132
79
  * @param reportProgress flag to report request and response progress.
133
80
  */
134
81
  public httpGetSecureUploadApiKeyById(
135
- requestParameters?: HttpGetSecureUploadApiKeyByIdRequestParams,
82
+ requestParameters: HttpGetSecureUploadApiKeyByIdRequestParams,
136
83
  observe?: 'body',
137
84
  reportProgress?: boolean,
138
85
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
139
86
  ): Observable<ApiKeyResponse>;
140
87
  public httpGetSecureUploadApiKeyById(
141
- requestParameters?: HttpGetSecureUploadApiKeyByIdRequestParams,
88
+ requestParameters: HttpGetSecureUploadApiKeyByIdRequestParams,
142
89
  observe?: 'response',
143
90
  reportProgress?: boolean,
144
91
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
145
92
  ): Observable<HttpResponse<ApiKeyResponse>>;
146
93
  public httpGetSecureUploadApiKeyById(
147
- requestParameters?: HttpGetSecureUploadApiKeyByIdRequestParams,
94
+ requestParameters: HttpGetSecureUploadApiKeyByIdRequestParams,
148
95
  observe?: 'events',
149
96
  reportProgress?: boolean,
150
97
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
151
98
  ): Observable<HttpEvent<ApiKeyResponse>>;
152
99
  public httpGetSecureUploadApiKeyById(
153
- requestParameters?: HttpGetSecureUploadApiKeyByIdRequestParams,
100
+ requestParameters: HttpGetSecureUploadApiKeyByIdRequestParams,
154
101
  observe: any = 'body',
155
102
  reportProgress: boolean = false,
156
103
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -162,32 +109,17 @@ export class SecureUploadService {
162
109
 
163
110
  let localVarHeaders = this.defaultHeaders;
164
111
 
165
- let localVarCredential: string | undefined;
166
112
  // authentication (msal_auth) required
167
- localVarCredential = this.configuration.lookupCredential('msal_auth');
168
- if (localVarCredential) {
169
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
170
- }
113
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
171
114
 
172
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
173
- if (localVarHttpHeaderAcceptSelected === undefined) {
174
- // to determine the Accept header
175
- const httpHeaderAccepts: string[] = ['application/json'];
176
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
177
- }
115
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
178
116
  if (localVarHttpHeaderAcceptSelected !== undefined) {
179
117
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
180
118
  }
181
119
 
182
- let localVarHttpContext: HttpContext | undefined = options && options.context;
183
- if (localVarHttpContext === undefined) {
184
- localVarHttpContext = new HttpContext();
185
- }
120
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
186
121
 
187
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
188
- if (localVarTransferCache === undefined) {
189
- localVarTransferCache = true;
190
- }
122
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
191
123
 
192
124
  let responseType_: 'text' | 'json' | 'blob' = 'json';
193
125
  if (localVarHttpHeaderAcceptSelected) {
@@ -201,10 +133,11 @@ export class SecureUploadService {
201
133
  }
202
134
 
203
135
  let localVarPath = `/secureupload/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/apikey`;
204
- return this.httpClient.request<ApiKeyResponse>('get', `${this.configuration.basePath}${localVarPath}`, {
136
+ const { basePath, withCredentials } = this.configuration;
137
+ return this.httpClient.request<ApiKeyResponse>('get', `${basePath}${localVarPath}`, {
205
138
  context: localVarHttpContext,
206
139
  responseType: <any>responseType_,
207
- withCredentials: this.configuration.withCredentials,
140
+ ...(withCredentials ? { withCredentials } : {}),
208
141
  headers: localVarHeaders,
209
142
  observe: observe,
210
143
  transferCache: localVarTransferCache,
@@ -245,38 +178,21 @@ export class SecureUploadService {
245
178
  const collectionid = requestParameters?.collectionid;
246
179
 
247
180
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
248
- if (collectionid !== undefined && collectionid !== null) {
249
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
250
- }
181
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
251
182
 
252
183
  let localVarHeaders = this.defaultHeaders;
253
184
 
254
- let localVarCredential: string | undefined;
255
185
  // authentication (msal_auth) required
256
- localVarCredential = this.configuration.lookupCredential('msal_auth');
257
- if (localVarCredential) {
258
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
259
- }
186
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
260
187
 
261
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
262
- if (localVarHttpHeaderAcceptSelected === undefined) {
263
- // to determine the Accept header
264
- const httpHeaderAccepts: string[] = ['application/json'];
265
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
266
- }
188
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
267
189
  if (localVarHttpHeaderAcceptSelected !== undefined) {
268
190
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
269
191
  }
270
192
 
271
- let localVarHttpContext: HttpContext | undefined = options && options.context;
272
- if (localVarHttpContext === undefined) {
273
- localVarHttpContext = new HttpContext();
274
- }
193
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
275
194
 
276
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
277
- if (localVarTransferCache === undefined) {
278
- localVarTransferCache = true;
279
- }
195
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
280
196
 
281
197
  let responseType_: 'text' | 'json' | 'blob' = 'json';
282
198
  if (localVarHttpHeaderAcceptSelected) {
@@ -290,11 +206,12 @@ export class SecureUploadService {
290
206
  }
291
207
 
292
208
  let localVarPath = `/secureupload`;
293
- return this.httpClient.request<Array<SecureUploadEntity>>('get', `${this.configuration.basePath}${localVarPath}`, {
209
+ const { basePath, withCredentials } = this.configuration;
210
+ return this.httpClient.request<Array<SecureUploadEntity>>('get', `${basePath}${localVarPath}`, {
294
211
  context: localVarHttpContext,
295
212
  params: localVarQueryParameters,
296
213
  responseType: <any>responseType_,
297
- withCredentials: this.configuration.withCredentials,
214
+ ...(withCredentials ? { withCredentials } : {}),
298
215
  headers: localVarHeaders,
299
216
  observe: observe,
300
217
  transferCache: localVarTransferCache,
@@ -309,25 +226,25 @@ export class SecureUploadService {
309
226
  * @param reportProgress flag to report request and response progress.
310
227
  */
311
228
  public httpSecureUploadCreateForUser(
312
- requestParameters?: HttpSecureUploadCreateForUserRequestParams,
229
+ requestParameters: HttpSecureUploadCreateForUserRequestParams,
313
230
  observe?: 'body',
314
231
  reportProgress?: boolean,
315
232
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
316
233
  ): Observable<SecureUploadEntity>;
317
234
  public httpSecureUploadCreateForUser(
318
- requestParameters?: HttpSecureUploadCreateForUserRequestParams,
235
+ requestParameters: HttpSecureUploadCreateForUserRequestParams,
319
236
  observe?: 'response',
320
237
  reportProgress?: boolean,
321
238
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
322
239
  ): Observable<HttpResponse<SecureUploadEntity>>;
323
240
  public httpSecureUploadCreateForUser(
324
- requestParameters?: HttpSecureUploadCreateForUserRequestParams,
241
+ requestParameters: HttpSecureUploadCreateForUserRequestParams,
325
242
  observe?: 'events',
326
243
  reportProgress?: boolean,
327
244
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
328
245
  ): Observable<HttpEvent<SecureUploadEntity>>;
329
246
  public httpSecureUploadCreateForUser(
330
- requestParameters?: HttpSecureUploadCreateForUserRequestParams,
247
+ requestParameters: HttpSecureUploadCreateForUserRequestParams,
331
248
  observe: any = 'body',
332
249
  reportProgress: boolean = false,
333
250
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -339,38 +256,21 @@ export class SecureUploadService {
339
256
  const sftpenabled = requestParameters?.sftpenabled;
340
257
 
341
258
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
342
- if (sftpenabled !== undefined && sftpenabled !== null) {
343
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>sftpenabled, 'sftpenabled');
344
- }
259
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>sftpenabled, 'sftpenabled');
345
260
 
346
261
  let localVarHeaders = this.defaultHeaders;
347
262
 
348
- let localVarCredential: string | undefined;
349
263
  // authentication (msal_auth) required
350
- localVarCredential = this.configuration.lookupCredential('msal_auth');
351
- if (localVarCredential) {
352
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
353
- }
264
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
354
265
 
355
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
356
- if (localVarHttpHeaderAcceptSelected === undefined) {
357
- // to determine the Accept header
358
- const httpHeaderAccepts: string[] = ['application/json'];
359
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
360
- }
266
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
361
267
  if (localVarHttpHeaderAcceptSelected !== undefined) {
362
268
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
363
269
  }
364
270
 
365
- let localVarHttpContext: HttpContext | undefined = options && options.context;
366
- if (localVarHttpContext === undefined) {
367
- localVarHttpContext = new HttpContext();
368
- }
271
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
369
272
 
370
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
371
- if (localVarTransferCache === undefined) {
372
- localVarTransferCache = true;
373
- }
273
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
374
274
 
375
275
  // to determine the Content-Type header
376
276
  const consumes: string[] = ['application/json'];
@@ -391,12 +291,13 @@ export class SecureUploadService {
391
291
  }
392
292
 
393
293
  let localVarPath = `/secureupload`;
394
- return this.httpClient.request<SecureUploadEntity>('post', `${this.configuration.basePath}${localVarPath}`, {
294
+ const { basePath, withCredentials } = this.configuration;
295
+ return this.httpClient.request<SecureUploadEntity>('post', `${basePath}${localVarPath}`, {
395
296
  context: localVarHttpContext,
396
297
  body: secureUploadEntity,
397
298
  params: localVarQueryParameters,
398
299
  responseType: <any>responseType_,
399
- withCredentials: this.configuration.withCredentials,
300
+ ...(withCredentials ? { withCredentials } : {}),
400
301
  headers: localVarHeaders,
401
302
  observe: observe,
402
303
  transferCache: localVarTransferCache,
@@ -411,25 +312,25 @@ export class SecureUploadService {
411
312
  * @param reportProgress flag to report request and response progress.
412
313
  */
413
314
  public httpSecureUploadEntityCheckById(
414
- requestParameters?: HttpSecureUploadEntityCheckByIdRequestParams,
315
+ requestParameters: HttpSecureUploadEntityCheckByIdRequestParams,
415
316
  observe?: 'body',
416
317
  reportProgress?: boolean,
417
318
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
418
319
  ): Observable<SecureUploadEntity>;
419
320
  public httpSecureUploadEntityCheckById(
420
- requestParameters?: HttpSecureUploadEntityCheckByIdRequestParams,
321
+ requestParameters: HttpSecureUploadEntityCheckByIdRequestParams,
421
322
  observe?: 'response',
422
323
  reportProgress?: boolean,
423
324
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
424
325
  ): Observable<HttpResponse<SecureUploadEntity>>;
425
326
  public httpSecureUploadEntityCheckById(
426
- requestParameters?: HttpSecureUploadEntityCheckByIdRequestParams,
327
+ requestParameters: HttpSecureUploadEntityCheckByIdRequestParams,
427
328
  observe?: 'events',
428
329
  reportProgress?: boolean,
429
330
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
430
331
  ): Observable<HttpEvent<SecureUploadEntity>>;
431
332
  public httpSecureUploadEntityCheckById(
432
- requestParameters?: HttpSecureUploadEntityCheckByIdRequestParams,
333
+ requestParameters: HttpSecureUploadEntityCheckByIdRequestParams,
433
334
  observe: any = 'body',
434
335
  reportProgress: boolean = false,
435
336
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -441,32 +342,17 @@ export class SecureUploadService {
441
342
 
442
343
  let localVarHeaders = this.defaultHeaders;
443
344
 
444
- let localVarCredential: string | undefined;
445
345
  // authentication (msal_auth) required
446
- localVarCredential = this.configuration.lookupCredential('msal_auth');
447
- if (localVarCredential) {
448
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
449
- }
346
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
450
347
 
451
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
452
- if (localVarHttpHeaderAcceptSelected === undefined) {
453
- // to determine the Accept header
454
- const httpHeaderAccepts: string[] = ['application/json'];
455
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
456
- }
348
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
457
349
  if (localVarHttpHeaderAcceptSelected !== undefined) {
458
350
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
459
351
  }
460
352
 
461
- let localVarHttpContext: HttpContext | undefined = options && options.context;
462
- if (localVarHttpContext === undefined) {
463
- localVarHttpContext = new HttpContext();
464
- }
353
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
465
354
 
466
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
467
- if (localVarTransferCache === undefined) {
468
- localVarTransferCache = true;
469
- }
355
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
470
356
 
471
357
  let responseType_: 'text' | 'json' | 'blob' = 'json';
472
358
  if (localVarHttpHeaderAcceptSelected) {
@@ -480,10 +366,11 @@ export class SecureUploadService {
480
366
  }
481
367
 
482
368
  let localVarPath = `/secureupload/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
483
- return this.httpClient.request<SecureUploadEntity>('get', `${this.configuration.basePath}${localVarPath}`, {
369
+ const { basePath, withCredentials } = this.configuration;
370
+ return this.httpClient.request<SecureUploadEntity>('get', `${basePath}${localVarPath}`, {
484
371
  context: localVarHttpContext,
485
372
  responseType: <any>responseType_,
486
- withCredentials: this.configuration.withCredentials,
373
+ ...(withCredentials ? { withCredentials } : {}),
487
374
  headers: localVarHeaders,
488
375
  observe: observe,
489
376
  transferCache: localVarTransferCache,
@@ -498,25 +385,25 @@ export class SecureUploadService {
498
385
  * @param reportProgress flag to report request and response progress.
499
386
  */
500
387
  public httpSecureUploadToCollectionsDeleteById(
501
- requestParameters?: HttpSecureUploadToCollectionsDeleteByIdRequestParams,
388
+ requestParameters: HttpSecureUploadToCollectionsDeleteByIdRequestParams,
502
389
  observe?: 'body',
503
390
  reportProgress?: boolean,
504
391
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
505
392
  ): Observable<any>;
506
393
  public httpSecureUploadToCollectionsDeleteById(
507
- requestParameters?: HttpSecureUploadToCollectionsDeleteByIdRequestParams,
394
+ requestParameters: HttpSecureUploadToCollectionsDeleteByIdRequestParams,
508
395
  observe?: 'response',
509
396
  reportProgress?: boolean,
510
397
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
511
398
  ): Observable<HttpResponse<any>>;
512
399
  public httpSecureUploadToCollectionsDeleteById(
513
- requestParameters?: HttpSecureUploadToCollectionsDeleteByIdRequestParams,
400
+ requestParameters: HttpSecureUploadToCollectionsDeleteByIdRequestParams,
514
401
  observe?: 'events',
515
402
  reportProgress?: boolean,
516
403
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
517
404
  ): Observable<HttpEvent<any>>;
518
405
  public httpSecureUploadToCollectionsDeleteById(
519
- requestParameters?: HttpSecureUploadToCollectionsDeleteByIdRequestParams,
406
+ requestParameters: HttpSecureUploadToCollectionsDeleteByIdRequestParams,
520
407
  observe: any = 'body',
521
408
  reportProgress: boolean = false,
522
409
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -528,32 +415,17 @@ export class SecureUploadService {
528
415
 
529
416
  let localVarHeaders = this.defaultHeaders;
530
417
 
531
- let localVarCredential: string | undefined;
532
418
  // authentication (msal_auth) required
533
- localVarCredential = this.configuration.lookupCredential('msal_auth');
534
- if (localVarCredential) {
535
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
536
- }
419
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
537
420
 
538
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
539
- if (localVarHttpHeaderAcceptSelected === undefined) {
540
- // to determine the Accept header
541
- const httpHeaderAccepts: string[] = ['application/json'];
542
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
543
- }
421
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
544
422
  if (localVarHttpHeaderAcceptSelected !== undefined) {
545
423
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
546
424
  }
547
425
 
548
- let localVarHttpContext: HttpContext | undefined = options && options.context;
549
- if (localVarHttpContext === undefined) {
550
- localVarHttpContext = new HttpContext();
551
- }
426
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
552
427
 
553
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
554
- if (localVarTransferCache === undefined) {
555
- localVarTransferCache = true;
556
- }
428
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
557
429
 
558
430
  let responseType_: 'text' | 'json' | 'blob' = 'json';
559
431
  if (localVarHttpHeaderAcceptSelected) {
@@ -567,10 +439,11 @@ export class SecureUploadService {
567
439
  }
568
440
 
569
441
  let localVarPath = `/secureupload/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
570
- return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
442
+ const { basePath, withCredentials } = this.configuration;
443
+ return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
571
444
  context: localVarHttpContext,
572
445
  responseType: <any>responseType_,
573
- withCredentials: this.configuration.withCredentials,
446
+ ...(withCredentials ? { withCredentials } : {}),
574
447
  headers: localVarHeaders,
575
448
  observe: observe,
576
449
  transferCache: localVarTransferCache,
@@ -585,25 +458,25 @@ export class SecureUploadService {
585
458
  * @param reportProgress flag to report request and response progress.
586
459
  */
587
460
  public httpSecureUploadUpdateWithId(
588
- requestParameters?: HttpSecureUploadUpdateWithIdRequestParams,
461
+ requestParameters: HttpSecureUploadUpdateWithIdRequestParams,
589
462
  observe?: 'body',
590
463
  reportProgress?: boolean,
591
464
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
592
465
  ): Observable<SecureUploadEntity>;
593
466
  public httpSecureUploadUpdateWithId(
594
- requestParameters?: HttpSecureUploadUpdateWithIdRequestParams,
467
+ requestParameters: HttpSecureUploadUpdateWithIdRequestParams,
595
468
  observe?: 'response',
596
469
  reportProgress?: boolean,
597
470
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
598
471
  ): Observable<HttpResponse<SecureUploadEntity>>;
599
472
  public httpSecureUploadUpdateWithId(
600
- requestParameters?: HttpSecureUploadUpdateWithIdRequestParams,
473
+ requestParameters: HttpSecureUploadUpdateWithIdRequestParams,
601
474
  observe?: 'events',
602
475
  reportProgress?: boolean,
603
476
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
604
477
  ): Observable<HttpEvent<SecureUploadEntity>>;
605
478
  public httpSecureUploadUpdateWithId(
606
- requestParameters?: HttpSecureUploadUpdateWithIdRequestParams,
479
+ requestParameters: HttpSecureUploadUpdateWithIdRequestParams,
607
480
  observe: any = 'body',
608
481
  reportProgress: boolean = false,
609
482
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -619,32 +492,17 @@ export class SecureUploadService {
619
492
 
620
493
  let localVarHeaders = this.defaultHeaders;
621
494
 
622
- let localVarCredential: string | undefined;
623
495
  // authentication (msal_auth) required
624
- localVarCredential = this.configuration.lookupCredential('msal_auth');
625
- if (localVarCredential) {
626
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
627
- }
496
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
628
497
 
629
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
630
- if (localVarHttpHeaderAcceptSelected === undefined) {
631
- // to determine the Accept header
632
- const httpHeaderAccepts: string[] = ['application/json'];
633
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
634
- }
498
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
635
499
  if (localVarHttpHeaderAcceptSelected !== undefined) {
636
500
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
637
501
  }
638
502
 
639
- let localVarHttpContext: HttpContext | undefined = options && options.context;
640
- if (localVarHttpContext === undefined) {
641
- localVarHttpContext = new HttpContext();
642
- }
503
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
643
504
 
644
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
645
- if (localVarTransferCache === undefined) {
646
- localVarTransferCache = true;
647
- }
505
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
648
506
 
649
507
  // to determine the Content-Type header
650
508
  const consumes: string[] = ['application/json'];
@@ -665,11 +523,12 @@ export class SecureUploadService {
665
523
  }
666
524
 
667
525
  let localVarPath = `/secureupload/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
668
- return this.httpClient.request<SecureUploadEntity>('post', `${this.configuration.basePath}${localVarPath}`, {
526
+ const { basePath, withCredentials } = this.configuration;
527
+ return this.httpClient.request<SecureUploadEntity>('post', `${basePath}${localVarPath}`, {
669
528
  context: localVarHttpContext,
670
529
  body: secureUploadEntity,
671
530
  responseType: <any>responseType_,
672
- withCredentials: this.configuration.withCredentials,
531
+ ...(withCredentials ? { withCredentials } : {}),
673
532
  headers: localVarHeaders,
674
533
  observe: observe,
675
534
  transferCache: localVarTransferCache,