@agravity/private 9.2.2 → 9.2.4

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@9.2.2
1
+ ## @agravity/private@9.2.4
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.2.2
5
+ The version of the OpenAPI document: 9.2.4
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.2.2 --save
26
+ npm install @agravity/private@9.2.4 --save
27
27
  ```
28
28
 
29
29
  _without publishing (not recommended):_
@@ -79,6 +79,8 @@ export interface HttpUpdateVersionedAssetsByIdRequestParams {
79
79
  id: string;
80
80
  /** The version number of the asset. */
81
81
  vNr: string;
82
+ /** The content which should be updated. */
83
+ versionedAsset: VersionedAsset;
82
84
  }
83
85
 
84
86
  export interface HttpVersionedAssetsDeleteAllRequestParams {
@@ -813,6 +815,10 @@ export class AssetVersioningService {
813
815
  if (vNr === null || vNr === undefined) {
814
816
  throw new Error('Required parameter vNr was null or undefined when calling httpUpdateVersionedAssetsById.');
815
817
  }
818
+ const versionedAsset = requestParameters?.versionedAsset;
819
+ if (versionedAsset === null || versionedAsset === undefined) {
820
+ throw new Error('Required parameter versionedAsset was null or undefined when calling httpUpdateVersionedAssetsById.');
821
+ }
816
822
 
817
823
  let localVarHeaders = this.defaultHeaders;
818
824
 
@@ -843,6 +849,13 @@ export class AssetVersioningService {
843
849
  localVarTransferCache = true;
844
850
  }
845
851
 
852
+ // to determine the Content-Type header
853
+ const consumes: string[] = ['application/json'];
854
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
855
+ if (httpContentTypeSelected !== undefined) {
856
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
857
+ }
858
+
846
859
  let responseType_: 'text' | 'json' | 'blob' = 'json';
847
860
  if (localVarHttpHeaderAcceptSelected) {
848
861
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -857,6 +870,7 @@ export class AssetVersioningService {
857
870
  let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/versions/${this.configuration.encodeParam({ name: 'vNr', value: vNr, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
858
871
  return this.httpClient.request<VersionedAsset>('post', `${this.configuration.basePath}${localVarPath}`, {
859
872
  context: localVarHttpContext,
873
+ body: versionedAsset,
860
874
  responseType: <any>responseType_,
861
875
  withCredentials: this.configuration.withCredentials,
862
876
  headers: localVarHeaders,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agravity/private",
3
- "version": "9.2.2",
3
+ "version": "9.2.4",
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": {