@agravity/private 7.3.1 → 8.1.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 +262 -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 +20 -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,17 +11,64 @@
|
|
|
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
|
-
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { Portal } from '../model/portal.agravity';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { PortalZipRequest } from '../model/portalZipRequest.agravity';
|
|
22
24
|
|
|
25
|
+
// @ts-ignore
|
|
23
26
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
27
|
import { AgravityConfiguration } from '../configuration';
|
|
25
28
|
|
|
29
|
+
export interface HttpPortalGetAllAssetIdsByIdRequestParams {
|
|
30
|
+
/** The ID of the portal. */
|
|
31
|
+
id: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface HttpPortalGetStatusZipByIdRequestParams {
|
|
35
|
+
/** The ID of the zip request collection. */
|
|
36
|
+
id: string;
|
|
37
|
+
/** The ID of the requested zip. */
|
|
38
|
+
zipId: string;
|
|
39
|
+
/** If portal has a password, this header is mandatory. Otherwise StatusCode 401 (Unauthorized) is returned. */
|
|
40
|
+
ayPassword?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface HttpPortalRequestZipByIdRequestParams {
|
|
44
|
+
/** The ID of the portal. */
|
|
45
|
+
id: string;
|
|
46
|
+
/** The allowed formats are the input which could be added. */
|
|
47
|
+
portalZipRequest: PortalZipRequest;
|
|
48
|
+
/** The password is a XOR combination of all asset MD5 hashes. Otherwise StatusCode 403 (Forbidden) is returned. */
|
|
49
|
+
ayPassword?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface HttpPortalsConfigurationGetByIdRequestParams {
|
|
53
|
+
/** The ID of the portal. */
|
|
54
|
+
id: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface HttpPortalsCreateRequestParams {
|
|
58
|
+
/** This endpoint creates an unique portal ID and adds the information to the database. */
|
|
59
|
+
portal: Portal;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface HttpPortalsDeleteByIdRequestParams {
|
|
63
|
+
/** The ID of the portal. */
|
|
64
|
+
id: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface HttpPortalsGetByIdRequestParams {
|
|
68
|
+
/** The ID of the portal. */
|
|
69
|
+
id: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
26
72
|
@Injectable({
|
|
27
73
|
providedIn: 'root'
|
|
28
74
|
})
|
|
@@ -34,13 +80,18 @@ export class PortalManagementService {
|
|
|
34
80
|
|
|
35
81
|
constructor(
|
|
36
82
|
protected httpClient: HttpClient,
|
|
37
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
83
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
38
84
|
@Optional() configuration: AgravityConfiguration
|
|
39
85
|
) {
|
|
40
86
|
if (configuration) {
|
|
41
87
|
this.configuration = configuration;
|
|
42
88
|
}
|
|
43
89
|
if (typeof this.configuration.basePath !== 'string') {
|
|
90
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
91
|
+
if (firstBasePath != undefined) {
|
|
92
|
+
basePath = firstBasePath;
|
|
93
|
+
}
|
|
94
|
+
|
|
44
95
|
if (typeof basePath !== 'string') {
|
|
45
96
|
basePath = this.basePath;
|
|
46
97
|
}
|
|
@@ -49,6 +100,7 @@ export class PortalManagementService {
|
|
|
49
100
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
50
101
|
}
|
|
51
102
|
|
|
103
|
+
// @ts-ignore
|
|
52
104
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
53
105
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
54
106
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -68,7 +120,7 @@ export class PortalManagementService {
|
|
|
68
120
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
69
121
|
} else if (value instanceof Date) {
|
|
70
122
|
if (key != null) {
|
|
71
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
123
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
72
124
|
} else {
|
|
73
125
|
throw Error('key may not be null if value is Date');
|
|
74
126
|
}
|
|
@@ -85,368 +137,554 @@ export class PortalManagementService {
|
|
|
85
137
|
|
|
86
138
|
/**
|
|
87
139
|
* This endpoint gets all Asset IDs in portal scope.
|
|
88
|
-
* @param
|
|
140
|
+
* @param requestParameters
|
|
89
141
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
90
142
|
* @param reportProgress flag to report request and response progress.
|
|
91
143
|
*/
|
|
92
|
-
public httpPortalGetAllAssetIdsById(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
144
|
+
public httpPortalGetAllAssetIdsById(
|
|
145
|
+
requestParameters?: HttpPortalGetAllAssetIdsByIdRequestParams,
|
|
146
|
+
observe?: 'body',
|
|
147
|
+
reportProgress?: boolean,
|
|
148
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
149
|
+
): Observable<Array<string>>;
|
|
150
|
+
public httpPortalGetAllAssetIdsById(
|
|
151
|
+
requestParameters?: HttpPortalGetAllAssetIdsByIdRequestParams,
|
|
152
|
+
observe?: 'response',
|
|
153
|
+
reportProgress?: boolean,
|
|
154
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
155
|
+
): Observable<HttpResponse<Array<string>>>;
|
|
156
|
+
public httpPortalGetAllAssetIdsById(
|
|
157
|
+
requestParameters?: HttpPortalGetAllAssetIdsByIdRequestParams,
|
|
158
|
+
observe?: 'events',
|
|
159
|
+
reportProgress?: boolean,
|
|
160
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
161
|
+
): Observable<HttpEvent<Array<string>>>;
|
|
162
|
+
public httpPortalGetAllAssetIdsById(
|
|
163
|
+
requestParameters?: HttpPortalGetAllAssetIdsByIdRequestParams,
|
|
164
|
+
observe: any = 'body',
|
|
165
|
+
reportProgress: boolean = false,
|
|
166
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
167
|
+
): Observable<any> {
|
|
168
|
+
const id = requestParameters?.id;
|
|
96
169
|
if (id === null || id === undefined) {
|
|
97
170
|
throw new Error('Required parameter id was null or undefined when calling httpPortalGetAllAssetIdsById.');
|
|
98
171
|
}
|
|
99
172
|
|
|
100
|
-
let
|
|
173
|
+
let localVarHeaders = this.defaultHeaders;
|
|
101
174
|
|
|
102
|
-
let
|
|
175
|
+
let localVarCredential: string | undefined;
|
|
103
176
|
// authentication (msal_auth) required
|
|
104
|
-
|
|
105
|
-
if (
|
|
106
|
-
|
|
177
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
178
|
+
if (localVarCredential) {
|
|
179
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
107
180
|
}
|
|
108
181
|
|
|
109
|
-
let
|
|
110
|
-
if (
|
|
182
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
183
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
111
184
|
// to determine the Accept header
|
|
112
185
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
113
|
-
|
|
186
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
114
187
|
}
|
|
115
|
-
if (
|
|
116
|
-
|
|
188
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
189
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
193
|
+
if (localVarHttpContext === undefined) {
|
|
194
|
+
localVarHttpContext = new HttpContext();
|
|
117
195
|
}
|
|
118
196
|
|
|
119
|
-
let
|
|
120
|
-
if (
|
|
121
|
-
|
|
197
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
198
|
+
if (localVarTransferCache === undefined) {
|
|
199
|
+
localVarTransferCache = true;
|
|
122
200
|
}
|
|
123
201
|
|
|
124
|
-
|
|
202
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
203
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
204
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
205
|
+
responseType_ = 'text';
|
|
206
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
207
|
+
responseType_ = 'json';
|
|
208
|
+
} else {
|
|
209
|
+
responseType_ = 'blob';
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/assetids`;
|
|
214
|
+
return this.httpClient.request<Array<string>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
215
|
+
context: localVarHttpContext,
|
|
125
216
|
responseType: <any>responseType_,
|
|
126
217
|
withCredentials: this.configuration.withCredentials,
|
|
127
|
-
headers:
|
|
218
|
+
headers: localVarHeaders,
|
|
128
219
|
observe: observe,
|
|
220
|
+
transferCache: localVarTransferCache,
|
|
129
221
|
reportProgress: reportProgress
|
|
130
222
|
});
|
|
131
223
|
}
|
|
132
224
|
|
|
133
225
|
/**
|
|
134
226
|
* This endpoint gets the progress/status of the ZIP creation of a portal.
|
|
135
|
-
* @param
|
|
136
|
-
* @param zipId The ID of the requested zip.
|
|
137
|
-
* @param ayPassword If portal has a password, this header is mandatory. Otherwise StatusCode 401 (Unauthorized) is returned.
|
|
227
|
+
* @param requestParameters
|
|
138
228
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
139
229
|
* @param reportProgress flag to report request and response progress.
|
|
140
230
|
*/
|
|
141
231
|
public httpPortalGetStatusZipById(
|
|
142
|
-
|
|
143
|
-
zipId: string,
|
|
144
|
-
ayPassword?: string,
|
|
232
|
+
requestParameters?: HttpPortalGetStatusZipByIdRequestParams,
|
|
145
233
|
observe?: 'body',
|
|
146
234
|
reportProgress?: boolean,
|
|
147
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
235
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
148
236
|
): Observable<PortalZipRequest>;
|
|
149
237
|
public httpPortalGetStatusZipById(
|
|
150
|
-
|
|
151
|
-
zipId: string,
|
|
152
|
-
ayPassword?: string,
|
|
238
|
+
requestParameters?: HttpPortalGetStatusZipByIdRequestParams,
|
|
153
239
|
observe?: 'response',
|
|
154
240
|
reportProgress?: boolean,
|
|
155
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
241
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
156
242
|
): Observable<HttpResponse<PortalZipRequest>>;
|
|
157
243
|
public httpPortalGetStatusZipById(
|
|
158
|
-
|
|
159
|
-
zipId: string,
|
|
160
|
-
ayPassword?: string,
|
|
244
|
+
requestParameters?: HttpPortalGetStatusZipByIdRequestParams,
|
|
161
245
|
observe?: 'events',
|
|
162
246
|
reportProgress?: boolean,
|
|
163
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
247
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
164
248
|
): Observable<HttpEvent<PortalZipRequest>>;
|
|
165
249
|
public httpPortalGetStatusZipById(
|
|
166
|
-
|
|
167
|
-
zipId: string,
|
|
168
|
-
ayPassword?: string,
|
|
250
|
+
requestParameters?: HttpPortalGetStatusZipByIdRequestParams,
|
|
169
251
|
observe: any = 'body',
|
|
170
252
|
reportProgress: boolean = false,
|
|
171
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
253
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
172
254
|
): Observable<any> {
|
|
255
|
+
const id = requestParameters?.id;
|
|
173
256
|
if (id === null || id === undefined) {
|
|
174
257
|
throw new Error('Required parameter id was null or undefined when calling httpPortalGetStatusZipById.');
|
|
175
258
|
}
|
|
259
|
+
const zipId = requestParameters?.zipId;
|
|
176
260
|
if (zipId === null || zipId === undefined) {
|
|
177
261
|
throw new Error('Required parameter zipId was null or undefined when calling httpPortalGetStatusZipById.');
|
|
178
262
|
}
|
|
263
|
+
const ayPassword = requestParameters?.ayPassword;
|
|
179
264
|
|
|
180
|
-
let
|
|
265
|
+
let localVarHeaders = this.defaultHeaders;
|
|
181
266
|
if (ayPassword !== undefined && ayPassword !== null) {
|
|
182
|
-
|
|
267
|
+
localVarHeaders = localVarHeaders.set('ay-password', String(ayPassword));
|
|
183
268
|
}
|
|
184
269
|
|
|
185
|
-
let
|
|
270
|
+
let localVarCredential: string | undefined;
|
|
186
271
|
// authentication (msal_auth) required
|
|
187
|
-
|
|
188
|
-
if (
|
|
189
|
-
|
|
272
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
273
|
+
if (localVarCredential) {
|
|
274
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
190
275
|
}
|
|
191
276
|
|
|
192
|
-
let
|
|
193
|
-
if (
|
|
277
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
278
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
194
279
|
// to determine the Accept header
|
|
195
280
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
196
|
-
|
|
281
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
282
|
+
}
|
|
283
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
284
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
288
|
+
if (localVarHttpContext === undefined) {
|
|
289
|
+
localVarHttpContext = new HttpContext();
|
|
197
290
|
}
|
|
198
|
-
|
|
199
|
-
|
|
291
|
+
|
|
292
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
293
|
+
if (localVarTransferCache === undefined) {
|
|
294
|
+
localVarTransferCache = true;
|
|
200
295
|
}
|
|
201
296
|
|
|
202
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
203
|
-
if (
|
|
204
|
-
|
|
297
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
298
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
299
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
300
|
+
responseType_ = 'text';
|
|
301
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
302
|
+
responseType_ = 'json';
|
|
303
|
+
} else {
|
|
304
|
+
responseType_ = 'blob';
|
|
305
|
+
}
|
|
205
306
|
}
|
|
206
307
|
|
|
207
|
-
|
|
308
|
+
let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/zip/${this.configuration.encodeParam({ name: 'zipId', value: zipId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
309
|
+
return this.httpClient.request<PortalZipRequest>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
310
|
+
context: localVarHttpContext,
|
|
208
311
|
responseType: <any>responseType_,
|
|
209
312
|
withCredentials: this.configuration.withCredentials,
|
|
210
|
-
headers:
|
|
313
|
+
headers: localVarHeaders,
|
|
211
314
|
observe: observe,
|
|
315
|
+
transferCache: localVarTransferCache,
|
|
212
316
|
reportProgress: reportProgress
|
|
213
317
|
});
|
|
214
318
|
}
|
|
215
319
|
|
|
216
320
|
/**
|
|
217
321
|
* Initiates the ZIP creation of an asset basket from an portal.
|
|
218
|
-
* @param
|
|
219
|
-
* @param portalZipRequest The allowed formats are the input which could be added.
|
|
220
|
-
* @param ayPassword The password is a XOR combination of all asset MD5 hashes. Otherwise StatusCode 403 (Forbidden) is returned.
|
|
322
|
+
* @param requestParameters
|
|
221
323
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
222
324
|
* @param reportProgress flag to report request and response progress.
|
|
223
325
|
*/
|
|
224
326
|
public httpPortalRequestZipById(
|
|
225
|
-
|
|
226
|
-
portalZipRequest: PortalZipRequest,
|
|
227
|
-
ayPassword?: string,
|
|
327
|
+
requestParameters?: HttpPortalRequestZipByIdRequestParams,
|
|
228
328
|
observe?: 'body',
|
|
229
329
|
reportProgress?: boolean,
|
|
230
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
330
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
231
331
|
): Observable<PortalZipRequest>;
|
|
232
332
|
public httpPortalRequestZipById(
|
|
233
|
-
|
|
234
|
-
portalZipRequest: PortalZipRequest,
|
|
235
|
-
ayPassword?: string,
|
|
333
|
+
requestParameters?: HttpPortalRequestZipByIdRequestParams,
|
|
236
334
|
observe?: 'response',
|
|
237
335
|
reportProgress?: boolean,
|
|
238
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
336
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
239
337
|
): Observable<HttpResponse<PortalZipRequest>>;
|
|
240
338
|
public httpPortalRequestZipById(
|
|
241
|
-
|
|
242
|
-
portalZipRequest: PortalZipRequest,
|
|
243
|
-
ayPassword?: string,
|
|
339
|
+
requestParameters?: HttpPortalRequestZipByIdRequestParams,
|
|
244
340
|
observe?: 'events',
|
|
245
341
|
reportProgress?: boolean,
|
|
246
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
342
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
247
343
|
): Observable<HttpEvent<PortalZipRequest>>;
|
|
248
344
|
public httpPortalRequestZipById(
|
|
249
|
-
|
|
250
|
-
portalZipRequest: PortalZipRequest,
|
|
251
|
-
ayPassword?: string,
|
|
345
|
+
requestParameters?: HttpPortalRequestZipByIdRequestParams,
|
|
252
346
|
observe: any = 'body',
|
|
253
347
|
reportProgress: boolean = false,
|
|
254
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
348
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
255
349
|
): Observable<any> {
|
|
350
|
+
const id = requestParameters?.id;
|
|
256
351
|
if (id === null || id === undefined) {
|
|
257
352
|
throw new Error('Required parameter id was null or undefined when calling httpPortalRequestZipById.');
|
|
258
353
|
}
|
|
354
|
+
const portalZipRequest = requestParameters?.portalZipRequest;
|
|
259
355
|
if (portalZipRequest === null || portalZipRequest === undefined) {
|
|
260
356
|
throw new Error('Required parameter portalZipRequest was null or undefined when calling httpPortalRequestZipById.');
|
|
261
357
|
}
|
|
358
|
+
const ayPassword = requestParameters?.ayPassword;
|
|
262
359
|
|
|
263
|
-
let
|
|
360
|
+
let localVarHeaders = this.defaultHeaders;
|
|
264
361
|
if (ayPassword !== undefined && ayPassword !== null) {
|
|
265
|
-
|
|
362
|
+
localVarHeaders = localVarHeaders.set('ay-password', String(ayPassword));
|
|
266
363
|
}
|
|
267
364
|
|
|
268
|
-
let
|
|
365
|
+
let localVarCredential: string | undefined;
|
|
269
366
|
// authentication (msal_auth) required
|
|
270
|
-
|
|
271
|
-
if (
|
|
272
|
-
|
|
367
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
368
|
+
if (localVarCredential) {
|
|
369
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
273
370
|
}
|
|
274
371
|
|
|
275
|
-
let
|
|
276
|
-
if (
|
|
372
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
373
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
277
374
|
// to determine the Accept header
|
|
278
375
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
279
|
-
|
|
376
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
280
377
|
}
|
|
281
|
-
if (
|
|
282
|
-
|
|
378
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
379
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
383
|
+
if (localVarHttpContext === undefined) {
|
|
384
|
+
localVarHttpContext = new HttpContext();
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
388
|
+
if (localVarTransferCache === undefined) {
|
|
389
|
+
localVarTransferCache = true;
|
|
283
390
|
}
|
|
284
391
|
|
|
285
392
|
// to determine the Content-Type header
|
|
286
393
|
const consumes: string[] = ['application/json'];
|
|
287
394
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
288
395
|
if (httpContentTypeSelected !== undefined) {
|
|
289
|
-
|
|
396
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
290
397
|
}
|
|
291
398
|
|
|
292
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
293
|
-
if (
|
|
294
|
-
|
|
399
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
400
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
401
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
402
|
+
responseType_ = 'text';
|
|
403
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
404
|
+
responseType_ = 'json';
|
|
405
|
+
} else {
|
|
406
|
+
responseType_ = 'blob';
|
|
407
|
+
}
|
|
295
408
|
}
|
|
296
409
|
|
|
297
|
-
|
|
410
|
+
let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/zip`;
|
|
411
|
+
return this.httpClient.request<PortalZipRequest>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
412
|
+
context: localVarHttpContext,
|
|
413
|
+
body: portalZipRequest,
|
|
298
414
|
responseType: <any>responseType_,
|
|
299
415
|
withCredentials: this.configuration.withCredentials,
|
|
300
|
-
headers:
|
|
416
|
+
headers: localVarHeaders,
|
|
301
417
|
observe: observe,
|
|
418
|
+
transferCache: localVarTransferCache,
|
|
302
419
|
reportProgress: reportProgress
|
|
303
420
|
});
|
|
304
421
|
}
|
|
305
422
|
|
|
306
423
|
/**
|
|
307
424
|
* This endpoint returns a full configuration of the portal. Incl. download formats, SDLs, UDLs, etc.
|
|
308
|
-
* @param
|
|
425
|
+
* @param requestParameters
|
|
309
426
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
310
427
|
* @param reportProgress flag to report request and response progress.
|
|
311
428
|
*/
|
|
312
|
-
public httpPortalsConfigurationGetById(
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
429
|
+
public httpPortalsConfigurationGetById(
|
|
430
|
+
requestParameters?: HttpPortalsConfigurationGetByIdRequestParams,
|
|
431
|
+
observe?: 'body',
|
|
432
|
+
reportProgress?: boolean,
|
|
433
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
434
|
+
): Observable<Portal>;
|
|
435
|
+
public httpPortalsConfigurationGetById(
|
|
436
|
+
requestParameters?: HttpPortalsConfigurationGetByIdRequestParams,
|
|
437
|
+
observe?: 'response',
|
|
438
|
+
reportProgress?: boolean,
|
|
439
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
440
|
+
): Observable<HttpResponse<Portal>>;
|
|
441
|
+
public httpPortalsConfigurationGetById(
|
|
442
|
+
requestParameters?: HttpPortalsConfigurationGetByIdRequestParams,
|
|
443
|
+
observe?: 'events',
|
|
444
|
+
reportProgress?: boolean,
|
|
445
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
446
|
+
): Observable<HttpEvent<Portal>>;
|
|
447
|
+
public httpPortalsConfigurationGetById(
|
|
448
|
+
requestParameters?: HttpPortalsConfigurationGetByIdRequestParams,
|
|
449
|
+
observe: any = 'body',
|
|
450
|
+
reportProgress: boolean = false,
|
|
451
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
452
|
+
): Observable<any> {
|
|
453
|
+
const id = requestParameters?.id;
|
|
316
454
|
if (id === null || id === undefined) {
|
|
317
455
|
throw new Error('Required parameter id was null or undefined when calling httpPortalsConfigurationGetById.');
|
|
318
456
|
}
|
|
319
457
|
|
|
320
|
-
let
|
|
458
|
+
let localVarHeaders = this.defaultHeaders;
|
|
321
459
|
|
|
322
|
-
let
|
|
460
|
+
let localVarCredential: string | undefined;
|
|
323
461
|
// authentication (msal_auth) required
|
|
324
|
-
|
|
325
|
-
if (
|
|
326
|
-
|
|
462
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
463
|
+
if (localVarCredential) {
|
|
464
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
327
465
|
}
|
|
328
466
|
|
|
329
|
-
let
|
|
330
|
-
if (
|
|
467
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
468
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
331
469
|
// to determine the Accept header
|
|
332
470
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
333
|
-
|
|
471
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
334
472
|
}
|
|
335
|
-
if (
|
|
336
|
-
|
|
473
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
474
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
337
475
|
}
|
|
338
476
|
|
|
339
|
-
let
|
|
340
|
-
if (
|
|
341
|
-
|
|
477
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
478
|
+
if (localVarHttpContext === undefined) {
|
|
479
|
+
localVarHttpContext = new HttpContext();
|
|
342
480
|
}
|
|
343
481
|
|
|
344
|
-
|
|
482
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
483
|
+
if (localVarTransferCache === undefined) {
|
|
484
|
+
localVarTransferCache = true;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
488
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
489
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
490
|
+
responseType_ = 'text';
|
|
491
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
492
|
+
responseType_ = 'json';
|
|
493
|
+
} else {
|
|
494
|
+
responseType_ = 'blob';
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/config`;
|
|
499
|
+
return this.httpClient.request<Portal>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
500
|
+
context: localVarHttpContext,
|
|
345
501
|
responseType: <any>responseType_,
|
|
346
502
|
withCredentials: this.configuration.withCredentials,
|
|
347
|
-
headers:
|
|
503
|
+
headers: localVarHeaders,
|
|
348
504
|
observe: observe,
|
|
505
|
+
transferCache: localVarTransferCache,
|
|
349
506
|
reportProgress: reportProgress
|
|
350
507
|
});
|
|
351
508
|
}
|
|
352
509
|
|
|
353
510
|
/**
|
|
354
511
|
* This endpoint creates one portal entry in the database.
|
|
355
|
-
* @param
|
|
512
|
+
* @param requestParameters
|
|
356
513
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
357
514
|
* @param reportProgress flag to report request and response progress.
|
|
358
515
|
*/
|
|
359
|
-
public httpPortalsCreate(
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
516
|
+
public httpPortalsCreate(
|
|
517
|
+
requestParameters?: HttpPortalsCreateRequestParams,
|
|
518
|
+
observe?: 'body',
|
|
519
|
+
reportProgress?: boolean,
|
|
520
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
521
|
+
): Observable<Portal>;
|
|
522
|
+
public httpPortalsCreate(
|
|
523
|
+
requestParameters?: HttpPortalsCreateRequestParams,
|
|
524
|
+
observe?: 'response',
|
|
525
|
+
reportProgress?: boolean,
|
|
526
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
527
|
+
): Observable<HttpResponse<Portal>>;
|
|
528
|
+
public httpPortalsCreate(
|
|
529
|
+
requestParameters?: HttpPortalsCreateRequestParams,
|
|
530
|
+
observe?: 'events',
|
|
531
|
+
reportProgress?: boolean,
|
|
532
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
533
|
+
): Observable<HttpEvent<Portal>>;
|
|
534
|
+
public httpPortalsCreate(
|
|
535
|
+
requestParameters?: HttpPortalsCreateRequestParams,
|
|
536
|
+
observe: any = 'body',
|
|
537
|
+
reportProgress: boolean = false,
|
|
538
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
539
|
+
): Observable<any> {
|
|
540
|
+
const portal = requestParameters?.portal;
|
|
363
541
|
if (portal === null || portal === undefined) {
|
|
364
542
|
throw new Error('Required parameter portal was null or undefined when calling httpPortalsCreate.');
|
|
365
543
|
}
|
|
366
544
|
|
|
367
|
-
let
|
|
545
|
+
let localVarHeaders = this.defaultHeaders;
|
|
368
546
|
|
|
369
|
-
let
|
|
547
|
+
let localVarCredential: string | undefined;
|
|
370
548
|
// authentication (msal_auth) required
|
|
371
|
-
|
|
372
|
-
if (
|
|
373
|
-
|
|
549
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
550
|
+
if (localVarCredential) {
|
|
551
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
374
552
|
}
|
|
375
553
|
|
|
376
|
-
let
|
|
377
|
-
if (
|
|
554
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
555
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
378
556
|
// to determine the Accept header
|
|
379
557
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
380
|
-
|
|
558
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
381
559
|
}
|
|
382
|
-
if (
|
|
383
|
-
|
|
560
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
561
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
565
|
+
if (localVarHttpContext === undefined) {
|
|
566
|
+
localVarHttpContext = new HttpContext();
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
570
|
+
if (localVarTransferCache === undefined) {
|
|
571
|
+
localVarTransferCache = true;
|
|
384
572
|
}
|
|
385
573
|
|
|
386
574
|
// to determine the Content-Type header
|
|
387
575
|
const consumes: string[] = ['application/json'];
|
|
388
576
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
389
577
|
if (httpContentTypeSelected !== undefined) {
|
|
390
|
-
|
|
578
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
391
579
|
}
|
|
392
580
|
|
|
393
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
394
|
-
if (
|
|
395
|
-
|
|
581
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
582
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
583
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
584
|
+
responseType_ = 'text';
|
|
585
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
586
|
+
responseType_ = 'json';
|
|
587
|
+
} else {
|
|
588
|
+
responseType_ = 'blob';
|
|
589
|
+
}
|
|
396
590
|
}
|
|
397
591
|
|
|
398
|
-
|
|
592
|
+
let localVarPath = `/portals`;
|
|
593
|
+
return this.httpClient.request<Portal>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
594
|
+
context: localVarHttpContext,
|
|
595
|
+
body: portal,
|
|
399
596
|
responseType: <any>responseType_,
|
|
400
597
|
withCredentials: this.configuration.withCredentials,
|
|
401
|
-
headers:
|
|
598
|
+
headers: localVarHeaders,
|
|
402
599
|
observe: observe,
|
|
600
|
+
transferCache: localVarTransferCache,
|
|
403
601
|
reportProgress: reportProgress
|
|
404
602
|
});
|
|
405
603
|
}
|
|
406
604
|
|
|
407
605
|
/**
|
|
408
606
|
* This endpoint deletes a single portal.
|
|
409
|
-
* @param
|
|
607
|
+
* @param requestParameters
|
|
410
608
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
411
609
|
* @param reportProgress flag to report request and response progress.
|
|
412
610
|
*/
|
|
413
|
-
public httpPortalsDeleteById(
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
611
|
+
public httpPortalsDeleteById(
|
|
612
|
+
requestParameters?: HttpPortalsDeleteByIdRequestParams,
|
|
613
|
+
observe?: 'body',
|
|
614
|
+
reportProgress?: boolean,
|
|
615
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
616
|
+
): Observable<any>;
|
|
617
|
+
public httpPortalsDeleteById(
|
|
618
|
+
requestParameters?: HttpPortalsDeleteByIdRequestParams,
|
|
619
|
+
observe?: 'response',
|
|
620
|
+
reportProgress?: boolean,
|
|
621
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
622
|
+
): Observable<HttpResponse<any>>;
|
|
623
|
+
public httpPortalsDeleteById(
|
|
624
|
+
requestParameters?: HttpPortalsDeleteByIdRequestParams,
|
|
625
|
+
observe?: 'events',
|
|
626
|
+
reportProgress?: boolean,
|
|
627
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
628
|
+
): Observable<HttpEvent<any>>;
|
|
629
|
+
public httpPortalsDeleteById(
|
|
630
|
+
requestParameters?: HttpPortalsDeleteByIdRequestParams,
|
|
631
|
+
observe: any = 'body',
|
|
632
|
+
reportProgress: boolean = false,
|
|
633
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
634
|
+
): Observable<any> {
|
|
635
|
+
const id = requestParameters?.id;
|
|
417
636
|
if (id === null || id === undefined) {
|
|
418
637
|
throw new Error('Required parameter id was null or undefined when calling httpPortalsDeleteById.');
|
|
419
638
|
}
|
|
420
639
|
|
|
421
|
-
let
|
|
640
|
+
let localVarHeaders = this.defaultHeaders;
|
|
422
641
|
|
|
423
|
-
let
|
|
642
|
+
let localVarCredential: string | undefined;
|
|
424
643
|
// authentication (msal_auth) required
|
|
425
|
-
|
|
426
|
-
if (
|
|
427
|
-
|
|
644
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
645
|
+
if (localVarCredential) {
|
|
646
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
428
647
|
}
|
|
429
648
|
|
|
430
|
-
let
|
|
431
|
-
if (
|
|
649
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
650
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
432
651
|
// to determine the Accept header
|
|
433
652
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
434
|
-
|
|
653
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
435
654
|
}
|
|
436
|
-
if (
|
|
437
|
-
|
|
655
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
656
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
438
657
|
}
|
|
439
658
|
|
|
440
|
-
let
|
|
441
|
-
if (
|
|
442
|
-
|
|
659
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
660
|
+
if (localVarHttpContext === undefined) {
|
|
661
|
+
localVarHttpContext = new HttpContext();
|
|
443
662
|
}
|
|
444
663
|
|
|
445
|
-
|
|
664
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
665
|
+
if (localVarTransferCache === undefined) {
|
|
666
|
+
localVarTransferCache = true;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
670
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
671
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
672
|
+
responseType_ = 'text';
|
|
673
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
674
|
+
responseType_ = 'json';
|
|
675
|
+
} else {
|
|
676
|
+
responseType_ = 'blob';
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
681
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
682
|
+
context: localVarHttpContext,
|
|
446
683
|
responseType: <any>responseType_,
|
|
447
684
|
withCredentials: this.configuration.withCredentials,
|
|
448
|
-
headers:
|
|
685
|
+
headers: localVarHeaders,
|
|
449
686
|
observe: observe,
|
|
687
|
+
transferCache: localVarTransferCache,
|
|
450
688
|
reportProgress: reportProgress
|
|
451
689
|
});
|
|
452
690
|
}
|
|
@@ -456,86 +694,161 @@ export class PortalManagementService {
|
|
|
456
694
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
457
695
|
* @param reportProgress flag to report request and response progress.
|
|
458
696
|
*/
|
|
459
|
-
public httpPortalsGetAll(
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
697
|
+
public httpPortalsGetAll(
|
|
698
|
+
observe?: 'body',
|
|
699
|
+
reportProgress?: boolean,
|
|
700
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
701
|
+
): Observable<Array<Portal>>;
|
|
702
|
+
public httpPortalsGetAll(
|
|
703
|
+
observe?: 'response',
|
|
704
|
+
reportProgress?: boolean,
|
|
705
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
706
|
+
): Observable<HttpResponse<Array<Portal>>>;
|
|
707
|
+
public httpPortalsGetAll(
|
|
708
|
+
observe?: 'events',
|
|
709
|
+
reportProgress?: boolean,
|
|
710
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
711
|
+
): Observable<HttpEvent<Array<Portal>>>;
|
|
712
|
+
public httpPortalsGetAll(
|
|
713
|
+
observe: any = 'body',
|
|
714
|
+
reportProgress: boolean = false,
|
|
715
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
716
|
+
): Observable<any> {
|
|
717
|
+
let localVarHeaders = this.defaultHeaders;
|
|
464
718
|
|
|
465
|
-
let
|
|
719
|
+
let localVarCredential: string | undefined;
|
|
466
720
|
// authentication (msal_auth) required
|
|
467
|
-
|
|
468
|
-
if (
|
|
469
|
-
|
|
721
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
722
|
+
if (localVarCredential) {
|
|
723
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
470
724
|
}
|
|
471
725
|
|
|
472
|
-
let
|
|
473
|
-
if (
|
|
726
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
727
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
474
728
|
// to determine the Accept header
|
|
475
729
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
476
|
-
|
|
730
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
477
731
|
}
|
|
478
|
-
if (
|
|
479
|
-
|
|
732
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
733
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
480
734
|
}
|
|
481
735
|
|
|
482
|
-
let
|
|
483
|
-
if (
|
|
484
|
-
|
|
736
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
737
|
+
if (localVarHttpContext === undefined) {
|
|
738
|
+
localVarHttpContext = new HttpContext();
|
|
485
739
|
}
|
|
486
740
|
|
|
487
|
-
|
|
741
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
742
|
+
if (localVarTransferCache === undefined) {
|
|
743
|
+
localVarTransferCache = true;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
747
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
748
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
749
|
+
responseType_ = 'text';
|
|
750
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
751
|
+
responseType_ = 'json';
|
|
752
|
+
} else {
|
|
753
|
+
responseType_ = 'blob';
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
let localVarPath = `/portals`;
|
|
758
|
+
return this.httpClient.request<Array<Portal>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
759
|
+
context: localVarHttpContext,
|
|
488
760
|
responseType: <any>responseType_,
|
|
489
761
|
withCredentials: this.configuration.withCredentials,
|
|
490
|
-
headers:
|
|
762
|
+
headers: localVarHeaders,
|
|
491
763
|
observe: observe,
|
|
764
|
+
transferCache: localVarTransferCache,
|
|
492
765
|
reportProgress: reportProgress
|
|
493
766
|
});
|
|
494
767
|
}
|
|
495
768
|
|
|
496
769
|
/**
|
|
497
770
|
* This endpoint show the portal from database.
|
|
498
|
-
* @param
|
|
771
|
+
* @param requestParameters
|
|
499
772
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
500
773
|
* @param reportProgress flag to report request and response progress.
|
|
501
774
|
*/
|
|
502
|
-
public httpPortalsGetById(
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
775
|
+
public httpPortalsGetById(
|
|
776
|
+
requestParameters?: HttpPortalsGetByIdRequestParams,
|
|
777
|
+
observe?: 'body',
|
|
778
|
+
reportProgress?: boolean,
|
|
779
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
780
|
+
): Observable<Portal>;
|
|
781
|
+
public httpPortalsGetById(
|
|
782
|
+
requestParameters?: HttpPortalsGetByIdRequestParams,
|
|
783
|
+
observe?: 'response',
|
|
784
|
+
reportProgress?: boolean,
|
|
785
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
786
|
+
): Observable<HttpResponse<Portal>>;
|
|
787
|
+
public httpPortalsGetById(
|
|
788
|
+
requestParameters?: HttpPortalsGetByIdRequestParams,
|
|
789
|
+
observe?: 'events',
|
|
790
|
+
reportProgress?: boolean,
|
|
791
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
792
|
+
): Observable<HttpEvent<Portal>>;
|
|
793
|
+
public httpPortalsGetById(
|
|
794
|
+
requestParameters?: HttpPortalsGetByIdRequestParams,
|
|
795
|
+
observe: any = 'body',
|
|
796
|
+
reportProgress: boolean = false,
|
|
797
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
798
|
+
): Observable<any> {
|
|
799
|
+
const id = requestParameters?.id;
|
|
506
800
|
if (id === null || id === undefined) {
|
|
507
801
|
throw new Error('Required parameter id was null or undefined when calling httpPortalsGetById.');
|
|
508
802
|
}
|
|
509
803
|
|
|
510
|
-
let
|
|
804
|
+
let localVarHeaders = this.defaultHeaders;
|
|
511
805
|
|
|
512
|
-
let
|
|
806
|
+
let localVarCredential: string | undefined;
|
|
513
807
|
// authentication (msal_auth) required
|
|
514
|
-
|
|
515
|
-
if (
|
|
516
|
-
|
|
808
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
809
|
+
if (localVarCredential) {
|
|
810
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
517
811
|
}
|
|
518
812
|
|
|
519
|
-
let
|
|
520
|
-
if (
|
|
813
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
814
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
521
815
|
// to determine the Accept header
|
|
522
816
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
523
|
-
|
|
817
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
818
|
+
}
|
|
819
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
820
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
524
821
|
}
|
|
525
|
-
|
|
526
|
-
|
|
822
|
+
|
|
823
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
824
|
+
if (localVarHttpContext === undefined) {
|
|
825
|
+
localVarHttpContext = new HttpContext();
|
|
527
826
|
}
|
|
528
827
|
|
|
529
|
-
let
|
|
530
|
-
if (
|
|
531
|
-
|
|
828
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
829
|
+
if (localVarTransferCache === undefined) {
|
|
830
|
+
localVarTransferCache = true;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
834
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
835
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
836
|
+
responseType_ = 'text';
|
|
837
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
838
|
+
responseType_ = 'json';
|
|
839
|
+
} else {
|
|
840
|
+
responseType_ = 'blob';
|
|
841
|
+
}
|
|
532
842
|
}
|
|
533
843
|
|
|
534
|
-
|
|
844
|
+
let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
845
|
+
return this.httpClient.request<Portal>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
846
|
+
context: localVarHttpContext,
|
|
535
847
|
responseType: <any>responseType_,
|
|
536
848
|
withCredentials: this.configuration.withCredentials,
|
|
537
|
-
headers:
|
|
849
|
+
headers: localVarHeaders,
|
|
538
850
|
observe: observe,
|
|
851
|
+
transferCache: localVarTransferCache,
|
|
539
852
|
reportProgress: reportProgress
|
|
540
853
|
});
|
|
541
854
|
}
|