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