@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
@@ -22,6 +22,7 @@ import { CollTypeItemBlueprint } from '../model/collTypeItemBlueprint.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 HttpCollTypeItemBlueprintsCreateRequestParams {
27
28
  /** This endpoint creates an unique blueprint and adds the information to the database. */
@@ -58,67 +59,13 @@ export interface HttpCollTypeItemBlueprintsUpdateByIdRequestParams {
58
59
  @Injectable({
59
60
  providedIn: 'root'
60
61
  })
61
- export class CollectionTypeItemBlueprintManagementService {
62
- protected basePath = 'http://localhost:7071/api';
63
- public defaultHeaders = new HttpHeaders();
64
- public configuration = new AgravityConfiguration();
65
- public encoder: HttpParameterCodec;
66
-
62
+ export class CollectionTypeItemBlueprintManagementService extends BaseService {
67
63
  constructor(
68
64
  protected httpClient: HttpClient,
69
65
  @Optional() @Inject(BASE_PATH) basePath: string | string[],
70
- @Optional() configuration: AgravityConfiguration
66
+ @Optional() configuration?: AgravityConfiguration
71
67
  ) {
72
- if (configuration) {
73
- this.configuration = configuration;
74
- }
75
- if (typeof this.configuration.basePath !== 'string') {
76
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
77
- if (firstBasePath != undefined) {
78
- basePath = firstBasePath;
79
- }
80
-
81
- if (typeof basePath !== 'string') {
82
- basePath = this.basePath;
83
- }
84
- this.configuration.basePath = basePath;
85
- }
86
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
87
- }
88
-
89
- // @ts-ignore
90
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
91
- if (typeof value === 'object' && value instanceof Date === false) {
92
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
93
- } else {
94
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
95
- }
96
- return httpParams;
97
- }
98
-
99
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
100
- if (value == null) {
101
- return httpParams;
102
- }
103
-
104
- if (typeof value === 'object') {
105
- if (Array.isArray(value)) {
106
- (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
107
- } else if (value instanceof Date) {
108
- if (key != null) {
109
- httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
110
- } else {
111
- throw Error('key may not be null if value is Date');
112
- }
113
- } else {
114
- Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
115
- }
116
- } else if (key != null) {
117
- httpParams = httpParams.append(key, value);
118
- } else {
119
- throw Error('key may not be null if value is not object or array');
120
- }
121
- return httpParams;
68
+ super(basePath, configuration);
122
69
  }
123
70
 
124
71
  /**
@@ -128,25 +75,25 @@ export class CollectionTypeItemBlueprintManagementService {
128
75
  * @param reportProgress flag to report request and response progress.
129
76
  */
130
77
  public httpCollTypeItemBlueprintsCreate(
131
- requestParameters?: HttpCollTypeItemBlueprintsCreateRequestParams,
78
+ requestParameters: HttpCollTypeItemBlueprintsCreateRequestParams,
132
79
  observe?: 'body',
133
80
  reportProgress?: boolean,
134
81
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
135
82
  ): Observable<CollTypeItemBlueprint>;
136
83
  public httpCollTypeItemBlueprintsCreate(
137
- requestParameters?: HttpCollTypeItemBlueprintsCreateRequestParams,
84
+ requestParameters: HttpCollTypeItemBlueprintsCreateRequestParams,
138
85
  observe?: 'response',
139
86
  reportProgress?: boolean,
140
87
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
141
88
  ): Observable<HttpResponse<CollTypeItemBlueprint>>;
142
89
  public httpCollTypeItemBlueprintsCreate(
143
- requestParameters?: HttpCollTypeItemBlueprintsCreateRequestParams,
90
+ requestParameters: HttpCollTypeItemBlueprintsCreateRequestParams,
144
91
  observe?: 'events',
145
92
  reportProgress?: boolean,
146
93
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
147
94
  ): Observable<HttpEvent<CollTypeItemBlueprint>>;
148
95
  public httpCollTypeItemBlueprintsCreate(
149
- requestParameters?: HttpCollTypeItemBlueprintsCreateRequestParams,
96
+ requestParameters: HttpCollTypeItemBlueprintsCreateRequestParams,
150
97
  observe: any = 'body',
151
98
  reportProgress: boolean = false,
152
99
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -159,41 +106,24 @@ export class CollectionTypeItemBlueprintManagementService {
159
106
  const acceptLanguage = requestParameters?.acceptLanguage;
160
107
 
161
108
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
162
- if (translations !== undefined && translations !== null) {
163
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
164
- }
109
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
165
110
 
166
111
  let localVarHeaders = this.defaultHeaders;
167
112
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
168
113
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
169
114
  }
170
115
 
171
- let localVarCredential: string | undefined;
172
116
  // authentication (msal_auth) required
173
- localVarCredential = this.configuration.lookupCredential('msal_auth');
174
- if (localVarCredential) {
175
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
176
- }
117
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
177
118
 
178
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
179
- if (localVarHttpHeaderAcceptSelected === undefined) {
180
- // to determine the Accept header
181
- const httpHeaderAccepts: string[] = ['application/json'];
182
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
183
- }
119
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
184
120
  if (localVarHttpHeaderAcceptSelected !== undefined) {
185
121
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
186
122
  }
187
123
 
188
- let localVarHttpContext: HttpContext | undefined = options && options.context;
189
- if (localVarHttpContext === undefined) {
190
- localVarHttpContext = new HttpContext();
191
- }
124
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
192
125
 
193
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
194
- if (localVarTransferCache === undefined) {
195
- localVarTransferCache = true;
196
- }
126
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
197
127
 
198
128
  // to determine the Content-Type header
199
129
  const consumes: string[] = ['application/json'];
@@ -214,12 +144,13 @@ export class CollectionTypeItemBlueprintManagementService {
214
144
  }
215
145
 
216
146
  let localVarPath = `/colltypeitemblueprints`;
217
- return this.httpClient.request<CollTypeItemBlueprint>('post', `${this.configuration.basePath}${localVarPath}`, {
147
+ const { basePath, withCredentials } = this.configuration;
148
+ return this.httpClient.request<CollTypeItemBlueprint>('post', `${basePath}${localVarPath}`, {
218
149
  context: localVarHttpContext,
219
150
  body: collTypeItemBlueprint,
220
151
  params: localVarQueryParameters,
221
152
  responseType: <any>responseType_,
222
- withCredentials: this.configuration.withCredentials,
153
+ ...(withCredentials ? { withCredentials } : {}),
223
154
  headers: localVarHeaders,
224
155
  observe: observe,
225
156
  transferCache: localVarTransferCache,
@@ -234,25 +165,25 @@ export class CollectionTypeItemBlueprintManagementService {
234
165
  * @param reportProgress flag to report request and response progress.
235
166
  */
236
167
  public httpCollTypeItemBlueprintsDeleteById(
237
- requestParameters?: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
168
+ requestParameters: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
238
169
  observe?: 'body',
239
170
  reportProgress?: boolean,
240
171
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
241
172
  ): Observable<any>;
242
173
  public httpCollTypeItemBlueprintsDeleteById(
243
- requestParameters?: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
174
+ requestParameters: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
244
175
  observe?: 'response',
245
176
  reportProgress?: boolean,
246
177
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
247
178
  ): Observable<HttpResponse<any>>;
248
179
  public httpCollTypeItemBlueprintsDeleteById(
249
- requestParameters?: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
180
+ requestParameters: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
250
181
  observe?: 'events',
251
182
  reportProgress?: boolean,
252
183
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
253
184
  ): Observable<HttpEvent<any>>;
254
185
  public httpCollTypeItemBlueprintsDeleteById(
255
- requestParameters?: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
186
+ requestParameters: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
256
187
  observe: any = 'body',
257
188
  reportProgress: boolean = false,
258
189
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -264,32 +195,17 @@ export class CollectionTypeItemBlueprintManagementService {
264
195
 
265
196
  let localVarHeaders = this.defaultHeaders;
266
197
 
267
- let localVarCredential: string | undefined;
268
198
  // authentication (msal_auth) required
269
- localVarCredential = this.configuration.lookupCredential('msal_auth');
270
- if (localVarCredential) {
271
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
272
- }
199
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
273
200
 
274
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
275
- if (localVarHttpHeaderAcceptSelected === undefined) {
276
- // to determine the Accept header
277
- const httpHeaderAccepts: string[] = ['application/json'];
278
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
279
- }
201
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
280
202
  if (localVarHttpHeaderAcceptSelected !== undefined) {
281
203
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
282
204
  }
283
205
 
284
- let localVarHttpContext: HttpContext | undefined = options && options.context;
285
- if (localVarHttpContext === undefined) {
286
- localVarHttpContext = new HttpContext();
287
- }
206
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
288
207
 
289
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
290
- if (localVarTransferCache === undefined) {
291
- localVarTransferCache = true;
292
- }
208
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
293
209
 
294
210
  let responseType_: 'text' | 'json' | 'blob' = 'json';
295
211
  if (localVarHttpHeaderAcceptSelected) {
@@ -303,10 +219,11 @@ export class CollectionTypeItemBlueprintManagementService {
303
219
  }
304
220
 
305
221
  let localVarPath = `/colltypeitemblueprints/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
306
- return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
222
+ const { basePath, withCredentials } = this.configuration;
223
+ return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
307
224
  context: localVarHttpContext,
308
225
  responseType: <any>responseType_,
309
- withCredentials: this.configuration.withCredentials,
226
+ ...(withCredentials ? { withCredentials } : {}),
310
227
  headers: localVarHeaders,
311
228
  observe: observe,
312
229
  transferCache: localVarTransferCache,
@@ -348,41 +265,24 @@ export class CollectionTypeItemBlueprintManagementService {
348
265
  const acceptLanguage = requestParameters?.acceptLanguage;
349
266
 
350
267
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
351
- if (translations !== undefined && translations !== null) {
352
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
353
- }
268
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
354
269
 
355
270
  let localVarHeaders = this.defaultHeaders;
356
271
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
357
272
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
358
273
  }
359
274
 
360
- let localVarCredential: string | undefined;
361
275
  // authentication (msal_auth) required
362
- localVarCredential = this.configuration.lookupCredential('msal_auth');
363
- if (localVarCredential) {
364
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
365
- }
276
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
366
277
 
367
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
368
- if (localVarHttpHeaderAcceptSelected === undefined) {
369
- // to determine the Accept header
370
- const httpHeaderAccepts: string[] = ['application/json'];
371
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
372
- }
278
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
373
279
  if (localVarHttpHeaderAcceptSelected !== undefined) {
374
280
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
375
281
  }
376
282
 
377
- let localVarHttpContext: HttpContext | undefined = options && options.context;
378
- if (localVarHttpContext === undefined) {
379
- localVarHttpContext = new HttpContext();
380
- }
283
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
381
284
 
382
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
383
- if (localVarTransferCache === undefined) {
384
- localVarTransferCache = true;
385
- }
285
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
386
286
 
387
287
  let responseType_: 'text' | 'json' | 'blob' = 'json';
388
288
  if (localVarHttpHeaderAcceptSelected) {
@@ -396,11 +296,12 @@ export class CollectionTypeItemBlueprintManagementService {
396
296
  }
397
297
 
398
298
  let localVarPath = `/colltypeitemblueprints`;
399
- return this.httpClient.request<Array<CollTypeItemBlueprint>>('get', `${this.configuration.basePath}${localVarPath}`, {
299
+ const { basePath, withCredentials } = this.configuration;
300
+ return this.httpClient.request<Array<CollTypeItemBlueprint>>('get', `${basePath}${localVarPath}`, {
400
301
  context: localVarHttpContext,
401
302
  params: localVarQueryParameters,
402
303
  responseType: <any>responseType_,
403
- withCredentials: this.configuration.withCredentials,
304
+ ...(withCredentials ? { withCredentials } : {}),
404
305
  headers: localVarHeaders,
405
306
  observe: observe,
406
307
  transferCache: localVarTransferCache,
@@ -415,25 +316,25 @@ export class CollectionTypeItemBlueprintManagementService {
415
316
  * @param reportProgress flag to report request and response progress.
416
317
  */
417
318
  public httpCollTypeItemBlueprintsUpdateById(
418
- requestParameters?: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
319
+ requestParameters: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
419
320
  observe?: 'body',
420
321
  reportProgress?: boolean,
421
322
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
422
323
  ): Observable<CollTypeItemBlueprint>;
423
324
  public httpCollTypeItemBlueprintsUpdateById(
424
- requestParameters?: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
325
+ requestParameters: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
425
326
  observe?: 'response',
426
327
  reportProgress?: boolean,
427
328
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
428
329
  ): Observable<HttpResponse<CollTypeItemBlueprint>>;
429
330
  public httpCollTypeItemBlueprintsUpdateById(
430
- requestParameters?: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
331
+ requestParameters: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
431
332
  observe?: 'events',
432
333
  reportProgress?: boolean,
433
334
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
434
335
  ): Observable<HttpEvent<CollTypeItemBlueprint>>;
435
336
  public httpCollTypeItemBlueprintsUpdateById(
436
- requestParameters?: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
337
+ requestParameters: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
437
338
  observe: any = 'body',
438
339
  reportProgress: boolean = false,
439
340
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -450,41 +351,24 @@ export class CollectionTypeItemBlueprintManagementService {
450
351
  const acceptLanguage = requestParameters?.acceptLanguage;
451
352
 
452
353
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
453
- if (translations !== undefined && translations !== null) {
454
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
455
- }
354
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
456
355
 
457
356
  let localVarHeaders = this.defaultHeaders;
458
357
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
459
358
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
460
359
  }
461
360
 
462
- let localVarCredential: string | undefined;
463
361
  // authentication (msal_auth) required
464
- localVarCredential = this.configuration.lookupCredential('msal_auth');
465
- if (localVarCredential) {
466
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
467
- }
362
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
468
363
 
469
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
470
- if (localVarHttpHeaderAcceptSelected === undefined) {
471
- // to determine the Accept header
472
- const httpHeaderAccepts: string[] = ['application/json'];
473
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
474
- }
364
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
475
365
  if (localVarHttpHeaderAcceptSelected !== undefined) {
476
366
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
477
367
  }
478
368
 
479
- let localVarHttpContext: HttpContext | undefined = options && options.context;
480
- if (localVarHttpContext === undefined) {
481
- localVarHttpContext = new HttpContext();
482
- }
369
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
483
370
 
484
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
485
- if (localVarTransferCache === undefined) {
486
- localVarTransferCache = true;
487
- }
371
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
488
372
 
489
373
  // to determine the Content-Type header
490
374
  const consumes: string[] = ['application/json'];
@@ -505,12 +389,13 @@ export class CollectionTypeItemBlueprintManagementService {
505
389
  }
506
390
 
507
391
  let localVarPath = `/colltypeitemblueprints/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
508
- return this.httpClient.request<CollTypeItemBlueprint>('post', `${this.configuration.basePath}${localVarPath}`, {
392
+ const { basePath, withCredentials } = this.configuration;
393
+ return this.httpClient.request<CollTypeItemBlueprint>('post', `${basePath}${localVarPath}`, {
509
394
  context: localVarHttpContext,
510
395
  body: collTypeItemBlueprint,
511
396
  params: localVarQueryParameters,
512
397
  responseType: <any>responseType_,
513
- withCredentials: this.configuration.withCredentials,
398
+ ...(withCredentials ? { withCredentials } : {}),
514
399
  headers: localVarHeaders,
515
400
  observe: observe,
516
401
  transferCache: localVarTransferCache,