@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.
Files changed (141) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +29 -4
  4. package/api/assetIconRuleManagement.agravity.ts +344 -150
  5. package/api/assetManagement.agravity.ts +709 -389
  6. package/api/assetOperations.agravity.ts +1414 -650
  7. package/api/assetPublishing.agravity.ts +562 -255
  8. package/api/assetVersioning.agravity.ts +598 -278
  9. package/api/authenticationManagement.agravity.ts +731 -274
  10. package/api/collectionManagement.agravity.ts +618 -309
  11. package/api/collectionShareManagement.agravity.ts +262 -121
  12. package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
  13. package/api/collectionTypeManagement.agravity.ts +519 -250
  14. package/api/commentsManagement.agravity.ts +284 -90
  15. package/api/configurationManagement.agravity.ts +311 -128
  16. package/api/dashboardWidgetManagement.agravity.ts +342 -124
  17. package/api/dataImportExportManagement.agravity.ts +378 -148
  18. package/api/downloadFormatManagement.agravity.ts +450 -152
  19. package/api/downloadZip.agravity.ts +75 -30
  20. package/api/generalManagement.agravity.ts +374 -164
  21. package/api/helperTools.agravity.ts +804 -273
  22. package/api/historyEntryManagement.agravity.ts +75 -33
  23. package/api/iccProfileManagement.agravity.ts +64 -23
  24. package/api/listBlobs.agravity.ts +125 -47
  25. package/api/listQueues.agravity.ts +68 -24
  26. package/api/listTables.agravity.ts +68 -25
  27. package/api/permissionsManagement.agravity.ts +174 -77
  28. package/api/portalManagement.agravity.ts +511 -198
  29. package/api/publishing.agravity.ts +69 -38
  30. package/api/quickshareManagement.agravity.ts +349 -138
  31. package/api/savedSearchManagement.agravity.ts +205 -92
  32. package/api/searchManagement.agravity.ts +517 -297
  33. package/api/secureUpload.agravity.ts +325 -126
  34. package/api/signalRConnectionManagement.agravity.ts +175 -56
  35. package/api/staticDefinedListManagement.agravity.ts +342 -162
  36. package/api/stockImport.agravity.ts +138 -74
  37. package/api/structureImport.agravity.ts +68 -25
  38. package/api/translationManagement.agravity.ts +357 -206
  39. package/api/webAppData.agravity.ts +278 -88
  40. package/api/widgetLayoutManagement.agravity.ts +131 -47
  41. package/api/wordpressManagement.agravity.ts +152 -108
  42. package/api/workspaceManagement.agravity.ts +456 -197
  43. package/api.module.ts +0 -40
  44. package/configuration.ts +42 -0
  45. package/git_push.sh +3 -4
  46. package/index.ts +1 -0
  47. package/model/agravityErrorResponse.agravity.ts +3 -4
  48. package/model/agravityInfoResponse.agravity.ts +3 -4
  49. package/model/agravityUser.agravity.ts +16 -17
  50. package/model/agravityUserDto.agravity.ts +3 -4
  51. package/model/agravityVersion.agravity.ts +8 -9
  52. package/model/allWebAppData.agravity.ts +4 -5
  53. package/model/apiKeyResponse.agravity.ts +2 -3
  54. package/model/appConfigTableEntity.agravity.ts +8 -9
  55. package/model/artificialIntelligenceGroup.agravity.ts +3 -4
  56. package/model/asset.agravity.ts +22 -23
  57. package/model/assetAvailability.agravity.ts +1 -2
  58. package/model/assetBlob.agravity.ts +27 -28
  59. package/model/assetBulkUpdate.agravity.ts +2 -3
  60. package/model/assetCollectionLink.agravity.ts +2 -3
  61. package/model/assetIconRule.agravity.ts +17 -18
  62. package/model/assetIdFormat.agravity.ts +3 -4
  63. package/model/assetPageResult.agravity.ts +4 -5
  64. package/model/assetTextContent.agravity.ts +2 -3
  65. package/model/assetsOperationBody.agravity.ts +3 -4
  66. package/model/azSearchOptions.agravity.ts +8 -9
  67. package/model/azureIdentity.agravity.ts +4 -5
  68. package/model/blobInfoObj.agravity.ts +0 -1
  69. package/model/collTypeItem.agravity.ts +16 -17
  70. package/model/collTypeItemBlueprint.agravity.ts +12 -13
  71. package/model/collection.agravity.ts +15 -16
  72. package/model/collectionType.agravity.ts +14 -15
  73. package/model/collectionUDL.agravity.ts +4 -5
  74. package/model/collectionUDLListEntity.agravity.ts +9 -10
  75. package/model/collectionUDLReference.agravity.ts +3 -4
  76. package/model/comment.agravity.ts +9 -10
  77. package/model/createSftpUserResult.agravity.ts +2 -3
  78. package/model/dashboardWidget.agravity.ts +11 -12
  79. package/model/dataResult.agravity.ts +4 -5
  80. package/model/deletedEntities.agravity.ts +4 -5
  81. package/model/distZipResponse.agravity.ts +3 -4
  82. package/model/downloadFormat.agravity.ts +18 -16
  83. package/model/downloadObject.agravity.ts +16 -16
  84. package/model/downloadZipRequest.agravity.ts +9 -10
  85. package/model/dynamicImageOperation.agravity.ts +2 -3
  86. package/model/emailAddress.agravity.ts +2 -3
  87. package/model/entityId.agravity.ts +1 -2
  88. package/model/entityIdName.agravity.ts +3 -4
  89. package/model/entityTranslations.agravity.ts +2 -3
  90. package/model/excelExportTableEntity.agravity.ts +5 -5
  91. package/model/frontendAppConfig.agravity.ts +0 -1
  92. package/model/groupAllAppData.agravity.ts +5 -6
  93. package/model/historyEntry.agravity.ts +9 -10
  94. package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
  95. package/model/metadata.agravity.ts +3 -4
  96. package/model/models.ts +0 -1
  97. package/model/moveCollectionBody.agravity.ts +3 -4
  98. package/model/permissionChange.agravity.ts +1 -2
  99. package/model/permissionEntity.agravity.ts +1 -2
  100. package/model/permissionSetting.agravity.ts +8 -9
  101. package/model/portal.agravity.ts +20 -20
  102. package/model/portalLinks.agravity.ts +3 -4
  103. package/model/portalTheme.agravity.ts +6 -7
  104. package/model/portalZipRequest.agravity.ts +14 -15
  105. package/model/publishEntity.agravity.ts +9 -10
  106. package/model/publishedAsset.agravity.ts +12 -13
  107. package/model/quickShare.agravity.ts +12 -13
  108. package/model/quickShareFull.agravity.ts +15 -16
  109. package/model/sasToken.agravity.ts +6 -7
  110. package/model/savedSearch.agravity.ts +13 -14
  111. package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
  112. package/model/searchAdminIndexStatus.agravity.ts +3 -4
  113. package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
  114. package/model/searchAdminIndexerStatus.agravity.ts +4 -5
  115. package/model/searchAdminSkillStatus.agravity.ts +2 -3
  116. package/model/searchAdminStatistics.agravity.ts +2 -3
  117. package/model/searchAdminStatus.agravity.ts +4 -5
  118. package/model/searchFacet.agravity.ts +2 -3
  119. package/model/searchFacetEntity.agravity.ts +2 -3
  120. package/model/searchResult.agravity.ts +3 -4
  121. package/model/searchableItem.agravity.ts +3 -4
  122. package/model/secureUploadEntity.agravity.ts +10 -11
  123. package/model/sharedAllowedFormat.agravity.ts +2 -3
  124. package/model/sharedAsset.agravity.ts +5 -6
  125. package/model/sharedCollection.agravity.ts +15 -16
  126. package/model/sharedCollectionFull.agravity.ts +18 -19
  127. package/model/signalRConnectionInfo.agravity.ts +0 -1
  128. package/model/simpleAsset.agravity.ts +10 -11
  129. package/model/staticDefinedList.agravity.ts +12 -13
  130. package/model/translation.agravity.ts +2 -3
  131. package/model/translationRequest.agravity.ts +3 -4
  132. package/model/uiTutorials.agravity.ts +0 -1
  133. package/model/versionEntity.agravity.ts +9 -10
  134. package/model/versionedAsset.agravity.ts +5 -6
  135. package/model/whereParam.agravity.ts +0 -1
  136. package/model/widgetLayout.agravity.ts +8 -9
  137. package/model/widgetProperties.agravity.ts +6 -7
  138. package/model/workspace.agravity.ts +14 -15
  139. package/package.json +16 -17
  140. package/param.ts +44 -0
  141. package/model/portalLanguages.agravity.ts +0 -16
@@ -2,7 +2,6 @@
2
2
  * Agravity OpenAPI Documentation - Private Functions
3
3
  * <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 7.3.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
- import { AgravityErrorResponse } from '../model/models';
20
- import { Portal } from '../model/models';
21
- import { PortalZipRequest } from '../model/models';
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().substr(0, 10));
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 id The ID of the portal.
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(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<string>>;
93
- public httpPortalGetAllAssetIdsById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<string>>>;
94
- public httpPortalGetAllAssetIdsById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<string>>>;
95
- public httpPortalGetAllAssetIdsById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
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 headers = this.defaultHeaders;
173
+ let localVarHeaders = this.defaultHeaders;
101
174
 
102
- let credential: string | undefined;
175
+ let localVarCredential: string | undefined;
103
176
  // authentication (msal_auth) required
104
- credential = this.configuration.lookupCredential('msal_auth');
105
- if (credential) {
106
- headers = headers.set('Authorization', 'Bearer ' + credential);
177
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
178
+ if (localVarCredential) {
179
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
107
180
  }
108
181
 
109
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
110
- if (httpHeaderAcceptSelected === undefined) {
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
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
186
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
114
187
  }
115
- if (httpHeaderAcceptSelected !== undefined) {
116
- headers = headers.set('Accept', httpHeaderAcceptSelected);
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 responseType_: 'text' | 'json' = 'json';
120
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
121
- responseType_ = 'text';
197
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
198
+ if (localVarTransferCache === undefined) {
199
+ localVarTransferCache = true;
122
200
  }
123
201
 
124
- return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/portals/${encodeURIComponent(String(id))}/assetids`, {
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: 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 id The ID of the zip request collection.
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
- id: string,
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
- id: string,
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
- id: string,
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
- id: string,
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 headers = this.defaultHeaders;
265
+ let localVarHeaders = this.defaultHeaders;
181
266
  if (ayPassword !== undefined && ayPassword !== null) {
182
- headers = headers.set('ay-password', String(ayPassword));
267
+ localVarHeaders = localVarHeaders.set('ay-password', String(ayPassword));
183
268
  }
184
269
 
185
- let credential: string | undefined;
270
+ let localVarCredential: string | undefined;
186
271
  // authentication (msal_auth) required
187
- credential = this.configuration.lookupCredential('msal_auth');
188
- if (credential) {
189
- headers = headers.set('Authorization', 'Bearer ' + credential);
272
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
273
+ if (localVarCredential) {
274
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
190
275
  }
191
276
 
192
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
193
- if (httpHeaderAcceptSelected === undefined) {
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
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
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
- if (httpHeaderAcceptSelected !== undefined) {
199
- headers = headers.set('Accept', httpHeaderAcceptSelected);
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 (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
204
- responseType_ = 'text';
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
- return this.httpClient.get<PortalZipRequest>(`${this.configuration.basePath}/portals/${encodeURIComponent(String(id))}/zip/${encodeURIComponent(String(zipId))}`, {
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: 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 id The ID of the portal.
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
- id: string,
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
- id: string,
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
- id: string,
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
- id: string,
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 headers = this.defaultHeaders;
360
+ let localVarHeaders = this.defaultHeaders;
264
361
  if (ayPassword !== undefined && ayPassword !== null) {
265
- headers = headers.set('ay-password', String(ayPassword));
362
+ localVarHeaders = localVarHeaders.set('ay-password', String(ayPassword));
266
363
  }
267
364
 
268
- let credential: string | undefined;
365
+ let localVarCredential: string | undefined;
269
366
  // authentication (msal_auth) required
270
- credential = this.configuration.lookupCredential('msal_auth');
271
- if (credential) {
272
- headers = headers.set('Authorization', 'Bearer ' + credential);
367
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
368
+ if (localVarCredential) {
369
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
273
370
  }
274
371
 
275
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
276
- if (httpHeaderAcceptSelected === undefined) {
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
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
376
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
280
377
  }
281
- if (httpHeaderAcceptSelected !== undefined) {
282
- headers = headers.set('Accept', httpHeaderAcceptSelected);
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
- headers = headers.set('Content-Type', httpContentTypeSelected);
396
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
290
397
  }
291
398
 
292
- let responseType_: 'text' | 'json' = 'json';
293
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
294
- responseType_ = 'text';
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
- return this.httpClient.post<PortalZipRequest>(`${this.configuration.basePath}/portals/${encodeURIComponent(String(id))}/zip`, portalZipRequest, {
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: 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 id The ID of the portal.
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(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Portal>;
313
- public httpPortalsConfigurationGetById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Portal>>;
314
- public httpPortalsConfigurationGetById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Portal>>;
315
- public httpPortalsConfigurationGetById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
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 headers = this.defaultHeaders;
458
+ let localVarHeaders = this.defaultHeaders;
321
459
 
322
- let credential: string | undefined;
460
+ let localVarCredential: string | undefined;
323
461
  // authentication (msal_auth) required
324
- credential = this.configuration.lookupCredential('msal_auth');
325
- if (credential) {
326
- headers = headers.set('Authorization', 'Bearer ' + credential);
462
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
463
+ if (localVarCredential) {
464
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
327
465
  }
328
466
 
329
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
330
- if (httpHeaderAcceptSelected === undefined) {
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
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
471
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
334
472
  }
335
- if (httpHeaderAcceptSelected !== undefined) {
336
- headers = headers.set('Accept', httpHeaderAcceptSelected);
473
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
474
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
337
475
  }
338
476
 
339
- let responseType_: 'text' | 'json' = 'json';
340
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
341
- responseType_ = 'text';
477
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
478
+ if (localVarHttpContext === undefined) {
479
+ localVarHttpContext = new HttpContext();
342
480
  }
343
481
 
344
- return this.httpClient.get<Portal>(`${this.configuration.basePath}/portals/${encodeURIComponent(String(id))}/config`, {
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: 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 portal This endpoint creates an unique portal ID and adds the information to the database.
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(portal: Portal, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Portal>;
360
- public httpPortalsCreate(portal: Portal, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Portal>>;
361
- public httpPortalsCreate(portal: Portal, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Portal>>;
362
- public httpPortalsCreate(portal: Portal, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
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 headers = this.defaultHeaders;
545
+ let localVarHeaders = this.defaultHeaders;
368
546
 
369
- let credential: string | undefined;
547
+ let localVarCredential: string | undefined;
370
548
  // authentication (msal_auth) required
371
- credential = this.configuration.lookupCredential('msal_auth');
372
- if (credential) {
373
- headers = headers.set('Authorization', 'Bearer ' + credential);
549
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
550
+ if (localVarCredential) {
551
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
374
552
  }
375
553
 
376
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
377
- if (httpHeaderAcceptSelected === undefined) {
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
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
558
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
381
559
  }
382
- if (httpHeaderAcceptSelected !== undefined) {
383
- headers = headers.set('Accept', httpHeaderAcceptSelected);
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
- headers = headers.set('Content-Type', httpContentTypeSelected);
578
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
391
579
  }
392
580
 
393
- let responseType_: 'text' | 'json' = 'json';
394
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
395
- responseType_ = 'text';
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
- return this.httpClient.post<Portal>(`${this.configuration.basePath}/portals`, portal, {
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: 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 id The ID of the portal.
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(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
414
- public httpPortalsDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<any>>;
415
- public httpPortalsDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
416
- public httpPortalsDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
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 headers = this.defaultHeaders;
640
+ let localVarHeaders = this.defaultHeaders;
422
641
 
423
- let credential: string | undefined;
642
+ let localVarCredential: string | undefined;
424
643
  // authentication (msal_auth) required
425
- credential = this.configuration.lookupCredential('msal_auth');
426
- if (credential) {
427
- headers = headers.set('Authorization', 'Bearer ' + credential);
644
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
645
+ if (localVarCredential) {
646
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
428
647
  }
429
648
 
430
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
431
- if (httpHeaderAcceptSelected === undefined) {
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
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
653
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
435
654
  }
436
- if (httpHeaderAcceptSelected !== undefined) {
437
- headers = headers.set('Accept', httpHeaderAcceptSelected);
655
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
656
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
438
657
  }
439
658
 
440
- let responseType_: 'text' | 'json' = 'json';
441
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
442
- responseType_ = 'text';
659
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
660
+ if (localVarHttpContext === undefined) {
661
+ localVarHttpContext = new HttpContext();
443
662
  }
444
663
 
445
- return this.httpClient.delete<any>(`${this.configuration.basePath}/portals/${encodeURIComponent(String(id))}`, {
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: 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(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<Portal>>;
460
- public httpPortalsGetAll(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<Portal>>>;
461
- public httpPortalsGetAll(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<Portal>>>;
462
- public httpPortalsGetAll(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
463
- let headers = this.defaultHeaders;
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 credential: string | undefined;
719
+ let localVarCredential: string | undefined;
466
720
  // authentication (msal_auth) required
467
- credential = this.configuration.lookupCredential('msal_auth');
468
- if (credential) {
469
- headers = headers.set('Authorization', 'Bearer ' + credential);
721
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
722
+ if (localVarCredential) {
723
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
470
724
  }
471
725
 
472
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
473
- if (httpHeaderAcceptSelected === undefined) {
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
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
730
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
477
731
  }
478
- if (httpHeaderAcceptSelected !== undefined) {
479
- headers = headers.set('Accept', httpHeaderAcceptSelected);
732
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
733
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
480
734
  }
481
735
 
482
- let responseType_: 'text' | 'json' = 'json';
483
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
484
- responseType_ = 'text';
736
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
737
+ if (localVarHttpContext === undefined) {
738
+ localVarHttpContext = new HttpContext();
485
739
  }
486
740
 
487
- return this.httpClient.get<Array<Portal>>(`${this.configuration.basePath}/portals`, {
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: 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 id The ID of the portal.
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(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Portal>;
503
- public httpPortalsGetById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Portal>>;
504
- public httpPortalsGetById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Portal>>;
505
- public httpPortalsGetById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
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 headers = this.defaultHeaders;
804
+ let localVarHeaders = this.defaultHeaders;
511
805
 
512
- let credential: string | undefined;
806
+ let localVarCredential: string | undefined;
513
807
  // authentication (msal_auth) required
514
- credential = this.configuration.lookupCredential('msal_auth');
515
- if (credential) {
516
- headers = headers.set('Authorization', 'Bearer ' + credential);
808
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
809
+ if (localVarCredential) {
810
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
517
811
  }
518
812
 
519
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
520
- if (httpHeaderAcceptSelected === undefined) {
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
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
817
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
818
+ }
819
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
820
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
524
821
  }
525
- if (httpHeaderAcceptSelected !== undefined) {
526
- headers = headers.set('Accept', httpHeaderAcceptSelected);
822
+
823
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
824
+ if (localVarHttpContext === undefined) {
825
+ localVarHttpContext = new HttpContext();
527
826
  }
528
827
 
529
- let responseType_: 'text' | 'json' = 'json';
530
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
531
- responseType_ = 'text';
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
- return this.httpClient.get<Portal>(`${this.configuration.basePath}/portals/${encodeURIComponent(String(id))}`, {
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: headers,
849
+ headers: localVarHeaders,
538
850
  observe: observe,
851
+ transferCache: localVarTransferCache,
539
852
  reportProgress: reportProgress
540
853
  });
541
854
  }