@agravity/private 7.3.0 → 8.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 (141) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +29 -4
  4. package/api/assetIconRuleManagement.agravity.ts +344 -150
  5. package/api/assetManagement.agravity.ts +709 -389
  6. package/api/assetOperations.agravity.ts +1414 -650
  7. package/api/assetPublishing.agravity.ts +562 -255
  8. package/api/assetVersioning.agravity.ts +598 -278
  9. package/api/authenticationManagement.agravity.ts +731 -274
  10. package/api/collectionManagement.agravity.ts +618 -309
  11. package/api/collectionShareManagement.agravity.ts +256 -121
  12. package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
  13. package/api/collectionTypeManagement.agravity.ts +519 -250
  14. package/api/commentsManagement.agravity.ts +284 -90
  15. package/api/configurationManagement.agravity.ts +311 -128
  16. package/api/dashboardWidgetManagement.agravity.ts +342 -124
  17. package/api/dataImportExportManagement.agravity.ts +378 -148
  18. package/api/downloadFormatManagement.agravity.ts +450 -152
  19. package/api/downloadZip.agravity.ts +75 -30
  20. package/api/generalManagement.agravity.ts +374 -164
  21. package/api/helperTools.agravity.ts +804 -273
  22. package/api/historyEntryManagement.agravity.ts +75 -33
  23. package/api/iccProfileManagement.agravity.ts +64 -23
  24. package/api/listBlobs.agravity.ts +125 -47
  25. package/api/listQueues.agravity.ts +68 -24
  26. package/api/listTables.agravity.ts +68 -25
  27. package/api/permissionsManagement.agravity.ts +174 -77
  28. package/api/portalManagement.agravity.ts +511 -198
  29. package/api/publishing.agravity.ts +69 -38
  30. package/api/quickshareManagement.agravity.ts +349 -138
  31. package/api/savedSearchManagement.agravity.ts +205 -92
  32. package/api/searchManagement.agravity.ts +517 -297
  33. package/api/secureUpload.agravity.ts +325 -126
  34. package/api/signalRConnectionManagement.agravity.ts +175 -56
  35. package/api/staticDefinedListManagement.agravity.ts +342 -162
  36. package/api/stockImport.agravity.ts +138 -74
  37. package/api/structureImport.agravity.ts +68 -25
  38. package/api/translationManagement.agravity.ts +357 -206
  39. package/api/webAppData.agravity.ts +278 -88
  40. package/api/widgetLayoutManagement.agravity.ts +131 -47
  41. package/api/wordpressManagement.agravity.ts +152 -108
  42. package/api/workspaceManagement.agravity.ts +456 -197
  43. package/api.module.ts +0 -40
  44. package/configuration.ts +42 -0
  45. package/git_push.sh +3 -4
  46. package/index.ts +1 -0
  47. package/model/agravityErrorResponse.agravity.ts +3 -4
  48. package/model/agravityInfoResponse.agravity.ts +3 -4
  49. package/model/agravityUser.agravity.ts +16 -17
  50. package/model/agravityUserDto.agravity.ts +3 -4
  51. package/model/agravityVersion.agravity.ts +8 -9
  52. package/model/allWebAppData.agravity.ts +4 -5
  53. package/model/apiKeyResponse.agravity.ts +2 -3
  54. package/model/appConfigTableEntity.agravity.ts +8 -9
  55. package/model/artificialIntelligenceGroup.agravity.ts +3 -4
  56. package/model/asset.agravity.ts +22 -23
  57. package/model/assetAvailability.agravity.ts +1 -2
  58. package/model/assetBlob.agravity.ts +27 -28
  59. package/model/assetBulkUpdate.agravity.ts +2 -3
  60. package/model/assetCollectionLink.agravity.ts +2 -3
  61. package/model/assetIconRule.agravity.ts +17 -18
  62. package/model/assetIdFormat.agravity.ts +3 -4
  63. package/model/assetPageResult.agravity.ts +4 -5
  64. package/model/assetTextContent.agravity.ts +2 -3
  65. package/model/assetsOperationBody.agravity.ts +3 -4
  66. package/model/azSearchOptions.agravity.ts +8 -9
  67. package/model/azureIdentity.agravity.ts +4 -5
  68. package/model/blobInfoObj.agravity.ts +0 -1
  69. package/model/collTypeItem.agravity.ts +16 -17
  70. package/model/collTypeItemBlueprint.agravity.ts +12 -13
  71. package/model/collection.agravity.ts +15 -16
  72. package/model/collectionType.agravity.ts +14 -15
  73. package/model/collectionUDL.agravity.ts +4 -5
  74. package/model/collectionUDLListEntity.agravity.ts +9 -10
  75. package/model/collectionUDLReference.agravity.ts +3 -4
  76. package/model/comment.agravity.ts +9 -10
  77. package/model/createSftpUserResult.agravity.ts +2 -3
  78. package/model/dashboardWidget.agravity.ts +11 -12
  79. package/model/dataResult.agravity.ts +4 -5
  80. package/model/deletedEntities.agravity.ts +4 -5
  81. package/model/distZipResponse.agravity.ts +3 -4
  82. package/model/downloadFormat.agravity.ts +19 -16
  83. package/model/downloadObject.agravity.ts +16 -16
  84. package/model/downloadZipRequest.agravity.ts +9 -10
  85. package/model/dynamicImageOperation.agravity.ts +2 -3
  86. package/model/emailAddress.agravity.ts +2 -3
  87. package/model/entityId.agravity.ts +1 -2
  88. package/model/entityIdName.agravity.ts +3 -4
  89. package/model/entityTranslations.agravity.ts +2 -3
  90. package/model/excelExportTableEntity.agravity.ts +5 -5
  91. package/model/frontendAppConfig.agravity.ts +0 -1
  92. package/model/groupAllAppData.agravity.ts +5 -6
  93. package/model/historyEntry.agravity.ts +9 -10
  94. package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
  95. package/model/metadata.agravity.ts +3 -4
  96. package/model/models.ts +0 -1
  97. package/model/moveCollectionBody.agravity.ts +3 -4
  98. package/model/permissionChange.agravity.ts +1 -2
  99. package/model/permissionEntity.agravity.ts +1 -2
  100. package/model/permissionSetting.agravity.ts +8 -9
  101. package/model/portal.agravity.ts +18 -20
  102. package/model/portalLinks.agravity.ts +3 -4
  103. package/model/portalTheme.agravity.ts +6 -7
  104. package/model/portalZipRequest.agravity.ts +14 -15
  105. package/model/publishEntity.agravity.ts +9 -10
  106. package/model/publishedAsset.agravity.ts +12 -13
  107. package/model/quickShare.agravity.ts +12 -13
  108. package/model/quickShareFull.agravity.ts +15 -16
  109. package/model/sasToken.agravity.ts +6 -7
  110. package/model/savedSearch.agravity.ts +13 -14
  111. package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
  112. package/model/searchAdminIndexStatus.agravity.ts +3 -4
  113. package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
  114. package/model/searchAdminIndexerStatus.agravity.ts +4 -5
  115. package/model/searchAdminSkillStatus.agravity.ts +2 -3
  116. package/model/searchAdminStatistics.agravity.ts +2 -3
  117. package/model/searchAdminStatus.agravity.ts +4 -5
  118. package/model/searchFacet.agravity.ts +2 -3
  119. package/model/searchFacetEntity.agravity.ts +2 -3
  120. package/model/searchResult.agravity.ts +3 -4
  121. package/model/searchableItem.agravity.ts +3 -4
  122. package/model/secureUploadEntity.agravity.ts +10 -11
  123. package/model/sharedAllowedFormat.agravity.ts +2 -3
  124. package/model/sharedAsset.agravity.ts +5 -6
  125. package/model/sharedCollection.agravity.ts +15 -16
  126. package/model/sharedCollectionFull.agravity.ts +18 -19
  127. package/model/signalRConnectionInfo.agravity.ts +0 -1
  128. package/model/simpleAsset.agravity.ts +10 -11
  129. package/model/staticDefinedList.agravity.ts +12 -13
  130. package/model/translation.agravity.ts +2 -3
  131. package/model/translationRequest.agravity.ts +3 -4
  132. package/model/uiTutorials.agravity.ts +0 -1
  133. package/model/versionEntity.agravity.ts +9 -10
  134. package/model/versionedAsset.agravity.ts +5 -6
  135. package/model/whereParam.agravity.ts +0 -1
  136. package/model/widgetLayout.agravity.ts +8 -9
  137. package/model/widgetProperties.agravity.ts +6 -7
  138. package/model/workspace.agravity.ts +14 -15
  139. package/package.json +16 -17
  140. package/param.ts +44 -0
  141. package/model/portalLanguages.agravity.ts +0 -16
@@ -2,7 +2,6 @@
2
2
  * Agravity OpenAPI Documentation - Private Functions
3
3
  * <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 7.3.0
6
5
  * Contact: office@agravity.io
7
6
  *
8
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,16 +11,60 @@
12
11
  /* tslint:disable:no-unused-variable member-ordering */
13
12
 
14
13
  import { Inject, Injectable, Optional } from '@angular/core';
15
- import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
14
+ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
16
15
  import { CustomHttpParameterCodec } from '../encoder';
17
16
  import { Observable } from 'rxjs';
18
17
 
19
- import { AgravityErrorResponse } from '../model/models';
20
- import { AssetIconRule } from '../model/models';
18
+ // @ts-ignore
19
+ import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
20
+ // @ts-ignore
21
+ import { AssetIconRule } from '../model/assetIconRule.agravity';
21
22
 
23
+ // @ts-ignore
22
24
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23
25
  import { AgravityConfiguration } from '../configuration';
24
26
 
27
+ export interface HttpAssetIconRuleCreateRequestParams {
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: \&#39;EQUALS\&#39;, \&#39;NOT EQUALS\&#39;, \&#39;CONTAINS\&#39;, \&#39;STARTSWITH\&#39; */
29
+ assetIconRule: AssetIconRule;
30
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
31
+ translations?: boolean;
32
+ /** The requested language of the response. If not matching it falls back to default language. */
33
+ acceptLanguage?: string;
34
+ }
35
+
36
+ export interface HttpAssetIconRuleDeleteByIdRequestParams {
37
+ /** The ID of the asset icon rule. */
38
+ id: string;
39
+ }
40
+
41
+ export interface HttpAssetIconRuleUpdateByIdRequestParams {
42
+ /** The ID of the asset icon rule. */
43
+ id: string;
44
+ /** This endpoint updates an asset icon rule and adds the information to the database. Color is a hex value. Operator has to be one of the following: \&#39;EQUALS\&#39;, \&#39;NOT EQUALS\&#39;, \&#39;CONTAINS\&#39;, \&#39;STARTSWITH\&#39; */
45
+ assetIconRule: AssetIconRule;
46
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
47
+ translations?: boolean;
48
+ /** The requested language of the response. If not matching it falls back to default language. */
49
+ acceptLanguage?: string;
50
+ }
51
+
52
+ export interface HttpAssetIconRulesGetAllRequestParams {
53
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
54
+ translations?: boolean;
55
+ /** The requested language of the response. If not matching it falls back to default language. */
56
+ acceptLanguage?: string;
57
+ }
58
+
59
+ export interface HttpAssetIconRulesGetByIdRequestParams {
60
+ /** The ID of the asset icon rule. */
61
+ id: string;
62
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
63
+ translations?: boolean;
64
+ /** The requested language of the response. If not matching it falls back to default language. */
65
+ acceptLanguage?: string;
66
+ }
67
+
25
68
  @Injectable({
26
69
  providedIn: 'root'
27
70
  })
@@ -33,13 +76,18 @@ export class AssetIconRuleManagementService {
33
76
 
34
77
  constructor(
35
78
  protected httpClient: HttpClient,
36
- @Optional() @Inject(BASE_PATH) basePath: string,
79
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
37
80
  @Optional() configuration: AgravityConfiguration
38
81
  ) {
39
82
  if (configuration) {
40
83
  this.configuration = configuration;
41
84
  }
42
85
  if (typeof this.configuration.basePath !== 'string') {
86
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
87
+ if (firstBasePath != undefined) {
88
+ basePath = firstBasePath;
89
+ }
90
+
43
91
  if (typeof basePath !== 'string') {
44
92
  basePath = this.basePath;
45
93
  }
@@ -48,6 +96,7 @@ export class AssetIconRuleManagementService {
48
96
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
49
97
  }
50
98
 
99
+ // @ts-ignore
51
100
  private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
52
101
  if (typeof value === 'object' && value instanceof Date === false) {
53
102
  httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -67,7 +116,7 @@ export class AssetIconRuleManagementService {
67
116
  (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
68
117
  } else if (value instanceof Date) {
69
118
  if (key != null) {
70
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
119
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
71
120
  } else {
72
121
  throw Error('key may not be null if value is Date');
73
122
  }
@@ -84,350 +133,495 @@ export class AssetIconRuleManagementService {
84
133
 
85
134
  /**
86
135
  * This endpoint creates one asset icon rule entry in the database.
87
- * @param assetIconRule 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: \&#39;EQUALS\&#39;, \&#39;NOT EQUALS\&#39;, \&#39;CONTAINS\&#39;, \&#39;STARTSWITH\&#39;
88
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
136
+ * @param requestParameters
89
137
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
90
138
  * @param reportProgress flag to report request and response progress.
91
139
  */
92
140
  public httpAssetIconRuleCreate(
93
- assetIconRule: AssetIconRule,
94
- translations?: boolean,
141
+ requestParameters?: HttpAssetIconRuleCreateRequestParams,
95
142
  observe?: 'body',
96
143
  reportProgress?: boolean,
97
- options?: { httpHeaderAccept?: 'application/json' }
144
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
98
145
  ): Observable<AssetIconRule>;
99
146
  public httpAssetIconRuleCreate(
100
- assetIconRule: AssetIconRule,
101
- translations?: boolean,
147
+ requestParameters?: HttpAssetIconRuleCreateRequestParams,
102
148
  observe?: 'response',
103
149
  reportProgress?: boolean,
104
- options?: { httpHeaderAccept?: 'application/json' }
150
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
105
151
  ): Observable<HttpResponse<AssetIconRule>>;
106
152
  public httpAssetIconRuleCreate(
107
- assetIconRule: AssetIconRule,
108
- translations?: boolean,
153
+ requestParameters?: HttpAssetIconRuleCreateRequestParams,
109
154
  observe?: 'events',
110
155
  reportProgress?: boolean,
111
- options?: { httpHeaderAccept?: 'application/json' }
156
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
112
157
  ): Observable<HttpEvent<AssetIconRule>>;
113
158
  public httpAssetIconRuleCreate(
114
- assetIconRule: AssetIconRule,
115
- translations?: boolean,
159
+ requestParameters?: HttpAssetIconRuleCreateRequestParams,
116
160
  observe: any = 'body',
117
161
  reportProgress: boolean = false,
118
- options?: { httpHeaderAccept?: 'application/json' }
162
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
119
163
  ): Observable<any> {
164
+ const assetIconRule = requestParameters?.assetIconRule;
120
165
  if (assetIconRule === null || assetIconRule === undefined) {
121
166
  throw new Error('Required parameter assetIconRule was null or undefined when calling httpAssetIconRuleCreate.');
122
167
  }
168
+ const translations = requestParameters?.translations;
169
+ const acceptLanguage = requestParameters?.acceptLanguage;
123
170
 
124
- let queryParameters = new HttpParams({ encoder: this.encoder });
171
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
125
172
  if (translations !== undefined && translations !== null) {
126
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
173
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
127
174
  }
128
175
 
129
- let headers = this.defaultHeaders;
176
+ let localVarHeaders = this.defaultHeaders;
177
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
178
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
179
+ }
130
180
 
131
- let credential: string | undefined;
181
+ let localVarCredential: string | undefined;
132
182
  // authentication (msal_auth) required
133
- credential = this.configuration.lookupCredential('msal_auth');
134
- if (credential) {
135
- headers = headers.set('Authorization', 'Bearer ' + credential);
183
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
184
+ if (localVarCredential) {
185
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
136
186
  }
137
187
 
138
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
139
- if (httpHeaderAcceptSelected === undefined) {
188
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
189
+ if (localVarHttpHeaderAcceptSelected === undefined) {
140
190
  // to determine the Accept header
141
191
  const httpHeaderAccepts: string[] = ['application/json'];
142
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
192
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
143
193
  }
144
- if (httpHeaderAcceptSelected !== undefined) {
145
- headers = headers.set('Accept', httpHeaderAcceptSelected);
194
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
195
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
196
+ }
197
+
198
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
199
+ if (localVarHttpContext === undefined) {
200
+ localVarHttpContext = new HttpContext();
201
+ }
202
+
203
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
204
+ if (localVarTransferCache === undefined) {
205
+ localVarTransferCache = true;
146
206
  }
147
207
 
148
208
  // to determine the Content-Type header
149
209
  const consumes: string[] = ['application/json'];
150
210
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
151
211
  if (httpContentTypeSelected !== undefined) {
152
- headers = headers.set('Content-Type', httpContentTypeSelected);
212
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
153
213
  }
154
214
 
155
- let responseType_: 'text' | 'json' = 'json';
156
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
157
- responseType_ = 'text';
215
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
216
+ if (localVarHttpHeaderAcceptSelected) {
217
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
218
+ responseType_ = 'text';
219
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
220
+ responseType_ = 'json';
221
+ } else {
222
+ responseType_ = 'blob';
223
+ }
158
224
  }
159
225
 
160
- return this.httpClient.post<AssetIconRule>(`${this.configuration.basePath}/asseticonrules`, assetIconRule, {
161
- params: queryParameters,
226
+ let localVarPath = `/asseticonrules`;
227
+ return this.httpClient.request<AssetIconRule>('post', `${this.configuration.basePath}${localVarPath}`, {
228
+ context: localVarHttpContext,
229
+ body: assetIconRule,
230
+ params: localVarQueryParameters,
162
231
  responseType: <any>responseType_,
163
232
  withCredentials: this.configuration.withCredentials,
164
- headers: headers,
233
+ headers: localVarHeaders,
165
234
  observe: observe,
235
+ transferCache: localVarTransferCache,
166
236
  reportProgress: reportProgress
167
237
  });
168
238
  }
169
239
 
170
240
  /**
171
241
  * This endpoint deletes a single asset icon rule.
172
- * @param id The ID of the asset icon rule.
242
+ * @param requestParameters
173
243
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
174
244
  * @param reportProgress flag to report request and response progress.
175
245
  */
176
- public httpAssetIconRuleDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
177
- public httpAssetIconRuleDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<any>>;
178
- public httpAssetIconRuleDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
179
- public httpAssetIconRuleDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
246
+ public httpAssetIconRuleDeleteById(
247
+ requestParameters?: HttpAssetIconRuleDeleteByIdRequestParams,
248
+ observe?: 'body',
249
+ reportProgress?: boolean,
250
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
251
+ ): Observable<any>;
252
+ public httpAssetIconRuleDeleteById(
253
+ requestParameters?: HttpAssetIconRuleDeleteByIdRequestParams,
254
+ observe?: 'response',
255
+ reportProgress?: boolean,
256
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
257
+ ): Observable<HttpResponse<any>>;
258
+ public httpAssetIconRuleDeleteById(
259
+ requestParameters?: HttpAssetIconRuleDeleteByIdRequestParams,
260
+ observe?: 'events',
261
+ reportProgress?: boolean,
262
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
263
+ ): Observable<HttpEvent<any>>;
264
+ public httpAssetIconRuleDeleteById(
265
+ requestParameters?: HttpAssetIconRuleDeleteByIdRequestParams,
266
+ observe: any = 'body',
267
+ reportProgress: boolean = false,
268
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
269
+ ): Observable<any> {
270
+ const id = requestParameters?.id;
180
271
  if (id === null || id === undefined) {
181
272
  throw new Error('Required parameter id was null or undefined when calling httpAssetIconRuleDeleteById.');
182
273
  }
183
274
 
184
- let headers = this.defaultHeaders;
275
+ let localVarHeaders = this.defaultHeaders;
185
276
 
186
- let credential: string | undefined;
277
+ let localVarCredential: string | undefined;
187
278
  // authentication (msal_auth) required
188
- credential = this.configuration.lookupCredential('msal_auth');
189
- if (credential) {
190
- headers = headers.set('Authorization', 'Bearer ' + credential);
279
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
280
+ if (localVarCredential) {
281
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
191
282
  }
192
283
 
193
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
194
- if (httpHeaderAcceptSelected === undefined) {
284
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
285
+ if (localVarHttpHeaderAcceptSelected === undefined) {
195
286
  // to determine the Accept header
196
287
  const httpHeaderAccepts: string[] = ['application/json'];
197
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
288
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
289
+ }
290
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
291
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
198
292
  }
199
- if (httpHeaderAcceptSelected !== undefined) {
200
- headers = headers.set('Accept', httpHeaderAcceptSelected);
293
+
294
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
295
+ if (localVarHttpContext === undefined) {
296
+ localVarHttpContext = new HttpContext();
201
297
  }
202
298
 
203
- let responseType_: 'text' | 'json' = 'json';
204
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
205
- responseType_ = 'text';
299
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
300
+ if (localVarTransferCache === undefined) {
301
+ localVarTransferCache = true;
206
302
  }
207
303
 
208
- return this.httpClient.delete<any>(`${this.configuration.basePath}/asseticonrules/${encodeURIComponent(String(id))}`, {
304
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
305
+ if (localVarHttpHeaderAcceptSelected) {
306
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
307
+ responseType_ = 'text';
308
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
309
+ responseType_ = 'json';
310
+ } else {
311
+ responseType_ = 'blob';
312
+ }
313
+ }
314
+
315
+ let localVarPath = `/asseticonrules/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
316
+ return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
317
+ context: localVarHttpContext,
209
318
  responseType: <any>responseType_,
210
319
  withCredentials: this.configuration.withCredentials,
211
- headers: headers,
320
+ headers: localVarHeaders,
212
321
  observe: observe,
322
+ transferCache: localVarTransferCache,
213
323
  reportProgress: reportProgress
214
324
  });
215
325
  }
216
326
 
217
327
  /**
218
328
  * This endpoint updates a single asset icon rule. Color is a hex value. Operator has to be one of the following: \&#39;EQUALS\&#39;, \&#39;NOT EQUALS\&#39;, \&#39;CONTAINS\&#39;, \&#39;STARTSWITH\&#39;
219
- * @param id The ID of the asset icon rule.
220
- * @param assetIconRule This endpoint updates an asset icon rule and adds the information to the database. Color is a hex value. Operator has to be one of the following: \&#39;EQUALS\&#39;, \&#39;NOT EQUALS\&#39;, \&#39;CONTAINS\&#39;, \&#39;STARTSWITH\&#39;
221
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
329
+ * @param requestParameters
222
330
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
223
331
  * @param reportProgress flag to report request and response progress.
224
332
  */
225
333
  public httpAssetIconRuleUpdateById(
226
- id: string,
227
- assetIconRule: AssetIconRule,
228
- translations?: boolean,
334
+ requestParameters?: HttpAssetIconRuleUpdateByIdRequestParams,
229
335
  observe?: 'body',
230
336
  reportProgress?: boolean,
231
- options?: { httpHeaderAccept?: 'application/json' }
337
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
232
338
  ): Observable<AssetIconRule>;
233
339
  public httpAssetIconRuleUpdateById(
234
- id: string,
235
- assetIconRule: AssetIconRule,
236
- translations?: boolean,
340
+ requestParameters?: HttpAssetIconRuleUpdateByIdRequestParams,
237
341
  observe?: 'response',
238
342
  reportProgress?: boolean,
239
- options?: { httpHeaderAccept?: 'application/json' }
343
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
240
344
  ): Observable<HttpResponse<AssetIconRule>>;
241
345
  public httpAssetIconRuleUpdateById(
242
- id: string,
243
- assetIconRule: AssetIconRule,
244
- translations?: boolean,
346
+ requestParameters?: HttpAssetIconRuleUpdateByIdRequestParams,
245
347
  observe?: 'events',
246
348
  reportProgress?: boolean,
247
- options?: { httpHeaderAccept?: 'application/json' }
349
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
248
350
  ): Observable<HttpEvent<AssetIconRule>>;
249
351
  public httpAssetIconRuleUpdateById(
250
- id: string,
251
- assetIconRule: AssetIconRule,
252
- translations?: boolean,
352
+ requestParameters?: HttpAssetIconRuleUpdateByIdRequestParams,
253
353
  observe: any = 'body',
254
354
  reportProgress: boolean = false,
255
- options?: { httpHeaderAccept?: 'application/json' }
355
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
256
356
  ): Observable<any> {
357
+ const id = requestParameters?.id;
257
358
  if (id === null || id === undefined) {
258
359
  throw new Error('Required parameter id was null or undefined when calling httpAssetIconRuleUpdateById.');
259
360
  }
361
+ const assetIconRule = requestParameters?.assetIconRule;
260
362
  if (assetIconRule === null || assetIconRule === undefined) {
261
363
  throw new Error('Required parameter assetIconRule was null or undefined when calling httpAssetIconRuleUpdateById.');
262
364
  }
365
+ const translations = requestParameters?.translations;
366
+ const acceptLanguage = requestParameters?.acceptLanguage;
263
367
 
264
- let queryParameters = new HttpParams({ encoder: this.encoder });
368
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
265
369
  if (translations !== undefined && translations !== null) {
266
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
370
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
267
371
  }
268
372
 
269
- let headers = this.defaultHeaders;
373
+ let localVarHeaders = this.defaultHeaders;
374
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
375
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
376
+ }
270
377
 
271
- let credential: string | undefined;
378
+ let localVarCredential: string | undefined;
272
379
  // authentication (msal_auth) required
273
- credential = this.configuration.lookupCredential('msal_auth');
274
- if (credential) {
275
- headers = headers.set('Authorization', 'Bearer ' + credential);
380
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
381
+ if (localVarCredential) {
382
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
276
383
  }
277
384
 
278
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
279
- if (httpHeaderAcceptSelected === undefined) {
385
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
386
+ if (localVarHttpHeaderAcceptSelected === undefined) {
280
387
  // to determine the Accept header
281
388
  const httpHeaderAccepts: string[] = ['application/json'];
282
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
389
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
283
390
  }
284
- if (httpHeaderAcceptSelected !== undefined) {
285
- headers = headers.set('Accept', httpHeaderAcceptSelected);
391
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
392
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
393
+ }
394
+
395
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
396
+ if (localVarHttpContext === undefined) {
397
+ localVarHttpContext = new HttpContext();
398
+ }
399
+
400
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
401
+ if (localVarTransferCache === undefined) {
402
+ localVarTransferCache = true;
286
403
  }
287
404
 
288
405
  // to determine the Content-Type header
289
406
  const consumes: string[] = ['application/json'];
290
407
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
291
408
  if (httpContentTypeSelected !== undefined) {
292
- headers = headers.set('Content-Type', httpContentTypeSelected);
409
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
293
410
  }
294
411
 
295
- let responseType_: 'text' | 'json' = 'json';
296
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
297
- responseType_ = 'text';
412
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
413
+ if (localVarHttpHeaderAcceptSelected) {
414
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
415
+ responseType_ = 'text';
416
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
417
+ responseType_ = 'json';
418
+ } else {
419
+ responseType_ = 'blob';
420
+ }
298
421
  }
299
422
 
300
- return this.httpClient.post<AssetIconRule>(`${this.configuration.basePath}/asseticonrules/${encodeURIComponent(String(id))}`, assetIconRule, {
301
- params: queryParameters,
423
+ let localVarPath = `/asseticonrules/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
424
+ return this.httpClient.request<AssetIconRule>('post', `${this.configuration.basePath}${localVarPath}`, {
425
+ context: localVarHttpContext,
426
+ body: assetIconRule,
427
+ params: localVarQueryParameters,
302
428
  responseType: <any>responseType_,
303
429
  withCredentials: this.configuration.withCredentials,
304
- headers: headers,
430
+ headers: localVarHeaders,
305
431
  observe: observe,
432
+ transferCache: localVarTransferCache,
306
433
  reportProgress: reportProgress
307
434
  });
308
435
  }
309
436
 
310
437
  /**
311
438
  * This endpoint lists all asset icon rules in database.
312
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
439
+ * @param requestParameters
313
440
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
314
441
  * @param reportProgress flag to report request and response progress.
315
442
  */
316
- public httpAssetIconRulesGetAll(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<AssetIconRule>>;
317
443
  public httpAssetIconRulesGetAll(
318
- translations?: boolean,
444
+ requestParameters?: HttpAssetIconRulesGetAllRequestParams,
445
+ observe?: 'body',
446
+ reportProgress?: boolean,
447
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
448
+ ): Observable<Array<AssetIconRule>>;
449
+ public httpAssetIconRulesGetAll(
450
+ requestParameters?: HttpAssetIconRulesGetAllRequestParams,
319
451
  observe?: 'response',
320
452
  reportProgress?: boolean,
321
- options?: { httpHeaderAccept?: 'application/json' }
453
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
322
454
  ): Observable<HttpResponse<Array<AssetIconRule>>>;
323
455
  public httpAssetIconRulesGetAll(
324
- translations?: boolean,
456
+ requestParameters?: HttpAssetIconRulesGetAllRequestParams,
325
457
  observe?: 'events',
326
458
  reportProgress?: boolean,
327
- options?: { httpHeaderAccept?: 'application/json' }
459
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
328
460
  ): Observable<HttpEvent<Array<AssetIconRule>>>;
329
- public httpAssetIconRulesGetAll(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
330
- let queryParameters = new HttpParams({ encoder: this.encoder });
461
+ public httpAssetIconRulesGetAll(
462
+ requestParameters?: HttpAssetIconRulesGetAllRequestParams,
463
+ observe: any = 'body',
464
+ reportProgress: boolean = false,
465
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
466
+ ): Observable<any> {
467
+ const translations = requestParameters?.translations;
468
+ const acceptLanguage = requestParameters?.acceptLanguage;
469
+
470
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
331
471
  if (translations !== undefined && translations !== null) {
332
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
472
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
333
473
  }
334
474
 
335
- let headers = this.defaultHeaders;
475
+ let localVarHeaders = this.defaultHeaders;
476
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
477
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
478
+ }
336
479
 
337
- let credential: string | undefined;
480
+ let localVarCredential: string | undefined;
338
481
  // authentication (msal_auth) required
339
- credential = this.configuration.lookupCredential('msal_auth');
340
- if (credential) {
341
- headers = headers.set('Authorization', 'Bearer ' + credential);
482
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
483
+ if (localVarCredential) {
484
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
342
485
  }
343
486
 
344
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
345
- if (httpHeaderAcceptSelected === undefined) {
487
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
488
+ if (localVarHttpHeaderAcceptSelected === undefined) {
346
489
  // to determine the Accept header
347
490
  const httpHeaderAccepts: string[] = ['application/json'];
348
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
491
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
349
492
  }
350
- if (httpHeaderAcceptSelected !== undefined) {
351
- headers = headers.set('Accept', httpHeaderAcceptSelected);
493
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
494
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
352
495
  }
353
496
 
354
- let responseType_: 'text' | 'json' = 'json';
355
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
356
- responseType_ = 'text';
497
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
498
+ if (localVarHttpContext === undefined) {
499
+ localVarHttpContext = new HttpContext();
357
500
  }
358
501
 
359
- return this.httpClient.get<Array<AssetIconRule>>(`${this.configuration.basePath}/asseticonrules`, {
360
- params: queryParameters,
502
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
503
+ if (localVarTransferCache === undefined) {
504
+ localVarTransferCache = true;
505
+ }
506
+
507
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
508
+ if (localVarHttpHeaderAcceptSelected) {
509
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
510
+ responseType_ = 'text';
511
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
512
+ responseType_ = 'json';
513
+ } else {
514
+ responseType_ = 'blob';
515
+ }
516
+ }
517
+
518
+ let localVarPath = `/asseticonrules`;
519
+ return this.httpClient.request<Array<AssetIconRule>>('get', `${this.configuration.basePath}${localVarPath}`, {
520
+ context: localVarHttpContext,
521
+ params: localVarQueryParameters,
361
522
  responseType: <any>responseType_,
362
523
  withCredentials: this.configuration.withCredentials,
363
- headers: headers,
524
+ headers: localVarHeaders,
364
525
  observe: observe,
526
+ transferCache: localVarTransferCache,
365
527
  reportProgress: reportProgress
366
528
  });
367
529
  }
368
530
 
369
531
  /**
370
532
  * This endpoint gets a single asset icon rule from the database.
371
- * @param id The ID of the asset icon rule.
372
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
533
+ * @param requestParameters
373
534
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
374
535
  * @param reportProgress flag to report request and response progress.
375
536
  */
376
- public httpAssetIconRulesGetById(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AssetIconRule>;
377
537
  public httpAssetIconRulesGetById(
378
- id: string,
379
- translations?: boolean,
538
+ requestParameters?: HttpAssetIconRulesGetByIdRequestParams,
539
+ observe?: 'body',
540
+ reportProgress?: boolean,
541
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
542
+ ): Observable<AssetIconRule>;
543
+ public httpAssetIconRulesGetById(
544
+ requestParameters?: HttpAssetIconRulesGetByIdRequestParams,
380
545
  observe?: 'response',
381
546
  reportProgress?: boolean,
382
- options?: { httpHeaderAccept?: 'application/json' }
547
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
383
548
  ): Observable<HttpResponse<AssetIconRule>>;
384
549
  public httpAssetIconRulesGetById(
385
- id: string,
386
- translations?: boolean,
550
+ requestParameters?: HttpAssetIconRulesGetByIdRequestParams,
387
551
  observe?: 'events',
388
552
  reportProgress?: boolean,
389
- options?: { httpHeaderAccept?: 'application/json' }
553
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
390
554
  ): Observable<HttpEvent<AssetIconRule>>;
391
- public httpAssetIconRulesGetById(id: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
555
+ public httpAssetIconRulesGetById(
556
+ requestParameters?: HttpAssetIconRulesGetByIdRequestParams,
557
+ observe: any = 'body',
558
+ reportProgress: boolean = false,
559
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
560
+ ): Observable<any> {
561
+ const id = requestParameters?.id;
392
562
  if (id === null || id === undefined) {
393
563
  throw new Error('Required parameter id was null or undefined when calling httpAssetIconRulesGetById.');
394
564
  }
565
+ const translations = requestParameters?.translations;
566
+ const acceptLanguage = requestParameters?.acceptLanguage;
395
567
 
396
- let queryParameters = new HttpParams({ encoder: this.encoder });
568
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
397
569
  if (translations !== undefined && translations !== null) {
398
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
570
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
399
571
  }
400
572
 
401
- let headers = this.defaultHeaders;
573
+ let localVarHeaders = this.defaultHeaders;
574
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
575
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
576
+ }
402
577
 
403
- let credential: string | undefined;
578
+ let localVarCredential: string | undefined;
404
579
  // authentication (msal_auth) required
405
- credential = this.configuration.lookupCredential('msal_auth');
406
- if (credential) {
407
- headers = headers.set('Authorization', 'Bearer ' + credential);
580
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
581
+ if (localVarCredential) {
582
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
408
583
  }
409
584
 
410
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
411
- if (httpHeaderAcceptSelected === undefined) {
585
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
586
+ if (localVarHttpHeaderAcceptSelected === undefined) {
412
587
  // to determine the Accept header
413
588
  const httpHeaderAccepts: string[] = ['application/json'];
414
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
589
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
590
+ }
591
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
592
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
593
+ }
594
+
595
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
596
+ if (localVarHttpContext === undefined) {
597
+ localVarHttpContext = new HttpContext();
415
598
  }
416
- if (httpHeaderAcceptSelected !== undefined) {
417
- headers = headers.set('Accept', httpHeaderAcceptSelected);
599
+
600
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
601
+ if (localVarTransferCache === undefined) {
602
+ localVarTransferCache = true;
418
603
  }
419
604
 
420
- let responseType_: 'text' | 'json' = 'json';
421
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
422
- responseType_ = 'text';
605
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
606
+ if (localVarHttpHeaderAcceptSelected) {
607
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
608
+ responseType_ = 'text';
609
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
610
+ responseType_ = 'json';
611
+ } else {
612
+ responseType_ = 'blob';
613
+ }
423
614
  }
424
615
 
425
- return this.httpClient.get<AssetIconRule>(`${this.configuration.basePath}/asseticonrules/${encodeURIComponent(String(id))}`, {
426
- params: queryParameters,
616
+ let localVarPath = `/asseticonrules/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
617
+ return this.httpClient.request<AssetIconRule>('get', `${this.configuration.basePath}${localVarPath}`, {
618
+ context: localVarHttpContext,
619
+ params: localVarQueryParameters,
427
620
  responseType: <any>responseType_,
428
621
  withCredentials: this.configuration.withCredentials,
429
- headers: headers,
622
+ headers: localVarHeaders,
430
623
  observe: observe,
624
+ transferCache: localVarTransferCache,
431
625
  reportProgress: reportProgress
432
626
  });
433
627
  }