@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.
- package/.openapi-generator/FILES +1 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/assetIconRuleManagement.agravity.ts +344 -150
- package/api/assetManagement.agravity.ts +709 -389
- package/api/assetOperations.agravity.ts +1414 -650
- package/api/assetPublishing.agravity.ts +562 -255
- package/api/assetVersioning.agravity.ts +598 -278
- package/api/authenticationManagement.agravity.ts +731 -274
- package/api/collectionManagement.agravity.ts +618 -309
- package/api/collectionShareManagement.agravity.ts +256 -121
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
- package/api/collectionTypeManagement.agravity.ts +519 -250
- package/api/commentsManagement.agravity.ts +284 -90
- package/api/configurationManagement.agravity.ts +311 -128
- package/api/dashboardWidgetManagement.agravity.ts +342 -124
- package/api/dataImportExportManagement.agravity.ts +378 -148
- package/api/downloadFormatManagement.agravity.ts +450 -152
- package/api/downloadZip.agravity.ts +75 -30
- package/api/generalManagement.agravity.ts +374 -164
- package/api/helperTools.agravity.ts +804 -273
- package/api/historyEntryManagement.agravity.ts +75 -33
- package/api/iccProfileManagement.agravity.ts +64 -23
- package/api/listBlobs.agravity.ts +125 -47
- package/api/listQueues.agravity.ts +68 -24
- package/api/listTables.agravity.ts +68 -25
- package/api/permissionsManagement.agravity.ts +174 -77
- package/api/portalManagement.agravity.ts +511 -198
- package/api/publishing.agravity.ts +69 -38
- package/api/quickshareManagement.agravity.ts +349 -138
- package/api/savedSearchManagement.agravity.ts +205 -92
- package/api/searchManagement.agravity.ts +517 -297
- package/api/secureUpload.agravity.ts +325 -126
- package/api/signalRConnectionManagement.agravity.ts +175 -56
- package/api/staticDefinedListManagement.agravity.ts +342 -162
- package/api/stockImport.agravity.ts +138 -74
- package/api/structureImport.agravity.ts +68 -25
- package/api/translationManagement.agravity.ts +357 -206
- package/api/webAppData.agravity.ts +278 -88
- package/api/widgetLayoutManagement.agravity.ts +131 -47
- package/api/wordpressManagement.agravity.ts +152 -108
- package/api/workspaceManagement.agravity.ts +456 -197
- package/api.module.ts +0 -40
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.agravity.ts +3 -4
- package/model/agravityInfoResponse.agravity.ts +3 -4
- package/model/agravityUser.agravity.ts +16 -17
- package/model/agravityUserDto.agravity.ts +3 -4
- package/model/agravityVersion.agravity.ts +8 -9
- package/model/allWebAppData.agravity.ts +4 -5
- package/model/apiKeyResponse.agravity.ts +2 -3
- package/model/appConfigTableEntity.agravity.ts +8 -9
- package/model/artificialIntelligenceGroup.agravity.ts +3 -4
- package/model/asset.agravity.ts +22 -23
- package/model/assetAvailability.agravity.ts +1 -2
- package/model/assetBlob.agravity.ts +27 -28
- package/model/assetBulkUpdate.agravity.ts +2 -3
- package/model/assetCollectionLink.agravity.ts +2 -3
- package/model/assetIconRule.agravity.ts +17 -18
- package/model/assetIdFormat.agravity.ts +3 -4
- package/model/assetPageResult.agravity.ts +4 -5
- package/model/assetTextContent.agravity.ts +2 -3
- package/model/assetsOperationBody.agravity.ts +3 -4
- package/model/azSearchOptions.agravity.ts +8 -9
- package/model/azureIdentity.agravity.ts +4 -5
- package/model/blobInfoObj.agravity.ts +0 -1
- package/model/collTypeItem.agravity.ts +16 -17
- package/model/collTypeItemBlueprint.agravity.ts +12 -13
- package/model/collection.agravity.ts +15 -16
- package/model/collectionType.agravity.ts +14 -15
- package/model/collectionUDL.agravity.ts +4 -5
- package/model/collectionUDLListEntity.agravity.ts +9 -10
- package/model/collectionUDLReference.agravity.ts +3 -4
- package/model/comment.agravity.ts +9 -10
- package/model/createSftpUserResult.agravity.ts +2 -3
- package/model/dashboardWidget.agravity.ts +11 -12
- package/model/dataResult.agravity.ts +4 -5
- package/model/deletedEntities.agravity.ts +4 -5
- package/model/distZipResponse.agravity.ts +3 -4
- package/model/downloadFormat.agravity.ts +19 -16
- package/model/downloadObject.agravity.ts +16 -16
- package/model/downloadZipRequest.agravity.ts +9 -10
- package/model/dynamicImageOperation.agravity.ts +2 -3
- package/model/emailAddress.agravity.ts +2 -3
- package/model/entityId.agravity.ts +1 -2
- package/model/entityIdName.agravity.ts +3 -4
- package/model/entityTranslations.agravity.ts +2 -3
- package/model/excelExportTableEntity.agravity.ts +5 -5
- package/model/frontendAppConfig.agravity.ts +0 -1
- package/model/groupAllAppData.agravity.ts +5 -6
- package/model/historyEntry.agravity.ts +9 -10
- package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
- package/model/metadata.agravity.ts +3 -4
- package/model/models.ts +0 -1
- package/model/moveCollectionBody.agravity.ts +3 -4
- package/model/permissionChange.agravity.ts +1 -2
- package/model/permissionEntity.agravity.ts +1 -2
- package/model/permissionSetting.agravity.ts +8 -9
- package/model/portal.agravity.ts +18 -20
- package/model/portalLinks.agravity.ts +3 -4
- package/model/portalTheme.agravity.ts +6 -7
- package/model/portalZipRequest.agravity.ts +14 -15
- package/model/publishEntity.agravity.ts +9 -10
- package/model/publishedAsset.agravity.ts +12 -13
- package/model/quickShare.agravity.ts +12 -13
- package/model/quickShareFull.agravity.ts +15 -16
- package/model/sasToken.agravity.ts +6 -7
- package/model/savedSearch.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.agravity.ts +2 -3
- package/model/searchAdminStatistics.agravity.ts +2 -3
- package/model/searchAdminStatus.agravity.ts +4 -5
- package/model/searchFacet.agravity.ts +2 -3
- package/model/searchFacetEntity.agravity.ts +2 -3
- package/model/searchResult.agravity.ts +3 -4
- package/model/searchableItem.agravity.ts +3 -4
- package/model/secureUploadEntity.agravity.ts +10 -11
- package/model/sharedAllowedFormat.agravity.ts +2 -3
- package/model/sharedAsset.agravity.ts +5 -6
- package/model/sharedCollection.agravity.ts +15 -16
- package/model/sharedCollectionFull.agravity.ts +18 -19
- package/model/signalRConnectionInfo.agravity.ts +0 -1
- package/model/simpleAsset.agravity.ts +10 -11
- package/model/staticDefinedList.agravity.ts +12 -13
- package/model/translation.agravity.ts +2 -3
- package/model/translationRequest.agravity.ts +3 -4
- package/model/uiTutorials.agravity.ts +0 -1
- package/model/versionEntity.agravity.ts +9 -10
- package/model/versionedAsset.agravity.ts +5 -6
- package/model/whereParam.agravity.ts +0 -1
- package/model/widgetLayout.agravity.ts +8 -9
- package/model/widgetProperties.agravity.ts +6 -7
- package/model/workspace.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- package/model/portalLanguages.agravity.ts +0 -16
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Agravity OpenAPI Documentation - Private Functions
|
|
3
3
|
* <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.3.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
|
-
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
import {
|
|
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 \"Accept-Language\" 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 \"Accept-Language\" 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 \"Accept-Language\" 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 \"Accept-Language\" 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().
|
|
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
|
|
90
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" 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
|
-
|
|
97
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
182
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
121
183
|
if (translations !== undefined && translations !== null) {
|
|
122
|
-
|
|
184
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
123
185
|
}
|
|
124
186
|
|
|
125
|
-
let
|
|
187
|
+
let localVarHeaders = this.defaultHeaders;
|
|
188
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
189
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
190
|
+
}
|
|
126
191
|
|
|
127
|
-
let
|
|
192
|
+
let localVarCredential: string | undefined;
|
|
128
193
|
// authentication (msal_auth) required
|
|
129
|
-
|
|
130
|
-
if (
|
|
131
|
-
|
|
194
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
195
|
+
if (localVarCredential) {
|
|
196
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
132
197
|
}
|
|
133
198
|
|
|
134
|
-
let
|
|
135
|
-
if (
|
|
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
|
-
|
|
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
|
-
|
|
141
|
-
|
|
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
|
-
|
|
223
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
149
224
|
}
|
|
150
225
|
|
|
151
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
152
|
-
if (
|
|
153
|
-
|
|
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
|
-
|
|
157
|
-
|
|
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:
|
|
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(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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
|
|
266
|
+
let localVarCredential: string | undefined;
|
|
178
267
|
// authentication (msal_auth) required
|
|
179
|
-
|
|
180
|
-
if (
|
|
181
|
-
|
|
268
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
269
|
+
if (localVarCredential) {
|
|
270
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
182
271
|
}
|
|
183
272
|
|
|
184
|
-
let
|
|
185
|
-
if (
|
|
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
|
-
|
|
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
|
-
|
|
191
|
-
|
|
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 (
|
|
196
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
|
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(
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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
|
|
351
|
+
let localVarHeaders = this.defaultHeaders;
|
|
223
352
|
|
|
224
|
-
let
|
|
353
|
+
let localVarCredential: string | undefined;
|
|
225
354
|
// authentication (msal_auth) required
|
|
226
|
-
|
|
227
|
-
if (
|
|
228
|
-
|
|
355
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
356
|
+
if (localVarCredential) {
|
|
357
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
229
358
|
}
|
|
230
359
|
|
|
231
|
-
let
|
|
232
|
-
if (
|
|
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
|
-
|
|
364
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
236
365
|
}
|
|
237
|
-
if (
|
|
238
|
-
|
|
366
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
367
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
239
368
|
}
|
|
240
369
|
|
|
241
|
-
let
|
|
242
|
-
if (
|
|
243
|
-
|
|
370
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
371
|
+
if (localVarHttpContext === undefined) {
|
|
372
|
+
localVarHttpContext = new HttpContext();
|
|
244
373
|
}
|
|
245
374
|
|
|
246
|
-
|
|
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:
|
|
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 \"A\").
|
|
257
|
-
* @param
|
|
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(
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
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
|
-
|
|
438
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
268
439
|
}
|
|
269
440
|
|
|
270
|
-
let
|
|
441
|
+
let localVarHeaders = this.defaultHeaders;
|
|
442
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
443
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
444
|
+
}
|
|
271
445
|
|
|
272
|
-
let
|
|
446
|
+
let localVarCredential: string | undefined;
|
|
273
447
|
// authentication (msal_auth) required
|
|
274
|
-
|
|
275
|
-
if (
|
|
276
|
-
|
|
448
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
449
|
+
if (localVarCredential) {
|
|
450
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
277
451
|
}
|
|
278
452
|
|
|
279
|
-
let
|
|
280
|
-
if (
|
|
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
|
-
|
|
457
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
284
458
|
}
|
|
285
|
-
if (
|
|
286
|
-
|
|
459
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
460
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
287
461
|
}
|
|
288
462
|
|
|
289
|
-
let
|
|
290
|
-
if (
|
|
291
|
-
|
|
463
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
464
|
+
if (localVarHttpContext === undefined) {
|
|
465
|
+
localVarHttpContext = new HttpContext();
|
|
292
466
|
}
|
|
293
467
|
|
|
294
|
-
|
|
295
|
-
|
|
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:
|
|
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
|
|
307
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" 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
|
-
|
|
314
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
|
534
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
332
535
|
if (translations !== undefined && translations !== null) {
|
|
333
|
-
|
|
536
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
334
537
|
}
|
|
335
538
|
|
|
336
|
-
let
|
|
539
|
+
let localVarHeaders = this.defaultHeaders;
|
|
540
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
541
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
542
|
+
}
|
|
337
543
|
|
|
338
|
-
let
|
|
544
|
+
let localVarCredential: string | undefined;
|
|
339
545
|
// authentication (msal_auth) required
|
|
340
|
-
|
|
341
|
-
if (
|
|
342
|
-
|
|
546
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
547
|
+
if (localVarCredential) {
|
|
548
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
343
549
|
}
|
|
344
550
|
|
|
345
|
-
let
|
|
346
|
-
if (
|
|
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
|
-
|
|
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
|
-
|
|
352
|
-
|
|
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 (
|
|
357
|
-
|
|
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
|
-
|
|
361
|
-
|
|
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:
|
|
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 \'items\' are set they are fully reset (like PUT).
|
|
372
|
-
* @param
|
|
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 \"Accept-Language\" 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
636
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
418
637
|
if (translations !== undefined && translations !== null) {
|
|
419
|
-
|
|
638
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
420
639
|
}
|
|
421
640
|
|
|
422
|
-
let
|
|
641
|
+
let localVarHeaders = this.defaultHeaders;
|
|
642
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
643
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
644
|
+
}
|
|
423
645
|
|
|
424
|
-
let
|
|
646
|
+
let localVarCredential: string | undefined;
|
|
425
647
|
// authentication (msal_auth) required
|
|
426
|
-
|
|
427
|
-
if (
|
|
428
|
-
|
|
648
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
649
|
+
if (localVarCredential) {
|
|
650
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
429
651
|
}
|
|
430
652
|
|
|
431
|
-
let
|
|
432
|
-
if (
|
|
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
|
-
|
|
657
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
436
658
|
}
|
|
437
|
-
if (
|
|
438
|
-
|
|
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
|
-
|
|
677
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
446
678
|
}
|
|
447
679
|
|
|
448
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
449
|
-
if (
|
|
450
|
-
|
|
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
|
-
|
|
454
|
-
|
|
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:
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
744
|
+
let localVarHeaders = this.defaultHeaders;
|
|
506
745
|
|
|
507
|
-
let
|
|
746
|
+
let localVarCredential: string | undefined;
|
|
508
747
|
// authentication (msal_auth) required
|
|
509
|
-
|
|
510
|
-
if (
|
|
511
|
-
|
|
748
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
749
|
+
if (localVarCredential) {
|
|
750
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
512
751
|
}
|
|
513
752
|
|
|
514
|
-
let
|
|
515
|
-
if (
|
|
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
|
-
|
|
757
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
519
758
|
}
|
|
520
|
-
if (
|
|
521
|
-
|
|
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
|
-
|
|
777
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
529
778
|
}
|
|
530
779
|
|
|
531
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
532
|
-
if (
|
|
533
|
-
|
|
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
|
-
|
|
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:
|
|
797
|
+
headers: localVarHeaders,
|
|
540
798
|
observe: observe,
|
|
799
|
+
transferCache: localVarTransferCache,
|
|
541
800
|
reportProgress: reportProgress
|
|
542
801
|
});
|
|
543
802
|
}
|