@agravity/public 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 (55) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +97 -142
  4. package/api/api.ts +3 -0
  5. package/api/publicAIOperations.pub.agravity.ts +160 -0
  6. package/api/publicAssetManagement.pub.agravity.ts +67 -236
  7. package/api/publicAssetOperations.pub.agravity.ts +139 -380
  8. package/api/publicAssetPublishing.pub.agravity.ts +37 -132
  9. package/api/publicAssetRelationManagement.pub.agravity.ts +57 -192
  10. package/api/publicAssetVersioning.pub.agravity.ts +82 -249
  11. package/api/publicAuthenticationManagement.pub.agravity.ts +23 -106
  12. package/api/publicCollectionManagement.pub.agravity.ts +116 -321
  13. package/api/publicCollectionSecureUpload.pub.agravity.ts +29 -114
  14. package/api/publicCollectionTypeManagement.pub.agravity.ts +33 -136
  15. package/api/publicConfigurationManagement.pub.agravity.ts +11 -76
  16. package/api/publicDownloadFormatManagement.pub.agravity.ts +22 -101
  17. package/api/publicEndpoints.pub.agravity.ts +18 -89
  18. package/api/publicGeneralManagement.pub.agravity.ts +41 -146
  19. package/api/publicHelperTools.pub.agravity.ts +43 -174
  20. package/api/publicPortalManagement.pub.agravity.ts +74 -227
  21. package/api/publicPublishing.pub.agravity.ts +13 -84
  22. package/api/publicSavedSearch.pub.agravity.ts +13 -84
  23. package/api/publicSearchManagement.pub.agravity.ts +58 -203
  24. package/api/publicSharingManagement.pub.agravity.ts +50 -155
  25. package/api/publicSignalRConnectionManagement.pub.agravity.ts +11 -78
  26. package/api/publicStaticDefinedListManagement.pub.agravity.ts +37 -140
  27. package/api/publicTranslationManagement.pub.agravity.ts +48 -147
  28. package/api/publicWebAppData.pub.agravity.ts +26 -107
  29. package/api/publicWorkspaceManagement.pub.agravity.ts +24 -109
  30. package/api.base.service.ts +78 -0
  31. package/configuration.ts +33 -17
  32. package/index.ts +1 -0
  33. package/model/asset.pub.agravity.ts +6 -6
  34. package/model/assetBlob.pub.agravity.ts +15 -15
  35. package/model/assetIconRule.pub.agravity.ts +1 -1
  36. package/model/collTypeItem.pub.agravity.ts +1 -1
  37. package/model/collection.pub.agravity.ts +6 -6
  38. package/model/collectionType.pub.agravity.ts +6 -6
  39. package/model/collectionUDL.pub.agravity.ts +1 -1
  40. package/model/downloadFormat.pub.agravity.ts +1 -1
  41. package/model/downloadZipRequest.pub.agravity.ts +6 -6
  42. package/model/downloadZipStatus.pub.agravity.ts +6 -6
  43. package/model/entityIdName.pub.agravity.ts +1 -1
  44. package/model/groupAllAppData.pub.agravity.ts +1 -1
  45. package/model/permissionEntity.pub.agravity.ts +5 -5
  46. package/model/portalAuthentication.pub.agravity.ts +7 -7
  47. package/model/portalTheme.pub.agravity.ts +1 -1
  48. package/model/publishedAsset.pub.agravity.ts +1 -1
  49. package/model/savedSearch.pub.agravity.ts +1 -1
  50. package/model/staticDefinedList.pub.agravity.ts +1 -1
  51. package/model/whereParam.pub.agravity.ts +17 -17
  52. package/model/workspace.pub.agravity.ts +1 -1
  53. package/package.json +5 -4
  54. package/provide-api.ts +15 -0
  55. package/tsconfig.json +2 -0
@@ -32,6 +32,7 @@ import { PortalConfiguration } from '../model/portalConfiguration.pub.agravity';
32
32
  // @ts-ignore
33
33
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
34
34
  import { AgravityPublicConfiguration } from '../configuration';
35
+ import { BaseService } from '../api.base.service';
35
36
 
36
37
  export interface HttpPortalGetAllAssetIdsByIdRequestParams {
37
38
  /** The ID of the portal. */
@@ -69,67 +70,13 @@ export interface HttpPortalsGetByIdRequestParams {
69
70
  @Injectable({
70
71
  providedIn: 'root'
71
72
  })
72
- export class PublicPortalManagementService {
73
- protected basePath = 'http://localhost:7072/api';
74
- public defaultHeaders = new HttpHeaders();
75
- public configuration = new AgravityPublicConfiguration();
76
- public encoder: HttpParameterCodec;
77
-
73
+ export class PublicPortalManagementService extends BaseService {
78
74
  constructor(
79
75
  protected httpClient: HttpClient,
80
76
  @Optional() @Inject(BASE_PATH) basePath: string | string[],
81
- @Optional() configuration: AgravityPublicConfiguration
77
+ @Optional() configuration?: AgravityPublicConfiguration
82
78
  ) {
83
- if (configuration) {
84
- this.configuration = configuration;
85
- }
86
- if (typeof this.configuration.basePath !== 'string') {
87
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
88
- if (firstBasePath != undefined) {
89
- basePath = firstBasePath;
90
- }
91
-
92
- if (typeof basePath !== 'string') {
93
- basePath = this.basePath;
94
- }
95
- this.configuration.basePath = basePath;
96
- }
97
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
98
- }
99
-
100
- // @ts-ignore
101
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
102
- if (typeof value === 'object' && value instanceof Date === false) {
103
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
104
- } else {
105
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
106
- }
107
- return httpParams;
108
- }
109
-
110
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
111
- if (value == null) {
112
- return httpParams;
113
- }
114
-
115
- if (typeof value === 'object') {
116
- if (Array.isArray(value)) {
117
- (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
118
- } else if (value instanceof Date) {
119
- if (key != null) {
120
- httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
121
- } else {
122
- throw Error('key may not be null if value is Date');
123
- }
124
- } else {
125
- Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
126
- }
127
- } else if (key != null) {
128
- httpParams = httpParams.append(key, value);
129
- } else {
130
- throw Error('key may not be null if value is not object or array');
131
- }
132
- return httpParams;
79
+ super(basePath, configuration);
133
80
  }
134
81
 
135
82
  /**
@@ -139,25 +86,25 @@ export class PublicPortalManagementService {
139
86
  * @param reportProgress flag to report request and response progress.
140
87
  */
141
88
  public httpPortalGetAllAssetIdsById(
142
- requestParameters?: HttpPortalGetAllAssetIdsByIdRequestParams,
89
+ requestParameters: HttpPortalGetAllAssetIdsByIdRequestParams,
143
90
  observe?: 'body',
144
91
  reportProgress?: boolean,
145
92
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
146
93
  ): Observable<Array<string>>;
147
94
  public httpPortalGetAllAssetIdsById(
148
- requestParameters?: HttpPortalGetAllAssetIdsByIdRequestParams,
95
+ requestParameters: HttpPortalGetAllAssetIdsByIdRequestParams,
149
96
  observe?: 'response',
150
97
  reportProgress?: boolean,
151
98
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
152
99
  ): Observable<HttpResponse<Array<string>>>;
153
100
  public httpPortalGetAllAssetIdsById(
154
- requestParameters?: HttpPortalGetAllAssetIdsByIdRequestParams,
101
+ requestParameters: HttpPortalGetAllAssetIdsByIdRequestParams,
155
102
  observe?: 'events',
156
103
  reportProgress?: boolean,
157
104
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
158
105
  ): Observable<HttpEvent<Array<string>>>;
159
106
  public httpPortalGetAllAssetIdsById(
160
- requestParameters?: HttpPortalGetAllAssetIdsByIdRequestParams,
107
+ requestParameters: HttpPortalGetAllAssetIdsByIdRequestParams,
161
108
  observe: any = 'body',
162
109
  reportProgress: boolean = false,
163
110
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -169,32 +116,17 @@ export class PublicPortalManagementService {
169
116
 
170
117
  let localVarHeaders = this.defaultHeaders;
171
118
 
172
- let localVarCredential: string | undefined;
173
119
  // authentication (function_key) required
174
- localVarCredential = this.configuration.lookupCredential('function_key');
175
- if (localVarCredential) {
176
- localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
177
- }
120
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
178
121
 
179
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
180
- if (localVarHttpHeaderAcceptSelected === undefined) {
181
- // to determine the Accept header
182
- const httpHeaderAccepts: string[] = ['application/json'];
183
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
184
- }
122
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
185
123
  if (localVarHttpHeaderAcceptSelected !== undefined) {
186
124
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
187
125
  }
188
126
 
189
- let localVarHttpContext: HttpContext | undefined = options && options.context;
190
- if (localVarHttpContext === undefined) {
191
- localVarHttpContext = new HttpContext();
192
- }
127
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
193
128
 
194
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
195
- if (localVarTransferCache === undefined) {
196
- localVarTransferCache = true;
197
- }
129
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
198
130
 
199
131
  let responseType_: 'text' | 'json' | 'blob' = 'json';
200
132
  if (localVarHttpHeaderAcceptSelected) {
@@ -208,10 +140,11 @@ export class PublicPortalManagementService {
208
140
  }
209
141
 
210
142
  let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/assetids`;
211
- return this.httpClient.request<Array<string>>('get', `${this.configuration.basePath}${localVarPath}`, {
143
+ const { basePath, withCredentials } = this.configuration;
144
+ return this.httpClient.request<Array<string>>('get', `${basePath}${localVarPath}`, {
212
145
  context: localVarHttpContext,
213
146
  responseType: <any>responseType_,
214
- withCredentials: this.configuration.withCredentials,
147
+ ...(withCredentials ? { withCredentials } : {}),
215
148
  headers: localVarHeaders,
216
149
  observe: observe,
217
150
  transferCache: localVarTransferCache,
@@ -226,25 +159,25 @@ export class PublicPortalManagementService {
226
159
  * @param reportProgress flag to report request and response progress.
227
160
  */
228
161
  public httpPortalGetStatusZipById(
229
- requestParameters?: HttpPortalGetStatusZipByIdRequestParams,
162
+ requestParameters: HttpPortalGetStatusZipByIdRequestParams,
230
163
  observe?: 'body',
231
164
  reportProgress?: boolean,
232
165
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
233
166
  ): Observable<DownloadZipStatus>;
234
167
  public httpPortalGetStatusZipById(
235
- requestParameters?: HttpPortalGetStatusZipByIdRequestParams,
168
+ requestParameters: HttpPortalGetStatusZipByIdRequestParams,
236
169
  observe?: 'response',
237
170
  reportProgress?: boolean,
238
171
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
239
172
  ): Observable<HttpResponse<DownloadZipStatus>>;
240
173
  public httpPortalGetStatusZipById(
241
- requestParameters?: HttpPortalGetStatusZipByIdRequestParams,
174
+ requestParameters: HttpPortalGetStatusZipByIdRequestParams,
242
175
  observe?: 'events',
243
176
  reportProgress?: boolean,
244
177
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
245
178
  ): Observable<HttpEvent<DownloadZipStatus>>;
246
179
  public httpPortalGetStatusZipById(
247
- requestParameters?: HttpPortalGetStatusZipByIdRequestParams,
180
+ requestParameters: HttpPortalGetStatusZipByIdRequestParams,
248
181
  observe: any = 'body',
249
182
  reportProgress: boolean = false,
250
183
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -260,32 +193,17 @@ export class PublicPortalManagementService {
260
193
 
261
194
  let localVarHeaders = this.defaultHeaders;
262
195
 
263
- let localVarCredential: string | undefined;
264
196
  // authentication (function_key) required
265
- localVarCredential = this.configuration.lookupCredential('function_key');
266
- if (localVarCredential) {
267
- localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
268
- }
197
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
269
198
 
270
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
271
- if (localVarHttpHeaderAcceptSelected === undefined) {
272
- // to determine the Accept header
273
- const httpHeaderAccepts: string[] = ['application/json'];
274
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
275
- }
199
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
276
200
  if (localVarHttpHeaderAcceptSelected !== undefined) {
277
201
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
278
202
  }
279
203
 
280
- let localVarHttpContext: HttpContext | undefined = options && options.context;
281
- if (localVarHttpContext === undefined) {
282
- localVarHttpContext = new HttpContext();
283
- }
204
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
284
205
 
285
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
286
- if (localVarTransferCache === undefined) {
287
- localVarTransferCache = true;
288
- }
206
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
289
207
 
290
208
  let responseType_: 'text' | 'json' | 'blob' = 'json';
291
209
  if (localVarHttpHeaderAcceptSelected) {
@@ -299,10 +217,11 @@ export class PublicPortalManagementService {
299
217
  }
300
218
 
301
219
  let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/zip/${this.configuration.encodeParam({ name: 'zipId', value: zipId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
302
- return this.httpClient.request<DownloadZipStatus>('get', `${this.configuration.basePath}${localVarPath}`, {
220
+ const { basePath, withCredentials } = this.configuration;
221
+ return this.httpClient.request<DownloadZipStatus>('get', `${basePath}${localVarPath}`, {
303
222
  context: localVarHttpContext,
304
223
  responseType: <any>responseType_,
305
- withCredentials: this.configuration.withCredentials,
224
+ ...(withCredentials ? { withCredentials } : {}),
306
225
  headers: localVarHeaders,
307
226
  observe: observe,
308
227
  transferCache: localVarTransferCache,
@@ -317,25 +236,25 @@ export class PublicPortalManagementService {
317
236
  * @param reportProgress flag to report request and response progress.
318
237
  */
319
238
  public httpPortalRequestZipById(
320
- requestParameters?: HttpPortalRequestZipByIdRequestParams,
239
+ requestParameters: HttpPortalRequestZipByIdRequestParams,
321
240
  observe?: 'body',
322
241
  reportProgress?: boolean,
323
242
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
324
243
  ): Observable<DownloadZipRequest>;
325
244
  public httpPortalRequestZipById(
326
- requestParameters?: HttpPortalRequestZipByIdRequestParams,
245
+ requestParameters: HttpPortalRequestZipByIdRequestParams,
327
246
  observe?: 'response',
328
247
  reportProgress?: boolean,
329
248
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
330
249
  ): Observable<HttpResponse<DownloadZipRequest>>;
331
250
  public httpPortalRequestZipById(
332
- requestParameters?: HttpPortalRequestZipByIdRequestParams,
251
+ requestParameters: HttpPortalRequestZipByIdRequestParams,
333
252
  observe?: 'events',
334
253
  reportProgress?: boolean,
335
254
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
336
255
  ): Observable<HttpEvent<DownloadZipRequest>>;
337
256
  public httpPortalRequestZipById(
338
- requestParameters?: HttpPortalRequestZipByIdRequestParams,
257
+ requestParameters: HttpPortalRequestZipByIdRequestParams,
339
258
  observe: any = 'body',
340
259
  reportProgress: boolean = false,
341
260
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -351,32 +270,17 @@ export class PublicPortalManagementService {
351
270
 
352
271
  let localVarHeaders = this.defaultHeaders;
353
272
 
354
- let localVarCredential: string | undefined;
355
273
  // authentication (function_key) required
356
- localVarCredential = this.configuration.lookupCredential('function_key');
357
- if (localVarCredential) {
358
- localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
359
- }
274
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
360
275
 
361
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
362
- if (localVarHttpHeaderAcceptSelected === undefined) {
363
- // to determine the Accept header
364
- const httpHeaderAccepts: string[] = ['application/json'];
365
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
366
- }
276
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
367
277
  if (localVarHttpHeaderAcceptSelected !== undefined) {
368
278
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
369
279
  }
370
280
 
371
- let localVarHttpContext: HttpContext | undefined = options && options.context;
372
- if (localVarHttpContext === undefined) {
373
- localVarHttpContext = new HttpContext();
374
- }
281
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
375
282
 
376
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
377
- if (localVarTransferCache === undefined) {
378
- localVarTransferCache = true;
379
- }
283
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
380
284
 
381
285
  // to determine the Content-Type header
382
286
  const consumes: string[] = ['application/json'];
@@ -397,11 +301,12 @@ export class PublicPortalManagementService {
397
301
  }
398
302
 
399
303
  let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/zip`;
400
- return this.httpClient.request<DownloadZipRequest>('post', `${this.configuration.basePath}${localVarPath}`, {
304
+ const { basePath, withCredentials } = this.configuration;
305
+ return this.httpClient.request<DownloadZipRequest>('post', `${basePath}${localVarPath}`, {
401
306
  context: localVarHttpContext,
402
307
  body: downloadZipRequest,
403
308
  responseType: <any>responseType_,
404
- withCredentials: this.configuration.withCredentials,
309
+ ...(withCredentials ? { withCredentials } : {}),
405
310
  headers: localVarHeaders,
406
311
  observe: observe,
407
312
  transferCache: localVarTransferCache,
@@ -416,25 +321,25 @@ export class PublicPortalManagementService {
416
321
  * @param reportProgress flag to report request and response progress.
417
322
  */
418
323
  public httpPortalsConfigurationGetById(
419
- requestParameters?: HttpPortalsConfigurationGetByIdRequestParams,
324
+ requestParameters: HttpPortalsConfigurationGetByIdRequestParams,
420
325
  observe?: 'body',
421
326
  reportProgress?: boolean,
422
327
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
423
328
  ): Observable<PortalConfiguration>;
424
329
  public httpPortalsConfigurationGetById(
425
- requestParameters?: HttpPortalsConfigurationGetByIdRequestParams,
330
+ requestParameters: HttpPortalsConfigurationGetByIdRequestParams,
426
331
  observe?: 'response',
427
332
  reportProgress?: boolean,
428
333
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
429
334
  ): Observable<HttpResponse<PortalConfiguration>>;
430
335
  public httpPortalsConfigurationGetById(
431
- requestParameters?: HttpPortalsConfigurationGetByIdRequestParams,
336
+ requestParameters: HttpPortalsConfigurationGetByIdRequestParams,
432
337
  observe?: 'events',
433
338
  reportProgress?: boolean,
434
339
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
435
340
  ): Observable<HttpEvent<PortalConfiguration>>;
436
341
  public httpPortalsConfigurationGetById(
437
- requestParameters?: HttpPortalsConfigurationGetByIdRequestParams,
342
+ requestParameters: HttpPortalsConfigurationGetByIdRequestParams,
438
343
  observe: any = 'body',
439
344
  reportProgress: boolean = false,
440
345
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -447,41 +352,24 @@ export class PublicPortalManagementService {
447
352
  const acceptLanguage = requestParameters?.acceptLanguage;
448
353
 
449
354
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
450
- if (translations !== undefined && translations !== null) {
451
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
452
- }
355
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
453
356
 
454
357
  let localVarHeaders = this.defaultHeaders;
455
358
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
456
359
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
457
360
  }
458
361
 
459
- let localVarCredential: string | undefined;
460
362
  // authentication (function_key) required
461
- localVarCredential = this.configuration.lookupCredential('function_key');
462
- if (localVarCredential) {
463
- localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
464
- }
363
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
465
364
 
466
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
467
- if (localVarHttpHeaderAcceptSelected === undefined) {
468
- // to determine the Accept header
469
- const httpHeaderAccepts: string[] = ['application/json'];
470
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
471
- }
365
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
472
366
  if (localVarHttpHeaderAcceptSelected !== undefined) {
473
367
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
474
368
  }
475
369
 
476
- let localVarHttpContext: HttpContext | undefined = options && options.context;
477
- if (localVarHttpContext === undefined) {
478
- localVarHttpContext = new HttpContext();
479
- }
370
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
480
371
 
481
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
482
- if (localVarTransferCache === undefined) {
483
- localVarTransferCache = true;
484
- }
372
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
485
373
 
486
374
  let responseType_: 'text' | 'json' | 'blob' = 'json';
487
375
  if (localVarHttpHeaderAcceptSelected) {
@@ -495,11 +383,12 @@ export class PublicPortalManagementService {
495
383
  }
496
384
 
497
385
  let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/config`;
498
- return this.httpClient.request<PortalConfiguration>('get', `${this.configuration.basePath}${localVarPath}`, {
386
+ const { basePath, withCredentials } = this.configuration;
387
+ return this.httpClient.request<PortalConfiguration>('get', `${basePath}${localVarPath}`, {
499
388
  context: localVarHttpContext,
500
389
  params: localVarQueryParameters,
501
390
  responseType: <any>responseType_,
502
- withCredentials: this.configuration.withCredentials,
391
+ ...(withCredentials ? { withCredentials } : {}),
503
392
  headers: localVarHeaders,
504
393
  observe: observe,
505
394
  transferCache: localVarTransferCache,
@@ -534,32 +423,17 @@ export class PublicPortalManagementService {
534
423
  ): Observable<any> {
535
424
  let localVarHeaders = this.defaultHeaders;
536
425
 
537
- let localVarCredential: string | undefined;
538
426
  // authentication (function_key) required
539
- localVarCredential = this.configuration.lookupCredential('function_key');
540
- if (localVarCredential) {
541
- localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
542
- }
427
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
543
428
 
544
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
545
- if (localVarHttpHeaderAcceptSelected === undefined) {
546
- // to determine the Accept header
547
- const httpHeaderAccepts: string[] = ['application/json'];
548
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
549
- }
429
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
550
430
  if (localVarHttpHeaderAcceptSelected !== undefined) {
551
431
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
552
432
  }
553
433
 
554
- let localVarHttpContext: HttpContext | undefined = options && options.context;
555
- if (localVarHttpContext === undefined) {
556
- localVarHttpContext = new HttpContext();
557
- }
434
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
558
435
 
559
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
560
- if (localVarTransferCache === undefined) {
561
- localVarTransferCache = true;
562
- }
436
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
563
437
 
564
438
  let responseType_: 'text' | 'json' | 'blob' = 'json';
565
439
  if (localVarHttpHeaderAcceptSelected) {
@@ -573,10 +447,11 @@ export class PublicPortalManagementService {
573
447
  }
574
448
 
575
449
  let localVarPath = `/portalsenhancetoken`;
576
- return this.httpClient.request<CustomClaimsProviderResponseContentTokenIssuanceStart>('post', `${this.configuration.basePath}${localVarPath}`, {
450
+ const { basePath, withCredentials } = this.configuration;
451
+ return this.httpClient.request<CustomClaimsProviderResponseContentTokenIssuanceStart>('post', `${basePath}${localVarPath}`, {
577
452
  context: localVarHttpContext,
578
453
  responseType: <any>responseType_,
579
- withCredentials: this.configuration.withCredentials,
454
+ ...(withCredentials ? { withCredentials } : {}),
580
455
  headers: localVarHeaders,
581
456
  observe: observe,
582
457
  transferCache: localVarTransferCache,
@@ -591,25 +466,25 @@ export class PublicPortalManagementService {
591
466
  * @param reportProgress flag to report request and response progress.
592
467
  */
593
468
  public httpPortalsGetById(
594
- requestParameters?: HttpPortalsGetByIdRequestParams,
469
+ requestParameters: HttpPortalsGetByIdRequestParams,
595
470
  observe?: 'body',
596
471
  reportProgress?: boolean,
597
472
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
598
473
  ): Observable<Portal>;
599
474
  public httpPortalsGetById(
600
- requestParameters?: HttpPortalsGetByIdRequestParams,
475
+ requestParameters: HttpPortalsGetByIdRequestParams,
601
476
  observe?: 'response',
602
477
  reportProgress?: boolean,
603
478
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
604
479
  ): Observable<HttpResponse<Portal>>;
605
480
  public httpPortalsGetById(
606
- requestParameters?: HttpPortalsGetByIdRequestParams,
481
+ requestParameters: HttpPortalsGetByIdRequestParams,
607
482
  observe?: 'events',
608
483
  reportProgress?: boolean,
609
484
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
610
485
  ): Observable<HttpEvent<Portal>>;
611
486
  public httpPortalsGetById(
612
- requestParameters?: HttpPortalsGetByIdRequestParams,
487
+ requestParameters: HttpPortalsGetByIdRequestParams,
613
488
  observe: any = 'body',
614
489
  reportProgress: boolean = false,
615
490
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -621,32 +496,17 @@ export class PublicPortalManagementService {
621
496
 
622
497
  let localVarHeaders = this.defaultHeaders;
623
498
 
624
- let localVarCredential: string | undefined;
625
499
  // authentication (function_key) required
626
- localVarCredential = this.configuration.lookupCredential('function_key');
627
- if (localVarCredential) {
628
- localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
629
- }
500
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
630
501
 
631
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
632
- if (localVarHttpHeaderAcceptSelected === undefined) {
633
- // to determine the Accept header
634
- const httpHeaderAccepts: string[] = ['application/json'];
635
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
636
- }
502
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
637
503
  if (localVarHttpHeaderAcceptSelected !== undefined) {
638
504
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
639
505
  }
640
506
 
641
- let localVarHttpContext: HttpContext | undefined = options && options.context;
642
- if (localVarHttpContext === undefined) {
643
- localVarHttpContext = new HttpContext();
644
- }
507
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
645
508
 
646
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
647
- if (localVarTransferCache === undefined) {
648
- localVarTransferCache = true;
649
- }
509
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
650
510
 
651
511
  let responseType_: 'text' | 'json' | 'blob' = 'json';
652
512
  if (localVarHttpHeaderAcceptSelected) {
@@ -660,10 +520,11 @@ export class PublicPortalManagementService {
660
520
  }
661
521
 
662
522
  let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
663
- return this.httpClient.request<Portal>('get', `${this.configuration.basePath}${localVarPath}`, {
523
+ const { basePath, withCredentials } = this.configuration;
524
+ return this.httpClient.request<Portal>('get', `${basePath}${localVarPath}`, {
664
525
  context: localVarHttpContext,
665
526
  responseType: <any>responseType_,
666
- withCredentials: this.configuration.withCredentials,
527
+ ...(withCredentials ? { withCredentials } : {}),
667
528
  headers: localVarHeaders,
668
529
  observe: observe,
669
530
  transferCache: localVarTransferCache,
@@ -698,32 +559,17 @@ export class PublicPortalManagementService {
698
559
  ): Observable<any> {
699
560
  let localVarHeaders = this.defaultHeaders;
700
561
 
701
- let localVarCredential: string | undefined;
702
562
  // authentication (function_key) required
703
- localVarCredential = this.configuration.lookupCredential('function_key');
704
- if (localVarCredential) {
705
- localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
706
- }
563
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
707
564
 
708
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
709
- if (localVarHttpHeaderAcceptSelected === undefined) {
710
- // to determine the Accept header
711
- const httpHeaderAccepts: string[] = ['application/json'];
712
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
713
- }
565
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
714
566
  if (localVarHttpHeaderAcceptSelected !== undefined) {
715
567
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
716
568
  }
717
569
 
718
- let localVarHttpContext: HttpContext | undefined = options && options.context;
719
- if (localVarHttpContext === undefined) {
720
- localVarHttpContext = new HttpContext();
721
- }
570
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
722
571
 
723
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
724
- if (localVarTransferCache === undefined) {
725
- localVarTransferCache = true;
726
- }
572
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
727
573
 
728
574
  let responseType_: 'text' | 'json' | 'blob' = 'json';
729
575
  if (localVarHttpHeaderAcceptSelected) {
@@ -737,10 +583,11 @@ export class PublicPortalManagementService {
737
583
  }
738
584
 
739
585
  let localVarPath = `/portalssaveuserattributes`;
740
- return this.httpClient.request<CustomClaimsProviderResponseContentAttributeCollectionSubmit>('post', `${this.configuration.basePath}${localVarPath}`, {
586
+ const { basePath, withCredentials } = this.configuration;
587
+ return this.httpClient.request<CustomClaimsProviderResponseContentAttributeCollectionSubmit>('post', `${basePath}${localVarPath}`, {
741
588
  context: localVarHttpContext,
742
589
  responseType: <any>responseType_,
743
- withCredentials: this.configuration.withCredentials,
590
+ ...(withCredentials ? { withCredentials } : {}),
744
591
  headers: localVarHeaders,
745
592
  observe: observe,
746
593
  transferCache: localVarTransferCache,