@agravity/private 9.4.0 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/.openapi-generator/FILES +11 -3
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +97 -142
  4. package/api/aIOperations.agravity.ts +878 -0
  5. package/api/api.ts +9 -3
  6. package/api/assetIconRuleManagement.agravity.ts +59 -190
  7. package/api/assetManagement.agravity.ts +118 -355
  8. package/api/assetOperations.agravity.ts +290 -917
  9. package/api/assetPublishing.agravity.ts +107 -288
  10. package/api/assetRelationManagement.agravity.ts +61 -196
  11. package/api/assetRelationTypeManagement.agravity.ts +70 -215
  12. package/api/assetVersioning.agravity.ts +105 -300
  13. package/api/authenticationManagement.agravity.ts +137 -392
  14. package/api/collectionManagement.agravity.ts +217 -376
  15. package/api/collectionShareManagement.agravity.ts +59 -190
  16. package/api/collectionTypeItemBlueprintManagement.agravity.ts +47 -162
  17. package/api/collectionTypeManagement.agravity.ts +91 -270
  18. package/api/commentsManagement.agravity.ts +48 -157
  19. package/api/configurationManagement.agravity.ts +53 -180
  20. package/api/dashboardWidgetManagement.agravity.ts +56 -181
  21. package/api/dataImportExportManagement.agravity.ts +58 -203
  22. package/api/downloadFormatManagement.agravity.ts +70 -215
  23. package/api/downloadZip.agravity.ts +37 -132
  24. package/api/generalManagement.agravity.ts +64 -229
  25. package/api/helperTools.agravity.ts +214 -404
  26. package/api/historyEntryManagement.agravity.ts +16 -85
  27. package/api/iccProfileManagement.agravity.ts +11 -78
  28. package/api/listBlobs.agravity.ts +18 -99
  29. package/api/listQueues.agravity.ts +11 -78
  30. package/api/listTables.agravity.ts +11 -78
  31. package/api/notificationManagement.agravity.ts +267 -0
  32. package/api/permissionsManagement.agravity.ts +44 -153
  33. package/api/portalManagement.agravity.ts +88 -253
  34. package/api/portalsUsersManagement.agravity.ts +55 -178
  35. package/api/publishing.agravity.ts +13 -84
  36. package/api/quickshareManagement.agravity.ts +67 -214
  37. package/api/savedSearchManagement.agravity.ts +37 -140
  38. package/api/searchManagement.agravity.ts +102 -327
  39. package/api/searchSettingsOperations.agravity.ts +187 -0
  40. package/api/secureUpload.agravity.ts +68 -209
  41. package/api/signalRConnectionManagement.agravity.ts +26 -109
  42. package/api/staticDefinedListManagement.agravity.ts +60 -193
  43. package/api/stockImport.agravity.ts +31 -122
  44. package/api/structureImport.agravity.ts +11 -78
  45. package/api/translationManagement.agravity.ts +86 -229
  46. package/api/webAppData.agravity.ts +48 -157
  47. package/api/widgetLayoutManagement.agravity.ts +22 -103
  48. package/api/wordpressManagement.agravity.ts +34 -131
  49. package/api/workspaceManagement.agravity.ts +77 -236
  50. package/api.base.service.ts +78 -0
  51. package/configuration.ts +33 -17
  52. package/index.ts +1 -0
  53. package/model/{aiGroupEntity.agravity.ts → aiAsset.agravity.ts} +2 -3
  54. package/model/aiFieldGeneration.agravity.ts +1 -5
  55. package/model/{aiGroup.agravity.ts → aiModelDeployment.agravity.ts} +6 -5
  56. package/model/aiSettings.agravity.ts +4 -3
  57. package/model/aiTypeSettings.agravity.ts +17 -0
  58. package/model/asset.agravity.ts +6 -6
  59. package/model/assetBlob.agravity.ts +15 -15
  60. package/model/assetIconRule.agravity.ts +1 -1
  61. package/model/assetRelationType.agravity.ts +1 -1
  62. package/model/azureIdentity.agravity.ts +7 -7
  63. package/model/collTypeItem.agravity.ts +1 -1
  64. package/model/collTypeItemBlueprint.agravity.ts +1 -1
  65. package/model/collection.agravity.ts +6 -6
  66. package/model/collectionType.agravity.ts +6 -6
  67. package/model/collectionUDL.agravity.ts +1 -1
  68. package/model/dashboardWidget.agravity.ts +1 -1
  69. package/model/downloadFormat.agravity.ts +1 -1
  70. package/model/downloadZipRequest.agravity.ts +6 -6
  71. package/model/downloadZipStatus.agravity.ts +6 -6
  72. package/model/entityIdName.agravity.ts +1 -1
  73. package/model/entityTranslations.agravity.ts +1 -1
  74. package/model/groupAllAppData.agravity.ts +1 -1
  75. package/model/historyEntry.agravity.ts +16 -30
  76. package/model/models.ts +5 -2
  77. package/model/notificationSettingDto.agravity.ts +18 -0
  78. package/model/permissionChange.agravity.ts +7 -7
  79. package/model/permissionEntity.agravity.ts +5 -5
  80. package/model/portalAuthentication.agravity.ts +7 -7
  81. package/model/portalTheme.agravity.ts +1 -1
  82. package/model/publishedAsset.agravity.ts +1 -1
  83. package/model/savedSearch.agravity.ts +1 -1
  84. package/model/searchSettings.agravity.ts +26 -0
  85. package/model/staticDefinedList.agravity.ts +1 -1
  86. package/model/uiTutorials.agravity.ts +4 -4
  87. package/model/whereParam.agravity.ts +17 -17
  88. package/model/workspace.agravity.ts +1 -1
  89. package/package.json +5 -4
  90. package/provide-api.ts +15 -0
  91. package/tsconfig.json +2 -0
  92. package/api/aISettingsManagement.agravity.ts +0 -264
package/api/api.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from './aISettingsManagement.agravity';
2
- import { AISettingsManagementService } from './aISettingsManagement.agravity';
1
+ export * from './aIOperations.agravity';
2
+ import { AIOperationsService } from './aIOperations.agravity';
3
3
  export * from './assetIconRuleManagement.agravity';
4
4
  import { AssetIconRuleManagementService } from './assetIconRuleManagement.agravity';
5
5
  export * from './assetManagement.agravity';
@@ -50,6 +50,8 @@ export * from './listQueues.agravity';
50
50
  import { ListQueuesService } from './listQueues.agravity';
51
51
  export * from './listTables.agravity';
52
52
  import { ListTablesService } from './listTables.agravity';
53
+ export * from './notificationManagement.agravity';
54
+ import { NotificationManagementService } from './notificationManagement.agravity';
53
55
  export * from './permissionsManagement.agravity';
54
56
  import { PermissionsManagementService } from './permissionsManagement.agravity';
55
57
  export * from './portalManagement.agravity';
@@ -64,6 +66,8 @@ export * from './savedSearchManagement.agravity';
64
66
  import { SavedSearchManagementService } from './savedSearchManagement.agravity';
65
67
  export * from './searchManagement.agravity';
66
68
  import { SearchManagementService } from './searchManagement.agravity';
69
+ export * from './searchSettingsOperations.agravity';
70
+ import { SearchSettingsOperationsService } from './searchSettingsOperations.agravity';
67
71
  export * from './secureUpload.agravity';
68
72
  import { SecureUploadService } from './secureUpload.agravity';
69
73
  export * from './signalRConnectionManagement.agravity';
@@ -85,7 +89,7 @@ import { WordpressManagementService } from './wordpressManagement.agravity';
85
89
  export * from './workspaceManagement.agravity';
86
90
  import { WorkspaceManagementService } from './workspaceManagement.agravity';
87
91
  export const APIS = [
88
- AISettingsManagementService,
92
+ AIOperationsService,
89
93
  AssetIconRuleManagementService,
90
94
  AssetManagementService,
91
95
  AssetOperationsService,
@@ -111,6 +115,7 @@ export const APIS = [
111
115
  ListBlobsService,
112
116
  ListQueuesService,
113
117
  ListTablesService,
118
+ NotificationManagementService,
114
119
  PermissionsManagementService,
115
120
  PortalManagementService,
116
121
  PortalsUsersManagementService,
@@ -118,6 +123,7 @@ export const APIS = [
118
123
  QuickshareManagementService,
119
124
  SavedSearchManagementService,
120
125
  SearchManagementService,
126
+ SearchSettingsOperationsService,
121
127
  SecureUploadService,
122
128
  SignalRConnectionManagementService,
123
129
  StaticDefinedListManagementService,
@@ -22,6 +22,7 @@ import { AssetIconRule } from '../model/assetIconRule.agravity';
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
24
  import { AgravityConfiguration } from '../configuration';
25
+ import { BaseService } from '../api.base.service';
25
26
 
26
27
  export interface HttpAssetIconRuleCreateRequestParams {
27
28
  /** This endpoint creates an asset icon rule ID and adds the information to the database. Color is a hex value. Operator has to be one of the following: \'EQUALS\', \'NOT EQUALS\', \'CONTAINS\', \'STARTSWITH\' */
@@ -67,67 +68,13 @@ export interface HttpAssetIconRulesGetByIdRequestParams {
67
68
  @Injectable({
68
69
  providedIn: 'root'
69
70
  })
70
- export class AssetIconRuleManagementService {
71
- protected basePath = 'http://localhost:7071/api';
72
- public defaultHeaders = new HttpHeaders();
73
- public configuration = new AgravityConfiguration();
74
- public encoder: HttpParameterCodec;
75
-
71
+ export class AssetIconRuleManagementService extends BaseService {
76
72
  constructor(
77
73
  protected httpClient: HttpClient,
78
74
  @Optional() @Inject(BASE_PATH) basePath: string | string[],
79
- @Optional() configuration: AgravityConfiguration
75
+ @Optional() configuration?: AgravityConfiguration
80
76
  ) {
81
- if (configuration) {
82
- this.configuration = configuration;
83
- }
84
- if (typeof this.configuration.basePath !== 'string') {
85
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
86
- if (firstBasePath != undefined) {
87
- basePath = firstBasePath;
88
- }
89
-
90
- if (typeof basePath !== 'string') {
91
- basePath = this.basePath;
92
- }
93
- this.configuration.basePath = basePath;
94
- }
95
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
96
- }
97
-
98
- // @ts-ignore
99
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
100
- if (typeof value === 'object' && value instanceof Date === false) {
101
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
102
- } else {
103
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
104
- }
105
- return httpParams;
106
- }
107
-
108
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
109
- if (value == null) {
110
- return httpParams;
111
- }
112
-
113
- if (typeof value === 'object') {
114
- if (Array.isArray(value)) {
115
- (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
116
- } else if (value instanceof Date) {
117
- if (key != null) {
118
- httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
119
- } else {
120
- throw Error('key may not be null if value is Date');
121
- }
122
- } else {
123
- Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
124
- }
125
- } else if (key != null) {
126
- httpParams = httpParams.append(key, value);
127
- } else {
128
- throw Error('key may not be null if value is not object or array');
129
- }
130
- return httpParams;
77
+ super(basePath, configuration);
131
78
  }
132
79
 
133
80
  /**
@@ -137,25 +84,25 @@ export class AssetIconRuleManagementService {
137
84
  * @param reportProgress flag to report request and response progress.
138
85
  */
139
86
  public httpAssetIconRuleCreate(
140
- requestParameters?: HttpAssetIconRuleCreateRequestParams,
87
+ requestParameters: HttpAssetIconRuleCreateRequestParams,
141
88
  observe?: 'body',
142
89
  reportProgress?: boolean,
143
90
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
144
91
  ): Observable<AssetIconRule>;
145
92
  public httpAssetIconRuleCreate(
146
- requestParameters?: HttpAssetIconRuleCreateRequestParams,
93
+ requestParameters: HttpAssetIconRuleCreateRequestParams,
147
94
  observe?: 'response',
148
95
  reportProgress?: boolean,
149
96
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
150
97
  ): Observable<HttpResponse<AssetIconRule>>;
151
98
  public httpAssetIconRuleCreate(
152
- requestParameters?: HttpAssetIconRuleCreateRequestParams,
99
+ requestParameters: HttpAssetIconRuleCreateRequestParams,
153
100
  observe?: 'events',
154
101
  reportProgress?: boolean,
155
102
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
156
103
  ): Observable<HttpEvent<AssetIconRule>>;
157
104
  public httpAssetIconRuleCreate(
158
- requestParameters?: HttpAssetIconRuleCreateRequestParams,
105
+ requestParameters: HttpAssetIconRuleCreateRequestParams,
159
106
  observe: any = 'body',
160
107
  reportProgress: boolean = false,
161
108
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -168,41 +115,24 @@ export class AssetIconRuleManagementService {
168
115
  const acceptLanguage = requestParameters?.acceptLanguage;
169
116
 
170
117
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
171
- if (translations !== undefined && translations !== null) {
172
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
173
- }
118
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
174
119
 
175
120
  let localVarHeaders = this.defaultHeaders;
176
121
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
177
122
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
178
123
  }
179
124
 
180
- let localVarCredential: string | undefined;
181
125
  // authentication (msal_auth) required
182
- localVarCredential = this.configuration.lookupCredential('msal_auth');
183
- if (localVarCredential) {
184
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
185
- }
126
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
186
127
 
187
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
188
- if (localVarHttpHeaderAcceptSelected === undefined) {
189
- // to determine the Accept header
190
- const httpHeaderAccepts: string[] = ['application/json'];
191
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
192
- }
128
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
193
129
  if (localVarHttpHeaderAcceptSelected !== undefined) {
194
130
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
195
131
  }
196
132
 
197
- let localVarHttpContext: HttpContext | undefined = options && options.context;
198
- if (localVarHttpContext === undefined) {
199
- localVarHttpContext = new HttpContext();
200
- }
133
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
201
134
 
202
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
203
- if (localVarTransferCache === undefined) {
204
- localVarTransferCache = true;
205
- }
135
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
206
136
 
207
137
  // to determine the Content-Type header
208
138
  const consumes: string[] = ['application/json'];
@@ -223,12 +153,13 @@ export class AssetIconRuleManagementService {
223
153
  }
224
154
 
225
155
  let localVarPath = `/asseticonrules`;
226
- return this.httpClient.request<AssetIconRule>('post', `${this.configuration.basePath}${localVarPath}`, {
156
+ const { basePath, withCredentials } = this.configuration;
157
+ return this.httpClient.request<AssetIconRule>('post', `${basePath}${localVarPath}`, {
227
158
  context: localVarHttpContext,
228
159
  body: assetIconRule,
229
160
  params: localVarQueryParameters,
230
161
  responseType: <any>responseType_,
231
- withCredentials: this.configuration.withCredentials,
162
+ ...(withCredentials ? { withCredentials } : {}),
232
163
  headers: localVarHeaders,
233
164
  observe: observe,
234
165
  transferCache: localVarTransferCache,
@@ -243,25 +174,25 @@ export class AssetIconRuleManagementService {
243
174
  * @param reportProgress flag to report request and response progress.
244
175
  */
245
176
  public httpAssetIconRuleDeleteById(
246
- requestParameters?: HttpAssetIconRuleDeleteByIdRequestParams,
177
+ requestParameters: HttpAssetIconRuleDeleteByIdRequestParams,
247
178
  observe?: 'body',
248
179
  reportProgress?: boolean,
249
180
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
250
181
  ): Observable<any>;
251
182
  public httpAssetIconRuleDeleteById(
252
- requestParameters?: HttpAssetIconRuleDeleteByIdRequestParams,
183
+ requestParameters: HttpAssetIconRuleDeleteByIdRequestParams,
253
184
  observe?: 'response',
254
185
  reportProgress?: boolean,
255
186
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
256
187
  ): Observable<HttpResponse<any>>;
257
188
  public httpAssetIconRuleDeleteById(
258
- requestParameters?: HttpAssetIconRuleDeleteByIdRequestParams,
189
+ requestParameters: HttpAssetIconRuleDeleteByIdRequestParams,
259
190
  observe?: 'events',
260
191
  reportProgress?: boolean,
261
192
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
262
193
  ): Observable<HttpEvent<any>>;
263
194
  public httpAssetIconRuleDeleteById(
264
- requestParameters?: HttpAssetIconRuleDeleteByIdRequestParams,
195
+ requestParameters: HttpAssetIconRuleDeleteByIdRequestParams,
265
196
  observe: any = 'body',
266
197
  reportProgress: boolean = false,
267
198
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -273,32 +204,17 @@ export class AssetIconRuleManagementService {
273
204
 
274
205
  let localVarHeaders = this.defaultHeaders;
275
206
 
276
- let localVarCredential: string | undefined;
277
207
  // authentication (msal_auth) required
278
- localVarCredential = this.configuration.lookupCredential('msal_auth');
279
- if (localVarCredential) {
280
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
281
- }
208
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
282
209
 
283
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
284
- if (localVarHttpHeaderAcceptSelected === undefined) {
285
- // to determine the Accept header
286
- const httpHeaderAccepts: string[] = ['application/json'];
287
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
288
- }
210
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
289
211
  if (localVarHttpHeaderAcceptSelected !== undefined) {
290
212
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
291
213
  }
292
214
 
293
- let localVarHttpContext: HttpContext | undefined = options && options.context;
294
- if (localVarHttpContext === undefined) {
295
- localVarHttpContext = new HttpContext();
296
- }
215
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
297
216
 
298
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
299
- if (localVarTransferCache === undefined) {
300
- localVarTransferCache = true;
301
- }
217
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
302
218
 
303
219
  let responseType_: 'text' | 'json' | 'blob' = 'json';
304
220
  if (localVarHttpHeaderAcceptSelected) {
@@ -312,10 +228,11 @@ export class AssetIconRuleManagementService {
312
228
  }
313
229
 
314
230
  let localVarPath = `/asseticonrules/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
315
- return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
231
+ const { basePath, withCredentials } = this.configuration;
232
+ return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
316
233
  context: localVarHttpContext,
317
234
  responseType: <any>responseType_,
318
- withCredentials: this.configuration.withCredentials,
235
+ ...(withCredentials ? { withCredentials } : {}),
319
236
  headers: localVarHeaders,
320
237
  observe: observe,
321
238
  transferCache: localVarTransferCache,
@@ -330,25 +247,25 @@ export class AssetIconRuleManagementService {
330
247
  * @param reportProgress flag to report request and response progress.
331
248
  */
332
249
  public httpAssetIconRuleUpdateById(
333
- requestParameters?: HttpAssetIconRuleUpdateByIdRequestParams,
250
+ requestParameters: HttpAssetIconRuleUpdateByIdRequestParams,
334
251
  observe?: 'body',
335
252
  reportProgress?: boolean,
336
253
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
337
254
  ): Observable<AssetIconRule>;
338
255
  public httpAssetIconRuleUpdateById(
339
- requestParameters?: HttpAssetIconRuleUpdateByIdRequestParams,
256
+ requestParameters: HttpAssetIconRuleUpdateByIdRequestParams,
340
257
  observe?: 'response',
341
258
  reportProgress?: boolean,
342
259
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
343
260
  ): Observable<HttpResponse<AssetIconRule>>;
344
261
  public httpAssetIconRuleUpdateById(
345
- requestParameters?: HttpAssetIconRuleUpdateByIdRequestParams,
262
+ requestParameters: HttpAssetIconRuleUpdateByIdRequestParams,
346
263
  observe?: 'events',
347
264
  reportProgress?: boolean,
348
265
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
349
266
  ): Observable<HttpEvent<AssetIconRule>>;
350
267
  public httpAssetIconRuleUpdateById(
351
- requestParameters?: HttpAssetIconRuleUpdateByIdRequestParams,
268
+ requestParameters: HttpAssetIconRuleUpdateByIdRequestParams,
352
269
  observe: any = 'body',
353
270
  reportProgress: boolean = false,
354
271
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -365,41 +282,24 @@ export class AssetIconRuleManagementService {
365
282
  const acceptLanguage = requestParameters?.acceptLanguage;
366
283
 
367
284
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
368
- if (translations !== undefined && translations !== null) {
369
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
370
- }
285
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
371
286
 
372
287
  let localVarHeaders = this.defaultHeaders;
373
288
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
374
289
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
375
290
  }
376
291
 
377
- let localVarCredential: string | undefined;
378
292
  // authentication (msal_auth) required
379
- localVarCredential = this.configuration.lookupCredential('msal_auth');
380
- if (localVarCredential) {
381
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
382
- }
293
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
383
294
 
384
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
385
- if (localVarHttpHeaderAcceptSelected === undefined) {
386
- // to determine the Accept header
387
- const httpHeaderAccepts: string[] = ['application/json'];
388
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
389
- }
295
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
390
296
  if (localVarHttpHeaderAcceptSelected !== undefined) {
391
297
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
392
298
  }
393
299
 
394
- let localVarHttpContext: HttpContext | undefined = options && options.context;
395
- if (localVarHttpContext === undefined) {
396
- localVarHttpContext = new HttpContext();
397
- }
300
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
398
301
 
399
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
400
- if (localVarTransferCache === undefined) {
401
- localVarTransferCache = true;
402
- }
302
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
403
303
 
404
304
  // to determine the Content-Type header
405
305
  const consumes: string[] = ['application/json'];
@@ -420,12 +320,13 @@ export class AssetIconRuleManagementService {
420
320
  }
421
321
 
422
322
  let localVarPath = `/asseticonrules/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
423
- return this.httpClient.request<AssetIconRule>('post', `${this.configuration.basePath}${localVarPath}`, {
323
+ const { basePath, withCredentials } = this.configuration;
324
+ return this.httpClient.request<AssetIconRule>('post', `${basePath}${localVarPath}`, {
424
325
  context: localVarHttpContext,
425
326
  body: assetIconRule,
426
327
  params: localVarQueryParameters,
427
328
  responseType: <any>responseType_,
428
- withCredentials: this.configuration.withCredentials,
329
+ ...(withCredentials ? { withCredentials } : {}),
429
330
  headers: localVarHeaders,
430
331
  observe: observe,
431
332
  transferCache: localVarTransferCache,
@@ -467,41 +368,24 @@ export class AssetIconRuleManagementService {
467
368
  const acceptLanguage = requestParameters?.acceptLanguage;
468
369
 
469
370
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
470
- if (translations !== undefined && translations !== null) {
471
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
472
- }
371
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
473
372
 
474
373
  let localVarHeaders = this.defaultHeaders;
475
374
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
476
375
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
477
376
  }
478
377
 
479
- let localVarCredential: string | undefined;
480
378
  // authentication (msal_auth) required
481
- localVarCredential = this.configuration.lookupCredential('msal_auth');
482
- if (localVarCredential) {
483
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
484
- }
379
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
485
380
 
486
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
487
- if (localVarHttpHeaderAcceptSelected === undefined) {
488
- // to determine the Accept header
489
- const httpHeaderAccepts: string[] = ['application/json'];
490
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
491
- }
381
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
492
382
  if (localVarHttpHeaderAcceptSelected !== undefined) {
493
383
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
494
384
  }
495
385
 
496
- let localVarHttpContext: HttpContext | undefined = options && options.context;
497
- if (localVarHttpContext === undefined) {
498
- localVarHttpContext = new HttpContext();
499
- }
386
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
500
387
 
501
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
502
- if (localVarTransferCache === undefined) {
503
- localVarTransferCache = true;
504
- }
388
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
505
389
 
506
390
  let responseType_: 'text' | 'json' | 'blob' = 'json';
507
391
  if (localVarHttpHeaderAcceptSelected) {
@@ -515,11 +399,12 @@ export class AssetIconRuleManagementService {
515
399
  }
516
400
 
517
401
  let localVarPath = `/asseticonrules`;
518
- return this.httpClient.request<Array<AssetIconRule>>('get', `${this.configuration.basePath}${localVarPath}`, {
402
+ const { basePath, withCredentials } = this.configuration;
403
+ return this.httpClient.request<Array<AssetIconRule>>('get', `${basePath}${localVarPath}`, {
519
404
  context: localVarHttpContext,
520
405
  params: localVarQueryParameters,
521
406
  responseType: <any>responseType_,
522
- withCredentials: this.configuration.withCredentials,
407
+ ...(withCredentials ? { withCredentials } : {}),
523
408
  headers: localVarHeaders,
524
409
  observe: observe,
525
410
  transferCache: localVarTransferCache,
@@ -534,25 +419,25 @@ export class AssetIconRuleManagementService {
534
419
  * @param reportProgress flag to report request and response progress.
535
420
  */
536
421
  public httpAssetIconRulesGetById(
537
- requestParameters?: HttpAssetIconRulesGetByIdRequestParams,
422
+ requestParameters: HttpAssetIconRulesGetByIdRequestParams,
538
423
  observe?: 'body',
539
424
  reportProgress?: boolean,
540
425
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
541
426
  ): Observable<AssetIconRule>;
542
427
  public httpAssetIconRulesGetById(
543
- requestParameters?: HttpAssetIconRulesGetByIdRequestParams,
428
+ requestParameters: HttpAssetIconRulesGetByIdRequestParams,
544
429
  observe?: 'response',
545
430
  reportProgress?: boolean,
546
431
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
547
432
  ): Observable<HttpResponse<AssetIconRule>>;
548
433
  public httpAssetIconRulesGetById(
549
- requestParameters?: HttpAssetIconRulesGetByIdRequestParams,
434
+ requestParameters: HttpAssetIconRulesGetByIdRequestParams,
550
435
  observe?: 'events',
551
436
  reportProgress?: boolean,
552
437
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
553
438
  ): Observable<HttpEvent<AssetIconRule>>;
554
439
  public httpAssetIconRulesGetById(
555
- requestParameters?: HttpAssetIconRulesGetByIdRequestParams,
440
+ requestParameters: HttpAssetIconRulesGetByIdRequestParams,
556
441
  observe: any = 'body',
557
442
  reportProgress: boolean = false,
558
443
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -565,41 +450,24 @@ export class AssetIconRuleManagementService {
565
450
  const acceptLanguage = requestParameters?.acceptLanguage;
566
451
 
567
452
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
568
- if (translations !== undefined && translations !== null) {
569
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
570
- }
453
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
571
454
 
572
455
  let localVarHeaders = this.defaultHeaders;
573
456
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
574
457
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
575
458
  }
576
459
 
577
- let localVarCredential: string | undefined;
578
460
  // authentication (msal_auth) required
579
- localVarCredential = this.configuration.lookupCredential('msal_auth');
580
- if (localVarCredential) {
581
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
582
- }
461
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
583
462
 
584
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
585
- if (localVarHttpHeaderAcceptSelected === undefined) {
586
- // to determine the Accept header
587
- const httpHeaderAccepts: string[] = ['application/json'];
588
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
589
- }
463
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
590
464
  if (localVarHttpHeaderAcceptSelected !== undefined) {
591
465
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
592
466
  }
593
467
 
594
- let localVarHttpContext: HttpContext | undefined = options && options.context;
595
- if (localVarHttpContext === undefined) {
596
- localVarHttpContext = new HttpContext();
597
- }
468
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
598
469
 
599
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
600
- if (localVarTransferCache === undefined) {
601
- localVarTransferCache = true;
602
- }
470
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
603
471
 
604
472
  let responseType_: 'text' | 'json' | 'blob' = 'json';
605
473
  if (localVarHttpHeaderAcceptSelected) {
@@ -613,11 +481,12 @@ export class AssetIconRuleManagementService {
613
481
  }
614
482
 
615
483
  let localVarPath = `/asseticonrules/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
616
- return this.httpClient.request<AssetIconRule>('get', `${this.configuration.basePath}${localVarPath}`, {
484
+ const { basePath, withCredentials } = this.configuration;
485
+ return this.httpClient.request<AssetIconRule>('get', `${basePath}${localVarPath}`, {
617
486
  context: localVarHttpContext,
618
487
  params: localVarQueryParameters,
619
488
  responseType: <any>responseType_,
620
- withCredentials: this.configuration.withCredentials,
489
+ ...(withCredentials ? { withCredentials } : {}),
621
490
  headers: localVarHeaders,
622
491
  observe: observe,
623
492
  transferCache: localVarTransferCache,