@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,43 @@
|
|
|
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 { AllWebAppData } from '../model/allWebAppData.agravity';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { GroupAllAppData } from '../model/groupAllAppData.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 HttpGetDataCollectionTypeRequestParams {
|
|
32
|
+
/** The ID of the collection type for which this web data should be prepared. */
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface HttpGetWebAppDataRequestParams {
|
|
37
|
+
/** The ID of the collection for which this web data should be prepared. */
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface HttpPostDataCollectionTypeRequestParams {
|
|
42
|
+
/** The ID of the collection type for which this web data should be prepared. */
|
|
43
|
+
id: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface HttpPostWebAppDataRequestParams {
|
|
47
|
+
/** The ID of the collection for which this web data should be prepared. */
|
|
48
|
+
id: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
27
51
|
@Injectable({
|
|
28
52
|
providedIn: 'root'
|
|
29
53
|
})
|
|
@@ -35,13 +59,18 @@ export class WebAppDataService {
|
|
|
35
59
|
|
|
36
60
|
constructor(
|
|
37
61
|
protected httpClient: HttpClient,
|
|
38
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
62
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
39
63
|
@Optional() configuration: AgravityConfiguration
|
|
40
64
|
) {
|
|
41
65
|
if (configuration) {
|
|
42
66
|
this.configuration = configuration;
|
|
43
67
|
}
|
|
44
68
|
if (typeof this.configuration.basePath !== 'string') {
|
|
69
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
70
|
+
if (firstBasePath != undefined) {
|
|
71
|
+
basePath = firstBasePath;
|
|
72
|
+
}
|
|
73
|
+
|
|
45
74
|
if (typeof basePath !== 'string') {
|
|
46
75
|
basePath = this.basePath;
|
|
47
76
|
}
|
|
@@ -50,6 +79,7 @@ export class WebAppDataService {
|
|
|
50
79
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
51
80
|
}
|
|
52
81
|
|
|
82
|
+
// @ts-ignore
|
|
53
83
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
54
84
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
55
85
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -69,7 +99,7 @@ export class WebAppDataService {
|
|
|
69
99
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
70
100
|
} else if (value instanceof Date) {
|
|
71
101
|
if (key != null) {
|
|
72
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
102
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
73
103
|
} else {
|
|
74
104
|
throw Error('key may not be null if value is Date');
|
|
75
105
|
}
|
|
@@ -86,188 +116,348 @@ export class WebAppDataService {
|
|
|
86
116
|
|
|
87
117
|
/**
|
|
88
118
|
* This returns all collections and assets from the given collection type.
|
|
89
|
-
* @param
|
|
119
|
+
* @param requestParameters
|
|
90
120
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
91
121
|
* @param reportProgress flag to report request and response progress.
|
|
92
122
|
*/
|
|
93
|
-
public httpGetDataCollectionType(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
123
|
+
public httpGetDataCollectionType(
|
|
124
|
+
requestParameters?: HttpGetDataCollectionTypeRequestParams,
|
|
125
|
+
observe?: 'body',
|
|
126
|
+
reportProgress?: boolean,
|
|
127
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
128
|
+
): Observable<GroupAllAppData>;
|
|
129
|
+
public httpGetDataCollectionType(
|
|
130
|
+
requestParameters?: HttpGetDataCollectionTypeRequestParams,
|
|
131
|
+
observe?: 'response',
|
|
132
|
+
reportProgress?: boolean,
|
|
133
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
134
|
+
): Observable<HttpResponse<GroupAllAppData>>;
|
|
135
|
+
public httpGetDataCollectionType(
|
|
136
|
+
requestParameters?: HttpGetDataCollectionTypeRequestParams,
|
|
137
|
+
observe?: 'events',
|
|
138
|
+
reportProgress?: boolean,
|
|
139
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
140
|
+
): Observable<HttpEvent<GroupAllAppData>>;
|
|
141
|
+
public httpGetDataCollectionType(
|
|
142
|
+
requestParameters?: HttpGetDataCollectionTypeRequestParams,
|
|
143
|
+
observe: any = 'body',
|
|
144
|
+
reportProgress: boolean = false,
|
|
145
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
146
|
+
): Observable<any> {
|
|
147
|
+
const id = requestParameters?.id;
|
|
97
148
|
if (id === null || id === undefined) {
|
|
98
149
|
throw new Error('Required parameter id was null or undefined when calling httpGetDataCollectionType.');
|
|
99
150
|
}
|
|
100
151
|
|
|
101
|
-
let
|
|
152
|
+
let localVarHeaders = this.defaultHeaders;
|
|
102
153
|
|
|
103
|
-
let
|
|
154
|
+
let localVarCredential: string | undefined;
|
|
104
155
|
// authentication (msal_auth) required
|
|
105
|
-
|
|
106
|
-
if (
|
|
107
|
-
|
|
156
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
157
|
+
if (localVarCredential) {
|
|
158
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
108
159
|
}
|
|
109
160
|
|
|
110
|
-
let
|
|
111
|
-
if (
|
|
161
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
162
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
112
163
|
// to determine the Accept header
|
|
113
164
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
114
|
-
|
|
165
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
166
|
+
}
|
|
167
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
168
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
172
|
+
if (localVarHttpContext === undefined) {
|
|
173
|
+
localVarHttpContext = new HttpContext();
|
|
115
174
|
}
|
|
116
|
-
|
|
117
|
-
|
|
175
|
+
|
|
176
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
177
|
+
if (localVarTransferCache === undefined) {
|
|
178
|
+
localVarTransferCache = true;
|
|
118
179
|
}
|
|
119
180
|
|
|
120
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
121
|
-
if (
|
|
122
|
-
|
|
181
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
182
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
183
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
184
|
+
responseType_ = 'text';
|
|
185
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
186
|
+
responseType_ = 'json';
|
|
187
|
+
} else {
|
|
188
|
+
responseType_ = 'blob';
|
|
189
|
+
}
|
|
123
190
|
}
|
|
124
191
|
|
|
125
|
-
|
|
192
|
+
let localVarPath = `/data/collectiontype/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
193
|
+
return this.httpClient.request<GroupAllAppData>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
194
|
+
context: localVarHttpContext,
|
|
126
195
|
responseType: <any>responseType_,
|
|
127
196
|
withCredentials: this.configuration.withCredentials,
|
|
128
|
-
headers:
|
|
197
|
+
headers: localVarHeaders,
|
|
129
198
|
observe: observe,
|
|
199
|
+
transferCache: localVarTransferCache,
|
|
130
200
|
reportProgress: reportProgress
|
|
131
201
|
});
|
|
132
202
|
}
|
|
133
203
|
|
|
134
204
|
/**
|
|
135
205
|
* This lists all elements of a given collection which can be used by the web frontend. It includes structure and all assets. All coming live from database.
|
|
136
|
-
* @param
|
|
206
|
+
* @param requestParameters
|
|
137
207
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
138
208
|
* @param reportProgress flag to report request and response progress.
|
|
139
209
|
*/
|
|
140
|
-
public httpGetWebAppData(
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
210
|
+
public httpGetWebAppData(
|
|
211
|
+
requestParameters?: HttpGetWebAppDataRequestParams,
|
|
212
|
+
observe?: 'body',
|
|
213
|
+
reportProgress?: boolean,
|
|
214
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
215
|
+
): Observable<AllWebAppData>;
|
|
216
|
+
public httpGetWebAppData(
|
|
217
|
+
requestParameters?: HttpGetWebAppDataRequestParams,
|
|
218
|
+
observe?: 'response',
|
|
219
|
+
reportProgress?: boolean,
|
|
220
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
221
|
+
): Observable<HttpResponse<AllWebAppData>>;
|
|
222
|
+
public httpGetWebAppData(
|
|
223
|
+
requestParameters?: HttpGetWebAppDataRequestParams,
|
|
224
|
+
observe?: 'events',
|
|
225
|
+
reportProgress?: boolean,
|
|
226
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
227
|
+
): Observable<HttpEvent<AllWebAppData>>;
|
|
228
|
+
public httpGetWebAppData(
|
|
229
|
+
requestParameters?: HttpGetWebAppDataRequestParams,
|
|
230
|
+
observe: any = 'body',
|
|
231
|
+
reportProgress: boolean = false,
|
|
232
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
233
|
+
): Observable<any> {
|
|
234
|
+
const id = requestParameters?.id;
|
|
144
235
|
if (id === null || id === undefined) {
|
|
145
236
|
throw new Error('Required parameter id was null or undefined when calling httpGetWebAppData.');
|
|
146
237
|
}
|
|
147
238
|
|
|
148
|
-
let
|
|
239
|
+
let localVarHeaders = this.defaultHeaders;
|
|
149
240
|
|
|
150
|
-
let
|
|
241
|
+
let localVarCredential: string | undefined;
|
|
151
242
|
// authentication (msal_auth) required
|
|
152
|
-
|
|
153
|
-
if (
|
|
154
|
-
|
|
243
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
244
|
+
if (localVarCredential) {
|
|
245
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
155
246
|
}
|
|
156
247
|
|
|
157
|
-
let
|
|
158
|
-
if (
|
|
248
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
249
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
159
250
|
// to determine the Accept header
|
|
160
251
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
161
|
-
|
|
252
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
253
|
+
}
|
|
254
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
255
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
162
256
|
}
|
|
163
|
-
|
|
164
|
-
|
|
257
|
+
|
|
258
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
259
|
+
if (localVarHttpContext === undefined) {
|
|
260
|
+
localVarHttpContext = new HttpContext();
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
264
|
+
if (localVarTransferCache === undefined) {
|
|
265
|
+
localVarTransferCache = true;
|
|
165
266
|
}
|
|
166
267
|
|
|
167
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
168
|
-
if (
|
|
169
|
-
|
|
268
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
269
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
270
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
271
|
+
responseType_ = 'text';
|
|
272
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
273
|
+
responseType_ = 'json';
|
|
274
|
+
} else {
|
|
275
|
+
responseType_ = 'blob';
|
|
276
|
+
}
|
|
170
277
|
}
|
|
171
278
|
|
|
172
|
-
|
|
279
|
+
let localVarPath = `/webappdata/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
280
|
+
return this.httpClient.request<AllWebAppData>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
281
|
+
context: localVarHttpContext,
|
|
173
282
|
responseType: <any>responseType_,
|
|
174
283
|
withCredentials: this.configuration.withCredentials,
|
|
175
|
-
headers:
|
|
284
|
+
headers: localVarHeaders,
|
|
176
285
|
observe: observe,
|
|
286
|
+
transferCache: localVarTransferCache,
|
|
177
287
|
reportProgress: reportProgress
|
|
178
288
|
});
|
|
179
289
|
}
|
|
180
290
|
|
|
181
291
|
/**
|
|
182
292
|
* This triggers an async action to publish the whole structure and puts it to public blob storage with collection type id with extension json.
|
|
183
|
-
* @param
|
|
293
|
+
* @param requestParameters
|
|
184
294
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
185
295
|
* @param reportProgress flag to report request and response progress.
|
|
186
296
|
*/
|
|
187
|
-
public httpPostDataCollectionType(
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
297
|
+
public httpPostDataCollectionType(
|
|
298
|
+
requestParameters?: HttpPostDataCollectionTypeRequestParams,
|
|
299
|
+
observe?: 'body',
|
|
300
|
+
reportProgress?: boolean,
|
|
301
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
302
|
+
): Observable<AgravityInfoResponse>;
|
|
303
|
+
public httpPostDataCollectionType(
|
|
304
|
+
requestParameters?: HttpPostDataCollectionTypeRequestParams,
|
|
305
|
+
observe?: 'response',
|
|
306
|
+
reportProgress?: boolean,
|
|
307
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
308
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
309
|
+
public httpPostDataCollectionType(
|
|
310
|
+
requestParameters?: HttpPostDataCollectionTypeRequestParams,
|
|
311
|
+
observe?: 'events',
|
|
312
|
+
reportProgress?: boolean,
|
|
313
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
314
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
315
|
+
public httpPostDataCollectionType(
|
|
316
|
+
requestParameters?: HttpPostDataCollectionTypeRequestParams,
|
|
317
|
+
observe: any = 'body',
|
|
318
|
+
reportProgress: boolean = false,
|
|
319
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
320
|
+
): Observable<any> {
|
|
321
|
+
const id = requestParameters?.id;
|
|
191
322
|
if (id === null || id === undefined) {
|
|
192
323
|
throw new Error('Required parameter id was null or undefined when calling httpPostDataCollectionType.');
|
|
193
324
|
}
|
|
194
325
|
|
|
195
|
-
let
|
|
326
|
+
let localVarHeaders = this.defaultHeaders;
|
|
196
327
|
|
|
197
|
-
let
|
|
328
|
+
let localVarCredential: string | undefined;
|
|
198
329
|
// authentication (msal_auth) required
|
|
199
|
-
|
|
200
|
-
if (
|
|
201
|
-
|
|
330
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
331
|
+
if (localVarCredential) {
|
|
332
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
202
333
|
}
|
|
203
334
|
|
|
204
|
-
let
|
|
205
|
-
if (
|
|
335
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
336
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
206
337
|
// to determine the Accept header
|
|
207
338
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
208
|
-
|
|
339
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
209
340
|
}
|
|
210
|
-
if (
|
|
211
|
-
|
|
341
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
342
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
212
343
|
}
|
|
213
344
|
|
|
214
|
-
let
|
|
215
|
-
if (
|
|
216
|
-
|
|
345
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
346
|
+
if (localVarHttpContext === undefined) {
|
|
347
|
+
localVarHttpContext = new HttpContext();
|
|
217
348
|
}
|
|
218
349
|
|
|
219
|
-
|
|
350
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
351
|
+
if (localVarTransferCache === undefined) {
|
|
352
|
+
localVarTransferCache = true;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
356
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
357
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
358
|
+
responseType_ = 'text';
|
|
359
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
360
|
+
responseType_ = 'json';
|
|
361
|
+
} else {
|
|
362
|
+
responseType_ = 'blob';
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
let localVarPath = `/data/collectiontype/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
367
|
+
return this.httpClient.request<AgravityInfoResponse>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
368
|
+
context: localVarHttpContext,
|
|
220
369
|
responseType: <any>responseType_,
|
|
221
370
|
withCredentials: this.configuration.withCredentials,
|
|
222
|
-
headers:
|
|
371
|
+
headers: localVarHeaders,
|
|
223
372
|
observe: observe,
|
|
373
|
+
transferCache: localVarTransferCache,
|
|
224
374
|
reportProgress: reportProgress
|
|
225
375
|
});
|
|
226
376
|
}
|
|
227
377
|
|
|
228
378
|
/**
|
|
229
379
|
* Takes whole structure and puts it to public blob storage with collection id with extension json.
|
|
230
|
-
* @param
|
|
380
|
+
* @param requestParameters
|
|
231
381
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
232
382
|
* @param reportProgress flag to report request and response progress.
|
|
233
383
|
*/
|
|
234
|
-
public httpPostWebAppData(
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
384
|
+
public httpPostWebAppData(
|
|
385
|
+
requestParameters?: HttpPostWebAppDataRequestParams,
|
|
386
|
+
observe?: 'body',
|
|
387
|
+
reportProgress?: boolean,
|
|
388
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
389
|
+
): Observable<AgravityInfoResponse>;
|
|
390
|
+
public httpPostWebAppData(
|
|
391
|
+
requestParameters?: HttpPostWebAppDataRequestParams,
|
|
392
|
+
observe?: 'response',
|
|
393
|
+
reportProgress?: boolean,
|
|
394
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
395
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
396
|
+
public httpPostWebAppData(
|
|
397
|
+
requestParameters?: HttpPostWebAppDataRequestParams,
|
|
398
|
+
observe?: 'events',
|
|
399
|
+
reportProgress?: boolean,
|
|
400
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
401
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
402
|
+
public httpPostWebAppData(
|
|
403
|
+
requestParameters?: HttpPostWebAppDataRequestParams,
|
|
404
|
+
observe: any = 'body',
|
|
405
|
+
reportProgress: boolean = false,
|
|
406
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
407
|
+
): Observable<any> {
|
|
408
|
+
const id = requestParameters?.id;
|
|
238
409
|
if (id === null || id === undefined) {
|
|
239
410
|
throw new Error('Required parameter id was null or undefined when calling httpPostWebAppData.');
|
|
240
411
|
}
|
|
241
412
|
|
|
242
|
-
let
|
|
413
|
+
let localVarHeaders = this.defaultHeaders;
|
|
243
414
|
|
|
244
|
-
let
|
|
415
|
+
let localVarCredential: string | undefined;
|
|
245
416
|
// authentication (msal_auth) required
|
|
246
|
-
|
|
247
|
-
if (
|
|
248
|
-
|
|
417
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
418
|
+
if (localVarCredential) {
|
|
419
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
249
420
|
}
|
|
250
421
|
|
|
251
|
-
let
|
|
252
|
-
if (
|
|
422
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
423
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
253
424
|
// to determine the Accept header
|
|
254
425
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
255
|
-
|
|
426
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
427
|
+
}
|
|
428
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
429
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
433
|
+
if (localVarHttpContext === undefined) {
|
|
434
|
+
localVarHttpContext = new HttpContext();
|
|
256
435
|
}
|
|
257
|
-
|
|
258
|
-
|
|
436
|
+
|
|
437
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
438
|
+
if (localVarTransferCache === undefined) {
|
|
439
|
+
localVarTransferCache = true;
|
|
259
440
|
}
|
|
260
441
|
|
|
261
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
262
|
-
if (
|
|
263
|
-
|
|
442
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
443
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
444
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
445
|
+
responseType_ = 'text';
|
|
446
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
447
|
+
responseType_ = 'json';
|
|
448
|
+
} else {
|
|
449
|
+
responseType_ = 'blob';
|
|
450
|
+
}
|
|
264
451
|
}
|
|
265
452
|
|
|
266
|
-
|
|
453
|
+
let localVarPath = `/webappdata/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
454
|
+
return this.httpClient.request<AgravityInfoResponse>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
455
|
+
context: localVarHttpContext,
|
|
267
456
|
responseType: <any>responseType_,
|
|
268
457
|
withCredentials: this.configuration.withCredentials,
|
|
269
|
-
headers:
|
|
458
|
+
headers: localVarHeaders,
|
|
270
459
|
observe: observe,
|
|
460
|
+
transferCache: localVarTransferCache,
|
|
271
461
|
reportProgress: reportProgress
|
|
272
462
|
});
|
|
273
463
|
}
|