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