@agravity/private 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.
@@ -89,6 +89,8 @@ model/downloadZipStatus.agravity.ts
89
89
  model/dynamicImageOperation.agravity.ts
90
90
  model/entityId.agravity.ts
91
91
  model/entityIdName.agravity.ts
92
+ model/entityListResult.agravity.ts
93
+ model/entityNamesRequest.agravity.ts
92
94
  model/entityTranslations.agravity.ts
93
95
  model/excelExportTableEntity.agravity.ts
94
96
  model/frontendAppConfig.agravity.ts
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- ## @agravity/private@9.0.0
1
+ ## @agravity/private@9.0.2
2
2
 
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 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/private@9.0.0 --save
26
+ npm install @agravity/private@9.0.2 --save
27
27
  ```
28
28
 
29
29
  _without publishing (not recommended):_
@@ -20,6 +20,10 @@ import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
20
20
  import { AgravityInfoResponse } from '../model/agravityInfoResponse.agravity';
21
21
  // @ts-ignore
22
22
  import { Collection } from '../model/collection.agravity';
23
+ // @ts-ignore
24
+ import { EntityListResult } from '../model/entityListResult.agravity';
25
+ // @ts-ignore
26
+ import { EntityNamesRequest } from '../model/entityNamesRequest.agravity';
23
27
 
24
28
  // @ts-ignore
25
29
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
@@ -112,6 +116,11 @@ export interface HttpPatchCollectionRepairRequestParams {
112
116
  id: string;
113
117
  }
114
118
 
119
+ export interface HttpPostCollectionsGetByNamesRequestParams {
120
+ /** An object with the array of strings with names of the collections to fetch. */
121
+ entityNamesRequest: EntityNamesRequest;
122
+ }
123
+
115
124
  export interface HttpRestoreCollectionRequestParams {
116
125
  /** The ID of the collection. */
117
126
  id: string;
@@ -1092,6 +1101,101 @@ export class CollectionManagementService {
1092
1101
  });
1093
1102
  }
1094
1103
 
1104
+ /**
1105
+ * 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.
1106
+ * @param requestParameters
1107
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1108
+ * @param reportProgress flag to report request and response progress.
1109
+ */
1110
+ public httpPostCollectionsGetByNames(
1111
+ requestParameters?: HttpPostCollectionsGetByNamesRequestParams,
1112
+ observe?: 'body',
1113
+ reportProgress?: boolean,
1114
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1115
+ ): Observable<EntityListResult>;
1116
+ public httpPostCollectionsGetByNames(
1117
+ requestParameters?: HttpPostCollectionsGetByNamesRequestParams,
1118
+ observe?: 'response',
1119
+ reportProgress?: boolean,
1120
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1121
+ ): Observable<HttpResponse<EntityListResult>>;
1122
+ public httpPostCollectionsGetByNames(
1123
+ requestParameters?: HttpPostCollectionsGetByNamesRequestParams,
1124
+ observe?: 'events',
1125
+ reportProgress?: boolean,
1126
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1127
+ ): Observable<HttpEvent<EntityListResult>>;
1128
+ public httpPostCollectionsGetByNames(
1129
+ requestParameters?: HttpPostCollectionsGetByNamesRequestParams,
1130
+ observe: any = 'body',
1131
+ reportProgress: boolean = false,
1132
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
1133
+ ): Observable<any> {
1134
+ const entityNamesRequest = requestParameters?.entityNamesRequest;
1135
+ if (entityNamesRequest === null || entityNamesRequest === undefined) {
1136
+ throw new Error('Required parameter entityNamesRequest was null or undefined when calling httpPostCollectionsGetByNames.');
1137
+ }
1138
+
1139
+ let localVarHeaders = this.defaultHeaders;
1140
+
1141
+ let localVarCredential: string | undefined;
1142
+ // authentication (msal_auth) required
1143
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
1144
+ if (localVarCredential) {
1145
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
1146
+ }
1147
+
1148
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
1149
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1150
+ // to determine the Accept header
1151
+ const httpHeaderAccepts: string[] = ['application/json'];
1152
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1153
+ }
1154
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1155
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1156
+ }
1157
+
1158
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
1159
+ if (localVarHttpContext === undefined) {
1160
+ localVarHttpContext = new HttpContext();
1161
+ }
1162
+
1163
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
1164
+ if (localVarTransferCache === undefined) {
1165
+ localVarTransferCache = true;
1166
+ }
1167
+
1168
+ // to determine the Content-Type header
1169
+ const consumes: string[] = ['application/json'];
1170
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
1171
+ if (httpContentTypeSelected !== undefined) {
1172
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1173
+ }
1174
+
1175
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
1176
+ if (localVarHttpHeaderAcceptSelected) {
1177
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1178
+ responseType_ = 'text';
1179
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1180
+ responseType_ = 'json';
1181
+ } else {
1182
+ responseType_ = 'blob';
1183
+ }
1184
+ }
1185
+
1186
+ let localVarPath = `/collectionsbynames`;
1187
+ return this.httpClient.request<EntityListResult>('post', `${this.configuration.basePath}${localVarPath}`, {
1188
+ context: localVarHttpContext,
1189
+ body: entityNamesRequest,
1190
+ responseType: <any>responseType_,
1191
+ withCredentials: this.configuration.withCredentials,
1192
+ headers: localVarHeaders,
1193
+ observe: observe,
1194
+ transferCache: localVarTransferCache,
1195
+ reportProgress: reportProgress
1196
+ });
1197
+ }
1198
+
1095
1199
  /**
1096
1200
  * Restore a collection to a certain point in time
1097
1201
  * @param requestParameters
@@ -12,6 +12,7 @@ import { EntityIdName } from './entityIdName.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 - Private 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.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 - Private 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
@@ -40,6 +40,8 @@ export * from './downloadZipStatus.agravity';
40
40
  export * from './dynamicImageOperation.agravity';
41
41
  export * from './entityId.agravity';
42
42
  export * from './entityIdName.agravity';
43
+ export * from './entityListResult.agravity';
44
+ export * from './entityNamesRequest.agravity';
43
45
  export * from './entityTranslations.agravity';
44
46
  export * from './excelExportTableEntity.agravity';
45
47
  export * from './frontendAppConfig.agravity';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agravity/private",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
4
4
  "description": "The Agravity GlobalDAM API which allowes authenticated user to access the Agravity GlobalDAM Backend",
5
5
  "author": "Philipp Losbichler",
6
6
  "repository": {