@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,33 @@
|
|
|
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 { AzureIdentity } from '../model/azureIdentity.agravity';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { PermissionSetting } from '../model/permissionSetting.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 HttpPermissionSettingsAddIdentitiesRequestParams {
|
|
32
|
+
/** This endpoint takes the AzureIdentity and saves it to the allowed permissions in the cosmos db. */
|
|
33
|
+
azureIdentity: Array<AzureIdentity>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface HttpPermissionSettingsPutRequestParams {
|
|
37
|
+
/** This endpoint overwrites the permission setting ID and adds the information to the database. */
|
|
38
|
+
permissionSetting: PermissionSetting;
|
|
39
|
+
}
|
|
40
|
+
|
|
27
41
|
@Injectable({
|
|
28
42
|
providedIn: 'root'
|
|
29
43
|
})
|
|
@@ -35,13 +49,18 @@ export class PermissionsManagementService {
|
|
|
35
49
|
|
|
36
50
|
constructor(
|
|
37
51
|
protected httpClient: HttpClient,
|
|
38
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
52
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
39
53
|
@Optional() configuration: AgravityConfiguration
|
|
40
54
|
) {
|
|
41
55
|
if (configuration) {
|
|
42
56
|
this.configuration = configuration;
|
|
43
57
|
}
|
|
44
58
|
if (typeof this.configuration.basePath !== 'string') {
|
|
59
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
60
|
+
if (firstBasePath != undefined) {
|
|
61
|
+
basePath = firstBasePath;
|
|
62
|
+
}
|
|
63
|
+
|
|
45
64
|
if (typeof basePath !== 'string') {
|
|
46
65
|
basePath = this.basePath;
|
|
47
66
|
}
|
|
@@ -50,6 +69,7 @@ export class PermissionsManagementService {
|
|
|
50
69
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
51
70
|
}
|
|
52
71
|
|
|
72
|
+
// @ts-ignore
|
|
53
73
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
54
74
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
55
75
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -69,7 +89,7 @@ export class PermissionsManagementService {
|
|
|
69
89
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
70
90
|
} else if (value instanceof Date) {
|
|
71
91
|
if (key != null) {
|
|
72
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
92
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
73
93
|
} else {
|
|
74
94
|
throw Error('key may not be null if value is Date');
|
|
75
95
|
}
|
|
@@ -86,74 +106,95 @@ export class PermissionsManagementService {
|
|
|
86
106
|
|
|
87
107
|
/**
|
|
88
108
|
* This endpoint creates one permission setting entry in the database.
|
|
89
|
-
* @param
|
|
109
|
+
* @param requestParameters
|
|
90
110
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
91
111
|
* @param reportProgress flag to report request and response progress.
|
|
92
112
|
*/
|
|
93
113
|
public httpPermissionSettingsAddIdentities(
|
|
94
|
-
|
|
114
|
+
requestParameters?: HttpPermissionSettingsAddIdentitiesRequestParams,
|
|
95
115
|
observe?: 'body',
|
|
96
116
|
reportProgress?: boolean,
|
|
97
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
117
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
98
118
|
): Observable<AgravityInfoResponse>;
|
|
99
119
|
public httpPermissionSettingsAddIdentities(
|
|
100
|
-
|
|
120
|
+
requestParameters?: HttpPermissionSettingsAddIdentitiesRequestParams,
|
|
101
121
|
observe?: 'response',
|
|
102
122
|
reportProgress?: boolean,
|
|
103
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
123
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
104
124
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
105
125
|
public httpPermissionSettingsAddIdentities(
|
|
106
|
-
|
|
126
|
+
requestParameters?: HttpPermissionSettingsAddIdentitiesRequestParams,
|
|
107
127
|
observe?: 'events',
|
|
108
128
|
reportProgress?: boolean,
|
|
109
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
129
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
110
130
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
111
131
|
public httpPermissionSettingsAddIdentities(
|
|
112
|
-
|
|
132
|
+
requestParameters?: HttpPermissionSettingsAddIdentitiesRequestParams,
|
|
113
133
|
observe: any = 'body',
|
|
114
134
|
reportProgress: boolean = false,
|
|
115
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
135
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
116
136
|
): Observable<any> {
|
|
137
|
+
const azureIdentity = requestParameters?.azureIdentity;
|
|
117
138
|
if (azureIdentity === null || azureIdentity === undefined) {
|
|
118
139
|
throw new Error('Required parameter azureIdentity was null or undefined when calling httpPermissionSettingsAddIdentities.');
|
|
119
140
|
}
|
|
120
141
|
|
|
121
|
-
let
|
|
142
|
+
let localVarHeaders = this.defaultHeaders;
|
|
122
143
|
|
|
123
|
-
let
|
|
144
|
+
let localVarCredential: string | undefined;
|
|
124
145
|
// authentication (msal_auth) required
|
|
125
|
-
|
|
126
|
-
if (
|
|
127
|
-
|
|
146
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
147
|
+
if (localVarCredential) {
|
|
148
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
128
149
|
}
|
|
129
150
|
|
|
130
|
-
let
|
|
131
|
-
if (
|
|
151
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
152
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
132
153
|
// to determine the Accept header
|
|
133
154
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
134
|
-
|
|
155
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
156
|
+
}
|
|
157
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
158
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
162
|
+
if (localVarHttpContext === undefined) {
|
|
163
|
+
localVarHttpContext = new HttpContext();
|
|
135
164
|
}
|
|
136
|
-
|
|
137
|
-
|
|
165
|
+
|
|
166
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
167
|
+
if (localVarTransferCache === undefined) {
|
|
168
|
+
localVarTransferCache = true;
|
|
138
169
|
}
|
|
139
170
|
|
|
140
171
|
// to determine the Content-Type header
|
|
141
172
|
const consumes: string[] = ['application/json'];
|
|
142
173
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
143
174
|
if (httpContentTypeSelected !== undefined) {
|
|
144
|
-
|
|
175
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
145
176
|
}
|
|
146
177
|
|
|
147
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
148
|
-
if (
|
|
149
|
-
|
|
178
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
179
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
180
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
181
|
+
responseType_ = 'text';
|
|
182
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
183
|
+
responseType_ = 'json';
|
|
184
|
+
} else {
|
|
185
|
+
responseType_ = 'blob';
|
|
186
|
+
}
|
|
150
187
|
}
|
|
151
188
|
|
|
152
|
-
|
|
189
|
+
let localVarPath = `/permissions/settings/identities`;
|
|
190
|
+
return this.httpClient.request<AgravityInfoResponse>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
191
|
+
context: localVarHttpContext,
|
|
192
|
+
body: azureIdentity,
|
|
153
193
|
responseType: <any>responseType_,
|
|
154
194
|
withCredentials: this.configuration.withCredentials,
|
|
155
|
-
headers:
|
|
195
|
+
headers: localVarHeaders,
|
|
156
196
|
observe: observe,
|
|
197
|
+
transferCache: localVarTransferCache,
|
|
157
198
|
reportProgress: reportProgress
|
|
158
199
|
});
|
|
159
200
|
}
|
|
@@ -163,113 +204,169 @@ export class PermissionsManagementService {
|
|
|
163
204
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
164
205
|
* @param reportProgress flag to report request and response progress.
|
|
165
206
|
*/
|
|
166
|
-
public httpPermissionSettingsGet(
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
207
|
+
public httpPermissionSettingsGet(
|
|
208
|
+
observe?: 'body',
|
|
209
|
+
reportProgress?: boolean,
|
|
210
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
211
|
+
): Observable<PermissionSetting>;
|
|
212
|
+
public httpPermissionSettingsGet(
|
|
213
|
+
observe?: 'response',
|
|
214
|
+
reportProgress?: boolean,
|
|
215
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
216
|
+
): Observable<HttpResponse<PermissionSetting>>;
|
|
217
|
+
public httpPermissionSettingsGet(
|
|
218
|
+
observe?: 'events',
|
|
219
|
+
reportProgress?: boolean,
|
|
220
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
221
|
+
): Observable<HttpEvent<PermissionSetting>>;
|
|
222
|
+
public httpPermissionSettingsGet(
|
|
223
|
+
observe: any = 'body',
|
|
224
|
+
reportProgress: boolean = false,
|
|
225
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
226
|
+
): Observable<any> {
|
|
227
|
+
let localVarHeaders = this.defaultHeaders;
|
|
171
228
|
|
|
172
|
-
let
|
|
229
|
+
let localVarCredential: string | undefined;
|
|
173
230
|
// authentication (msal_auth) required
|
|
174
|
-
|
|
175
|
-
if (
|
|
176
|
-
|
|
231
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
232
|
+
if (localVarCredential) {
|
|
233
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
177
234
|
}
|
|
178
235
|
|
|
179
|
-
let
|
|
180
|
-
if (
|
|
236
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
237
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
181
238
|
// to determine the Accept header
|
|
182
239
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
183
|
-
|
|
240
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
241
|
+
}
|
|
242
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
243
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
247
|
+
if (localVarHttpContext === undefined) {
|
|
248
|
+
localVarHttpContext = new HttpContext();
|
|
184
249
|
}
|
|
185
|
-
|
|
186
|
-
|
|
250
|
+
|
|
251
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
252
|
+
if (localVarTransferCache === undefined) {
|
|
253
|
+
localVarTransferCache = true;
|
|
187
254
|
}
|
|
188
255
|
|
|
189
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
190
|
-
if (
|
|
191
|
-
|
|
256
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
257
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
258
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
259
|
+
responseType_ = 'text';
|
|
260
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
261
|
+
responseType_ = 'json';
|
|
262
|
+
} else {
|
|
263
|
+
responseType_ = 'blob';
|
|
264
|
+
}
|
|
192
265
|
}
|
|
193
266
|
|
|
194
|
-
|
|
267
|
+
let localVarPath = `/permissions/settings`;
|
|
268
|
+
return this.httpClient.request<PermissionSetting>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
269
|
+
context: localVarHttpContext,
|
|
195
270
|
responseType: <any>responseType_,
|
|
196
271
|
withCredentials: this.configuration.withCredentials,
|
|
197
|
-
headers:
|
|
272
|
+
headers: localVarHeaders,
|
|
198
273
|
observe: observe,
|
|
274
|
+
transferCache: localVarTransferCache,
|
|
199
275
|
reportProgress: reportProgress
|
|
200
276
|
});
|
|
201
277
|
}
|
|
202
278
|
|
|
203
279
|
/**
|
|
204
280
|
* This endpoint creates one permission setting entry in the database.
|
|
205
|
-
* @param
|
|
281
|
+
* @param requestParameters
|
|
206
282
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
207
283
|
* @param reportProgress flag to report request and response progress.
|
|
208
284
|
*/
|
|
209
285
|
public httpPermissionSettingsPut(
|
|
210
|
-
|
|
286
|
+
requestParameters?: HttpPermissionSettingsPutRequestParams,
|
|
211
287
|
observe?: 'body',
|
|
212
288
|
reportProgress?: boolean,
|
|
213
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
289
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
214
290
|
): Observable<PermissionSetting>;
|
|
215
291
|
public httpPermissionSettingsPut(
|
|
216
|
-
|
|
292
|
+
requestParameters?: HttpPermissionSettingsPutRequestParams,
|
|
217
293
|
observe?: 'response',
|
|
218
294
|
reportProgress?: boolean,
|
|
219
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
295
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
220
296
|
): Observable<HttpResponse<PermissionSetting>>;
|
|
221
297
|
public httpPermissionSettingsPut(
|
|
222
|
-
|
|
298
|
+
requestParameters?: HttpPermissionSettingsPutRequestParams,
|
|
223
299
|
observe?: 'events',
|
|
224
300
|
reportProgress?: boolean,
|
|
225
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
301
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
226
302
|
): Observable<HttpEvent<PermissionSetting>>;
|
|
227
303
|
public httpPermissionSettingsPut(
|
|
228
|
-
|
|
304
|
+
requestParameters?: HttpPermissionSettingsPutRequestParams,
|
|
229
305
|
observe: any = 'body',
|
|
230
306
|
reportProgress: boolean = false,
|
|
231
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
307
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
232
308
|
): Observable<any> {
|
|
309
|
+
const permissionSetting = requestParameters?.permissionSetting;
|
|
233
310
|
if (permissionSetting === null || permissionSetting === undefined) {
|
|
234
311
|
throw new Error('Required parameter permissionSetting was null or undefined when calling httpPermissionSettingsPut.');
|
|
235
312
|
}
|
|
236
313
|
|
|
237
|
-
let
|
|
314
|
+
let localVarHeaders = this.defaultHeaders;
|
|
238
315
|
|
|
239
|
-
let
|
|
316
|
+
let localVarCredential: string | undefined;
|
|
240
317
|
// authentication (msal_auth) required
|
|
241
|
-
|
|
242
|
-
if (
|
|
243
|
-
|
|
318
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
319
|
+
if (localVarCredential) {
|
|
320
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
244
321
|
}
|
|
245
322
|
|
|
246
|
-
let
|
|
247
|
-
if (
|
|
323
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
324
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
248
325
|
// to determine the Accept header
|
|
249
326
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
250
|
-
|
|
327
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
251
328
|
}
|
|
252
|
-
if (
|
|
253
|
-
|
|
329
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
330
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
334
|
+
if (localVarHttpContext === undefined) {
|
|
335
|
+
localVarHttpContext = new HttpContext();
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
339
|
+
if (localVarTransferCache === undefined) {
|
|
340
|
+
localVarTransferCache = true;
|
|
254
341
|
}
|
|
255
342
|
|
|
256
343
|
// to determine the Content-Type header
|
|
257
344
|
const consumes: string[] = ['application/json'];
|
|
258
345
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
259
346
|
if (httpContentTypeSelected !== undefined) {
|
|
260
|
-
|
|
347
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
261
348
|
}
|
|
262
349
|
|
|
263
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
264
|
-
if (
|
|
265
|
-
|
|
350
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
351
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
352
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
353
|
+
responseType_ = 'text';
|
|
354
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
355
|
+
responseType_ = 'json';
|
|
356
|
+
} else {
|
|
357
|
+
responseType_ = 'blob';
|
|
358
|
+
}
|
|
266
359
|
}
|
|
267
360
|
|
|
268
|
-
|
|
361
|
+
let localVarPath = `/permissions/settings`;
|
|
362
|
+
return this.httpClient.request<PermissionSetting>('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
363
|
+
context: localVarHttpContext,
|
|
364
|
+
body: permissionSetting,
|
|
269
365
|
responseType: <any>responseType_,
|
|
270
366
|
withCredentials: this.configuration.withCredentials,
|
|
271
|
-
headers:
|
|
367
|
+
headers: localVarHeaders,
|
|
272
368
|
observe: observe,
|
|
369
|
+
transferCache: localVarTransferCache,
|
|
273
370
|
reportProgress: reportProgress
|
|
274
371
|
});
|
|
275
372
|
}
|