@agravity/private 10.0.1 → 10.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.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # @agravity/private@10.0.1
1
+ # @agravity/private@10.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: 10.0.1
5
+ The version of the OpenAPI document: 10.0.2
6
6
 
7
7
  ## Building
8
8
 
@@ -24,7 +24,7 @@ Navigate to the folder of your consuming project and run one of next commands.
24
24
  _published:_
25
25
 
26
26
  ```console
27
- npm install @agravity/private@10.0.1 --save
27
+ npm install @agravity/private@10.0.2 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -24,6 +24,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
24
  import { AgravityConfiguration } from '../configuration';
25
25
  import { BaseService } from '../api.base.service';
26
26
 
27
+ export interface HttpStructureCreateCollectionsRequestParams {
28
+ /** The collection-type id to be used for creating the structure. If not given, the default collection-type is used (as defined in app settings). */
29
+ collectiontypeid?: string;
30
+ /** The collection id to be used as parent for creating the structure. If not given, the structure is created at root level of the given collection-type. */
31
+ parent?: string;
32
+ /** If set to true, the root folder level is treated as collection-type and not as collection. Cannot be used together with parameter \&quot;parent\&quot; or \&quot;collectiontypeid\&quot;. Default is false. */
33
+ rootiscolltype?: string;
34
+ }
35
+
27
36
  @Injectable({
28
37
  providedIn: 'root'
29
38
  })
@@ -38,29 +47,43 @@ export class StructureImportService extends BaseService {
38
47
 
39
48
  /**
40
49
  * This endpoint reads and creates structure elements for subfolders in the database based on container folder structure
50
+ * @param requestParameters
41
51
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
42
52
  * @param reportProgress flag to report request and response progress.
43
53
  */
44
54
  public httpStructureCreateCollections(
55
+ requestParameters?: HttpStructureCreateCollectionsRequestParams,
45
56
  observe?: 'body',
46
57
  reportProgress?: boolean,
47
58
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
48
59
  ): Observable<Array<BlobInfoObj>>;
49
60
  public httpStructureCreateCollections(
61
+ requestParameters?: HttpStructureCreateCollectionsRequestParams,
50
62
  observe?: 'response',
51
63
  reportProgress?: boolean,
52
64
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
53
65
  ): Observable<HttpResponse<Array<BlobInfoObj>>>;
54
66
  public httpStructureCreateCollections(
67
+ requestParameters?: HttpStructureCreateCollectionsRequestParams,
55
68
  observe?: 'events',
56
69
  reportProgress?: boolean,
57
70
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
58
71
  ): Observable<HttpEvent<Array<BlobInfoObj>>>;
59
72
  public httpStructureCreateCollections(
73
+ requestParameters?: HttpStructureCreateCollectionsRequestParams,
60
74
  observe: any = 'body',
61
75
  reportProgress: boolean = false,
62
76
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
63
77
  ): Observable<any> {
78
+ const collectiontypeid = requestParameters?.collectiontypeid;
79
+ const parent = requestParameters?.parent;
80
+ const rootiscolltype = requestParameters?.rootiscolltype;
81
+
82
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
83
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectiontypeid, 'collectiontypeid');
84
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>parent, 'parent');
85
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>rootiscolltype, 'rootiscolltype');
86
+
64
87
  let localVarHeaders = this.defaultHeaders;
65
88
 
66
89
  // authentication (msal_auth) required
@@ -90,6 +113,7 @@ export class StructureImportService extends BaseService {
90
113
  const { basePath, withCredentials } = this.configuration;
91
114
  return this.httpClient.request<Array<BlobInfoObj>>('put', `${basePath}${localVarPath}`, {
92
115
  context: localVarHttpContext,
116
+ params: localVarQueryParameters,
93
117
  responseType: <any>responseType_,
94
118
  ...(withCredentials ? { withCredentials } : {}),
95
119
  headers: localVarHeaders,
@@ -15,4 +15,5 @@ export interface PortalFields {
15
15
  facet_order?: number | null;
16
16
  labels?: { [key: string]: string } | null;
17
17
  user_context?: PortalUserContext | null;
18
+ format?: string | null;
18
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agravity/private",
3
- "version": "10.0.1",
3
+ "version": "10.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": {