@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.
- package/.openapi-generator/FILES +1 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/assetIconRuleManagement.agravity.ts +344 -150
- package/api/assetManagement.agravity.ts +709 -389
- package/api/assetOperations.agravity.ts +1414 -650
- package/api/assetPublishing.agravity.ts +562 -255
- package/api/assetVersioning.agravity.ts +598 -278
- package/api/authenticationManagement.agravity.ts +731 -274
- package/api/collectionManagement.agravity.ts +618 -309
- package/api/collectionShareManagement.agravity.ts +256 -121
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
- package/api/collectionTypeManagement.agravity.ts +519 -250
- package/api/commentsManagement.agravity.ts +284 -90
- package/api/configurationManagement.agravity.ts +311 -128
- package/api/dashboardWidgetManagement.agravity.ts +342 -124
- package/api/dataImportExportManagement.agravity.ts +378 -148
- package/api/downloadFormatManagement.agravity.ts +450 -152
- package/api/downloadZip.agravity.ts +75 -30
- package/api/generalManagement.agravity.ts +374 -164
- package/api/helperTools.agravity.ts +804 -273
- package/api/historyEntryManagement.agravity.ts +75 -33
- package/api/iccProfileManagement.agravity.ts +64 -23
- package/api/listBlobs.agravity.ts +125 -47
- package/api/listQueues.agravity.ts +68 -24
- package/api/listTables.agravity.ts +68 -25
- package/api/permissionsManagement.agravity.ts +174 -77
- package/api/portalManagement.agravity.ts +511 -198
- package/api/publishing.agravity.ts +69 -38
- package/api/quickshareManagement.agravity.ts +349 -138
- package/api/savedSearchManagement.agravity.ts +205 -92
- package/api/searchManagement.agravity.ts +517 -297
- package/api/secureUpload.agravity.ts +325 -126
- package/api/signalRConnectionManagement.agravity.ts +175 -56
- package/api/staticDefinedListManagement.agravity.ts +342 -162
- package/api/stockImport.agravity.ts +138 -74
- package/api/structureImport.agravity.ts +68 -25
- package/api/translationManagement.agravity.ts +357 -206
- package/api/webAppData.agravity.ts +278 -88
- package/api/widgetLayoutManagement.agravity.ts +131 -47
- package/api/wordpressManagement.agravity.ts +152 -108
- package/api/workspaceManagement.agravity.ts +456 -197
- package/api.module.ts +0 -40
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.agravity.ts +3 -4
- package/model/agravityInfoResponse.agravity.ts +3 -4
- package/model/agravityUser.agravity.ts +16 -17
- package/model/agravityUserDto.agravity.ts +3 -4
- package/model/agravityVersion.agravity.ts +8 -9
- package/model/allWebAppData.agravity.ts +4 -5
- package/model/apiKeyResponse.agravity.ts +2 -3
- package/model/appConfigTableEntity.agravity.ts +8 -9
- package/model/artificialIntelligenceGroup.agravity.ts +3 -4
- package/model/asset.agravity.ts +22 -23
- package/model/assetAvailability.agravity.ts +1 -2
- package/model/assetBlob.agravity.ts +27 -28
- package/model/assetBulkUpdate.agravity.ts +2 -3
- package/model/assetCollectionLink.agravity.ts +2 -3
- package/model/assetIconRule.agravity.ts +17 -18
- package/model/assetIdFormat.agravity.ts +3 -4
- package/model/assetPageResult.agravity.ts +4 -5
- package/model/assetTextContent.agravity.ts +2 -3
- package/model/assetsOperationBody.agravity.ts +3 -4
- package/model/azSearchOptions.agravity.ts +8 -9
- package/model/azureIdentity.agravity.ts +4 -5
- package/model/blobInfoObj.agravity.ts +0 -1
- package/model/collTypeItem.agravity.ts +16 -17
- package/model/collTypeItemBlueprint.agravity.ts +12 -13
- package/model/collection.agravity.ts +15 -16
- package/model/collectionType.agravity.ts +14 -15
- package/model/collectionUDL.agravity.ts +4 -5
- package/model/collectionUDLListEntity.agravity.ts +9 -10
- package/model/collectionUDLReference.agravity.ts +3 -4
- package/model/comment.agravity.ts +9 -10
- package/model/createSftpUserResult.agravity.ts +2 -3
- package/model/dashboardWidget.agravity.ts +11 -12
- package/model/dataResult.agravity.ts +4 -5
- package/model/deletedEntities.agravity.ts +4 -5
- package/model/distZipResponse.agravity.ts +3 -4
- package/model/downloadFormat.agravity.ts +19 -16
- package/model/downloadObject.agravity.ts +16 -16
- package/model/downloadZipRequest.agravity.ts +9 -10
- package/model/dynamicImageOperation.agravity.ts +2 -3
- package/model/emailAddress.agravity.ts +2 -3
- package/model/entityId.agravity.ts +1 -2
- package/model/entityIdName.agravity.ts +3 -4
- package/model/entityTranslations.agravity.ts +2 -3
- package/model/excelExportTableEntity.agravity.ts +5 -5
- package/model/frontendAppConfig.agravity.ts +0 -1
- package/model/groupAllAppData.agravity.ts +5 -6
- package/model/historyEntry.agravity.ts +9 -10
- package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
- package/model/metadata.agravity.ts +3 -4
- package/model/models.ts +0 -1
- package/model/moveCollectionBody.agravity.ts +3 -4
- package/model/permissionChange.agravity.ts +1 -2
- package/model/permissionEntity.agravity.ts +1 -2
- package/model/permissionSetting.agravity.ts +8 -9
- package/model/portal.agravity.ts +18 -20
- package/model/portalLinks.agravity.ts +3 -4
- package/model/portalTheme.agravity.ts +6 -7
- package/model/portalZipRequest.agravity.ts +14 -15
- package/model/publishEntity.agravity.ts +9 -10
- package/model/publishedAsset.agravity.ts +12 -13
- package/model/quickShare.agravity.ts +12 -13
- package/model/quickShareFull.agravity.ts +15 -16
- package/model/sasToken.agravity.ts +6 -7
- package/model/savedSearch.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.agravity.ts +2 -3
- package/model/searchAdminStatistics.agravity.ts +2 -3
- package/model/searchAdminStatus.agravity.ts +4 -5
- package/model/searchFacet.agravity.ts +2 -3
- package/model/searchFacetEntity.agravity.ts +2 -3
- package/model/searchResult.agravity.ts +3 -4
- package/model/searchableItem.agravity.ts +3 -4
- package/model/secureUploadEntity.agravity.ts +10 -11
- package/model/sharedAllowedFormat.agravity.ts +2 -3
- package/model/sharedAsset.agravity.ts +5 -6
- package/model/sharedCollection.agravity.ts +15 -16
- package/model/sharedCollectionFull.agravity.ts +18 -19
- package/model/signalRConnectionInfo.agravity.ts +0 -1
- package/model/simpleAsset.agravity.ts +10 -11
- package/model/staticDefinedList.agravity.ts +12 -13
- package/model/translation.agravity.ts +2 -3
- package/model/translationRequest.agravity.ts +3 -4
- package/model/uiTutorials.agravity.ts +0 -1
- package/model/versionEntity.agravity.ts +9 -10
- package/model/versionedAsset.agravity.ts +5 -6
- package/model/whereParam.agravity.ts +0 -1
- package/model/widgetLayout.agravity.ts +8 -9
- package/model/widgetProperties.agravity.ts +6 -7
- package/model/workspace.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- 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
|
-
|
|
20
|
-
import {
|
|
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: \'EQUALS\', \'NOT EQUALS\', \'CONTAINS\', \'STARTSWITH\' */
|
|
29
|
+
assetIconRule: AssetIconRule;
|
|
30
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" 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: \'EQUALS\', \'NOT EQUALS\', \'CONTAINS\', \'STARTSWITH\' */
|
|
45
|
+
assetIconRule: AssetIconRule;
|
|
46
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" 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 \"Accept-Language\" 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 \"Accept-Language\" 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().
|
|
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
|
|
88
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
171
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
125
172
|
if (translations !== undefined && translations !== null) {
|
|
126
|
-
|
|
173
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
127
174
|
}
|
|
128
175
|
|
|
129
|
-
let
|
|
176
|
+
let localVarHeaders = this.defaultHeaders;
|
|
177
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
178
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
179
|
+
}
|
|
130
180
|
|
|
131
|
-
let
|
|
181
|
+
let localVarCredential: string | undefined;
|
|
132
182
|
// authentication (msal_auth) required
|
|
133
|
-
|
|
134
|
-
if (
|
|
135
|
-
|
|
183
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
184
|
+
if (localVarCredential) {
|
|
185
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
136
186
|
}
|
|
137
187
|
|
|
138
|
-
let
|
|
139
|
-
if (
|
|
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
|
-
|
|
192
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
143
193
|
}
|
|
144
|
-
if (
|
|
145
|
-
|
|
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
|
-
|
|
212
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
153
213
|
}
|
|
154
214
|
|
|
155
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
156
|
-
if (
|
|
157
|
-
|
|
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
|
-
|
|
161
|
-
|
|
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:
|
|
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
|
|
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(
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
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
|
|
275
|
+
let localVarHeaders = this.defaultHeaders;
|
|
185
276
|
|
|
186
|
-
let
|
|
277
|
+
let localVarCredential: string | undefined;
|
|
187
278
|
// authentication (msal_auth) required
|
|
188
|
-
|
|
189
|
-
if (
|
|
190
|
-
|
|
279
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
280
|
+
if (localVarCredential) {
|
|
281
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
191
282
|
}
|
|
192
283
|
|
|
193
|
-
let
|
|
194
|
-
if (
|
|
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
|
-
|
|
288
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
289
|
+
}
|
|
290
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
291
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
198
292
|
}
|
|
199
|
-
|
|
200
|
-
|
|
293
|
+
|
|
294
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
295
|
+
if (localVarHttpContext === undefined) {
|
|
296
|
+
localVarHttpContext = new HttpContext();
|
|
201
297
|
}
|
|
202
298
|
|
|
203
|
-
let
|
|
204
|
-
if (
|
|
205
|
-
|
|
299
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
300
|
+
if (localVarTransferCache === undefined) {
|
|
301
|
+
localVarTransferCache = true;
|
|
206
302
|
}
|
|
207
303
|
|
|
208
|
-
|
|
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:
|
|
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: \'EQUALS\', \'NOT EQUALS\', \'CONTAINS\', \'STARTSWITH\'
|
|
219
|
-
* @param
|
|
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: \'EQUALS\', \'NOT EQUALS\', \'CONTAINS\', \'STARTSWITH\'
|
|
221
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
368
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
265
369
|
if (translations !== undefined && translations !== null) {
|
|
266
|
-
|
|
370
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
267
371
|
}
|
|
268
372
|
|
|
269
|
-
let
|
|
373
|
+
let localVarHeaders = this.defaultHeaders;
|
|
374
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
375
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
376
|
+
}
|
|
270
377
|
|
|
271
|
-
let
|
|
378
|
+
let localVarCredential: string | undefined;
|
|
272
379
|
// authentication (msal_auth) required
|
|
273
|
-
|
|
274
|
-
if (
|
|
275
|
-
|
|
380
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
381
|
+
if (localVarCredential) {
|
|
382
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
276
383
|
}
|
|
277
384
|
|
|
278
|
-
let
|
|
279
|
-
if (
|
|
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
|
-
|
|
389
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
283
390
|
}
|
|
284
|
-
if (
|
|
285
|
-
|
|
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
|
-
|
|
409
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
293
410
|
}
|
|
294
411
|
|
|
295
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
296
|
-
if (
|
|
297
|
-
|
|
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
|
-
|
|
301
|
-
|
|
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:
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
330
|
-
|
|
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
|
-
|
|
472
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
333
473
|
}
|
|
334
474
|
|
|
335
|
-
let
|
|
475
|
+
let localVarHeaders = this.defaultHeaders;
|
|
476
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
477
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
478
|
+
}
|
|
336
479
|
|
|
337
|
-
let
|
|
480
|
+
let localVarCredential: string | undefined;
|
|
338
481
|
// authentication (msal_auth) required
|
|
339
|
-
|
|
340
|
-
if (
|
|
341
|
-
|
|
482
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
483
|
+
if (localVarCredential) {
|
|
484
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
342
485
|
}
|
|
343
486
|
|
|
344
|
-
let
|
|
345
|
-
if (
|
|
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
|
-
|
|
491
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
349
492
|
}
|
|
350
|
-
if (
|
|
351
|
-
|
|
493
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
494
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
352
495
|
}
|
|
353
496
|
|
|
354
|
-
let
|
|
355
|
-
if (
|
|
356
|
-
|
|
497
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
498
|
+
if (localVarHttpContext === undefined) {
|
|
499
|
+
localVarHttpContext = new HttpContext();
|
|
357
500
|
}
|
|
358
501
|
|
|
359
|
-
|
|
360
|
-
|
|
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:
|
|
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
|
|
372
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" 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
|
-
|
|
379
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
|
568
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
397
569
|
if (translations !== undefined && translations !== null) {
|
|
398
|
-
|
|
570
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
399
571
|
}
|
|
400
572
|
|
|
401
|
-
let
|
|
573
|
+
let localVarHeaders = this.defaultHeaders;
|
|
574
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
575
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
576
|
+
}
|
|
402
577
|
|
|
403
|
-
let
|
|
578
|
+
let localVarCredential: string | undefined;
|
|
404
579
|
// authentication (msal_auth) required
|
|
405
|
-
|
|
406
|
-
if (
|
|
407
|
-
|
|
580
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
581
|
+
if (localVarCredential) {
|
|
582
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
408
583
|
}
|
|
409
584
|
|
|
410
|
-
let
|
|
411
|
-
if (
|
|
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
|
-
|
|
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
|
-
|
|
417
|
-
|
|
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 (
|
|
422
|
-
|
|
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
|
-
|
|
426
|
-
|
|
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:
|
|
622
|
+
headers: localVarHeaders,
|
|
430
623
|
observe: observe,
|
|
624
|
+
transferCache: localVarTransferCache,
|
|
431
625
|
reportProgress: reportProgress
|
|
432
626
|
});
|
|
433
627
|
}
|