@agravity/public 9.0.0 → 9.0.2

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.
@@ -65,6 +65,8 @@ model/downloadZipStatus.pub.agravity.ts
65
65
  model/dynamicImageOperation.pub.agravity.ts
66
66
  model/entityId.pub.agravity.ts
67
67
  model/entityIdName.pub.agravity.ts
68
+ model/entityListResult.pub.agravity.ts
69
+ model/entityNamesRequest.pub.agravity.ts
68
70
  model/frontendAppConfig.pub.agravity.ts
69
71
  model/groupAllAppData.pub.agravity.ts
70
72
  model/models.ts
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- ## @agravity/public@9.0.0
1
+ ## @agravity/public@9.0.2
2
2
 
3
3
  <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2025. All Rights Reserved
4
4
 
5
- The version of the OpenAPI document: 9.0.0
5
+ The version of the OpenAPI document: 9.0.2
6
6
 
7
7
  ### Building
8
8
 
@@ -23,7 +23,7 @@ Navigate to the folder of your consuming project and run one of next commands.
23
23
  _published:_
24
24
 
25
25
  ```
26
- npm install @agravity/public@9.0.0 --save
26
+ npm install @agravity/public@9.0.2 --save
27
27
  ```
28
28
 
29
29
  _without publishing (not recommended):_
@@ -18,6 +18,10 @@ import { Observable } from 'rxjs';
18
18
  import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
19
19
  // @ts-ignore
20
20
  import { Collection } from '../model/collection.pub.agravity';
21
+ // @ts-ignore
22
+ import { EntityListResult } from '../model/entityListResult.pub.agravity';
23
+ // @ts-ignore
24
+ import { EntityNamesRequest } from '../model/entityNamesRequest.pub.agravity';
21
25
 
22
26
  // @ts-ignore
23
27
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
@@ -101,6 +105,11 @@ export interface HttpPublicCollectionsUpdateByIdRequestParams {
101
105
  acceptLanguage?: string;
102
106
  }
103
107
 
108
+ export interface HttpPublicPostCollectionsGetByNamesRequestParams {
109
+ /** An object with the array of strings with names of the collections to fetch. */
110
+ entityNamesRequest: EntityNamesRequest;
111
+ }
112
+
104
113
  @Injectable({
105
114
  providedIn: 'root'
106
115
  })
@@ -978,4 +987,99 @@ export class PublicCollectionManagementService {
978
987
  reportProgress: reportProgress
979
988
  });
980
989
  }
990
+
991
+ /**
992
+ * This endpoint fetches all collections based on names which comes from an array inside the POST request body and return another list of EntityIdName objects and an array of strings with the names which could not be found.
993
+ * @param requestParameters
994
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
995
+ * @param reportProgress flag to report request and response progress.
996
+ */
997
+ public httpPublicPostCollectionsGetByNames(
998
+ requestParameters?: HttpPublicPostCollectionsGetByNamesRequestParams,
999
+ observe?: 'body',
1000
+ reportProgress?: boolean,
1001
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1002
+ ): Observable<EntityListResult>;
1003
+ public httpPublicPostCollectionsGetByNames(
1004
+ requestParameters?: HttpPublicPostCollectionsGetByNamesRequestParams,
1005
+ observe?: 'response',
1006
+ reportProgress?: boolean,
1007
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1008
+ ): Observable<HttpResponse<EntityListResult>>;
1009
+ public httpPublicPostCollectionsGetByNames(
1010
+ requestParameters?: HttpPublicPostCollectionsGetByNamesRequestParams,
1011
+ observe?: 'events',
1012
+ reportProgress?: boolean,
1013
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1014
+ ): Observable<HttpEvent<EntityListResult>>;
1015
+ public httpPublicPostCollectionsGetByNames(
1016
+ requestParameters?: HttpPublicPostCollectionsGetByNamesRequestParams,
1017
+ observe: any = 'body',
1018
+ reportProgress: boolean = false,
1019
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1020
+ ): Observable<any> {
1021
+ const entityNamesRequest = requestParameters?.entityNamesRequest;
1022
+ if (entityNamesRequest === null || entityNamesRequest === undefined) {
1023
+ throw new Error('Required parameter entityNamesRequest was null or undefined when calling httpPublicPostCollectionsGetByNames.');
1024
+ }
1025
+
1026
+ let localVarHeaders = this.defaultHeaders;
1027
+
1028
+ let localVarCredential: string | undefined;
1029
+ // authentication (function_key) required
1030
+ localVarCredential = this.configuration.lookupCredential('function_key');
1031
+ if (localVarCredential) {
1032
+ localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
1033
+ }
1034
+
1035
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1036
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1037
+ // to determine the Accept header
1038
+ const httpHeaderAccepts: string[] = ['application/json'];
1039
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1040
+ }
1041
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1042
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1043
+ }
1044
+
1045
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
1046
+ if (localVarHttpContext === undefined) {
1047
+ localVarHttpContext = new HttpContext();
1048
+ }
1049
+
1050
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
1051
+ if (localVarTransferCache === undefined) {
1052
+ localVarTransferCache = true;
1053
+ }
1054
+
1055
+ // to determine the Content-Type header
1056
+ const consumes: string[] = ['application/json'];
1057
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
1058
+ if (httpContentTypeSelected !== undefined) {
1059
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1060
+ }
1061
+
1062
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
1063
+ if (localVarHttpHeaderAcceptSelected) {
1064
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1065
+ responseType_ = 'text';
1066
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1067
+ responseType_ = 'json';
1068
+ } else {
1069
+ responseType_ = 'blob';
1070
+ }
1071
+ }
1072
+
1073
+ let localVarPath = `/collectionsbynames`;
1074
+ return this.httpClient.request<EntityListResult>('post', `${this.configuration.basePath}${localVarPath}`, {
1075
+ context: localVarHttpContext,
1076
+ body: entityNamesRequest,
1077
+ responseType: <any>responseType_,
1078
+ withCredentials: this.configuration.withCredentials,
1079
+ headers: localVarHeaders,
1080
+ observe: observe,
1081
+ transferCache: localVarTransferCache,
1082
+ reportProgress: reportProgress
1083
+ });
1084
+ }
981
1085
  }
@@ -12,6 +12,7 @@ import { EntityIdName } from './entityIdName.pub.agravity';
12
12
  export interface CollectionUDL {
13
13
  children?: Array<EntityIdName> | null;
14
14
  name?: string | null;
15
+ entity_type?: string | null;
15
16
  translations?: { [key: string]: { [key: string]: object } } | null;
16
17
  id?: string | null;
17
18
  }
@@ -10,6 +10,7 @@
10
10
 
11
11
  export interface EntityIdName {
12
12
  name?: string | null;
13
+ entity_type?: string | null;
13
14
  translations?: { [key: string]: { [key: string]: object } } | null;
14
15
  id?: string | null;
15
16
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Public Functions
3
+ *
4
+ * Contact: office@agravity.io
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { EntityIdName } from './entityIdName.pub.agravity';
11
+
12
+ export interface EntityListResult {
13
+ entities?: Array<EntityIdName> | null;
14
+ notfounds?: Array<string> | null;
15
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Public Functions
3
+ *
4
+ * Contact: office@agravity.io
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+
11
+ export interface EntityNamesRequest {
12
+ names?: Array<string> | null;
13
+ filter?: string | null;
14
+ }
package/model/models.ts CHANGED
@@ -33,6 +33,8 @@ export * from './downloadZipStatus.pub.agravity';
33
33
  export * from './dynamicImageOperation.pub.agravity';
34
34
  export * from './entityId.pub.agravity';
35
35
  export * from './entityIdName.pub.agravity';
36
+ export * from './entityListResult.pub.agravity';
37
+ export * from './entityNamesRequest.pub.agravity';
36
38
  export * from './frontendAppConfig.pub.agravity';
37
39
  export * from './groupAllAppData.pub.agravity';
38
40
  export * from './moveCollectionBody.pub.agravity';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agravity/public",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "description": "The Agravity GlobalDAM API which allowes API key authenticated access the Agravity GlobalDAM Backend",
5
5
  "author": "Philipp Losbichler",
6
6
  "repository": {