@agravity/private 7.3.1 → 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 +18 -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.1
|
|
6
5
|
* Contact: office@agravity.io
|
|
7
6
|
*
|
|
8
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,15 +11,24 @@
|
|
|
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
|
-
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { HistoryEntry } from '../model/historyEntry.agravity';
|
|
20
20
|
|
|
21
|
+
// @ts-ignore
|
|
21
22
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
22
23
|
import { AgravityConfiguration } from '../configuration';
|
|
23
24
|
|
|
25
|
+
export interface HttpHistoryEntriesGetByIdRequestParams {
|
|
26
|
+
/** The ID of the entity of which the history should be fetched. */
|
|
27
|
+
id: string;
|
|
28
|
+
/** The fields (comma separate) which should be included in the result. (i.e. collections on asset) */
|
|
29
|
+
include?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
24
32
|
@Injectable({
|
|
25
33
|
providedIn: 'root'
|
|
26
34
|
})
|
|
@@ -32,13 +40,18 @@ export class HistoryEntryManagementService {
|
|
|
32
40
|
|
|
33
41
|
constructor(
|
|
34
42
|
protected httpClient: HttpClient,
|
|
35
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
43
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
36
44
|
@Optional() configuration: AgravityConfiguration
|
|
37
45
|
) {
|
|
38
46
|
if (configuration) {
|
|
39
47
|
this.configuration = configuration;
|
|
40
48
|
}
|
|
41
49
|
if (typeof this.configuration.basePath !== 'string') {
|
|
50
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
51
|
+
if (firstBasePath != undefined) {
|
|
52
|
+
basePath = firstBasePath;
|
|
53
|
+
}
|
|
54
|
+
|
|
42
55
|
if (typeof basePath !== 'string') {
|
|
43
56
|
basePath = this.basePath;
|
|
44
57
|
}
|
|
@@ -47,6 +60,7 @@ export class HistoryEntryManagementService {
|
|
|
47
60
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
48
61
|
}
|
|
49
62
|
|
|
63
|
+
// @ts-ignore
|
|
50
64
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
51
65
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
52
66
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -66,7 +80,7 @@ export class HistoryEntryManagementService {
|
|
|
66
80
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
67
81
|
} else if (value instanceof Date) {
|
|
68
82
|
if (key != null) {
|
|
69
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
83
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
70
84
|
} else {
|
|
71
85
|
throw Error('key may not be null if value is Date');
|
|
72
86
|
}
|
|
@@ -83,66 +97,94 @@ export class HistoryEntryManagementService {
|
|
|
83
97
|
|
|
84
98
|
/**
|
|
85
99
|
* This endpoint gets the complete history of an entity.
|
|
86
|
-
* @param
|
|
87
|
-
* @param include The fields (comma separate) which should be included in the result. (i.e. collections on asset)
|
|
100
|
+
* @param requestParameters
|
|
88
101
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
89
102
|
* @param reportProgress flag to report request and response progress.
|
|
90
103
|
*/
|
|
91
|
-
public httpHistoryEntriesGetById(id: string, include?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<HistoryEntry>>;
|
|
92
104
|
public httpHistoryEntriesGetById(
|
|
93
|
-
|
|
94
|
-
|
|
105
|
+
requestParameters?: HttpHistoryEntriesGetByIdRequestParams,
|
|
106
|
+
observe?: 'body',
|
|
107
|
+
reportProgress?: boolean,
|
|
108
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
109
|
+
): Observable<Array<HistoryEntry>>;
|
|
110
|
+
public httpHistoryEntriesGetById(
|
|
111
|
+
requestParameters?: HttpHistoryEntriesGetByIdRequestParams,
|
|
95
112
|
observe?: 'response',
|
|
96
113
|
reportProgress?: boolean,
|
|
97
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
114
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
98
115
|
): Observable<HttpResponse<Array<HistoryEntry>>>;
|
|
99
116
|
public httpHistoryEntriesGetById(
|
|
100
|
-
|
|
101
|
-
include?: string,
|
|
117
|
+
requestParameters?: HttpHistoryEntriesGetByIdRequestParams,
|
|
102
118
|
observe?: 'events',
|
|
103
119
|
reportProgress?: boolean,
|
|
104
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
120
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
105
121
|
): Observable<HttpEvent<Array<HistoryEntry>>>;
|
|
106
|
-
public httpHistoryEntriesGetById(
|
|
122
|
+
public httpHistoryEntriesGetById(
|
|
123
|
+
requestParameters?: HttpHistoryEntriesGetByIdRequestParams,
|
|
124
|
+
observe: any = 'body',
|
|
125
|
+
reportProgress: boolean = false,
|
|
126
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
127
|
+
): Observable<any> {
|
|
128
|
+
const id = requestParameters?.id;
|
|
107
129
|
if (id === null || id === undefined) {
|
|
108
130
|
throw new Error('Required parameter id was null or undefined when calling httpHistoryEntriesGetById.');
|
|
109
131
|
}
|
|
132
|
+
const include = requestParameters?.include;
|
|
110
133
|
|
|
111
|
-
let
|
|
134
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
112
135
|
if (include !== undefined && include !== null) {
|
|
113
|
-
|
|
136
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>include, 'include');
|
|
114
137
|
}
|
|
115
138
|
|
|
116
|
-
let
|
|
139
|
+
let localVarHeaders = this.defaultHeaders;
|
|
117
140
|
|
|
118
|
-
let
|
|
141
|
+
let localVarCredential: string | undefined;
|
|
119
142
|
// authentication (msal_auth) required
|
|
120
|
-
|
|
121
|
-
if (
|
|
122
|
-
|
|
143
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
144
|
+
if (localVarCredential) {
|
|
145
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
123
146
|
}
|
|
124
147
|
|
|
125
|
-
let
|
|
126
|
-
if (
|
|
148
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
149
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
127
150
|
// to determine the Accept header
|
|
128
151
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
129
|
-
|
|
152
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
130
153
|
}
|
|
131
|
-
if (
|
|
132
|
-
|
|
154
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
155
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
133
156
|
}
|
|
134
157
|
|
|
135
|
-
let
|
|
136
|
-
if (
|
|
137
|
-
|
|
158
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
159
|
+
if (localVarHttpContext === undefined) {
|
|
160
|
+
localVarHttpContext = new HttpContext();
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
164
|
+
if (localVarTransferCache === undefined) {
|
|
165
|
+
localVarTransferCache = true;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
169
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
170
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
171
|
+
responseType_ = 'text';
|
|
172
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
173
|
+
responseType_ = 'json';
|
|
174
|
+
} else {
|
|
175
|
+
responseType_ = 'blob';
|
|
176
|
+
}
|
|
138
177
|
}
|
|
139
178
|
|
|
140
|
-
|
|
141
|
-
|
|
179
|
+
let localVarPath = `/history/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
180
|
+
return this.httpClient.request<Array<HistoryEntry>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
181
|
+
context: localVarHttpContext,
|
|
182
|
+
params: localVarQueryParameters,
|
|
142
183
|
responseType: <any>responseType_,
|
|
143
184
|
withCredentials: this.configuration.withCredentials,
|
|
144
|
-
headers:
|
|
185
|
+
headers: localVarHeaders,
|
|
145
186
|
observe: observe,
|
|
187
|
+
transferCache: localVarTransferCache,
|
|
146
188
|
reportProgress: reportProgress
|
|
147
189
|
});
|
|
148
190
|
}
|
|
@@ -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.1
|
|
6
5
|
* Contact: office@agravity.io
|
|
7
6
|
*
|
|
8
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,10 +11,11 @@
|
|
|
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
|
|
|
18
|
+
// @ts-ignore
|
|
19
19
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
20
20
|
import { AgravityConfiguration } from '../configuration';
|
|
21
21
|
|
|
@@ -30,13 +30,18 @@ export class IccProfileManagementService {
|
|
|
30
30
|
|
|
31
31
|
constructor(
|
|
32
32
|
protected httpClient: HttpClient,
|
|
33
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
33
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
34
34
|
@Optional() configuration: AgravityConfiguration
|
|
35
35
|
) {
|
|
36
36
|
if (configuration) {
|
|
37
37
|
this.configuration = configuration;
|
|
38
38
|
}
|
|
39
39
|
if (typeof this.configuration.basePath !== 'string') {
|
|
40
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
41
|
+
if (firstBasePath != undefined) {
|
|
42
|
+
basePath = firstBasePath;
|
|
43
|
+
}
|
|
44
|
+
|
|
40
45
|
if (typeof basePath !== 'string') {
|
|
41
46
|
basePath = this.basePath;
|
|
42
47
|
}
|
|
@@ -45,6 +50,7 @@ export class IccProfileManagementService {
|
|
|
45
50
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
46
51
|
}
|
|
47
52
|
|
|
53
|
+
// @ts-ignore
|
|
48
54
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
49
55
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
50
56
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -64,7 +70,7 @@ export class IccProfileManagementService {
|
|
|
64
70
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
65
71
|
} else if (value instanceof Date) {
|
|
66
72
|
if (key != null) {
|
|
67
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
73
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
68
74
|
} else {
|
|
69
75
|
throw Error('key may not be null if value is Date');
|
|
70
76
|
}
|
|
@@ -84,39 +90,74 @@ export class IccProfileManagementService {
|
|
|
84
90
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
85
91
|
* @param reportProgress flag to report request and response progress.
|
|
86
92
|
*/
|
|
87
|
-
public httpIccProfilesGetAll(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
public httpIccProfilesGetAll(
|
|
94
|
+
observe?: 'body',
|
|
95
|
+
reportProgress?: boolean,
|
|
96
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
97
|
+
): Observable<Array<string>>;
|
|
98
|
+
public httpIccProfilesGetAll(
|
|
99
|
+
observe?: 'response',
|
|
100
|
+
reportProgress?: boolean,
|
|
101
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
102
|
+
): Observable<HttpResponse<Array<string>>>;
|
|
103
|
+
public httpIccProfilesGetAll(
|
|
104
|
+
observe?: 'events',
|
|
105
|
+
reportProgress?: boolean,
|
|
106
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
107
|
+
): Observable<HttpEvent<Array<string>>>;
|
|
108
|
+
public httpIccProfilesGetAll(
|
|
109
|
+
observe: any = 'body',
|
|
110
|
+
reportProgress: boolean = false,
|
|
111
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
112
|
+
): Observable<any> {
|
|
113
|
+
let localVarHeaders = this.defaultHeaders;
|
|
92
114
|
|
|
93
|
-
let
|
|
115
|
+
let localVarCredential: string | undefined;
|
|
94
116
|
// authentication (msal_auth) required
|
|
95
|
-
|
|
96
|
-
if (
|
|
97
|
-
|
|
117
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
118
|
+
if (localVarCredential) {
|
|
119
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
98
120
|
}
|
|
99
121
|
|
|
100
|
-
let
|
|
101
|
-
if (
|
|
122
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
123
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
102
124
|
// to determine the Accept header
|
|
103
125
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
104
|
-
|
|
126
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
127
|
+
}
|
|
128
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
129
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
133
|
+
if (localVarHttpContext === undefined) {
|
|
134
|
+
localVarHttpContext = new HttpContext();
|
|
105
135
|
}
|
|
106
|
-
|
|
107
|
-
|
|
136
|
+
|
|
137
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
138
|
+
if (localVarTransferCache === undefined) {
|
|
139
|
+
localVarTransferCache = true;
|
|
108
140
|
}
|
|
109
141
|
|
|
110
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
111
|
-
if (
|
|
112
|
-
|
|
142
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
143
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
144
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
145
|
+
responseType_ = 'text';
|
|
146
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
147
|
+
responseType_ = 'json';
|
|
148
|
+
} else {
|
|
149
|
+
responseType_ = 'blob';
|
|
150
|
+
}
|
|
113
151
|
}
|
|
114
152
|
|
|
115
|
-
|
|
153
|
+
let localVarPath = `/iccprofiles`;
|
|
154
|
+
return this.httpClient.request<Array<string>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
155
|
+
context: localVarHttpContext,
|
|
116
156
|
responseType: <any>responseType_,
|
|
117
157
|
withCredentials: this.configuration.withCredentials,
|
|
118
|
-
headers:
|
|
158
|
+
headers: localVarHeaders,
|
|
119
159
|
observe: observe,
|
|
160
|
+
transferCache: localVarTransferCache,
|
|
120
161
|
reportProgress: reportProgress
|
|
121
162
|
});
|
|
122
163
|
}
|
|
@@ -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.1
|
|
6
5
|
* Contact: office@agravity.io
|
|
7
6
|
*
|
|
8
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,13 +11,16 @@
|
|
|
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';
|
|
21
22
|
|
|
23
|
+
// @ts-ignore
|
|
22
24
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
23
25
|
import { AgravityConfiguration } from '../configuration';
|
|
24
26
|
|
|
@@ -33,13 +35,18 @@ export class ListBlobsService {
|
|
|
33
35
|
|
|
34
36
|
constructor(
|
|
35
37
|
protected httpClient: HttpClient,
|
|
36
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
38
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
37
39
|
@Optional() configuration: AgravityConfiguration
|
|
38
40
|
) {
|
|
39
41
|
if (configuration) {
|
|
40
42
|
this.configuration = configuration;
|
|
41
43
|
}
|
|
42
44
|
if (typeof this.configuration.basePath !== 'string') {
|
|
45
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
46
|
+
if (firstBasePath != undefined) {
|
|
47
|
+
basePath = firstBasePath;
|
|
48
|
+
}
|
|
49
|
+
|
|
43
50
|
if (typeof basePath !== 'string') {
|
|
44
51
|
basePath = this.basePath;
|
|
45
52
|
}
|
|
@@ -48,6 +55,7 @@ export class ListBlobsService {
|
|
|
48
55
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
56
|
}
|
|
50
57
|
|
|
58
|
+
// @ts-ignore
|
|
51
59
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
52
60
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
53
61
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -67,7 +75,7 @@ export class ListBlobsService {
|
|
|
67
75
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
68
76
|
} else if (value instanceof Date) {
|
|
69
77
|
if (key != null) {
|
|
70
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
78
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
71
79
|
} else {
|
|
72
80
|
throw Error('key may not be null if value is Date');
|
|
73
81
|
}
|
|
@@ -87,39 +95,74 @@ export class ListBlobsService {
|
|
|
87
95
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
88
96
|
* @param reportProgress flag to report request and response progress.
|
|
89
97
|
*/
|
|
90
|
-
public httpDeleteAllBlobs(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
public httpDeleteAllBlobs(
|
|
99
|
+
observe?: 'body',
|
|
100
|
+
reportProgress?: boolean,
|
|
101
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
102
|
+
): Observable<AgravityInfoResponse>;
|
|
103
|
+
public httpDeleteAllBlobs(
|
|
104
|
+
observe?: 'response',
|
|
105
|
+
reportProgress?: boolean,
|
|
106
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
107
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
108
|
+
public httpDeleteAllBlobs(
|
|
109
|
+
observe?: 'events',
|
|
110
|
+
reportProgress?: boolean,
|
|
111
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
112
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
113
|
+
public httpDeleteAllBlobs(
|
|
114
|
+
observe: any = 'body',
|
|
115
|
+
reportProgress: boolean = false,
|
|
116
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
117
|
+
): Observable<any> {
|
|
118
|
+
let localVarHeaders = this.defaultHeaders;
|
|
119
|
+
|
|
120
|
+
let localVarCredential: string | undefined;
|
|
97
121
|
// authentication (msal_auth) required
|
|
98
|
-
|
|
99
|
-
if (
|
|
100
|
-
|
|
122
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
123
|
+
if (localVarCredential) {
|
|
124
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
101
125
|
}
|
|
102
126
|
|
|
103
|
-
let
|
|
104
|
-
if (
|
|
127
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
128
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
105
129
|
// to determine the Accept header
|
|
106
130
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
107
|
-
|
|
131
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
108
132
|
}
|
|
109
|
-
if (
|
|
110
|
-
|
|
133
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
134
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
138
|
+
if (localVarHttpContext === undefined) {
|
|
139
|
+
localVarHttpContext = new HttpContext();
|
|
111
140
|
}
|
|
112
141
|
|
|
113
|
-
let
|
|
114
|
-
if (
|
|
115
|
-
|
|
142
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
143
|
+
if (localVarTransferCache === undefined) {
|
|
144
|
+
localVarTransferCache = true;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
148
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
149
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
150
|
+
responseType_ = 'text';
|
|
151
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
152
|
+
responseType_ = 'json';
|
|
153
|
+
} else {
|
|
154
|
+
responseType_ = 'blob';
|
|
155
|
+
}
|
|
116
156
|
}
|
|
117
157
|
|
|
118
|
-
|
|
158
|
+
let localVarPath = `/blobs`;
|
|
159
|
+
return this.httpClient.request<AgravityInfoResponse>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
160
|
+
context: localVarHttpContext,
|
|
119
161
|
responseType: <any>responseType_,
|
|
120
162
|
withCredentials: this.configuration.withCredentials,
|
|
121
|
-
headers:
|
|
163
|
+
headers: localVarHeaders,
|
|
122
164
|
observe: observe,
|
|
165
|
+
transferCache: localVarTransferCache,
|
|
123
166
|
reportProgress: reportProgress
|
|
124
167
|
});
|
|
125
168
|
}
|
|
@@ -129,39 +172,74 @@ export class ListBlobsService {
|
|
|
129
172
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
130
173
|
* @param reportProgress flag to report request and response progress.
|
|
131
174
|
*/
|
|
132
|
-
public httpListAllBlobs(
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
175
|
+
public httpListAllBlobs(
|
|
176
|
+
observe?: 'body',
|
|
177
|
+
reportProgress?: boolean,
|
|
178
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
179
|
+
): Observable<AgravityInfoResponse>;
|
|
180
|
+
public httpListAllBlobs(
|
|
181
|
+
observe?: 'response',
|
|
182
|
+
reportProgress?: boolean,
|
|
183
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
184
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
185
|
+
public httpListAllBlobs(
|
|
186
|
+
observe?: 'events',
|
|
187
|
+
reportProgress?: boolean,
|
|
188
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
189
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
190
|
+
public httpListAllBlobs(
|
|
191
|
+
observe: any = 'body',
|
|
192
|
+
reportProgress: boolean = false,
|
|
193
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
194
|
+
): Observable<any> {
|
|
195
|
+
let localVarHeaders = this.defaultHeaders;
|
|
196
|
+
|
|
197
|
+
let localVarCredential: string | undefined;
|
|
139
198
|
// authentication (msal_auth) required
|
|
140
|
-
|
|
141
|
-
if (
|
|
142
|
-
|
|
199
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
200
|
+
if (localVarCredential) {
|
|
201
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
143
202
|
}
|
|
144
203
|
|
|
145
|
-
let
|
|
146
|
-
if (
|
|
204
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
205
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
147
206
|
// to determine the Accept header
|
|
148
|
-
const httpHeaderAccepts: string[] = ['
|
|
149
|
-
|
|
207
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
208
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
209
|
+
}
|
|
210
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
211
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
215
|
+
if (localVarHttpContext === undefined) {
|
|
216
|
+
localVarHttpContext = new HttpContext();
|
|
150
217
|
}
|
|
151
|
-
|
|
152
|
-
|
|
218
|
+
|
|
219
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
220
|
+
if (localVarTransferCache === undefined) {
|
|
221
|
+
localVarTransferCache = true;
|
|
153
222
|
}
|
|
154
223
|
|
|
155
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
156
|
-
if (
|
|
157
|
-
|
|
224
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
225
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
226
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
227
|
+
responseType_ = 'text';
|
|
228
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
229
|
+
responseType_ = 'json';
|
|
230
|
+
} else {
|
|
231
|
+
responseType_ = 'blob';
|
|
232
|
+
}
|
|
158
233
|
}
|
|
159
234
|
|
|
160
|
-
|
|
235
|
+
let localVarPath = `/blobs`;
|
|
236
|
+
return this.httpClient.request<AgravityInfoResponse>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
237
|
+
context: localVarHttpContext,
|
|
161
238
|
responseType: <any>responseType_,
|
|
162
239
|
withCredentials: this.configuration.withCredentials,
|
|
163
|
-
headers:
|
|
240
|
+
headers: localVarHeaders,
|
|
164
241
|
observe: observe,
|
|
242
|
+
transferCache: localVarTransferCache,
|
|
165
243
|
reportProgress: reportProgress
|
|
166
244
|
});
|
|
167
245
|
}
|