@agravity/private 7.3.1 → 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 +18 -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.1
|
|
6
5
|
* Contact: office@agravity.io
|
|
7
6
|
*
|
|
8
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,19 +11,128 @@
|
|
|
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 {
|
|
21
|
-
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { AgravityInfoResponse } from '../model/agravityInfoResponse.agravity';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { Asset } from '../model/asset.agravity';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { AssetBulkUpdate } from '../model/assetBulkUpdate.agravity';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { AssetPageResult } from '../model/assetPageResult.agravity';
|
|
28
|
+
|
|
29
|
+
// @ts-ignore
|
|
25
30
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
26
31
|
import { AgravityConfiguration } from '../configuration';
|
|
27
32
|
|
|
33
|
+
export interface HttpAssetUploadFileRequestParams {
|
|
34
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
35
|
+
acceptLanguage?: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
collectionId?: string;
|
|
38
|
+
file?: Blob;
|
|
39
|
+
filename?: string;
|
|
40
|
+
previewof?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface HttpAssetsBulkDeleteUpdateRequestParams {
|
|
44
|
+
/** The body has to be valid json which contains the reference asset, which for which collection (reference for collection type items) and which assets are to update. The containing keywords (tags) will be removed. Only custom values are replaces if they are part of the given collection id. */
|
|
45
|
+
assetBulkUpdate: AssetBulkUpdate;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface HttpAssetsBulkPostUpdateRequestParams {
|
|
49
|
+
/** The body has to be valid json which contains the reference asset, which for which collection (reference for collection type items) and which assets are to update. The containing keywords (tags) will be distinctly added (no removal). Only custom values are replaces if they are part of the given collection id. */
|
|
50
|
+
assetBulkUpdate: AssetBulkUpdate;
|
|
51
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
52
|
+
acceptLanguage?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface HttpAssetsBulkPutUpdateRequestParams {
|
|
56
|
+
/** The body has to be valid json which contains the reference asset, a collection (used as reference for collection type items) and which asset ids are to update. The containing keywords (tags) will be fully replaced. ONLY custom items are replaced which are in body (others in same collection will be ignored)!Only custom values are replaces if they are part of the given collection id. */
|
|
57
|
+
assetBulkUpdate: AssetBulkUpdate;
|
|
58
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
59
|
+
acceptLanguage?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface HttpAssetsCreateRequestParams {
|
|
63
|
+
/** The ID of the collection where this assets should be assigned. */
|
|
64
|
+
collectionid: string;
|
|
65
|
+
/** This endpoint creates an unique asset ID and adds the information to the database. */
|
|
66
|
+
asset: Asset;
|
|
67
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
68
|
+
translations?: boolean;
|
|
69
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
70
|
+
acceptLanguage?: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface HttpAssetsDeleteAllRequestParams {
|
|
74
|
+
/** The filter of assets */
|
|
75
|
+
filter?: string;
|
|
76
|
+
/** The ID of the collection. */
|
|
77
|
+
collectionId?: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface HttpAssetsDeleteByIdRequestParams {
|
|
81
|
+
/** The ID of the asset. */
|
|
82
|
+
id: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface HttpAssetsGetRequestParams {
|
|
86
|
+
/** The ID of the collection where these assets should come from. (Is not required when \'collectiontypeid\' is set.) */
|
|
87
|
+
collectionid?: string;
|
|
88
|
+
/** The ID of the collection type where these assets should come from. (Is not required when \'collectionid\' is set.) CAUTION: The assets returned are not distinct => Duplicates are possible if assets are in multiple collections in this collection type! */
|
|
89
|
+
collectiontypeid?: string;
|
|
90
|
+
/** This limits the fields which are returned, separated by comma (\',\'). Blobs can be limited with \'.\' on their container. (i.e. fields=blobs.thumbnails). Only if \'thumbnails\' is set, the placeholder of this asset type are returned if no thumbnail blob is found. */
|
|
91
|
+
fields?: string;
|
|
92
|
+
/** This indicates if the given blobs should have URLs where these can be requested. (If not limited through \'fields\' parameter it will expose all URLs of all blobs.) */
|
|
93
|
+
expose?: boolean;
|
|
94
|
+
/** Each result returns the continous token if more results are available than requested. With this token, the next page could be fetched. (URL encoded!) */
|
|
95
|
+
continuationToken?: string;
|
|
96
|
+
/** This number limits the page result of assets. */
|
|
97
|
+
limit?: number;
|
|
98
|
+
/** How the return assets are sorted. Default is property: modified_date (newest first). */
|
|
99
|
+
orderby?: string;
|
|
100
|
+
/** This will limit the output on specific parameters which are separated by \':\', \'!:\', \'>\', \'>=\', \'<\', \'<=\' */
|
|
101
|
+
filter?: string;
|
|
102
|
+
/** The items can be extended to fully filled items. */
|
|
103
|
+
items?: boolean;
|
|
104
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
105
|
+
translations?: boolean;
|
|
106
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
107
|
+
acceptLanguage?: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface HttpAssetsGetByIdRequestParams {
|
|
111
|
+
/** The ID of the asset. */
|
|
112
|
+
id: string;
|
|
113
|
+
/** Which fields are need to be filled out with comma separated. If one is set all non mandatory fields are left out. No validation if field exist. */
|
|
114
|
+
fields?: string;
|
|
115
|
+
/** This indicates if the given blobs should have URLs where these can be requested. It will expose placeholder blobs if no \'thumbnail\' is found.) */
|
|
116
|
+
expose?: boolean;
|
|
117
|
+
/** The items can be extended to fully filled items. */
|
|
118
|
+
items?: boolean;
|
|
119
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
120
|
+
translations?: boolean;
|
|
121
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
122
|
+
acceptLanguage?: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface HttpAssetsUpdateByIdRequestParams {
|
|
126
|
+
/** The ID of the asset. */
|
|
127
|
+
id: string;
|
|
128
|
+
/** The body has to contain one of the mentioned elements and a valid json. Not fitting properties are ignored. */
|
|
129
|
+
asset: Asset;
|
|
130
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
131
|
+
translations?: boolean;
|
|
132
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
133
|
+
acceptLanguage?: string;
|
|
134
|
+
}
|
|
135
|
+
|
|
28
136
|
@Injectable({
|
|
29
137
|
providedIn: 'root'
|
|
30
138
|
})
|
|
@@ -36,13 +144,18 @@ export class AssetManagementService {
|
|
|
36
144
|
|
|
37
145
|
constructor(
|
|
38
146
|
protected httpClient: HttpClient,
|
|
39
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
147
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
40
148
|
@Optional() configuration: AgravityConfiguration
|
|
41
149
|
) {
|
|
42
150
|
if (configuration) {
|
|
43
151
|
this.configuration = configuration;
|
|
44
152
|
}
|
|
45
153
|
if (typeof this.configuration.basePath !== 'string') {
|
|
154
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
155
|
+
if (firstBasePath != undefined) {
|
|
156
|
+
basePath = firstBasePath;
|
|
157
|
+
}
|
|
158
|
+
|
|
46
159
|
if (typeof basePath !== 'string') {
|
|
47
160
|
basePath = this.basePath;
|
|
48
161
|
}
|
|
@@ -65,6 +178,7 @@ export class AssetManagementService {
|
|
|
65
178
|
return false;
|
|
66
179
|
}
|
|
67
180
|
|
|
181
|
+
// @ts-ignore
|
|
68
182
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
69
183
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
70
184
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -84,7 +198,7 @@ export class AssetManagementService {
|
|
|
84
198
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
85
199
|
} else if (value instanceof Date) {
|
|
86
200
|
if (key != null) {
|
|
87
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
201
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
88
202
|
} else {
|
|
89
203
|
throw Error('key may not be null if value is Date');
|
|
90
204
|
}
|
|
@@ -101,64 +215,64 @@ export class AssetManagementService {
|
|
|
101
215
|
|
|
102
216
|
/**
|
|
103
217
|
* This endpoint allows to upload one asset which is put onto the storage (INBOX). Collection ID is mandatory on asset upload. Previewof can be used alone.
|
|
104
|
-
* @param
|
|
105
|
-
* @param collectionId
|
|
106
|
-
* @param file
|
|
107
|
-
* @param filename
|
|
108
|
-
* @param previewof
|
|
218
|
+
* @param requestParameters
|
|
109
219
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
110
220
|
* @param reportProgress flag to report request and response progress.
|
|
111
221
|
*/
|
|
112
222
|
public httpAssetUploadFile(
|
|
113
|
-
|
|
114
|
-
collectionId?: string,
|
|
115
|
-
file?: Blob,
|
|
116
|
-
filename?: string,
|
|
117
|
-
previewof?: string,
|
|
223
|
+
requestParameters?: HttpAssetUploadFileRequestParams,
|
|
118
224
|
observe?: 'body',
|
|
119
225
|
reportProgress?: boolean,
|
|
120
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
226
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
121
227
|
): Observable<Asset>;
|
|
122
228
|
public httpAssetUploadFile(
|
|
123
|
-
|
|
124
|
-
collectionId?: string,
|
|
125
|
-
file?: Blob,
|
|
126
|
-
filename?: string,
|
|
127
|
-
previewof?: string,
|
|
229
|
+
requestParameters?: HttpAssetUploadFileRequestParams,
|
|
128
230
|
observe?: 'response',
|
|
129
231
|
reportProgress?: boolean,
|
|
130
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
232
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
131
233
|
): Observable<HttpResponse<Asset>>;
|
|
132
234
|
public httpAssetUploadFile(
|
|
133
|
-
|
|
134
|
-
collectionId?: string,
|
|
135
|
-
file?: Blob,
|
|
136
|
-
filename?: string,
|
|
137
|
-
previewof?: string,
|
|
235
|
+
requestParameters?: HttpAssetUploadFileRequestParams,
|
|
138
236
|
observe?: 'events',
|
|
139
237
|
reportProgress?: boolean,
|
|
140
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
238
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
141
239
|
): Observable<HttpEvent<Asset>>;
|
|
142
240
|
public httpAssetUploadFile(
|
|
143
|
-
|
|
144
|
-
collectionId?: string,
|
|
145
|
-
file?: Blob,
|
|
146
|
-
filename?: string,
|
|
147
|
-
previewof?: string,
|
|
241
|
+
requestParameters?: HttpAssetUploadFileRequestParams,
|
|
148
242
|
observe: any = 'body',
|
|
149
243
|
reportProgress: boolean = false,
|
|
150
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
244
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
151
245
|
): Observable<any> {
|
|
152
|
-
|
|
246
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
247
|
+
const name = requestParameters?.name;
|
|
248
|
+
const collectionId = requestParameters?.collectionId;
|
|
249
|
+
const file = requestParameters?.file;
|
|
250
|
+
const filename = requestParameters?.filename;
|
|
251
|
+
const previewof = requestParameters?.previewof;
|
|
252
|
+
|
|
253
|
+
let localVarHeaders = this.defaultHeaders;
|
|
254
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
255
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
256
|
+
}
|
|
153
257
|
|
|
154
|
-
let
|
|
155
|
-
if (
|
|
258
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
259
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
156
260
|
// to determine the Accept header
|
|
157
261
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
158
|
-
|
|
262
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
159
263
|
}
|
|
160
|
-
if (
|
|
161
|
-
|
|
264
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
265
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
269
|
+
if (localVarHttpContext === undefined) {
|
|
270
|
+
localVarHttpContext = new HttpContext();
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
274
|
+
if (localVarTransferCache === undefined) {
|
|
275
|
+
localVarTransferCache = true;
|
|
162
276
|
}
|
|
163
277
|
|
|
164
278
|
// to determine the Content-Type header
|
|
@@ -166,770 +280,976 @@ export class AssetManagementService {
|
|
|
166
280
|
|
|
167
281
|
const canConsumeForm = this.canConsumeForm(consumes);
|
|
168
282
|
|
|
169
|
-
let
|
|
170
|
-
let
|
|
171
|
-
let
|
|
283
|
+
let localVarFormParams: { append(param: string, value: any): any };
|
|
284
|
+
let localVarUseForm = false;
|
|
285
|
+
let localVarConvertFormParamsToString = false;
|
|
172
286
|
// use FormData to transmit files using content-type "multipart/form-data"
|
|
173
287
|
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
174
|
-
|
|
175
|
-
if (
|
|
176
|
-
|
|
288
|
+
localVarUseForm = canConsumeForm;
|
|
289
|
+
if (localVarUseForm) {
|
|
290
|
+
localVarFormParams = new FormData();
|
|
177
291
|
} else {
|
|
178
|
-
|
|
292
|
+
localVarFormParams = new HttpParams({ encoder: this.encoder });
|
|
179
293
|
}
|
|
180
294
|
|
|
181
295
|
if (name !== undefined) {
|
|
182
|
-
|
|
296
|
+
localVarFormParams = (localVarFormParams.append('name', <any>name) as any) || localVarFormParams;
|
|
183
297
|
}
|
|
184
298
|
if (collectionId !== undefined) {
|
|
185
|
-
|
|
299
|
+
localVarFormParams = (localVarFormParams.append('collectionId', <any>collectionId) as any) || localVarFormParams;
|
|
186
300
|
}
|
|
187
301
|
if (file !== undefined) {
|
|
188
|
-
|
|
302
|
+
localVarFormParams = (localVarFormParams.append('file', <any>file) as any) || localVarFormParams;
|
|
189
303
|
}
|
|
190
304
|
if (filename !== undefined) {
|
|
191
|
-
|
|
305
|
+
localVarFormParams = (localVarFormParams.append('filename', <any>filename) as any) || localVarFormParams;
|
|
192
306
|
}
|
|
193
307
|
if (previewof !== undefined) {
|
|
194
|
-
|
|
308
|
+
localVarFormParams = (localVarFormParams.append('previewof', <any>previewof) as any) || localVarFormParams;
|
|
195
309
|
}
|
|
196
310
|
|
|
197
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
198
|
-
if (
|
|
199
|
-
|
|
311
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
312
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
313
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
314
|
+
responseType_ = 'text';
|
|
315
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
316
|
+
responseType_ = 'json';
|
|
317
|
+
} else {
|
|
318
|
+
responseType_ = 'blob';
|
|
319
|
+
}
|
|
200
320
|
}
|
|
201
321
|
|
|
202
|
-
|
|
322
|
+
let localVarPath = `/assetsupload`;
|
|
323
|
+
return this.httpClient.request<Asset>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
324
|
+
context: localVarHttpContext,
|
|
325
|
+
body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
|
|
203
326
|
responseType: <any>responseType_,
|
|
204
327
|
withCredentials: this.configuration.withCredentials,
|
|
205
|
-
headers:
|
|
328
|
+
headers: localVarHeaders,
|
|
206
329
|
observe: observe,
|
|
330
|
+
transferCache: localVarTransferCache,
|
|
207
331
|
reportProgress: reportProgress
|
|
208
332
|
});
|
|
209
333
|
}
|
|
210
334
|
|
|
211
335
|
/**
|
|
212
|
-
* @param
|
|
336
|
+
* @param requestParameters
|
|
213
337
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
214
338
|
* @param reportProgress flag to report request and response progress.
|
|
215
339
|
*/
|
|
216
340
|
public httpAssetsBulkDeleteUpdate(
|
|
217
|
-
|
|
341
|
+
requestParameters?: HttpAssetsBulkDeleteUpdateRequestParams,
|
|
218
342
|
observe?: 'body',
|
|
219
343
|
reportProgress?: boolean,
|
|
220
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
344
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
221
345
|
): Observable<AgravityInfoResponse>;
|
|
222
346
|
public httpAssetsBulkDeleteUpdate(
|
|
223
|
-
|
|
347
|
+
requestParameters?: HttpAssetsBulkDeleteUpdateRequestParams,
|
|
224
348
|
observe?: 'response',
|
|
225
349
|
reportProgress?: boolean,
|
|
226
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
350
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
227
351
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
228
352
|
public httpAssetsBulkDeleteUpdate(
|
|
229
|
-
|
|
353
|
+
requestParameters?: HttpAssetsBulkDeleteUpdateRequestParams,
|
|
230
354
|
observe?: 'events',
|
|
231
355
|
reportProgress?: boolean,
|
|
232
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
356
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
233
357
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
234
|
-
public httpAssetsBulkDeleteUpdate(
|
|
358
|
+
public httpAssetsBulkDeleteUpdate(
|
|
359
|
+
requestParameters?: HttpAssetsBulkDeleteUpdateRequestParams,
|
|
360
|
+
observe: any = 'body',
|
|
361
|
+
reportProgress: boolean = false,
|
|
362
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
363
|
+
): Observable<any> {
|
|
364
|
+
const assetBulkUpdate = requestParameters?.assetBulkUpdate;
|
|
235
365
|
if (assetBulkUpdate === null || assetBulkUpdate === undefined) {
|
|
236
366
|
throw new Error('Required parameter assetBulkUpdate was null or undefined when calling httpAssetsBulkDeleteUpdate.');
|
|
237
367
|
}
|
|
238
368
|
|
|
239
|
-
let
|
|
369
|
+
let localVarHeaders = this.defaultHeaders;
|
|
240
370
|
|
|
241
|
-
let
|
|
371
|
+
let localVarCredential: string | undefined;
|
|
242
372
|
// authentication (msal_auth) required
|
|
243
|
-
|
|
244
|
-
if (
|
|
245
|
-
|
|
373
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
374
|
+
if (localVarCredential) {
|
|
375
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
246
376
|
}
|
|
247
377
|
|
|
248
|
-
let
|
|
249
|
-
if (
|
|
378
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
379
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
250
380
|
// to determine the Accept header
|
|
251
381
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
252
|
-
|
|
382
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
383
|
+
}
|
|
384
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
385
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
253
386
|
}
|
|
254
|
-
|
|
255
|
-
|
|
387
|
+
|
|
388
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
389
|
+
if (localVarHttpContext === undefined) {
|
|
390
|
+
localVarHttpContext = new HttpContext();
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
394
|
+
if (localVarTransferCache === undefined) {
|
|
395
|
+
localVarTransferCache = true;
|
|
256
396
|
}
|
|
257
397
|
|
|
258
398
|
// to determine the Content-Type header
|
|
259
399
|
const consumes: string[] = ['application/json'];
|
|
260
400
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
261
401
|
if (httpContentTypeSelected !== undefined) {
|
|
262
|
-
|
|
402
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
263
403
|
}
|
|
264
404
|
|
|
265
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
266
|
-
if (
|
|
267
|
-
|
|
405
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
406
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
407
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
408
|
+
responseType_ = 'text';
|
|
409
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
410
|
+
responseType_ = 'json';
|
|
411
|
+
} else {
|
|
412
|
+
responseType_ = 'blob';
|
|
413
|
+
}
|
|
268
414
|
}
|
|
269
415
|
|
|
270
|
-
|
|
416
|
+
let localVarPath = `/assetsbulkupdate`;
|
|
417
|
+
return this.httpClient.request<AgravityInfoResponse>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
418
|
+
context: localVarHttpContext,
|
|
419
|
+
body: assetBulkUpdate,
|
|
271
420
|
responseType: <any>responseType_,
|
|
272
421
|
withCredentials: this.configuration.withCredentials,
|
|
273
|
-
headers:
|
|
422
|
+
headers: localVarHeaders,
|
|
274
423
|
observe: observe,
|
|
275
|
-
|
|
276
|
-
|
|
424
|
+
transferCache: localVarTransferCache,
|
|
425
|
+
reportProgress: reportProgress
|
|
277
426
|
});
|
|
278
427
|
}
|
|
279
428
|
|
|
280
429
|
/**
|
|
281
|
-
* @param
|
|
430
|
+
* @param requestParameters
|
|
282
431
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
283
432
|
* @param reportProgress flag to report request and response progress.
|
|
284
433
|
*/
|
|
285
434
|
public httpAssetsBulkPostUpdate(
|
|
286
|
-
|
|
435
|
+
requestParameters?: HttpAssetsBulkPostUpdateRequestParams,
|
|
287
436
|
observe?: 'body',
|
|
288
437
|
reportProgress?: boolean,
|
|
289
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
438
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
290
439
|
): Observable<AgravityInfoResponse>;
|
|
291
440
|
public httpAssetsBulkPostUpdate(
|
|
292
|
-
|
|
441
|
+
requestParameters?: HttpAssetsBulkPostUpdateRequestParams,
|
|
293
442
|
observe?: 'response',
|
|
294
443
|
reportProgress?: boolean,
|
|
295
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
444
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
296
445
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
297
446
|
public httpAssetsBulkPostUpdate(
|
|
298
|
-
|
|
447
|
+
requestParameters?: HttpAssetsBulkPostUpdateRequestParams,
|
|
299
448
|
observe?: 'events',
|
|
300
449
|
reportProgress?: boolean,
|
|
301
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
450
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
302
451
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
303
|
-
public httpAssetsBulkPostUpdate(
|
|
452
|
+
public httpAssetsBulkPostUpdate(
|
|
453
|
+
requestParameters?: HttpAssetsBulkPostUpdateRequestParams,
|
|
454
|
+
observe: any = 'body',
|
|
455
|
+
reportProgress: boolean = false,
|
|
456
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
457
|
+
): Observable<any> {
|
|
458
|
+
const assetBulkUpdate = requestParameters?.assetBulkUpdate;
|
|
304
459
|
if (assetBulkUpdate === null || assetBulkUpdate === undefined) {
|
|
305
460
|
throw new Error('Required parameter assetBulkUpdate was null or undefined when calling httpAssetsBulkPostUpdate.');
|
|
306
461
|
}
|
|
462
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
307
463
|
|
|
308
|
-
let
|
|
464
|
+
let localVarHeaders = this.defaultHeaders;
|
|
465
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
466
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
467
|
+
}
|
|
309
468
|
|
|
310
|
-
let
|
|
469
|
+
let localVarCredential: string | undefined;
|
|
311
470
|
// authentication (msal_auth) required
|
|
312
|
-
|
|
313
|
-
if (
|
|
314
|
-
|
|
471
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
472
|
+
if (localVarCredential) {
|
|
473
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
315
474
|
}
|
|
316
475
|
|
|
317
|
-
let
|
|
318
|
-
if (
|
|
476
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
477
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
319
478
|
// to determine the Accept header
|
|
320
479
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
321
|
-
|
|
480
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
322
481
|
}
|
|
323
|
-
if (
|
|
324
|
-
|
|
482
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
483
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
487
|
+
if (localVarHttpContext === undefined) {
|
|
488
|
+
localVarHttpContext = new HttpContext();
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
492
|
+
if (localVarTransferCache === undefined) {
|
|
493
|
+
localVarTransferCache = true;
|
|
325
494
|
}
|
|
326
495
|
|
|
327
496
|
// to determine the Content-Type header
|
|
328
497
|
const consumes: string[] = ['application/json'];
|
|
329
498
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
330
499
|
if (httpContentTypeSelected !== undefined) {
|
|
331
|
-
|
|
500
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
332
501
|
}
|
|
333
502
|
|
|
334
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
335
|
-
if (
|
|
336
|
-
|
|
503
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
504
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
505
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
506
|
+
responseType_ = 'text';
|
|
507
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
508
|
+
responseType_ = 'json';
|
|
509
|
+
} else {
|
|
510
|
+
responseType_ = 'blob';
|
|
511
|
+
}
|
|
337
512
|
}
|
|
338
513
|
|
|
339
|
-
|
|
514
|
+
let localVarPath = `/assetsbulkupdate`;
|
|
515
|
+
return this.httpClient.request<AgravityInfoResponse>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
516
|
+
context: localVarHttpContext,
|
|
517
|
+
body: assetBulkUpdate,
|
|
340
518
|
responseType: <any>responseType_,
|
|
341
519
|
withCredentials: this.configuration.withCredentials,
|
|
342
|
-
headers:
|
|
520
|
+
headers: localVarHeaders,
|
|
343
521
|
observe: observe,
|
|
522
|
+
transferCache: localVarTransferCache,
|
|
344
523
|
reportProgress: reportProgress
|
|
345
524
|
});
|
|
346
525
|
}
|
|
347
526
|
|
|
348
527
|
/**
|
|
349
|
-
* @param
|
|
528
|
+
* @param requestParameters
|
|
350
529
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
351
530
|
* @param reportProgress flag to report request and response progress.
|
|
352
531
|
*/
|
|
353
|
-
public httpAssetsBulkPutUpdate(assetBulkUpdate: AssetBulkUpdate, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
|
|
354
532
|
public httpAssetsBulkPutUpdate(
|
|
355
|
-
|
|
533
|
+
requestParameters?: HttpAssetsBulkPutUpdateRequestParams,
|
|
534
|
+
observe?: 'body',
|
|
535
|
+
reportProgress?: boolean,
|
|
536
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
537
|
+
): Observable<AgravityInfoResponse>;
|
|
538
|
+
public httpAssetsBulkPutUpdate(
|
|
539
|
+
requestParameters?: HttpAssetsBulkPutUpdateRequestParams,
|
|
356
540
|
observe?: 'response',
|
|
357
541
|
reportProgress?: boolean,
|
|
358
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
542
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
359
543
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
360
544
|
public httpAssetsBulkPutUpdate(
|
|
361
|
-
|
|
545
|
+
requestParameters?: HttpAssetsBulkPutUpdateRequestParams,
|
|
362
546
|
observe?: 'events',
|
|
363
547
|
reportProgress?: boolean,
|
|
364
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
548
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
365
549
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
366
|
-
public httpAssetsBulkPutUpdate(
|
|
550
|
+
public httpAssetsBulkPutUpdate(
|
|
551
|
+
requestParameters?: HttpAssetsBulkPutUpdateRequestParams,
|
|
552
|
+
observe: any = 'body',
|
|
553
|
+
reportProgress: boolean = false,
|
|
554
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
555
|
+
): Observable<any> {
|
|
556
|
+
const assetBulkUpdate = requestParameters?.assetBulkUpdate;
|
|
367
557
|
if (assetBulkUpdate === null || assetBulkUpdate === undefined) {
|
|
368
558
|
throw new Error('Required parameter assetBulkUpdate was null or undefined when calling httpAssetsBulkPutUpdate.');
|
|
369
559
|
}
|
|
560
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
370
561
|
|
|
371
|
-
let
|
|
562
|
+
let localVarHeaders = this.defaultHeaders;
|
|
563
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
564
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
565
|
+
}
|
|
372
566
|
|
|
373
|
-
let
|
|
567
|
+
let localVarCredential: string | undefined;
|
|
374
568
|
// authentication (msal_auth) required
|
|
375
|
-
|
|
376
|
-
if (
|
|
377
|
-
|
|
569
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
570
|
+
if (localVarCredential) {
|
|
571
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
378
572
|
}
|
|
379
573
|
|
|
380
|
-
let
|
|
381
|
-
if (
|
|
574
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
575
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
382
576
|
// to determine the Accept header
|
|
383
577
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
384
|
-
|
|
578
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
579
|
+
}
|
|
580
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
581
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
385
582
|
}
|
|
386
|
-
|
|
387
|
-
|
|
583
|
+
|
|
584
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
585
|
+
if (localVarHttpContext === undefined) {
|
|
586
|
+
localVarHttpContext = new HttpContext();
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
590
|
+
if (localVarTransferCache === undefined) {
|
|
591
|
+
localVarTransferCache = true;
|
|
388
592
|
}
|
|
389
593
|
|
|
390
594
|
// to determine the Content-Type header
|
|
391
595
|
const consumes: string[] = ['application/json'];
|
|
392
596
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
393
597
|
if (httpContentTypeSelected !== undefined) {
|
|
394
|
-
|
|
598
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
395
599
|
}
|
|
396
600
|
|
|
397
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
398
|
-
if (
|
|
399
|
-
|
|
601
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
602
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
603
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
604
|
+
responseType_ = 'text';
|
|
605
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
606
|
+
responseType_ = 'json';
|
|
607
|
+
} else {
|
|
608
|
+
responseType_ = 'blob';
|
|
609
|
+
}
|
|
400
610
|
}
|
|
401
611
|
|
|
402
|
-
|
|
612
|
+
let localVarPath = `/assetsbulkupdate`;
|
|
613
|
+
return this.httpClient.request<AgravityInfoResponse>('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
614
|
+
context: localVarHttpContext,
|
|
615
|
+
body: assetBulkUpdate,
|
|
403
616
|
responseType: <any>responseType_,
|
|
404
617
|
withCredentials: this.configuration.withCredentials,
|
|
405
|
-
headers:
|
|
618
|
+
headers: localVarHeaders,
|
|
406
619
|
observe: observe,
|
|
620
|
+
transferCache: localVarTransferCache,
|
|
407
621
|
reportProgress: reportProgress
|
|
408
622
|
});
|
|
409
623
|
}
|
|
410
624
|
|
|
411
625
|
/**
|
|
412
626
|
* This endpoint creates one asset entry in the database.
|
|
413
|
-
* @param
|
|
414
|
-
* @param asset This endpoint creates an unique asset ID and adds the information to the database.
|
|
415
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
627
|
+
* @param requestParameters
|
|
416
628
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
417
629
|
* @param reportProgress flag to report request and response progress.
|
|
418
630
|
*/
|
|
419
631
|
public httpAssetsCreate(
|
|
420
|
-
|
|
421
|
-
asset: Asset,
|
|
422
|
-
translations?: boolean,
|
|
632
|
+
requestParameters?: HttpAssetsCreateRequestParams,
|
|
423
633
|
observe?: 'body',
|
|
424
634
|
reportProgress?: boolean,
|
|
425
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
635
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
426
636
|
): Observable<Asset>;
|
|
427
637
|
public httpAssetsCreate(
|
|
428
|
-
|
|
429
|
-
asset: Asset,
|
|
430
|
-
translations?: boolean,
|
|
638
|
+
requestParameters?: HttpAssetsCreateRequestParams,
|
|
431
639
|
observe?: 'response',
|
|
432
640
|
reportProgress?: boolean,
|
|
433
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
641
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
434
642
|
): Observable<HttpResponse<Asset>>;
|
|
435
643
|
public httpAssetsCreate(
|
|
436
|
-
|
|
437
|
-
asset: Asset,
|
|
438
|
-
translations?: boolean,
|
|
644
|
+
requestParameters?: HttpAssetsCreateRequestParams,
|
|
439
645
|
observe?: 'events',
|
|
440
646
|
reportProgress?: boolean,
|
|
441
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
647
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
442
648
|
): Observable<HttpEvent<Asset>>;
|
|
443
649
|
public httpAssetsCreate(
|
|
444
|
-
|
|
445
|
-
asset: Asset,
|
|
446
|
-
translations?: boolean,
|
|
650
|
+
requestParameters?: HttpAssetsCreateRequestParams,
|
|
447
651
|
observe: any = 'body',
|
|
448
652
|
reportProgress: boolean = false,
|
|
449
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
653
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
450
654
|
): Observable<any> {
|
|
655
|
+
const collectionid = requestParameters?.collectionid;
|
|
451
656
|
if (collectionid === null || collectionid === undefined) {
|
|
452
657
|
throw new Error('Required parameter collectionid was null or undefined when calling httpAssetsCreate.');
|
|
453
658
|
}
|
|
659
|
+
const asset = requestParameters?.asset;
|
|
454
660
|
if (asset === null || asset === undefined) {
|
|
455
661
|
throw new Error('Required parameter asset was null or undefined when calling httpAssetsCreate.');
|
|
456
662
|
}
|
|
663
|
+
const translations = requestParameters?.translations;
|
|
664
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
457
665
|
|
|
458
|
-
let
|
|
666
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
459
667
|
if (collectionid !== undefined && collectionid !== null) {
|
|
460
|
-
|
|
668
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
|
|
461
669
|
}
|
|
462
670
|
if (translations !== undefined && translations !== null) {
|
|
463
|
-
|
|
671
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
464
672
|
}
|
|
465
673
|
|
|
466
|
-
let
|
|
674
|
+
let localVarHeaders = this.defaultHeaders;
|
|
675
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
676
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
677
|
+
}
|
|
467
678
|
|
|
468
|
-
let
|
|
679
|
+
let localVarCredential: string | undefined;
|
|
469
680
|
// authentication (msal_auth) required
|
|
470
|
-
|
|
471
|
-
if (
|
|
472
|
-
|
|
681
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
682
|
+
if (localVarCredential) {
|
|
683
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
473
684
|
}
|
|
474
685
|
|
|
475
|
-
let
|
|
476
|
-
if (
|
|
686
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
687
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
477
688
|
// to determine the Accept header
|
|
478
689
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
479
|
-
|
|
690
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
480
691
|
}
|
|
481
|
-
if (
|
|
482
|
-
|
|
692
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
693
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
697
|
+
if (localVarHttpContext === undefined) {
|
|
698
|
+
localVarHttpContext = new HttpContext();
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
702
|
+
if (localVarTransferCache === undefined) {
|
|
703
|
+
localVarTransferCache = true;
|
|
483
704
|
}
|
|
484
705
|
|
|
485
706
|
// to determine the Content-Type header
|
|
486
707
|
const consumes: string[] = ['application/json'];
|
|
487
708
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
488
709
|
if (httpContentTypeSelected !== undefined) {
|
|
489
|
-
|
|
710
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
490
711
|
}
|
|
491
712
|
|
|
492
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
493
|
-
if (
|
|
494
|
-
|
|
713
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
714
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
715
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
716
|
+
responseType_ = 'text';
|
|
717
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
718
|
+
responseType_ = 'json';
|
|
719
|
+
} else {
|
|
720
|
+
responseType_ = 'blob';
|
|
721
|
+
}
|
|
495
722
|
}
|
|
496
723
|
|
|
497
|
-
|
|
498
|
-
|
|
724
|
+
let localVarPath = `/assets`;
|
|
725
|
+
return this.httpClient.request<Asset>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
726
|
+
context: localVarHttpContext,
|
|
727
|
+
body: asset,
|
|
728
|
+
params: localVarQueryParameters,
|
|
499
729
|
responseType: <any>responseType_,
|
|
500
730
|
withCredentials: this.configuration.withCredentials,
|
|
501
|
-
headers:
|
|
731
|
+
headers: localVarHeaders,
|
|
502
732
|
observe: observe,
|
|
733
|
+
transferCache: localVarTransferCache,
|
|
503
734
|
reportProgress: reportProgress
|
|
504
735
|
});
|
|
505
736
|
}
|
|
506
737
|
|
|
507
738
|
/**
|
|
508
|
-
* @param
|
|
509
|
-
* @param collectionId The ID of the collection.
|
|
739
|
+
* @param requestParameters
|
|
510
740
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
511
741
|
* @param reportProgress flag to report request and response progress.
|
|
512
742
|
*/
|
|
513
|
-
public httpAssetsDeleteAll(filter: string, collectionId: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
|
|
514
743
|
public httpAssetsDeleteAll(
|
|
515
|
-
|
|
516
|
-
|
|
744
|
+
requestParameters?: HttpAssetsDeleteAllRequestParams,
|
|
745
|
+
observe?: 'body',
|
|
746
|
+
reportProgress?: boolean,
|
|
747
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
748
|
+
): Observable<any>;
|
|
749
|
+
public httpAssetsDeleteAll(
|
|
750
|
+
requestParameters?: HttpAssetsDeleteAllRequestParams,
|
|
517
751
|
observe?: 'response',
|
|
518
752
|
reportProgress?: boolean,
|
|
519
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
753
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
520
754
|
): Observable<HttpResponse<any>>;
|
|
521
|
-
public httpAssetsDeleteAll(
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
755
|
+
public httpAssetsDeleteAll(
|
|
756
|
+
requestParameters?: HttpAssetsDeleteAllRequestParams,
|
|
757
|
+
observe?: 'events',
|
|
758
|
+
reportProgress?: boolean,
|
|
759
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
760
|
+
): Observable<HttpEvent<any>>;
|
|
761
|
+
public httpAssetsDeleteAll(
|
|
762
|
+
requestParameters?: HttpAssetsDeleteAllRequestParams,
|
|
763
|
+
observe: any = 'body',
|
|
764
|
+
reportProgress: boolean = false,
|
|
765
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
766
|
+
): Observable<any> {
|
|
767
|
+
const filter = requestParameters?.filter;
|
|
768
|
+
const collectionId = requestParameters?.collectionId;
|
|
529
769
|
|
|
530
|
-
let
|
|
770
|
+
let localVarHeaders = this.defaultHeaders;
|
|
531
771
|
|
|
532
|
-
let
|
|
772
|
+
let localVarCredential: string | undefined;
|
|
533
773
|
// authentication (msal_auth) required
|
|
534
|
-
|
|
535
|
-
if (
|
|
536
|
-
|
|
774
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
775
|
+
if (localVarCredential) {
|
|
776
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
537
777
|
}
|
|
538
778
|
|
|
539
|
-
let
|
|
540
|
-
if (
|
|
779
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
780
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
541
781
|
// to determine the Accept header
|
|
542
782
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
543
|
-
|
|
783
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
544
784
|
}
|
|
545
|
-
if (
|
|
546
|
-
|
|
785
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
786
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
790
|
+
if (localVarHttpContext === undefined) {
|
|
791
|
+
localVarHttpContext = new HttpContext();
|
|
547
792
|
}
|
|
548
793
|
|
|
549
|
-
let
|
|
550
|
-
if (
|
|
551
|
-
|
|
794
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
795
|
+
if (localVarTransferCache === undefined) {
|
|
796
|
+
localVarTransferCache = true;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
800
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
801
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
802
|
+
responseType_ = 'text';
|
|
803
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
804
|
+
responseType_ = 'json';
|
|
805
|
+
} else {
|
|
806
|
+
responseType_ = 'blob';
|
|
807
|
+
}
|
|
552
808
|
}
|
|
553
809
|
|
|
554
|
-
|
|
810
|
+
let localVarPath = `/assets`;
|
|
811
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
812
|
+
context: localVarHttpContext,
|
|
555
813
|
responseType: <any>responseType_,
|
|
556
814
|
withCredentials: this.configuration.withCredentials,
|
|
557
|
-
headers:
|
|
815
|
+
headers: localVarHeaders,
|
|
558
816
|
observe: observe,
|
|
817
|
+
transferCache: localVarTransferCache,
|
|
559
818
|
reportProgress: reportProgress
|
|
560
819
|
});
|
|
561
820
|
}
|
|
562
821
|
|
|
563
822
|
/**
|
|
564
|
-
* @param
|
|
823
|
+
* @param requestParameters
|
|
565
824
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
566
825
|
* @param reportProgress flag to report request and response progress.
|
|
567
826
|
*/
|
|
568
|
-
public httpAssetsDeleteById(
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
827
|
+
public httpAssetsDeleteById(
|
|
828
|
+
requestParameters?: HttpAssetsDeleteByIdRequestParams,
|
|
829
|
+
observe?: 'body',
|
|
830
|
+
reportProgress?: boolean,
|
|
831
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
832
|
+
): Observable<any>;
|
|
833
|
+
public httpAssetsDeleteById(
|
|
834
|
+
requestParameters?: HttpAssetsDeleteByIdRequestParams,
|
|
835
|
+
observe?: 'response',
|
|
836
|
+
reportProgress?: boolean,
|
|
837
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
838
|
+
): Observable<HttpResponse<any>>;
|
|
839
|
+
public httpAssetsDeleteById(
|
|
840
|
+
requestParameters?: HttpAssetsDeleteByIdRequestParams,
|
|
841
|
+
observe?: 'events',
|
|
842
|
+
reportProgress?: boolean,
|
|
843
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
844
|
+
): Observable<HttpEvent<any>>;
|
|
845
|
+
public httpAssetsDeleteById(
|
|
846
|
+
requestParameters?: HttpAssetsDeleteByIdRequestParams,
|
|
847
|
+
observe: any = 'body',
|
|
848
|
+
reportProgress: boolean = false,
|
|
849
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
850
|
+
): Observable<any> {
|
|
851
|
+
const id = requestParameters?.id;
|
|
572
852
|
if (id === null || id === undefined) {
|
|
573
853
|
throw new Error('Required parameter id was null or undefined when calling httpAssetsDeleteById.');
|
|
574
854
|
}
|
|
575
855
|
|
|
576
|
-
let
|
|
856
|
+
let localVarHeaders = this.defaultHeaders;
|
|
577
857
|
|
|
578
|
-
let
|
|
858
|
+
let localVarCredential: string | undefined;
|
|
579
859
|
// authentication (msal_auth) required
|
|
580
|
-
|
|
581
|
-
if (
|
|
582
|
-
|
|
860
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
861
|
+
if (localVarCredential) {
|
|
862
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
583
863
|
}
|
|
584
864
|
|
|
585
|
-
let
|
|
586
|
-
if (
|
|
865
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
866
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
587
867
|
// to determine the Accept header
|
|
588
868
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
589
|
-
|
|
869
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
590
870
|
}
|
|
591
|
-
if (
|
|
592
|
-
|
|
871
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
872
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
593
873
|
}
|
|
594
874
|
|
|
595
|
-
let
|
|
596
|
-
if (
|
|
597
|
-
|
|
875
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
876
|
+
if (localVarHttpContext === undefined) {
|
|
877
|
+
localVarHttpContext = new HttpContext();
|
|
598
878
|
}
|
|
599
879
|
|
|
600
|
-
|
|
880
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
881
|
+
if (localVarTransferCache === undefined) {
|
|
882
|
+
localVarTransferCache = true;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
886
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
887
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
888
|
+
responseType_ = 'text';
|
|
889
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
890
|
+
responseType_ = 'json';
|
|
891
|
+
} else {
|
|
892
|
+
responseType_ = 'blob';
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
897
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
898
|
+
context: localVarHttpContext,
|
|
601
899
|
responseType: <any>responseType_,
|
|
602
900
|
withCredentials: this.configuration.withCredentials,
|
|
603
|
-
headers:
|
|
901
|
+
headers: localVarHeaders,
|
|
604
902
|
observe: observe,
|
|
903
|
+
transferCache: localVarTransferCache,
|
|
605
904
|
reportProgress: reportProgress
|
|
606
905
|
});
|
|
607
906
|
}
|
|
608
907
|
|
|
609
908
|
/**
|
|
610
|
-
* @param
|
|
611
|
-
* @param collectiontypeid The ID of the collection type where these assets should come from. (Is not required when \'collectionid\' is set.) CAUTION: The assets returned are not distinct => Duplicates are possible if assets are in multiple collections in this collection type!
|
|
612
|
-
* @param fields This limits the fields which are returned, separated by comma (\',\'). Blobs can be limited with \'.\' on their container. (i.e. fields=blobs.thumbnails). Only if \'thumbnails\' is set, the placeholder of this asset type are returned if no thumbnail blob is found.
|
|
613
|
-
* @param expose This indicates if the given blobs should have URLs where these can be requested. (If not limited through \'fields\' parameter it will expose all URLs of all blobs.)
|
|
614
|
-
* @param continuationToken Each result returns the continous token if more results are available than requested. With this token, the next page could be fetched. (URL encoded!)
|
|
615
|
-
* @param limit This number limits the page result of assets.
|
|
616
|
-
* @param orderby How the return assets are sorted. Default is property: modified_date (newest first).
|
|
617
|
-
* @param filter This will limit the output on specific parameters which are separated by \':\', \'!:\', \'>\', \'>=\', \'<\', \'<=\'
|
|
618
|
-
* @param items The items can be extended to fully filled items.
|
|
619
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
909
|
+
* @param requestParameters
|
|
620
910
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
621
911
|
* @param reportProgress flag to report request and response progress.
|
|
622
912
|
*/
|
|
623
913
|
public httpAssetsGet(
|
|
624
|
-
|
|
625
|
-
collectiontypeid?: string,
|
|
626
|
-
fields?: string,
|
|
627
|
-
expose?: boolean,
|
|
628
|
-
continuationToken?: string,
|
|
629
|
-
limit?: number,
|
|
630
|
-
orderby?: string,
|
|
631
|
-
filter?: string,
|
|
632
|
-
items?: boolean,
|
|
633
|
-
translations?: boolean,
|
|
914
|
+
requestParameters?: HttpAssetsGetRequestParams,
|
|
634
915
|
observe?: 'body',
|
|
635
916
|
reportProgress?: boolean,
|
|
636
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
917
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
637
918
|
): Observable<AssetPageResult>;
|
|
638
919
|
public httpAssetsGet(
|
|
639
|
-
|
|
640
|
-
collectiontypeid?: string,
|
|
641
|
-
fields?: string,
|
|
642
|
-
expose?: boolean,
|
|
643
|
-
continuationToken?: string,
|
|
644
|
-
limit?: number,
|
|
645
|
-
orderby?: string,
|
|
646
|
-
filter?: string,
|
|
647
|
-
items?: boolean,
|
|
648
|
-
translations?: boolean,
|
|
920
|
+
requestParameters?: HttpAssetsGetRequestParams,
|
|
649
921
|
observe?: 'response',
|
|
650
922
|
reportProgress?: boolean,
|
|
651
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
923
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
652
924
|
): Observable<HttpResponse<AssetPageResult>>;
|
|
653
925
|
public httpAssetsGet(
|
|
654
|
-
|
|
655
|
-
collectiontypeid?: string,
|
|
656
|
-
fields?: string,
|
|
657
|
-
expose?: boolean,
|
|
658
|
-
continuationToken?: string,
|
|
659
|
-
limit?: number,
|
|
660
|
-
orderby?: string,
|
|
661
|
-
filter?: string,
|
|
662
|
-
items?: boolean,
|
|
663
|
-
translations?: boolean,
|
|
926
|
+
requestParameters?: HttpAssetsGetRequestParams,
|
|
664
927
|
observe?: 'events',
|
|
665
928
|
reportProgress?: boolean,
|
|
666
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
929
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
667
930
|
): Observable<HttpEvent<AssetPageResult>>;
|
|
668
931
|
public httpAssetsGet(
|
|
669
|
-
|
|
670
|
-
collectiontypeid?: string,
|
|
671
|
-
fields?: string,
|
|
672
|
-
expose?: boolean,
|
|
673
|
-
continuationToken?: string,
|
|
674
|
-
limit?: number,
|
|
675
|
-
orderby?: string,
|
|
676
|
-
filter?: string,
|
|
677
|
-
items?: boolean,
|
|
678
|
-
translations?: boolean,
|
|
932
|
+
requestParameters?: HttpAssetsGetRequestParams,
|
|
679
933
|
observe: any = 'body',
|
|
680
934
|
reportProgress: boolean = false,
|
|
681
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
935
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
682
936
|
): Observable<any> {
|
|
683
|
-
|
|
937
|
+
const collectionid = requestParameters?.collectionid;
|
|
938
|
+
const collectiontypeid = requestParameters?.collectiontypeid;
|
|
939
|
+
const fields = requestParameters?.fields;
|
|
940
|
+
const expose = requestParameters?.expose;
|
|
941
|
+
const continuationToken = requestParameters?.continuationToken;
|
|
942
|
+
const limit = requestParameters?.limit;
|
|
943
|
+
const orderby = requestParameters?.orderby;
|
|
944
|
+
const filter = requestParameters?.filter;
|
|
945
|
+
const items = requestParameters?.items;
|
|
946
|
+
const translations = requestParameters?.translations;
|
|
947
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
948
|
+
|
|
949
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
684
950
|
if (collectionid !== undefined && collectionid !== null) {
|
|
685
|
-
|
|
951
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
|
|
686
952
|
}
|
|
687
953
|
if (collectiontypeid !== undefined && collectiontypeid !== null) {
|
|
688
|
-
|
|
954
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectiontypeid, 'collectiontypeid');
|
|
689
955
|
}
|
|
690
956
|
if (fields !== undefined && fields !== null) {
|
|
691
|
-
|
|
957
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
|
|
692
958
|
}
|
|
693
959
|
if (expose !== undefined && expose !== null) {
|
|
694
|
-
|
|
960
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>expose, 'expose');
|
|
695
961
|
}
|
|
696
962
|
if (continuationToken !== undefined && continuationToken !== null) {
|
|
697
|
-
|
|
963
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>continuationToken, 'continuation_token');
|
|
698
964
|
}
|
|
699
965
|
if (limit !== undefined && limit !== null) {
|
|
700
|
-
|
|
966
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>limit, 'limit');
|
|
701
967
|
}
|
|
702
968
|
if (orderby !== undefined && orderby !== null) {
|
|
703
|
-
|
|
969
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>orderby, 'orderby');
|
|
704
970
|
}
|
|
705
971
|
if (filter !== undefined && filter !== null) {
|
|
706
|
-
|
|
972
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
707
973
|
}
|
|
708
974
|
if (items !== undefined && items !== null) {
|
|
709
|
-
|
|
975
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
|
|
710
976
|
}
|
|
711
977
|
if (translations !== undefined && translations !== null) {
|
|
712
|
-
|
|
978
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
713
979
|
}
|
|
714
980
|
|
|
715
|
-
let
|
|
981
|
+
let localVarHeaders = this.defaultHeaders;
|
|
982
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
983
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
984
|
+
}
|
|
716
985
|
|
|
717
|
-
let
|
|
986
|
+
let localVarCredential: string | undefined;
|
|
718
987
|
// authentication (msal_auth) required
|
|
719
|
-
|
|
720
|
-
if (
|
|
721
|
-
|
|
988
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
989
|
+
if (localVarCredential) {
|
|
990
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
722
991
|
}
|
|
723
992
|
|
|
724
|
-
let
|
|
725
|
-
if (
|
|
993
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
994
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
726
995
|
// to determine the Accept header
|
|
727
996
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
728
|
-
|
|
997
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
729
998
|
}
|
|
730
|
-
if (
|
|
731
|
-
|
|
999
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1000
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
732
1001
|
}
|
|
733
1002
|
|
|
734
|
-
let
|
|
735
|
-
if (
|
|
736
|
-
|
|
1003
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1004
|
+
if (localVarHttpContext === undefined) {
|
|
1005
|
+
localVarHttpContext = new HttpContext();
|
|
737
1006
|
}
|
|
738
1007
|
|
|
739
|
-
|
|
740
|
-
|
|
1008
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1009
|
+
if (localVarTransferCache === undefined) {
|
|
1010
|
+
localVarTransferCache = true;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1014
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1015
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1016
|
+
responseType_ = 'text';
|
|
1017
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1018
|
+
responseType_ = 'json';
|
|
1019
|
+
} else {
|
|
1020
|
+
responseType_ = 'blob';
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
let localVarPath = `/assets`;
|
|
1025
|
+
return this.httpClient.request<AssetPageResult>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1026
|
+
context: localVarHttpContext,
|
|
1027
|
+
params: localVarQueryParameters,
|
|
741
1028
|
responseType: <any>responseType_,
|
|
742
1029
|
withCredentials: this.configuration.withCredentials,
|
|
743
|
-
headers:
|
|
1030
|
+
headers: localVarHeaders,
|
|
744
1031
|
observe: observe,
|
|
1032
|
+
transferCache: localVarTransferCache,
|
|
745
1033
|
reportProgress: reportProgress
|
|
746
1034
|
});
|
|
747
1035
|
}
|
|
748
1036
|
|
|
749
1037
|
/**
|
|
750
1038
|
* This endpoint returns one single asset (from ID). If the returned asset is from a special asset type (e.g. \"AssetImage\") it returns the full entity.
|
|
751
|
-
* @param
|
|
752
|
-
* @param fields Which fields are need to be filled out with comma separated. If one is set all non mandatory fields are left out. No validation if field exist.
|
|
753
|
-
* @param expose This indicates if the given blobs should have URLs where these can be requested. It will expose placeholder blobs if no \'thumbnail\' is found.)
|
|
754
|
-
* @param items The items can be extended to fully filled items.
|
|
755
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
1039
|
+
* @param requestParameters
|
|
756
1040
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
757
1041
|
* @param reportProgress flag to report request and response progress.
|
|
758
1042
|
*/
|
|
759
1043
|
public httpAssetsGetById(
|
|
760
|
-
|
|
761
|
-
fields?: string,
|
|
762
|
-
expose?: boolean,
|
|
763
|
-
items?: boolean,
|
|
764
|
-
translations?: boolean,
|
|
1044
|
+
requestParameters?: HttpAssetsGetByIdRequestParams,
|
|
765
1045
|
observe?: 'body',
|
|
766
1046
|
reportProgress?: boolean,
|
|
767
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1047
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
768
1048
|
): Observable<Asset>;
|
|
769
1049
|
public httpAssetsGetById(
|
|
770
|
-
|
|
771
|
-
fields?: string,
|
|
772
|
-
expose?: boolean,
|
|
773
|
-
items?: boolean,
|
|
774
|
-
translations?: boolean,
|
|
1050
|
+
requestParameters?: HttpAssetsGetByIdRequestParams,
|
|
775
1051
|
observe?: 'response',
|
|
776
1052
|
reportProgress?: boolean,
|
|
777
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1053
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
778
1054
|
): Observable<HttpResponse<Asset>>;
|
|
779
1055
|
public httpAssetsGetById(
|
|
780
|
-
|
|
781
|
-
fields?: string,
|
|
782
|
-
expose?: boolean,
|
|
783
|
-
items?: boolean,
|
|
784
|
-
translations?: boolean,
|
|
1056
|
+
requestParameters?: HttpAssetsGetByIdRequestParams,
|
|
785
1057
|
observe?: 'events',
|
|
786
1058
|
reportProgress?: boolean,
|
|
787
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1059
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
788
1060
|
): Observable<HttpEvent<Asset>>;
|
|
789
1061
|
public httpAssetsGetById(
|
|
790
|
-
|
|
791
|
-
fields?: string,
|
|
792
|
-
expose?: boolean,
|
|
793
|
-
items?: boolean,
|
|
794
|
-
translations?: boolean,
|
|
1062
|
+
requestParameters?: HttpAssetsGetByIdRequestParams,
|
|
795
1063
|
observe: any = 'body',
|
|
796
1064
|
reportProgress: boolean = false,
|
|
797
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1065
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
798
1066
|
): Observable<any> {
|
|
1067
|
+
const id = requestParameters?.id;
|
|
799
1068
|
if (id === null || id === undefined) {
|
|
800
1069
|
throw new Error('Required parameter id was null or undefined when calling httpAssetsGetById.');
|
|
801
1070
|
}
|
|
1071
|
+
const fields = requestParameters?.fields;
|
|
1072
|
+
const expose = requestParameters?.expose;
|
|
1073
|
+
const items = requestParameters?.items;
|
|
1074
|
+
const translations = requestParameters?.translations;
|
|
1075
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
802
1076
|
|
|
803
|
-
let
|
|
1077
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
804
1078
|
if (fields !== undefined && fields !== null) {
|
|
805
|
-
|
|
1079
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
|
|
806
1080
|
}
|
|
807
1081
|
if (expose !== undefined && expose !== null) {
|
|
808
|
-
|
|
1082
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>expose, 'expose');
|
|
809
1083
|
}
|
|
810
1084
|
if (items !== undefined && items !== null) {
|
|
811
|
-
|
|
1085
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
|
|
812
1086
|
}
|
|
813
1087
|
if (translations !== undefined && translations !== null) {
|
|
814
|
-
|
|
1088
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
815
1089
|
}
|
|
816
1090
|
|
|
817
|
-
let
|
|
1091
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1092
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
1093
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
1094
|
+
}
|
|
818
1095
|
|
|
819
|
-
let
|
|
1096
|
+
let localVarCredential: string | undefined;
|
|
820
1097
|
// authentication (msal_auth) required
|
|
821
|
-
|
|
822
|
-
if (
|
|
823
|
-
|
|
1098
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1099
|
+
if (localVarCredential) {
|
|
1100
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
824
1101
|
}
|
|
825
1102
|
|
|
826
|
-
let
|
|
827
|
-
if (
|
|
1103
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1104
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
828
1105
|
// to determine the Accept header
|
|
829
1106
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
830
|
-
|
|
1107
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
831
1108
|
}
|
|
832
|
-
if (
|
|
833
|
-
|
|
1109
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1110
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
834
1111
|
}
|
|
835
1112
|
|
|
836
|
-
let
|
|
837
|
-
if (
|
|
838
|
-
|
|
1113
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1114
|
+
if (localVarHttpContext === undefined) {
|
|
1115
|
+
localVarHttpContext = new HttpContext();
|
|
839
1116
|
}
|
|
840
1117
|
|
|
841
|
-
|
|
842
|
-
|
|
1118
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1119
|
+
if (localVarTransferCache === undefined) {
|
|
1120
|
+
localVarTransferCache = true;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1124
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1125
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1126
|
+
responseType_ = 'text';
|
|
1127
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1128
|
+
responseType_ = 'json';
|
|
1129
|
+
} else {
|
|
1130
|
+
responseType_ = 'blob';
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
1135
|
+
return this.httpClient.request<Asset>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1136
|
+
context: localVarHttpContext,
|
|
1137
|
+
params: localVarQueryParameters,
|
|
843
1138
|
responseType: <any>responseType_,
|
|
844
1139
|
withCredentials: this.configuration.withCredentials,
|
|
845
|
-
headers:
|
|
1140
|
+
headers: localVarHeaders,
|
|
846
1141
|
observe: observe,
|
|
1142
|
+
transferCache: localVarTransferCache,
|
|
847
1143
|
reportProgress: reportProgress
|
|
848
1144
|
});
|
|
849
1145
|
}
|
|
850
1146
|
|
|
851
1147
|
/**
|
|
852
1148
|
* This endpoint updates one single asset (from ID)
|
|
853
|
-
* @param
|
|
854
|
-
* @param asset The body has to contain one of the mentioned elements and a valid json. Not fitting properties are ignored.
|
|
855
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
1149
|
+
* @param requestParameters
|
|
856
1150
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
857
1151
|
* @param reportProgress flag to report request and response progress.
|
|
858
1152
|
*/
|
|
859
|
-
public httpAssetsUpdateById(id: string, asset: Asset, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Asset>;
|
|
860
1153
|
public httpAssetsUpdateById(
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
1154
|
+
requestParameters?: HttpAssetsUpdateByIdRequestParams,
|
|
1155
|
+
observe?: 'body',
|
|
1156
|
+
reportProgress?: boolean,
|
|
1157
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1158
|
+
): Observable<Asset>;
|
|
1159
|
+
public httpAssetsUpdateById(
|
|
1160
|
+
requestParameters?: HttpAssetsUpdateByIdRequestParams,
|
|
864
1161
|
observe?: 'response',
|
|
865
1162
|
reportProgress?: boolean,
|
|
866
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1163
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
867
1164
|
): Observable<HttpResponse<Asset>>;
|
|
868
1165
|
public httpAssetsUpdateById(
|
|
869
|
-
|
|
870
|
-
asset: Asset,
|
|
871
|
-
translations?: boolean,
|
|
1166
|
+
requestParameters?: HttpAssetsUpdateByIdRequestParams,
|
|
872
1167
|
observe?: 'events',
|
|
873
1168
|
reportProgress?: boolean,
|
|
874
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1169
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
875
1170
|
): Observable<HttpEvent<Asset>>;
|
|
876
1171
|
public httpAssetsUpdateById(
|
|
877
|
-
|
|
878
|
-
asset: Asset,
|
|
879
|
-
translations?: boolean,
|
|
1172
|
+
requestParameters?: HttpAssetsUpdateByIdRequestParams,
|
|
880
1173
|
observe: any = 'body',
|
|
881
1174
|
reportProgress: boolean = false,
|
|
882
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
1175
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
883
1176
|
): Observable<any> {
|
|
1177
|
+
const id = requestParameters?.id;
|
|
884
1178
|
if (id === null || id === undefined) {
|
|
885
1179
|
throw new Error('Required parameter id was null or undefined when calling httpAssetsUpdateById.');
|
|
886
1180
|
}
|
|
1181
|
+
const asset = requestParameters?.asset;
|
|
887
1182
|
if (asset === null || asset === undefined) {
|
|
888
1183
|
throw new Error('Required parameter asset was null or undefined when calling httpAssetsUpdateById.');
|
|
889
1184
|
}
|
|
1185
|
+
const translations = requestParameters?.translations;
|
|
1186
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
890
1187
|
|
|
891
|
-
let
|
|
1188
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
892
1189
|
if (translations !== undefined && translations !== null) {
|
|
893
|
-
|
|
1190
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
894
1191
|
}
|
|
895
1192
|
|
|
896
|
-
let
|
|
1193
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1194
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
1195
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
1196
|
+
}
|
|
897
1197
|
|
|
898
|
-
let
|
|
1198
|
+
let localVarCredential: string | undefined;
|
|
899
1199
|
// authentication (msal_auth) required
|
|
900
|
-
|
|
901
|
-
if (
|
|
902
|
-
|
|
1200
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
1201
|
+
if (localVarCredential) {
|
|
1202
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
903
1203
|
}
|
|
904
1204
|
|
|
905
|
-
let
|
|
906
|
-
if (
|
|
1205
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
1206
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
907
1207
|
// to determine the Accept header
|
|
908
1208
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
909
|
-
|
|
1209
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1210
|
+
}
|
|
1211
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1212
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
1216
|
+
if (localVarHttpContext === undefined) {
|
|
1217
|
+
localVarHttpContext = new HttpContext();
|
|
910
1218
|
}
|
|
911
|
-
|
|
912
|
-
|
|
1219
|
+
|
|
1220
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
1221
|
+
if (localVarTransferCache === undefined) {
|
|
1222
|
+
localVarTransferCache = true;
|
|
913
1223
|
}
|
|
914
1224
|
|
|
915
1225
|
// to determine the Content-Type header
|
|
916
1226
|
const consumes: string[] = ['application/json'];
|
|
917
1227
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
918
1228
|
if (httpContentTypeSelected !== undefined) {
|
|
919
|
-
|
|
1229
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
920
1230
|
}
|
|
921
1231
|
|
|
922
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
923
|
-
if (
|
|
924
|
-
|
|
1232
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
1233
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1234
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1235
|
+
responseType_ = 'text';
|
|
1236
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1237
|
+
responseType_ = 'json';
|
|
1238
|
+
} else {
|
|
1239
|
+
responseType_ = 'blob';
|
|
1240
|
+
}
|
|
925
1241
|
}
|
|
926
1242
|
|
|
927
|
-
|
|
928
|
-
|
|
1243
|
+
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
1244
|
+
return this.httpClient.request<Asset>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1245
|
+
context: localVarHttpContext,
|
|
1246
|
+
body: asset,
|
|
1247
|
+
params: localVarQueryParameters,
|
|
929
1248
|
responseType: <any>responseType_,
|
|
930
1249
|
withCredentials: this.configuration.withCredentials,
|
|
931
|
-
headers:
|
|
1250
|
+
headers: localVarHeaders,
|
|
932
1251
|
observe: observe,
|
|
1252
|
+
transferCache: localVarTransferCache,
|
|
933
1253
|
reportProgress: reportProgress
|
|
934
1254
|
});
|
|
935
1255
|
}
|