@agravity/private 5.3.5 → 6.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 +12 -0
- package/README.md +2 -2
- package/api/api.ts +9 -0
- package/api/assetIconRuleManagement.agravity.ts +1 -1
- package/api/assetManagement.agravity.ts +10 -1
- package/api/assetOperations.agravity.ts +48 -1
- package/api/assetPublishing.agravity.ts +1 -1
- package/api/assetVersioning.agravity.ts +9 -1
- package/api/authenticationManagement.agravity.ts +227 -4
- package/api/collectionManagement.agravity.ts +1 -1
- package/api/collectionSharing.agravity.ts +1 -1
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +1 -1
- package/api/collectionTypeManagement.agravity.ts +6 -5
- package/api/commentsManagement.agravity.ts +294 -0
- package/api/configurationManagement.agravity.ts +72 -8
- package/api/dashboardWidgetManagement.agravity.ts +383 -0
- package/api/downloadFormatManagement.agravity.ts +1 -1
- package/api/downloadZip.agravity.ts +1 -1
- package/api/generalManagement.agravity.ts +1 -1
- package/api/helperTools.agravity.ts +207 -1
- package/api/historyEntryManagement.agravity.ts +1 -1
- package/api/iccProfileManagement.agravity.ts +1 -1
- package/api/listBlobs.agravity.ts +1 -1
- package/api/listQueues.agravity.ts +1 -1
- package/api/permissionsManagement.agravity.ts +1 -1
- package/api/publishing.agravity.ts +1 -1
- package/api/quickshareManagement.agravity.ts +1 -1
- package/api/savedSearchManagement.agravity.ts +1 -1
- package/api/searchManagement.agravity.ts +1 -1
- package/api/secureUpload.agravity.ts +1 -1
- package/api/signalRConnectionManagement.agravity.ts +1 -1
- package/api/staticDefinedListManagement.agravity.ts +1 -1
- package/api/stockImport.agravity.ts +1 -1
- package/api/structureImport.agravity.ts +1 -1
- package/api/translationManagement.agravity.ts +77 -1
- package/api/webAppData.agravity.ts +1 -1
- package/api/widgetLayoutManagement.agravity.ts +185 -0
- package/api/wordpressManagement.agravity.ts +1 -1
- package/api/workspaceManagement.agravity.ts +6 -5
- package/api.module.ts +3 -0
- package/model/agravityErrorResponse.agravity.ts +1 -1
- package/model/agravityInfoResponse.agravity.ts +1 -1
- package/model/agravityUser.agravity.ts +3 -1
- package/model/agravityUserDto.agravity.ts +17 -0
- package/model/agravityVersion.agravity.ts +1 -1
- package/model/allWebAppData.agravity.ts +1 -1
- package/model/apiKeyResponse.agravity.ts +1 -1
- package/model/appConfigTableEntity.agravity.ts +2 -1
- package/model/artificialIntelligenceGroup.agravity.ts +1 -1
- package/model/asset.agravity.ts +10 -1
- package/model/assetAvailability.agravity.ts +1 -1
- package/model/assetBlob.agravity.ts +1 -1
- package/model/assetBulkUpdate.agravity.ts +1 -1
- package/model/assetCollectionLink.agravity.ts +1 -1
- package/model/assetIconRule.agravity.ts +1 -1
- package/model/assetIdFormat.agravity.ts +1 -1
- package/model/assetPageResult.agravity.ts +1 -1
- package/model/assetsOperationBody.agravity.ts +1 -1
- package/model/azSearchOptions.agravity.ts +1 -1
- package/model/azureIdentity.agravity.ts +1 -1
- package/model/blobInfoObj.agravity.ts +1 -1
- package/model/collTypeItem.agravity.ts +1 -1
- package/model/collTypeItemBlueprint.agravity.ts +1 -1
- package/model/collection.agravity.ts +10 -1
- package/model/collectionType.agravity.ts +12 -3
- package/model/collectionUDL.agravity.ts +1 -1
- package/model/comment.agravity.ts +25 -0
- package/model/createSftpUserResult.agravity.ts +1 -1
- package/model/dashboardWidget.agravity.ts +27 -0
- package/model/dataResult.agravity.ts +1 -1
- package/model/distZipResponse.agravity.ts +1 -1
- package/model/downloadFormat.agravity.ts +1 -1
- package/model/downloadObject.agravity.ts +1 -1
- package/model/downloadZipRequest.agravity.ts +1 -1
- package/model/dynamicImageOperation.agravity.ts +1 -1
- package/model/emailAddress.agravity.ts +1 -1
- package/model/entityId.agravity.ts +1 -1
- package/model/entityIdName.agravity.ts +1 -1
- package/model/entityTranslations.agravity.ts +1 -1
- package/model/excelExportTableEntity.agravity.ts +22 -0
- package/model/frontendAppConfig.agravity.ts +1 -1
- package/model/groupAllAppData.agravity.ts +1 -1
- package/model/historyEntry.agravity.ts +1 -1
- package/model/infoEntitySkillEnhanced.agravity.ts +1 -1
- package/model/metadata.agravity.ts +1 -1
- package/model/models.ts +9 -0
- package/model/moveCollectionBody.agravity.ts +1 -1
- package/model/permissionChange.agravity.ts +9 -8
- package/model/permissionEntity.agravity.ts +24 -0
- package/model/permissionSetting.agravity.ts +1 -1
- package/model/publishEntity.agravity.ts +1 -1
- package/model/publishedAsset.agravity.ts +1 -1
- package/model/quickShare.agravity.ts +1 -1
- package/model/quickShareFull.agravity.ts +1 -1
- package/model/sasToken.agravity.ts +1 -1
- package/model/savedSearch.agravity.ts +1 -1
- package/model/searchAdminDataSourceStatus.agravity.ts +1 -1
- package/model/searchAdminIndexStatus.agravity.ts +1 -1
- package/model/searchAdminIndexerLastRun.agravity.ts +1 -1
- package/model/searchAdminIndexerStatus.agravity.ts +1 -1
- package/model/searchAdminSkillStatus.agravity.ts +1 -1
- package/model/searchAdminStatistics.agravity.ts +1 -1
- package/model/searchAdminStatus.agravity.ts +1 -1
- package/model/searchFacet.agravity.ts +1 -1
- package/model/searchFacetEntity.agravity.ts +1 -1
- package/model/searchResult.agravity.ts +1 -1
- package/model/searchableItem.agravity.ts +1 -1
- package/model/secureUploadEntity.agravity.ts +1 -1
- package/model/sharedAsset.agravity.ts +1 -1
- package/model/sharedCollection.agravity.ts +1 -1
- package/model/sharedCollectionFull.agravity.ts +1 -1
- package/model/signalRConnectionInfo.agravity.ts +1 -1
- package/model/simpleAsset.agravity.ts +1 -1
- package/model/staticDefinedList.agravity.ts +1 -1
- package/model/translation.agravity.ts +16 -0
- package/model/translationRequest.agravity.ts +17 -0
- package/model/uiTutorials.agravity.ts +1 -1
- package/model/versionEntity.agravity.ts +1 -1
- package/model/versionedAsset.agravity.ts +2 -1
- package/model/whereParam.agravity.ts +1 -1
- package/model/widgetLayout.agravity.ts +25 -0
- package/model/widgetProperties.agravity.ts +20 -0
- package/model/workspace.agravity.ts +3 -3
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
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 2023. All Rights Reserved
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: 6.0.0
|
|
6
6
|
* Contact: office@agravity.io
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
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 2023. All Rights Reserved
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: 6.0.0
|
|
6
6
|
* Contact: office@agravity.io
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,6 +17,7 @@ import { CustomHttpParameterCodec } from '../encoder';
|
|
|
17
17
|
import { Observable } from 'rxjs';
|
|
18
18
|
|
|
19
19
|
import { AgravityErrorResponse } from '../model/models';
|
|
20
|
+
import { AgravityInfoResponse } from '../model/models';
|
|
20
21
|
import { CollTypeItem } from '../model/models';
|
|
21
22
|
import { CollectionType } from '../model/models';
|
|
22
23
|
import { PermissionChange } from '../model/models';
|
|
@@ -461,21 +462,21 @@ export class CollectionTypeManagementService {
|
|
|
461
462
|
observe?: 'body',
|
|
462
463
|
reportProgress?: boolean,
|
|
463
464
|
options?: { httpHeaderAccept?: 'application/json' }
|
|
464
|
-
): Observable<
|
|
465
|
+
): Observable<AgravityInfoResponse>;
|
|
465
466
|
public httpCollectionTypesUpdatePermissionsById(
|
|
466
467
|
id: string,
|
|
467
468
|
permissionChange: PermissionChange,
|
|
468
469
|
observe?: 'response',
|
|
469
470
|
reportProgress?: boolean,
|
|
470
471
|
options?: { httpHeaderAccept?: 'application/json' }
|
|
471
|
-
): Observable<HttpResponse<
|
|
472
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
472
473
|
public httpCollectionTypesUpdatePermissionsById(
|
|
473
474
|
id: string,
|
|
474
475
|
permissionChange: PermissionChange,
|
|
475
476
|
observe?: 'events',
|
|
476
477
|
reportProgress?: boolean,
|
|
477
478
|
options?: { httpHeaderAccept?: 'application/json' }
|
|
478
|
-
): Observable<HttpEvent<
|
|
479
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
479
480
|
public httpCollectionTypesUpdatePermissionsById(
|
|
480
481
|
id: string,
|
|
481
482
|
permissionChange: PermissionChange,
|
|
@@ -521,7 +522,7 @@ export class CollectionTypeManagementService {
|
|
|
521
522
|
responseType_ = 'text';
|
|
522
523
|
}
|
|
523
524
|
|
|
524
|
-
return this.httpClient.post<
|
|
525
|
+
return this.httpClient.post<AgravityInfoResponse>(`${this.configuration.basePath}/collectiontypes/${encodeURIComponent(String(id))}/permissions`, permissionChange, {
|
|
525
526
|
responseType: <any>responseType_,
|
|
526
527
|
withCredentials: this.configuration.withCredentials,
|
|
527
528
|
headers: headers,
|
|
@@ -0,0 +1,294 @@
|
|
|
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: 6.0.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, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
16
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
17
|
+
import { Observable } from 'rxjs';
|
|
18
|
+
|
|
19
|
+
import { AgravityErrorResponse } from '../model/models';
|
|
20
|
+
import { Comment } from '../model/models';
|
|
21
|
+
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
23
|
+
import { AgravityConfiguration } from '../configuration';
|
|
24
|
+
|
|
25
|
+
@Injectable({
|
|
26
|
+
providedIn: 'root'
|
|
27
|
+
})
|
|
28
|
+
export class CommentsManagementService {
|
|
29
|
+
protected basePath = 'http://localhost:7071/api';
|
|
30
|
+
public defaultHeaders = new HttpHeaders();
|
|
31
|
+
public configuration = new AgravityConfiguration();
|
|
32
|
+
public encoder: HttpParameterCodec;
|
|
33
|
+
|
|
34
|
+
constructor(
|
|
35
|
+
protected httpClient: HttpClient,
|
|
36
|
+
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
37
|
+
@Optional() configuration: AgravityConfiguration
|
|
38
|
+
) {
|
|
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
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
52
|
+
if (typeof value === 'object' && value instanceof Date === false) {
|
|
53
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
54
|
+
} else {
|
|
55
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
56
|
+
}
|
|
57
|
+
return httpParams;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return httpParams;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (typeof value === 'object') {
|
|
66
|
+
if (Array.isArray(value)) {
|
|
67
|
+
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
68
|
+
} else if (value instanceof Date) {
|
|
69
|
+
if (key != null) {
|
|
70
|
+
httpParams = httpParams.append(key, (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(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
76
|
+
}
|
|
77
|
+
} else if (key != null) {
|
|
78
|
+
httpParams = httpParams.append(key, value);
|
|
79
|
+
} else {
|
|
80
|
+
throw Error('key may not be null if value is not object or array');
|
|
81
|
+
}
|
|
82
|
+
return httpParams;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* This endpoint creates a comment for an asset and adds the information to the database.
|
|
87
|
+
* @param id The ID of the asset.
|
|
88
|
+
* @param comment The comment to create.
|
|
89
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
90
|
+
* @param reportProgress flag to report request and response progress.
|
|
91
|
+
*/
|
|
92
|
+
public httpCommentsCreate(id: string, comment: Comment, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Comment>;
|
|
93
|
+
public httpCommentsCreate(id: string, comment: Comment, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Comment>>;
|
|
94
|
+
public httpCommentsCreate(id: string, comment: Comment, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Comment>>;
|
|
95
|
+
public httpCommentsCreate(id: string, comment: Comment, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
|
|
96
|
+
if (id === null || id === undefined) {
|
|
97
|
+
throw new Error('Required parameter id was null or undefined when calling httpCommentsCreate.');
|
|
98
|
+
}
|
|
99
|
+
if (comment === null || comment === undefined) {
|
|
100
|
+
throw new Error('Required parameter comment was null or undefined when calling httpCommentsCreate.');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
let headers = this.defaultHeaders;
|
|
104
|
+
|
|
105
|
+
let credential: string | undefined;
|
|
106
|
+
// authentication (msal_auth) required
|
|
107
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
108
|
+
if (credential) {
|
|
109
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
113
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
114
|
+
// to determine the Accept header
|
|
115
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
116
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
117
|
+
}
|
|
118
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
119
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// to determine the Content-Type header
|
|
123
|
+
const consumes: string[] = ['application/json'];
|
|
124
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
125
|
+
if (httpContentTypeSelected !== undefined) {
|
|
126
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
130
|
+
if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
131
|
+
responseType_ = 'text';
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return this.httpClient.post<Comment>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/comments`, comment, {
|
|
135
|
+
responseType: <any>responseType_,
|
|
136
|
+
withCredentials: this.configuration.withCredentials,
|
|
137
|
+
headers: headers,
|
|
138
|
+
observe: observe,
|
|
139
|
+
reportProgress: reportProgress
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* This endpoint deletes a single comment.
|
|
145
|
+
* @param id The ID of the comment.
|
|
146
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
147
|
+
* @param reportProgress flag to report request and response progress.
|
|
148
|
+
*/
|
|
149
|
+
public httpCommentsDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
|
|
150
|
+
public httpCommentsDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<any>>;
|
|
151
|
+
public httpCommentsDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
|
|
152
|
+
public httpCommentsDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
|
|
153
|
+
if (id === null || id === undefined) {
|
|
154
|
+
throw new Error('Required parameter id was null or undefined when calling httpCommentsDeleteById.');
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
let headers = this.defaultHeaders;
|
|
158
|
+
|
|
159
|
+
let credential: string | undefined;
|
|
160
|
+
// authentication (msal_auth) required
|
|
161
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
162
|
+
if (credential) {
|
|
163
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
167
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
168
|
+
// to determine the Accept header
|
|
169
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
170
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
171
|
+
}
|
|
172
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
173
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
177
|
+
if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
178
|
+
responseType_ = 'text';
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return this.httpClient.delete<any>(`${this.configuration.basePath}/comments/${encodeURIComponent(String(id))}`, {
|
|
182
|
+
responseType: <any>responseType_,
|
|
183
|
+
withCredentials: this.configuration.withCredentials,
|
|
184
|
+
headers: headers,
|
|
185
|
+
observe: observe,
|
|
186
|
+
reportProgress: reportProgress
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* This endpoint lists all comments for an asset in database.
|
|
192
|
+
* @param id The ID of the asset.
|
|
193
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
194
|
+
* @param reportProgress flag to report request and response progress.
|
|
195
|
+
*/
|
|
196
|
+
public httpCommentsGetAllForAsset(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<Comment>>;
|
|
197
|
+
public httpCommentsGetAllForAsset(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<Comment>>>;
|
|
198
|
+
public httpCommentsGetAllForAsset(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<Comment>>>;
|
|
199
|
+
public httpCommentsGetAllForAsset(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
|
|
200
|
+
if (id === null || id === undefined) {
|
|
201
|
+
throw new Error('Required parameter id was null or undefined when calling httpCommentsGetAllForAsset.');
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
let headers = this.defaultHeaders;
|
|
205
|
+
|
|
206
|
+
let credential: string | undefined;
|
|
207
|
+
// authentication (msal_auth) required
|
|
208
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
209
|
+
if (credential) {
|
|
210
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
214
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
215
|
+
// to determine the Accept header
|
|
216
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
217
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
218
|
+
}
|
|
219
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
220
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
224
|
+
if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
225
|
+
responseType_ = 'text';
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return this.httpClient.get<Array<Comment>>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/comments`, {
|
|
229
|
+
responseType: <any>responseType_,
|
|
230
|
+
withCredentials: this.configuration.withCredentials,
|
|
231
|
+
headers: headers,
|
|
232
|
+
observe: observe,
|
|
233
|
+
reportProgress: reportProgress
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Updates a comment in database.
|
|
239
|
+
* @param id The ID of the comment.
|
|
240
|
+
* @param comment Body has to be a valid comment item.
|
|
241
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
242
|
+
* @param reportProgress flag to report request and response progress.
|
|
243
|
+
*/
|
|
244
|
+
public httpCommentsUpdateById(id: string, comment: Comment, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Comment>;
|
|
245
|
+
public httpCommentsUpdateById(id: string, comment: Comment, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Comment>>;
|
|
246
|
+
public httpCommentsUpdateById(id: string, comment: Comment, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Comment>>;
|
|
247
|
+
public httpCommentsUpdateById(id: string, comment: Comment, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
|
|
248
|
+
if (id === null || id === undefined) {
|
|
249
|
+
throw new Error('Required parameter id was null or undefined when calling httpCommentsUpdateById.');
|
|
250
|
+
}
|
|
251
|
+
if (comment === null || comment === undefined) {
|
|
252
|
+
throw new Error('Required parameter comment was null or undefined when calling httpCommentsUpdateById.');
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
let headers = this.defaultHeaders;
|
|
256
|
+
|
|
257
|
+
let credential: string | undefined;
|
|
258
|
+
// authentication (msal_auth) required
|
|
259
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
260
|
+
if (credential) {
|
|
261
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
265
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
266
|
+
// to determine the Accept header
|
|
267
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
268
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
269
|
+
}
|
|
270
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
271
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// to determine the Content-Type header
|
|
275
|
+
const consumes: string[] = ['application/json'];
|
|
276
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
277
|
+
if (httpContentTypeSelected !== undefined) {
|
|
278
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
282
|
+
if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
283
|
+
responseType_ = 'text';
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
return this.httpClient.post<Comment>(`${this.configuration.basePath}/comments/${encodeURIComponent(String(id))}`, comment, {
|
|
287
|
+
responseType: <any>responseType_,
|
|
288
|
+
withCredentials: this.configuration.withCredentials,
|
|
289
|
+
headers: headers,
|
|
290
|
+
observe: observe,
|
|
291
|
+
reportProgress: reportProgress
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
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 2023. All Rights Reserved
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: 6.0.0
|
|
6
6
|
* Contact: office@agravity.io
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -82,6 +82,53 @@ export class ConfigurationManagementService {
|
|
|
82
82
|
return httpParams;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Deletes an existing custom config value with the given key. It will also refresh the current application configuration cache for this key.
|
|
87
|
+
* @param key The key of the configuration.
|
|
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 httpConfigDeleteSingle(key: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined }): Observable<any>;
|
|
92
|
+
public httpConfigDeleteSingle(key: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined }): Observable<HttpResponse<any>>;
|
|
93
|
+
public httpConfigDeleteSingle(key: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: undefined }): Observable<HttpEvent<any>>;
|
|
94
|
+
public httpConfigDeleteSingle(key: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: undefined }): Observable<any> {
|
|
95
|
+
if (key === null || key === undefined) {
|
|
96
|
+
throw new Error('Required parameter key was null or undefined when calling httpConfigDeleteSingle.');
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
let headers = this.defaultHeaders;
|
|
100
|
+
|
|
101
|
+
let credential: string | undefined;
|
|
102
|
+
// authentication (msal_auth) required
|
|
103
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
104
|
+
if (credential) {
|
|
105
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
109
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
110
|
+
// to determine the Accept header
|
|
111
|
+
const httpHeaderAccepts: string[] = [];
|
|
112
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
113
|
+
}
|
|
114
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
115
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
119
|
+
if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
120
|
+
responseType_ = 'text';
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return this.httpClient.delete<any>(`${this.configuration.basePath}/config/${encodeURIComponent(String(key))}`, {
|
|
124
|
+
responseType: <any>responseType_,
|
|
125
|
+
withCredentials: this.configuration.withCredentials,
|
|
126
|
+
headers: headers,
|
|
127
|
+
observe: observe,
|
|
128
|
+
reportProgress: reportProgress
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
85
132
|
/**
|
|
86
133
|
* Lists all config values stored in config table
|
|
87
134
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
@@ -125,14 +172,30 @@ export class ConfigurationManagementService {
|
|
|
125
172
|
}
|
|
126
173
|
|
|
127
174
|
/**
|
|
128
|
-
* Lists config value only for frontend stored in config table
|
|
175
|
+
* Lists config value only for frontend stored in config table. Optional to filter for custom values only.
|
|
176
|
+
* @param customonly This returns only the custom created configurations.
|
|
129
177
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
130
178
|
* @param reportProgress flag to report request and response progress.
|
|
131
179
|
*/
|
|
132
|
-
public httpConfigGetFrontendAll(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<FrontendAppConfig>>;
|
|
133
|
-
public httpConfigGetFrontendAll(
|
|
134
|
-
|
|
135
|
-
|
|
180
|
+
public httpConfigGetFrontendAll(customonly?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<FrontendAppConfig>>;
|
|
181
|
+
public httpConfigGetFrontendAll(
|
|
182
|
+
customonly?: boolean,
|
|
183
|
+
observe?: 'response',
|
|
184
|
+
reportProgress?: boolean,
|
|
185
|
+
options?: { httpHeaderAccept?: 'application/json' }
|
|
186
|
+
): Observable<HttpResponse<Array<FrontendAppConfig>>>;
|
|
187
|
+
public httpConfigGetFrontendAll(
|
|
188
|
+
customonly?: boolean,
|
|
189
|
+
observe?: 'events',
|
|
190
|
+
reportProgress?: boolean,
|
|
191
|
+
options?: { httpHeaderAccept?: 'application/json' }
|
|
192
|
+
): Observable<HttpEvent<Array<FrontendAppConfig>>>;
|
|
193
|
+
public httpConfigGetFrontendAll(customonly?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
|
|
194
|
+
let queryParameters = new HttpParams({ encoder: this.encoder });
|
|
195
|
+
if (customonly !== undefined && customonly !== null) {
|
|
196
|
+
queryParameters = this.addToHttpParams(queryParameters, <any>customonly, 'customonly');
|
|
197
|
+
}
|
|
198
|
+
|
|
136
199
|
let headers = this.defaultHeaders;
|
|
137
200
|
|
|
138
201
|
let credential: string | undefined;
|
|
@@ -158,6 +221,7 @@ export class ConfigurationManagementService {
|
|
|
158
221
|
}
|
|
159
222
|
|
|
160
223
|
return this.httpClient.get<Array<FrontendAppConfig>>(`${this.configuration.basePath}/config/frontend`, {
|
|
224
|
+
params: queryParameters,
|
|
161
225
|
responseType: <any>responseType_,
|
|
162
226
|
withCredentials: this.configuration.withCredentials,
|
|
163
227
|
headers: headers,
|
|
@@ -233,9 +297,9 @@ export class ConfigurationManagementService {
|
|
|
233
297
|
}
|
|
234
298
|
|
|
235
299
|
/**
|
|
236
|
-
* Update an existing config value with the given key
|
|
300
|
+
* Update an existing (pre-generated) config value (only value, content-type and description) or creates/updates custom config with the given key (full). It will also refresh the current application configuration cache for this key.
|
|
237
301
|
* @param key The key of the configuration.
|
|
238
|
-
* @param appConfigTableEntity The body has just to contain: value, content_type and/or description
|
|
302
|
+
* @param appConfigTableEntity The body has just to contain: value, content_type and/or description or full when custom config.
|
|
239
303
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
240
304
|
* @param reportProgress flag to report request and response progress.
|
|
241
305
|
*/
|