@agravity/private 5.2.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 +117 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +203 -0
- package/api/api.ts +67 -0
- package/api/assetIconRuleManagement.agravity.ts +400 -0
- package/api/assetManagement.agravity.ts +737 -0
- package/api/assetOperations.agravity.ts +1309 -0
- package/api/assetPublishing.agravity.ts +511 -0
- package/api/assetVersioning.agravity.ts +657 -0
- package/api/authenticationManagement.agravity.ts +502 -0
- package/api/collectionManagement.agravity.ts +618 -0
- package/api/collectionSharing.agravity.ts +329 -0
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +340 -0
- package/api/collectionTypeManagement.agravity.ts +533 -0
- package/api/configurationManagement.agravity.ts +311 -0
- package/api/downloadFormatManagement.agravity.ts +400 -0
- package/api/downloadZip.agravity.ts +151 -0
- package/api/generalManagement.agravity.ts +348 -0
- package/api/helperTools.agravity.ts +640 -0
- package/api/iccProfileManagement.agravity.ts +134 -0
- package/api/listBlobs.agravity.ts +185 -0
- package/api/listQueues.agravity.ts +134 -0
- package/api/permissionsManagement.agravity.ts +262 -0
- package/api/publishing.agravity.ts +148 -0
- package/api/quickshareManagement.agravity.ts +385 -0
- package/api/savedSearchManagement.agravity.ts +271 -0
- package/api/searchManagement.agravity.ts +345 -0
- package/api/secureUpload.agravity.ts +371 -0
- package/api/signalRConnectionManagement.agravity.ts +218 -0
- package/api/staticDefinedListManagement.agravity.ts +408 -0
- package/api/stockImport.agravity.ts +221 -0
- package/api/structureImport.agravity.ts +137 -0
- package/api/translationManagement.agravity.ts +404 -0
- package/api/upgradeManagement.agravity.ts +333 -0
- package/api/webAppData.agravity.ts +300 -0
- package/api/wordpressManagement.agravity.ts +282 -0
- package/api/workspaceManagement.agravity.ts +513 -0
- package/api.module.ts +63 -0
- package/configuration.ts +130 -0
- package/encoder.ts +20 -0
- package/git_push.sh +58 -0
- package/index.ts +5 -0
- package/model/agravityErrorResponse.agravity.ts +19 -0
- package/model/agravityInfoResponse.agravity.ts +19 -0
- package/model/agravityUser.agravity.ts +37 -0
- package/model/agravityVersion.agravity.ts +24 -0
- package/model/allWebAppData.agravity.ts +24 -0
- package/model/apiKeyResponse.agravity.ts +18 -0
- package/model/appConfigTableEntity.agravity.ts +25 -0
- package/model/artificialIntelligenceGroup.agravity.ts +20 -0
- package/model/asset.agravity.ts +47 -0
- package/model/assetAvailability.agravity.ts +19 -0
- package/model/assetBlob.agravity.ts +82 -0
- package/model/assetBulkUpdate.agravity.ts +20 -0
- package/model/assetCollectionLink.agravity.ts +18 -0
- package/model/assetIconRule.agravity.ts +35 -0
- package/model/assetIdContainer.agravity.ts +18 -0
- package/model/assetPageResult.agravity.ts +23 -0
- package/model/assetsOperationBody.agravity.ts +20 -0
- package/model/azSearchOptions.agravity.ts +25 -0
- package/model/azureIdentity.agravity.ts +30 -0
- package/model/blobInfoObj.agravity.ts +23 -0
- package/model/collTypeItem.agravity.ts +38 -0
- package/model/collTypeItemBlueprint.agravity.ts +31 -0
- package/model/collection.agravity.ts +35 -0
- package/model/collectionType.agravity.ts +35 -0
- package/model/collectionUDL.agravity.ts +21 -0
- package/model/createSftpUserResult.agravity.ts +18 -0
- package/model/dataResult.agravity.ts +22 -0
- package/model/distZipResponse.agravity.ts +19 -0
- package/model/downloadFormat.agravity.ts +34 -0
- package/model/downloadObject.agravity.ts +32 -0
- package/model/downloadZipRequest.agravity.ts +25 -0
- package/model/dynamicImageOperation.agravity.ts +18 -0
- package/model/emailAddress.agravity.ts +18 -0
- package/model/entityId.agravity.ts +17 -0
- package/model/entityIdName.agravity.ts +19 -0
- package/model/entityTranslations.agravity.ts +18 -0
- package/model/frontendAppConfig.agravity.ts +21 -0
- package/model/groupAllAppData.agravity.ts +26 -0
- package/model/infoEntitySkillEnhanced.agravity.ts +25 -0
- package/model/metadata.agravity.ts +19 -0
- package/model/models.ts +73 -0
- package/model/moveCollectionBody.agravity.ts +19 -0
- package/model/permissionChange.agravity.ts +29 -0
- package/model/permissionSetting.agravity.ts +27 -0
- package/model/publishEntity.agravity.ts +28 -0
- package/model/publishedAsset.agravity.ts +25 -0
- package/model/quickShare.agravity.ts +31 -0
- package/model/quickShareFull.agravity.ts +36 -0
- package/model/sasToken.agravity.ts +22 -0
- package/model/savedSearch.agravity.ts +31 -0
- package/model/searchAdminDataSourceStatus.agravity.ts +18 -0
- package/model/searchAdminIndexStatus.agravity.ts +20 -0
- package/model/searchAdminIndexerLastRun.agravity.ts +21 -0
- package/model/searchAdminIndexerStatus.agravity.ts +20 -0
- package/model/searchAdminSkillStatus.agravity.ts +18 -0
- package/model/searchAdminStatistics.agravity.ts +18 -0
- package/model/searchAdminStatus.agravity.ts +24 -0
- package/model/searchFacet.agravity.ts +19 -0
- package/model/searchFacetEntity.agravity.ts +19 -0
- package/model/searchResult.agravity.ts +23 -0
- package/model/searchableItem.agravity.ts +26 -0
- package/model/secureUploadEntity.agravity.ts +27 -0
- package/model/sharedAsset.agravity.ts +25 -0
- package/model/sharedCollection.agravity.ts +24 -0
- package/model/sharedCollectionFull.agravity.ts +29 -0
- package/model/signalRConnectionInfo.agravity.ts +18 -0
- package/model/simpleAsset.agravity.ts +26 -0
- package/model/staticDefinedList.agravity.ts +30 -0
- package/model/uiTutorials.agravity.ts +26 -0
- package/model/upgradeV2V3CollectionCustomItemTableEntity.agravity.ts +21 -0
- package/model/versionEntity.agravity.ts +28 -0
- package/model/versionedAsset.agravity.ts +20 -0
- package/model/whereParam.agravity.ts +43 -0
- package/model/workspace.agravity.ts +34 -0
- package/package.json +28 -0
- package/variables.ts +9 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
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 2023. All Rights Reserved
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.2.0
|
|
6
|
+
* Contact: office@agravity.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
+
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
17
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
18
|
+
import { Observable } from 'rxjs';
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
22
|
+
import { AgravityConfiguration } from '../configuration';
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@Injectable({
|
|
27
|
+
providedIn: 'root'
|
|
28
|
+
})
|
|
29
|
+
export class IccProfileManagementService {
|
|
30
|
+
|
|
31
|
+
protected basePath = 'http://localhost:7071/api';
|
|
32
|
+
public defaultHeaders = new HttpHeaders();
|
|
33
|
+
public configuration = new AgravityConfiguration();
|
|
34
|
+
public encoder: HttpParameterCodec;
|
|
35
|
+
|
|
36
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
|
|
37
|
+
if (configuration) {
|
|
38
|
+
this.configuration = configuration;
|
|
39
|
+
}
|
|
40
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
41
|
+
if (typeof basePath !== 'string') {
|
|
42
|
+
basePath = this.basePath;
|
|
43
|
+
}
|
|
44
|
+
this.configuration.basePath = basePath;
|
|
45
|
+
}
|
|
46
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
51
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
52
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
53
|
+
} else {
|
|
54
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
55
|
+
}
|
|
56
|
+
return httpParams;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return httpParams;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (typeof value === "object") {
|
|
65
|
+
if (Array.isArray(value)) {
|
|
66
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
67
|
+
} else if (value instanceof Date) {
|
|
68
|
+
if (key != null) {
|
|
69
|
+
httpParams = httpParams.append(key,
|
|
70
|
+
(value as Date).toISOString().substr(0, 10));
|
|
71
|
+
} else {
|
|
72
|
+
throw Error("key may not be null if value is Date");
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
76
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
77
|
+
}
|
|
78
|
+
} else if (key != null) {
|
|
79
|
+
httpParams = httpParams.append(key, value);
|
|
80
|
+
} else {
|
|
81
|
+
throw Error("key may not be null if value is not object or array");
|
|
82
|
+
}
|
|
83
|
+
return httpParams;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* This endpoint lists all icc profiles in blob container.
|
|
88
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
89
|
+
* @param reportProgress flag to report request and response progress.
|
|
90
|
+
*/
|
|
91
|
+
public httpIccProfilesGetAll(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<string>>;
|
|
92
|
+
public httpIccProfilesGetAll(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<string>>>;
|
|
93
|
+
public httpIccProfilesGetAll(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<string>>>;
|
|
94
|
+
public httpIccProfilesGetAll(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
95
|
+
|
|
96
|
+
let headers = this.defaultHeaders;
|
|
97
|
+
|
|
98
|
+
let credential: string | undefined;
|
|
99
|
+
// authentication (msal_auth) required
|
|
100
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
101
|
+
if (credential) {
|
|
102
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
106
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
107
|
+
// to determine the Accept header
|
|
108
|
+
const httpHeaderAccepts: string[] = [
|
|
109
|
+
'application/json'
|
|
110
|
+
];
|
|
111
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
112
|
+
}
|
|
113
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
114
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
119
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
120
|
+
responseType_ = 'text';
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/iccprofiles`,
|
|
124
|
+
{
|
|
125
|
+
responseType: <any>responseType_,
|
|
126
|
+
withCredentials: this.configuration.withCredentials,
|
|
127
|
+
headers: headers,
|
|
128
|
+
observe: observe,
|
|
129
|
+
reportProgress: reportProgress
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
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 2023. All Rights Reserved
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.2.0
|
|
6
|
+
* Contact: office@agravity.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
+
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
17
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
18
|
+
import { Observable } from 'rxjs';
|
|
19
|
+
|
|
20
|
+
import { AgravityErrorResponse } from '../model/models';
|
|
21
|
+
import { AgravityInfoResponse } from '../model/models';
|
|
22
|
+
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
|
+
import { AgravityConfiguration } from '../configuration';
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@Injectable({
|
|
29
|
+
providedIn: 'root'
|
|
30
|
+
})
|
|
31
|
+
export class ListBlobsService {
|
|
32
|
+
|
|
33
|
+
protected basePath = 'http://localhost:7071/api';
|
|
34
|
+
public defaultHeaders = new HttpHeaders();
|
|
35
|
+
public configuration = new AgravityConfiguration();
|
|
36
|
+
public encoder: HttpParameterCodec;
|
|
37
|
+
|
|
38
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
|
|
39
|
+
if (configuration) {
|
|
40
|
+
this.configuration = configuration;
|
|
41
|
+
}
|
|
42
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
43
|
+
if (typeof basePath !== 'string') {
|
|
44
|
+
basePath = this.basePath;
|
|
45
|
+
}
|
|
46
|
+
this.configuration.basePath = basePath;
|
|
47
|
+
}
|
|
48
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
53
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
54
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
55
|
+
} else {
|
|
56
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
57
|
+
}
|
|
58
|
+
return httpParams;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return httpParams;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (typeof value === "object") {
|
|
67
|
+
if (Array.isArray(value)) {
|
|
68
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
69
|
+
} else if (value instanceof Date) {
|
|
70
|
+
if (key != null) {
|
|
71
|
+
httpParams = httpParams.append(key,
|
|
72
|
+
(value as Date).toISOString().substr(0, 10));
|
|
73
|
+
} else {
|
|
74
|
+
throw Error("key may not be null if value is Date");
|
|
75
|
+
}
|
|
76
|
+
} else {
|
|
77
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
78
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
79
|
+
}
|
|
80
|
+
} else if (key != null) {
|
|
81
|
+
httpParams = httpParams.append(key, value);
|
|
82
|
+
} else {
|
|
83
|
+
throw Error("key may not be null if value is not object or array");
|
|
84
|
+
}
|
|
85
|
+
return httpParams;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* This HTTP trigger deletes all blobs from specific containers
|
|
90
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
91
|
+
* @param reportProgress flag to report request and response progress.
|
|
92
|
+
*/
|
|
93
|
+
public httpDeleteAllBlobs(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
|
|
94
|
+
public httpDeleteAllBlobs(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
95
|
+
public httpDeleteAllBlobs(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
96
|
+
public httpDeleteAllBlobs(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
97
|
+
|
|
98
|
+
let headers = this.defaultHeaders;
|
|
99
|
+
|
|
100
|
+
let credential: string | undefined;
|
|
101
|
+
// authentication (msal_auth) required
|
|
102
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
103
|
+
if (credential) {
|
|
104
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
108
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
109
|
+
// to determine the Accept header
|
|
110
|
+
const httpHeaderAccepts: string[] = [
|
|
111
|
+
'application/json'
|
|
112
|
+
];
|
|
113
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
114
|
+
}
|
|
115
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
116
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
121
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
122
|
+
responseType_ = 'text';
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return this.httpClient.delete<AgravityInfoResponse>(`${this.configuration.basePath}/blobs`,
|
|
126
|
+
{
|
|
127
|
+
responseType: <any>responseType_,
|
|
128
|
+
withCredentials: this.configuration.withCredentials,
|
|
129
|
+
headers: headers,
|
|
130
|
+
observe: observe,
|
|
131
|
+
reportProgress: reportProgress
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* This endpoint lists all blobs of all containers for a specific asset
|
|
138
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
139
|
+
* @param reportProgress flag to report request and response progress.
|
|
140
|
+
*/
|
|
141
|
+
public httpListAllBlobs(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json'}): Observable<string>;
|
|
142
|
+
public httpListAllBlobs(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json'}): Observable<HttpResponse<string>>;
|
|
143
|
+
public httpListAllBlobs(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain' | 'application/json'}): Observable<HttpEvent<string>>;
|
|
144
|
+
public httpListAllBlobs(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain' | 'application/json'}): Observable<any> {
|
|
145
|
+
|
|
146
|
+
let headers = this.defaultHeaders;
|
|
147
|
+
|
|
148
|
+
let credential: string | undefined;
|
|
149
|
+
// authentication (msal_auth) required
|
|
150
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
151
|
+
if (credential) {
|
|
152
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
156
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
157
|
+
// to determine the Accept header
|
|
158
|
+
const httpHeaderAccepts: string[] = [
|
|
159
|
+
'text/plain',
|
|
160
|
+
'application/json'
|
|
161
|
+
];
|
|
162
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
163
|
+
}
|
|
164
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
165
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
170
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
171
|
+
responseType_ = 'text';
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return this.httpClient.get<string>(`${this.configuration.basePath}/blobs`,
|
|
175
|
+
{
|
|
176
|
+
responseType: <any>responseType_,
|
|
177
|
+
withCredentials: this.configuration.withCredentials,
|
|
178
|
+
headers: headers,
|
|
179
|
+
observe: observe,
|
|
180
|
+
reportProgress: reportProgress
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
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 2023. All Rights Reserved
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.2.0
|
|
6
|
+
* Contact: office@agravity.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
+
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
17
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
18
|
+
import { Observable } from 'rxjs';
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
22
|
+
import { AgravityConfiguration } from '../configuration';
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@Injectable({
|
|
27
|
+
providedIn: 'root'
|
|
28
|
+
})
|
|
29
|
+
export class ListQueuesService {
|
|
30
|
+
|
|
31
|
+
protected basePath = 'http://localhost:7071/api';
|
|
32
|
+
public defaultHeaders = new HttpHeaders();
|
|
33
|
+
public configuration = new AgravityConfiguration();
|
|
34
|
+
public encoder: HttpParameterCodec;
|
|
35
|
+
|
|
36
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
|
|
37
|
+
if (configuration) {
|
|
38
|
+
this.configuration = configuration;
|
|
39
|
+
}
|
|
40
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
41
|
+
if (typeof basePath !== 'string') {
|
|
42
|
+
basePath = this.basePath;
|
|
43
|
+
}
|
|
44
|
+
this.configuration.basePath = basePath;
|
|
45
|
+
}
|
|
46
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
51
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
52
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
53
|
+
} else {
|
|
54
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
55
|
+
}
|
|
56
|
+
return httpParams;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return httpParams;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (typeof value === "object") {
|
|
65
|
+
if (Array.isArray(value)) {
|
|
66
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
67
|
+
} else if (value instanceof Date) {
|
|
68
|
+
if (key != null) {
|
|
69
|
+
httpParams = httpParams.append(key,
|
|
70
|
+
(value as Date).toISOString().substr(0, 10));
|
|
71
|
+
} else {
|
|
72
|
+
throw Error("key may not be null if value is Date");
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
76
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
77
|
+
}
|
|
78
|
+
} else if (key != null) {
|
|
79
|
+
httpParams = httpParams.append(key, value);
|
|
80
|
+
} else {
|
|
81
|
+
throw Error("key may not be null if value is not object or array");
|
|
82
|
+
}
|
|
83
|
+
return httpParams;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* This endpoint (GET & DELETE) lists all queue elements.
|
|
88
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
89
|
+
* @param reportProgress flag to report request and response progress.
|
|
90
|
+
*/
|
|
91
|
+
public httpListQueues(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain'}): Observable<string>;
|
|
92
|
+
public httpListQueues(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain'}): Observable<HttpResponse<string>>;
|
|
93
|
+
public httpListQueues(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'text/plain'}): Observable<HttpEvent<string>>;
|
|
94
|
+
public httpListQueues(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'text/plain'}): Observable<any> {
|
|
95
|
+
|
|
96
|
+
let headers = this.defaultHeaders;
|
|
97
|
+
|
|
98
|
+
let credential: string | undefined;
|
|
99
|
+
// authentication (msal_auth) required
|
|
100
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
101
|
+
if (credential) {
|
|
102
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
106
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
107
|
+
// to determine the Accept header
|
|
108
|
+
const httpHeaderAccepts: string[] = [
|
|
109
|
+
'text/plain'
|
|
110
|
+
];
|
|
111
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
112
|
+
}
|
|
113
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
114
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
119
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
120
|
+
responseType_ = 'text';
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return this.httpClient.get<string>(`${this.configuration.basePath}/queues`,
|
|
124
|
+
{
|
|
125
|
+
responseType: <any>responseType_,
|
|
126
|
+
withCredentials: this.configuration.withCredentials,
|
|
127
|
+
headers: headers,
|
|
128
|
+
observe: observe,
|
|
129
|
+
reportProgress: reportProgress
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
}
|