@agravity/private 7.3.0 → 8.0.0

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