@agravity/public 10.2.5 → 10.3.1

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.
@@ -9,6 +9,7 @@ api/publicAssetManagement.pub.agravity.ts
9
9
  api/publicAssetOperations.pub.agravity.ts
10
10
  api/publicAssetPublishing.pub.agravity.ts
11
11
  api/publicAssetRelationManagement.pub.agravity.ts
12
+ api/publicAssetRelationTypeManagement.pub.agravity.ts
12
13
  api/publicAssetVersioning.pub.agravity.ts
13
14
  api/publicAuthenticationManagement.pub.agravity.ts
14
15
  api/publicCollectionManagement.pub.agravity.ts
@@ -42,10 +43,13 @@ model/allWebAppData.pub.agravity.ts
42
43
  model/asset.pub.agravity.ts
43
44
  model/assetAvailability.pub.agravity.ts
44
45
  model/assetBlob.pub.agravity.ts
46
+ model/assetBulkUpdate.pub.agravity.ts
47
+ model/assetCheckout.pub.agravity.ts
45
48
  model/assetIconRule.pub.agravity.ts
46
49
  model/assetIdFormat.pub.agravity.ts
47
50
  model/assetPageResult.pub.agravity.ts
48
51
  model/assetRelation.pub.agravity.ts
52
+ model/assetRelationType.pub.agravity.ts
49
53
  model/azSearchOptions.pub.agravity.ts
50
54
  model/collTypeItem.pub.agravity.ts
51
55
  model/collection.pub.agravity.ts
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # @agravity/public@10.2.5
1
+ # @agravity/public@10.3.1
2
2
 
3
- <p>The Agravity Public API provides comprehensive access to digital asset management functionality for technical integrations, portals, and third-party applications. These endpoints are designed for programmatic access with API key authentication.</p><br/><h2>Access &amp; Security</h2><br/><b>API key is required to access these endpoints.</b><br/><ul><li>API Key Authentication - Each request requires a valid API key in headers or parameters</li><li>Portal-Aware - Many endpoints support portal context for multi-tenant scenarios</li><li>Service-to-Service Communication - Designed for backend-to-backend integrations</li><li>Stable &amp; Versioned - Public API versioning ensures backward compatibility</li></ul><h2>Core Features &amp; Operations</h2><ul><li><strong>Asset Management</strong> - Create, retrieve, update assets with full metadata support; manage versions and publish assets</li><li><strong>Collection Management</strong> - Create and organize collections hierarchically; retrieve collection type definitions and structures</li><li><strong>Asset Operations</strong> - Retrieve asset blobs (thumbnails, optimized, original); rotate and resize images; find similar assets using AI reverse search</li><li><strong>Image Editing</strong> - Apply transformations to images with advanced parameters (resize, crop, filter, color space, DPI, quality, depth)</li><li><strong>Asset Publishing</strong> - Publish assets to various targets (Vimeo, CDN); manage published asset information</li><li><strong>Asset Versioning</strong> - Create, restore, and manage asset versions; track version history with descriptions</li><li><strong>Asset Relations</strong> - Create and manage relationships between assets with hierarchical or standard relations</li><li><strong>Full-Text Search</strong> - Search assets and collections with advanced filtering, facets, and sorting capabilities</li><li><strong>Collection Sharing</strong> - Create shared collections with expiration dates, password protection, and download limits</li><li><strong>Quick Shares</strong> - Create quick share links for rapid asset sharing with expiration management</li><li><strong>Portals</strong> - Full portal management with authentication, custom theming, and asset filtering</li><li><strong>Secure Upload</strong> - Secure file upload endpoints with validation and SAS token generation</li><li><strong>Download Management</strong> - Create ZIP packages of assets with format specifications; track download progress</li><li><strong>Download Formats</strong> - Define and apply custom image transformations and optimizations for downloads</li><li><strong>Authentication</strong> - Generate SAS tokens for container write access; retrieve user information</li><li><strong>Configuration</strong> - Access frontend configuration values and system settings</li><li><strong>Helper Tools</strong> - Get searchable items, filterable items, user-defined lists, and static defined lists</li><li><strong>Translations</strong> - Retrieve translations for all entities in multiple languages</li><li><strong>Deleted Entities Tracking</strong> - Track deleted assets, collections, and other entities by date</li></ul><h2>Available Endpoints by Category</h2><ul><li><strong>Asset Management</strong> - /assets, /assets/{id}, /assetsupload, /assetrelations</li><li><strong>Asset Operations</strong> - /assets/{id}/blobs, /assets/{id}/collections, /assets/{id}/tocollection, /assets/{id}/download, /assets/{id}/resize, /assets/{id}/imageedit, /assets/{id}/availability</li><li><strong>Asset Publishing</strong> - /assets/{id}/publish, /assets/{id}/publish/{pid}</li><li><strong>Asset Versioning</strong> - /assets/{id}/versions, /assets/{id}/versionsupload, /assets/{id}/versions/{vNr}/restore</li><li><strong>AI Operations</strong> - /ai/reverseassetsearch (find similar assets using image)</li><li><strong>Collection Management</strong> - /collections, /collections/{id}, /collections/{id}/ancestors, /collections/{id}/descendants, /collections/{id}/previews, /collectionsbynames</li><li><strong>Collection Types</strong> - /collectiontypes, /collectiontypes/{id}, /collectiontypesitems</li><li><strong>Search</strong> - /search, /search/facette, /searchadmin/status</li><li><strong>Saved Searches</strong> - /savedsearches</li><li><strong>Collection Sharing</strong> - /shared/{id}, /shared/{id}/zip, /quickshares/{id}</li><li><strong>Secure Upload</strong> - /secureupload/{id}, /secureupload/{id}/upload</li><li><strong>Portal Management</strong> - /portals/{id}, /portals/{id}/config, /portals/{id}/zip, /portals/{id}/assetids, /portalsenhancetoken, /portalssaveuserattributes</li><li><strong>Authentication</strong> - /auth/containerwrite/{containerName}, /auth/inbox, /auth/users/{id}</li><li><strong>Download Formats</strong> - /downloadformats, /downloadformats-shared</li><li><strong>Configuration</strong> - /config/frontend</li><li><strong>Static Defined Lists</strong> - /staticdefinedlists, /staticdefinedlists/{id}</li><li><strong>User-Defined Lists</strong> - /helper/userdefinedlists</li><li><strong>Helper Tools</strong> - /helper/searchableitemnames, /helper/searchableitems, /helper/filterableitems</li><li><strong>Translations</strong> - /translations/{id}, /translations/{id}/{property}, /translations/{id}/custom/{customField}</li><li><strong>Web App Data</strong> - /webappdata/{id}, /data/collectiontype/{id}</li><li><strong>Workspace Management</strong> - /workspaces, /workspaces/{id}</li><li><strong>General</strong> - /version, /deleted, /durable/{instanceId}, /public/view, /signalr/negotiate</li></ul><h2>Typical Use Cases</h2><ul><li>E-commerce platforms - Product image management and dynamic optimization</li><li>Marketing automation - Asset distribution across channels with version control</li><li>Portal systems - Multi-tenant asset galleries with custom theming and permissions</li><li>Headless CMS integration - Content delivery with dynamic transformations</li><li>Mobile applications - Asset retrieval with mobile-optimized formats</li><li>AI-powered workflows - Reverse image search and automatic metadata generation</li><li>Asset sharing platforms - Secure sharing with expiration and password protection</li><li>Digital distribution - ZIP creation and bulk download management</li><li>Multi-language content - Translation management across all assets and collections</li><li>Real-time monitoring - Deletion tracking and version history auditing</li></ul><h2>Key Capabilities</h2><ul><li>Full CRUD operations on assets, collections, and related entities</li><li>Advanced image transformation with ImageMagick integration</li><li>AI-powered reverse image search for asset discovery</li><li>Multi-language support with translation dictionaries</li><li>Granular permission control and role-based access</li><li>Portal creation with custom authentication and theming</li><li>Hierarchical collection organization with dynamic filtering</li><li>Real-time search with faceted navigation and advanced filtering</li><li>Secure sharing with expiration and password protection</li><li>Blob storage integration with SAS token generation</li><li>Comprehensive asset versioning and restoration</li><li>SignalR support for real-time notifications</li></ul><h2>Authentication &amp; Authorization</h2><p>All endpoints (except public share endpoints) require API key authentication. The API key can be provided:</p><ul><li>As query parameter: ?code=YOUR_API_KEY</li><li>As header: x-functions-key: YOUR_API_KEY</li></ul><p>Portal endpoints may have additional authentication methods (OAuth, Azure AD, Auth0, password) depending on portal configuration.</p><h2>Support</h2><p>For technical support or integration questions, contact <a href=\"mailto:support@agravity.io\">support@agravity.io</a> or visit <a href=\"https://agravity.io\">https://agravity.io</a>.</p><br/><p>Copyright © Agravity GmbH 2026. All Rights Reserved</p>
3
+ <p>The Agravity Public API provides comprehensive access to digital asset management functionality for technical integrations, portals, and third-party applications. These endpoints are designed for programmatic access with API key authentication.</p><br/><h2>Access &amp; Security</h2><br/><b>API key is required to access these endpoints.</b><br/><ul><li>API Key Authentication - Each request requires a valid API key in headers or parameters</li><li>Portal-Aware - Many endpoints support portal context for multi-tenant scenarios</li><li>Service-to-Service Communication - Designed for backend-to-backend integrations</li><li>Stable &amp; Versioned - Public API versioning ensures backward compatibility</li></ul><h2>Core Features &amp; Operations</h2><ul><li><strong>Asset Management</strong> - Create, retrieve, update assets with full metadata support; manage versions and publish assets</li><li><strong>Collection Management</strong> - Create and organize collections hierarchically; retrieve collection type definitions and structures</li><li><strong>Asset Operations</strong> - Retrieve asset blobs (thumbnails, optimized, original); rotate and resize images; find similar assets using AI reverse search</li><li><strong>Image Editing</strong> - Apply transformations to images with advanced parameters (resize, crop, filter, color space, DPI, quality, depth)</li><li><strong>Asset Publishing</strong> - Publish assets to various targets (Vimeo, CDN); manage published asset information</li><li><strong>Asset Versioning</strong> - Create, restore, and manage asset versions; track version history with descriptions</li><li><strong>Asset Relations</strong> - Create and manage relationships between assets with hierarchical or standard relations; organize assets into logical groups</li><li><strong>Asset Relation Types</strong> - Retrieve relation type definitions including hierarchical, sequential, and unique-per-asset configurations</li><li><strong>Full-Text Search</strong> - Search assets and collections with advanced filtering, facets, and sorting capabilities</li><li><strong>Collection Sharing</strong> - Create shared collections with expiration dates, password protection, and download limits</li><li><strong>Quick Shares</strong> - Create quick share links for rapid asset sharing with expiration management</li><li><strong>Portals</strong> - Full portal management with authentication, custom theming, and asset filtering</li><li><strong>Secure Upload</strong> - Secure file upload endpoints with validation and SAS token generation</li><li><strong>Download Management</strong> - Create ZIP packages of assets with format specifications; track download progress</li><li><strong>Download Formats</strong> - Define and apply custom image transformations and optimizations for downloads</li><li><strong>Authentication</strong> - Generate SAS tokens for container write access; retrieve user information</li><li><strong>Configuration</strong> - Access frontend configuration values and system settings</li><li><strong>Helper Tools</strong> - Get searchable items, filterable items, user-defined lists, and static defined lists</li><li><strong>Translations</strong> - Retrieve translations for all entities in multiple languages</li><li><strong>Deleted Entities Tracking</strong> - Track deleted assets, collections, and other entities by date</li></ul><h2>Available Endpoints by Category</h2><ul><li><strong>Asset Management</strong> - /assets, /assets/{id}, /assetsupload</li><li><strong>Asset Relations</strong> - /assetrelations, /assetrelations/{id} (create, read, update, delete asset relationships)</li><li><strong>Asset Relation Types</strong> - /assetrelationtypes, /assetrelationtypes/{id} (retrieve relation type definitions and configurations)</li><li><strong>Asset Operations</strong> - /assets/{id}/blobs, /assets/{id}/collections, /assets/{id}/tocollection, /assets/{id}/download, /assets/{id}/resize, /assets/{id}/imageedit, /assets/{id}/availability</li><li><strong>Asset Publishing</strong> - /assets/{id}/publish, /assets/{id}/publish/{pid}</li><li><strong>Asset Versioning</strong> - /assets/{id}/versions, /assets/{id}/versionsupload, /assets/{id}/versions/{vNr}/restore</li><li><strong>AI Operations</strong> - /ai/reverseassetsearch (find similar assets using image)</li><li><strong>Collection Management</strong> - /collections, /collections/{id}, /collections/{id}/ancestors, /collections/{id}/descendants, /collections/{id}/previews, /collectionsbynames</li><li><strong>Collection Types</strong> - /collectiontypes, /collectiontypes/{id}, /collectiontypesitems</li><li><strong>Search</strong> - /search, /search/facette, /searchadmin/status</li><li><strong>Saved Searches</strong> - /savedsearches</li><li><strong>Collection Sharing</strong> - /shared/{id}, /shared/{id}/zip, /quickshares/{id}</li><li><strong>Secure Upload</strong> - /secureupload/{id}, /secureupload/{id}/upload</li><li><strong>Portal Management</strong> - /portals/{id}, /portals/{id}/config, /portals/{id}/zip, /portals/{id}/assetids, /portalsenhancetoken, /portalssaveuserattributes</li><li><strong>Authentication</strong> - /auth/containerwrite/{containerName}, /auth/inbox, /auth/users/{id}</li><li><strong>Download Formats</strong> - /downloadformats, /downloadformats-shared</li><li><strong>Configuration</strong> - /config/frontend</li><li><strong>Static Defined Lists</strong> - /staticdefinedlists, /staticdefinedlists/{id}</li><li><strong>User-Defined Lists</strong> - /helper/userdefinedlists</li><li><strong>Helper Tools</strong> - /helper/searchableitemnames, /helper/searchableitems, /helper/filterableitems</li><li><strong>Translations</strong> - /translations/{id}, /translations/{id}/{property}, /translations/{id}/custom/{customField}</li><li><strong>Web App Data</strong> - /webappdata/{id}, /data/collectiontype/{id}</li><li><strong>Workspace Management</strong> - /workspaces, /workspaces/{id}</li><li><strong>General</strong> - /version, /deleted, /durable/{instanceId}, /public/view, /signalr/negotiate</li></ul><h2>Typical Use Cases</h2><ul><li>E-commerce platforms - Product image management and dynamic optimization</li><li>Marketing automation - Asset distribution across channels with version control</li><li>Portal systems - Multi-tenant asset galleries with custom theming and permissions</li><li>Headless CMS integration - Content delivery with dynamic transformations</li><li>Mobile applications - Asset retrieval with mobile-optimized formats</li><li>AI-powered workflows - Reverse image search and automatic metadata generation</li><li>Asset sharing platforms - Secure sharing with expiration and password protection</li><li>Digital distribution - ZIP creation and bulk download management</li><li>Multi-language content - Translation management across all assets and collections</li><li>Real-time monitoring - Deletion tracking and version history auditing</li></ul><h2>Key Capabilities</h2><ul><li>Full CRUD operations on assets, collections, and related entities</li><li>Asset relationship management with hierarchical and standard relations</li><li>Advanced image transformation with ImageMagick integration</li><li>AI-powered reverse image search for asset discovery</li><li>Multi-language support with translation dictionaries</li><li>Granular permission control and role-based access</li><li>Portal creation with custom authentication and theming</li><li>Hierarchical collection organization with dynamic filtering</li><li>Real-time search with faceted navigation and advanced filtering</li><li>Secure sharing with expiration and password protection</li><li>Blob storage integration with SAS token generation</li><li>Comprehensive asset versioning and restoration</li><li>SignalR support for real-time notifications</li></ul><h2>Authentication &amp; Authorization</h2><p>All endpoints (except public share endpoints) require API key authentication. The API key can be provided:</p><ul><li>As query parameter: ?code=YOUR_API_KEY</li><li>As header: x-functions-key: YOUR_API_KEY</li></ul><p>Portal endpoints may have additional authentication methods (OAuth, Azure AD, Auth0, password) depending on portal configuration.</p><h2>Support</h2><p>For technical support or integration questions, contact <a href=\"mailto:support@agravity.io\">support@agravity.io</a> or visit <a href=\"https://agravity.io\">https://agravity.io</a>.</p><br/><p>Copyright © Agravity GmbH 2026. All Rights Reserved</p>
4
4
 
5
- The version of the OpenAPI document: 10.2.5
5
+ The version of the OpenAPI document: 10.3.1
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/public@10.2.5 --save
27
+ npm install @agravity/public@10.3.1 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
package/api/api.ts CHANGED
@@ -8,6 +8,8 @@ export * from './publicAssetPublishing.pub.agravity';
8
8
  import { PublicAssetPublishingService } from './publicAssetPublishing.pub.agravity';
9
9
  export * from './publicAssetRelationManagement.pub.agravity';
10
10
  import { PublicAssetRelationManagementService } from './publicAssetRelationManagement.pub.agravity';
11
+ export * from './publicAssetRelationTypeManagement.pub.agravity';
12
+ import { PublicAssetRelationTypeManagementService } from './publicAssetRelationTypeManagement.pub.agravity';
11
13
  export * from './publicAssetVersioning.pub.agravity';
12
14
  import { PublicAssetVersioningService } from './publicAssetVersioning.pub.agravity';
13
15
  export * from './publicAuthenticationManagement.pub.agravity';
@@ -54,6 +56,7 @@ export const APIS = [
54
56
  PublicAssetOperationsService,
55
57
  PublicAssetPublishingService,
56
58
  PublicAssetRelationManagementService,
59
+ PublicAssetRelationTypeManagementService,
57
60
  PublicAssetVersioningService,
58
61
  PublicAuthenticationManagementService,
59
62
  PublicCollectionManagementService,
@@ -17,8 +17,12 @@ import { Observable } from 'rxjs';
17
17
  // @ts-ignore
18
18
  import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
19
19
  // @ts-ignore
20
+ import { AgravityInfoResponse } from '../model/agravityInfoResponse.pub.agravity';
21
+ // @ts-ignore
20
22
  import { Asset } from '../model/asset.pub.agravity';
21
23
  // @ts-ignore
24
+ import { AssetBulkUpdate } from '../model/assetBulkUpdate.pub.agravity';
25
+ // @ts-ignore
22
26
  import { AssetPageResult } from '../model/assetPageResult.pub.agravity';
23
27
 
24
28
  // @ts-ignore
@@ -36,6 +40,25 @@ export interface HttpAssetUploadFileRequestParams {
36
40
  previewof?: string;
37
41
  }
38
42
 
43
+ export interface HttpAssetsBulkDeleteUpdateRequestParams {
44
+ /** This endpoint updates multiple assets. The containing keywords (tags) will removed if existing. Only custom values are removed on assets which have those items. */
45
+ assetBulkUpdate: AssetBulkUpdate;
46
+ }
47
+
48
+ export interface HttpAssetsBulkPostUpdateRequestParams {
49
+ /** This endpoint updates multiple assets. The containing keywords (tags) will be distinctly added (no removal). Only custom values are added on assets which have those items. */
50
+ assetBulkUpdate: AssetBulkUpdate;
51
+ /** The requested language of the response. If not matching it falls back to default language. */
52
+ acceptLanguage?: string;
53
+ }
54
+
55
+ export interface HttpAssetsBulkPutUpdateRequestParams {
56
+ /** This endpoint updates multiple assets. The containing keywords (tags) will replace existing. Only custom values are replaced on assets which have those items. */
57
+ assetBulkUpdate: AssetBulkUpdate;
58
+ /** The requested language of the response. If not matching it falls back to default language. */
59
+ acceptLanguage?: string;
60
+ }
61
+
39
62
  export interface HttpAssetsCreateRequestParams {
40
63
  /** The ID of the collection where this assets should be assigned. */
41
64
  collectionid: string;
@@ -47,6 +70,11 @@ export interface HttpAssetsCreateRequestParams {
47
70
  acceptLanguage?: string;
48
71
  }
49
72
 
73
+ export interface HttpAssetsDeleteByIdRequestParams {
74
+ /** The ID of the asset. */
75
+ id: string;
76
+ }
77
+
50
78
  export interface HttpAssetsGetRequestParams {
51
79
  /** The ID of the collection where these assets should come from. (Is not required when \&#39;collectiontypeid\&#39; is set.) */
52
80
  collectionid?: string;
@@ -219,6 +247,254 @@ export class PublicAssetManagementService extends BaseService {
219
247
  });
220
248
  }
221
249
 
250
+ /**
251
+ * @param requestParameters
252
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
253
+ * @param reportProgress flag to report request and response progress.
254
+ */
255
+ public httpAssetsBulkDeleteUpdate(
256
+ requestParameters: HttpAssetsBulkDeleteUpdateRequestParams,
257
+ observe?: 'body',
258
+ reportProgress?: boolean,
259
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
260
+ ): Observable<AgravityInfoResponse>;
261
+ public httpAssetsBulkDeleteUpdate(
262
+ requestParameters: HttpAssetsBulkDeleteUpdateRequestParams,
263
+ observe?: 'response',
264
+ reportProgress?: boolean,
265
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
266
+ ): Observable<HttpResponse<AgravityInfoResponse>>;
267
+ public httpAssetsBulkDeleteUpdate(
268
+ requestParameters: HttpAssetsBulkDeleteUpdateRequestParams,
269
+ observe?: 'events',
270
+ reportProgress?: boolean,
271
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
272
+ ): Observable<HttpEvent<AgravityInfoResponse>>;
273
+ public httpAssetsBulkDeleteUpdate(
274
+ requestParameters: HttpAssetsBulkDeleteUpdateRequestParams,
275
+ observe: any = 'body',
276
+ reportProgress: boolean = false,
277
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
278
+ ): Observable<any> {
279
+ const assetBulkUpdate = requestParameters?.assetBulkUpdate;
280
+ if (assetBulkUpdate === null || assetBulkUpdate === undefined) {
281
+ throw new Error('Required parameter assetBulkUpdate was null or undefined when calling httpAssetsBulkDeleteUpdate.');
282
+ }
283
+
284
+ let localVarHeaders = this.defaultHeaders;
285
+
286
+ // authentication (function_key) required
287
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
288
+
289
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
290
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
291
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
292
+ }
293
+
294
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
295
+
296
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
297
+
298
+ // to determine the Content-Type header
299
+ const consumes: string[] = ['application/json'];
300
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
301
+ if (httpContentTypeSelected !== undefined) {
302
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
303
+ }
304
+
305
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
306
+ if (localVarHttpHeaderAcceptSelected) {
307
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
308
+ responseType_ = 'text';
309
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
310
+ responseType_ = 'json';
311
+ } else {
312
+ responseType_ = 'blob';
313
+ }
314
+ }
315
+
316
+ let localVarPath = `/assetsbulkupdate`;
317
+ const { basePath, withCredentials } = this.configuration;
318
+ return this.httpClient.request<AgravityInfoResponse>('delete', `${basePath}${localVarPath}`, {
319
+ context: localVarHttpContext,
320
+ body: assetBulkUpdate,
321
+ responseType: <any>responseType_,
322
+ ...(withCredentials ? { withCredentials } : {}),
323
+ headers: localVarHeaders,
324
+ observe: observe,
325
+ transferCache: localVarTransferCache,
326
+ reportProgress: reportProgress
327
+ });
328
+ }
329
+
330
+ /**
331
+ * @param requestParameters
332
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
333
+ * @param reportProgress flag to report request and response progress.
334
+ */
335
+ public httpAssetsBulkPostUpdate(
336
+ requestParameters: HttpAssetsBulkPostUpdateRequestParams,
337
+ observe?: 'body',
338
+ reportProgress?: boolean,
339
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
340
+ ): Observable<AgravityInfoResponse>;
341
+ public httpAssetsBulkPostUpdate(
342
+ requestParameters: HttpAssetsBulkPostUpdateRequestParams,
343
+ observe?: 'response',
344
+ reportProgress?: boolean,
345
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
346
+ ): Observable<HttpResponse<AgravityInfoResponse>>;
347
+ public httpAssetsBulkPostUpdate(
348
+ requestParameters: HttpAssetsBulkPostUpdateRequestParams,
349
+ observe?: 'events',
350
+ reportProgress?: boolean,
351
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
352
+ ): Observable<HttpEvent<AgravityInfoResponse>>;
353
+ public httpAssetsBulkPostUpdate(
354
+ requestParameters: HttpAssetsBulkPostUpdateRequestParams,
355
+ observe: any = 'body',
356
+ reportProgress: boolean = false,
357
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
358
+ ): Observable<any> {
359
+ const assetBulkUpdate = requestParameters?.assetBulkUpdate;
360
+ if (assetBulkUpdate === null || assetBulkUpdate === undefined) {
361
+ throw new Error('Required parameter assetBulkUpdate was null or undefined when calling httpAssetsBulkPostUpdate.');
362
+ }
363
+ const acceptLanguage = requestParameters?.acceptLanguage;
364
+
365
+ let localVarHeaders = this.defaultHeaders;
366
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
367
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
368
+ }
369
+
370
+ // authentication (function_key) required
371
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
372
+
373
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
374
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
375
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
376
+ }
377
+
378
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
379
+
380
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
381
+
382
+ // to determine the Content-Type header
383
+ const consumes: string[] = ['application/json'];
384
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
385
+ if (httpContentTypeSelected !== undefined) {
386
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
387
+ }
388
+
389
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
390
+ if (localVarHttpHeaderAcceptSelected) {
391
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
392
+ responseType_ = 'text';
393
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
394
+ responseType_ = 'json';
395
+ } else {
396
+ responseType_ = 'blob';
397
+ }
398
+ }
399
+
400
+ let localVarPath = `/assetsbulkupdate`;
401
+ const { basePath, withCredentials } = this.configuration;
402
+ return this.httpClient.request<AgravityInfoResponse>('post', `${basePath}${localVarPath}`, {
403
+ context: localVarHttpContext,
404
+ body: assetBulkUpdate,
405
+ responseType: <any>responseType_,
406
+ ...(withCredentials ? { withCredentials } : {}),
407
+ headers: localVarHeaders,
408
+ observe: observe,
409
+ transferCache: localVarTransferCache,
410
+ reportProgress: reportProgress
411
+ });
412
+ }
413
+
414
+ /**
415
+ * @param requestParameters
416
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
417
+ * @param reportProgress flag to report request and response progress.
418
+ */
419
+ public httpAssetsBulkPutUpdate(
420
+ requestParameters: HttpAssetsBulkPutUpdateRequestParams,
421
+ observe?: 'body',
422
+ reportProgress?: boolean,
423
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
424
+ ): Observable<AgravityInfoResponse>;
425
+ public httpAssetsBulkPutUpdate(
426
+ requestParameters: HttpAssetsBulkPutUpdateRequestParams,
427
+ observe?: 'response',
428
+ reportProgress?: boolean,
429
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
430
+ ): Observable<HttpResponse<AgravityInfoResponse>>;
431
+ public httpAssetsBulkPutUpdate(
432
+ requestParameters: HttpAssetsBulkPutUpdateRequestParams,
433
+ observe?: 'events',
434
+ reportProgress?: boolean,
435
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
436
+ ): Observable<HttpEvent<AgravityInfoResponse>>;
437
+ public httpAssetsBulkPutUpdate(
438
+ requestParameters: HttpAssetsBulkPutUpdateRequestParams,
439
+ observe: any = 'body',
440
+ reportProgress: boolean = false,
441
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
442
+ ): Observable<any> {
443
+ const assetBulkUpdate = requestParameters?.assetBulkUpdate;
444
+ if (assetBulkUpdate === null || assetBulkUpdate === undefined) {
445
+ throw new Error('Required parameter assetBulkUpdate was null or undefined when calling httpAssetsBulkPutUpdate.');
446
+ }
447
+ const acceptLanguage = requestParameters?.acceptLanguage;
448
+
449
+ let localVarHeaders = this.defaultHeaders;
450
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
451
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
452
+ }
453
+
454
+ // authentication (function_key) required
455
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
456
+
457
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
458
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
459
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
460
+ }
461
+
462
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
463
+
464
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
465
+
466
+ // to determine the Content-Type header
467
+ const consumes: string[] = ['application/json'];
468
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
469
+ if (httpContentTypeSelected !== undefined) {
470
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
471
+ }
472
+
473
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
474
+ if (localVarHttpHeaderAcceptSelected) {
475
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
476
+ responseType_ = 'text';
477
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
478
+ responseType_ = 'json';
479
+ } else {
480
+ responseType_ = 'blob';
481
+ }
482
+ }
483
+
484
+ let localVarPath = `/assetsbulkupdate`;
485
+ const { basePath, withCredentials } = this.configuration;
486
+ return this.httpClient.request<AgravityInfoResponse>('put', `${basePath}${localVarPath}`, {
487
+ context: localVarHttpContext,
488
+ body: assetBulkUpdate,
489
+ responseType: <any>responseType_,
490
+ ...(withCredentials ? { withCredentials } : {}),
491
+ headers: localVarHeaders,
492
+ observe: observe,
493
+ transferCache: localVarTransferCache,
494
+ reportProgress: reportProgress
495
+ });
496
+ }
497
+
222
498
  /**
223
499
  * This endpoint creates one asset entry in the database.
224
500
  * @param requestParameters
@@ -314,6 +590,78 @@ export class PublicAssetManagementService extends BaseService {
314
590
  });
315
591
  }
316
592
 
593
+ /**
594
+ * @param requestParameters
595
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
596
+ * @param reportProgress flag to report request and response progress.
597
+ */
598
+ public httpAssetsDeleteById(
599
+ requestParameters: HttpAssetsDeleteByIdRequestParams,
600
+ observe?: 'body',
601
+ reportProgress?: boolean,
602
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
603
+ ): Observable<any>;
604
+ public httpAssetsDeleteById(
605
+ requestParameters: HttpAssetsDeleteByIdRequestParams,
606
+ observe?: 'response',
607
+ reportProgress?: boolean,
608
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
609
+ ): Observable<HttpResponse<any>>;
610
+ public httpAssetsDeleteById(
611
+ requestParameters: HttpAssetsDeleteByIdRequestParams,
612
+ observe?: 'events',
613
+ reportProgress?: boolean,
614
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
615
+ ): Observable<HttpEvent<any>>;
616
+ public httpAssetsDeleteById(
617
+ requestParameters: HttpAssetsDeleteByIdRequestParams,
618
+ observe: any = 'body',
619
+ reportProgress: boolean = false,
620
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
621
+ ): Observable<any> {
622
+ const id = requestParameters?.id;
623
+ if (id === null || id === undefined) {
624
+ throw new Error('Required parameter id was null or undefined when calling httpAssetsDeleteById.');
625
+ }
626
+
627
+ let localVarHeaders = this.defaultHeaders;
628
+
629
+ // authentication (function_key) required
630
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
631
+
632
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
633
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
634
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
635
+ }
636
+
637
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
638
+
639
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
640
+
641
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
642
+ if (localVarHttpHeaderAcceptSelected) {
643
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
644
+ responseType_ = 'text';
645
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
646
+ responseType_ = 'json';
647
+ } else {
648
+ responseType_ = 'blob';
649
+ }
650
+ }
651
+
652
+ let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
653
+ const { basePath, withCredentials } = this.configuration;
654
+ return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
655
+ context: localVarHttpContext,
656
+ responseType: <any>responseType_,
657
+ ...(withCredentials ? { withCredentials } : {}),
658
+ headers: localVarHeaders,
659
+ observe: observe,
660
+ transferCache: localVarTransferCache,
661
+ reportProgress: reportProgress
662
+ });
663
+ }
664
+
317
665
  /**
318
666
  * This endpoint lists all the assets, which are stored in the database and not deleted (status \&quot;A\&quot;)
319
667
  * @param requestParameters
@@ -21,6 +21,8 @@ import { AssetAvailability } from '../model/assetAvailability.pub.agravity';
21
21
  // @ts-ignore
22
22
  import { AssetBlob } from '../model/assetBlob.pub.agravity';
23
23
  // @ts-ignore
24
+ import { AssetRelation } from '../model/assetRelation.pub.agravity';
25
+ // @ts-ignore
24
26
  import { Collection } from '../model/collection.pub.agravity';
25
27
  // @ts-ignore
26
28
  import { DynamicImageOperation } from '../model/dynamicImageOperation.pub.agravity';
@@ -114,6 +116,11 @@ export interface HttpGetAssetDownloadRequestParams {
114
116
  key?: string;
115
117
  }
116
118
 
119
+ export interface HttpGetAssetRelationsByIdRequestParams {
120
+ /** The ID of the asset. */
121
+ id: string;
122
+ }
123
+
117
124
  export interface HttpGetSharedAssetBlobRequestParams {
118
125
  /** This share ID is like an API key. Check on validy (format, expire, collection still availabe). Otherwise StatusCode 403 (Forbidden) is returned. */
119
126
  shareId: string;
@@ -655,6 +662,79 @@ export class PublicAssetOperationsService extends BaseService {
655
662
  });
656
663
  }
657
664
 
665
+ /**
666
+ * This endpoint returns the asset relations
667
+ * @param requestParameters
668
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
669
+ * @param reportProgress flag to report request and response progress.
670
+ */
671
+ public httpGetAssetRelationsById(
672
+ requestParameters: HttpGetAssetRelationsByIdRequestParams,
673
+ observe?: 'body',
674
+ reportProgress?: boolean,
675
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
676
+ ): Observable<Array<AssetRelation>>;
677
+ public httpGetAssetRelationsById(
678
+ requestParameters: HttpGetAssetRelationsByIdRequestParams,
679
+ observe?: 'response',
680
+ reportProgress?: boolean,
681
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
682
+ ): Observable<HttpResponse<Array<AssetRelation>>>;
683
+ public httpGetAssetRelationsById(
684
+ requestParameters: HttpGetAssetRelationsByIdRequestParams,
685
+ observe?: 'events',
686
+ reportProgress?: boolean,
687
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
688
+ ): Observable<HttpEvent<Array<AssetRelation>>>;
689
+ public httpGetAssetRelationsById(
690
+ requestParameters: HttpGetAssetRelationsByIdRequestParams,
691
+ observe: any = 'body',
692
+ reportProgress: boolean = false,
693
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
694
+ ): Observable<any> {
695
+ const id = requestParameters?.id;
696
+ if (id === null || id === undefined) {
697
+ throw new Error('Required parameter id was null or undefined when calling httpGetAssetRelationsById.');
698
+ }
699
+
700
+ let localVarHeaders = this.defaultHeaders;
701
+
702
+ // authentication (function_key) required
703
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
704
+
705
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
706
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
707
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
708
+ }
709
+
710
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
711
+
712
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
713
+
714
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
715
+ if (localVarHttpHeaderAcceptSelected) {
716
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
717
+ responseType_ = 'text';
718
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
719
+ responseType_ = 'json';
720
+ } else {
721
+ responseType_ = 'blob';
722
+ }
723
+ }
724
+
725
+ let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/relations`;
726
+ const { basePath, withCredentials } = this.configuration;
727
+ return this.httpClient.request<Array<AssetRelation>>('get', `${basePath}${localVarPath}`, {
728
+ context: localVarHttpContext,
729
+ responseType: <any>responseType_,
730
+ ...(withCredentials ? { withCredentials } : {}),
731
+ headers: localVarHeaders,
732
+ observe: observe,
733
+ transferCache: localVarTransferCache,
734
+ reportProgress: reportProgress
735
+ });
736
+ }
737
+
658
738
  /**
659
739
  * This endpoint checks, if an asset exists, is an image, has original blob, is status active, is part of the shared collection and returns the requested asset blob.
660
740
  * @param requestParameters
@@ -25,6 +25,8 @@ import { AgravityPublicConfiguration } from '../configuration';
25
25
  import { BaseService } from '../api.base.service';
26
26
 
27
27
  export interface HttpAssetRelationCreateRequestParams {
28
+ /** This endpoint creates an asset relation in the database. */
29
+ assetRelation: AssetRelation;
28
30
  /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
29
31
  translations?: boolean;
30
32
  /** The requested language of the response. If not matching it falls back to default language. */
@@ -84,29 +86,33 @@ export class PublicAssetRelationManagementService extends BaseService {
84
86
  * @param reportProgress flag to report request and response progress.
85
87
  */
86
88
  public httpAssetRelationCreate(
87
- requestParameters?: HttpAssetRelationCreateRequestParams,
89
+ requestParameters: HttpAssetRelationCreateRequestParams,
88
90
  observe?: 'body',
89
91
  reportProgress?: boolean,
90
92
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
91
93
  ): Observable<AssetRelation>;
92
94
  public httpAssetRelationCreate(
93
- requestParameters?: HttpAssetRelationCreateRequestParams,
95
+ requestParameters: HttpAssetRelationCreateRequestParams,
94
96
  observe?: 'response',
95
97
  reportProgress?: boolean,
96
98
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
97
99
  ): Observable<HttpResponse<AssetRelation>>;
98
100
  public httpAssetRelationCreate(
99
- requestParameters?: HttpAssetRelationCreateRequestParams,
101
+ requestParameters: HttpAssetRelationCreateRequestParams,
100
102
  observe?: 'events',
101
103
  reportProgress?: boolean,
102
104
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
103
105
  ): Observable<HttpEvent<AssetRelation>>;
104
106
  public httpAssetRelationCreate(
105
- requestParameters?: HttpAssetRelationCreateRequestParams,
107
+ requestParameters: HttpAssetRelationCreateRequestParams,
106
108
  observe: any = 'body',
107
109
  reportProgress: boolean = false,
108
110
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
109
111
  ): Observable<any> {
112
+ const assetRelation = requestParameters?.assetRelation;
113
+ if (assetRelation === null || assetRelation === undefined) {
114
+ throw new Error('Required parameter assetRelation was null or undefined when calling httpAssetRelationCreate.');
115
+ }
110
116
  const translations = requestParameters?.translations;
111
117
  const acceptLanguage = requestParameters?.acceptLanguage;
112
118
  const assetrelationtypeid = requestParameters?.assetrelationtypeid;
@@ -132,6 +138,13 @@ export class PublicAssetRelationManagementService extends BaseService {
132
138
 
133
139
  const localVarTransferCache: boolean = options?.transferCache ?? true;
134
140
 
141
+ // to determine the Content-Type header
142
+ const consumes: string[] = ['application/json'];
143
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
144
+ if (httpContentTypeSelected !== undefined) {
145
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
146
+ }
147
+
135
148
  let responseType_: 'text' | 'json' | 'blob' = 'json';
136
149
  if (localVarHttpHeaderAcceptSelected) {
137
150
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -147,6 +160,7 @@ export class PublicAssetRelationManagementService extends BaseService {
147
160
  const { basePath, withCredentials } = this.configuration;
148
161
  return this.httpClient.request<AssetRelation>('post', `${basePath}${localVarPath}`, {
149
162
  context: localVarHttpContext,
163
+ body: assetRelation,
150
164
  params: localVarQueryParameters,
151
165
  responseType: <any>responseType_,
152
166
  ...(withCredentials ? { withCredentials } : {}),
@@ -0,0 +1,212 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Public Functions
3
+ *
4
+ * Contact: support@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
+ /* tslint:disable:no-unused-variable member-ordering */
11
+
12
+ import { Inject, Injectable, Optional } from '@angular/core';
13
+ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
14
+ import { CustomHttpParameterCodec } from '../encoder';
15
+ import { Observable } from 'rxjs';
16
+
17
+ // @ts-ignore
18
+ import { AssetRelationType } from '../model/assetRelationType.pub.agravity';
19
+
20
+ // @ts-ignore
21
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
22
+ import { AgravityPublicConfiguration } from '../configuration';
23
+ import { BaseService } from '../api.base.service';
24
+
25
+ export interface HttpAssetRelationTypeGetAllRequestParams {
26
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
27
+ translations?: boolean;
28
+ /** The requested language of the response. If not matching it falls back to default language. */
29
+ acceptLanguage?: string;
30
+ }
31
+
32
+ export interface HttpAssetRelationTypeGetByIdRequestParams {
33
+ /** The ID of the asset relation type. */
34
+ id: string;
35
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
36
+ translations?: boolean;
37
+ /** The requested language of the response. If not matching it falls back to default language. */
38
+ acceptLanguage?: string;
39
+ }
40
+
41
+ @Injectable({
42
+ providedIn: 'root'
43
+ })
44
+ export class PublicAssetRelationTypeManagementService extends BaseService {
45
+ constructor(
46
+ protected httpClient: HttpClient,
47
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
48
+ @Optional() configuration?: AgravityPublicConfiguration
49
+ ) {
50
+ super(basePath, configuration);
51
+ }
52
+
53
+ /**
54
+ * This endpoint lists all asset relation types in database.
55
+ * @param requestParameters
56
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
57
+ * @param reportProgress flag to report request and response progress.
58
+ */
59
+ public httpAssetRelationTypeGetAll(
60
+ requestParameters?: HttpAssetRelationTypeGetAllRequestParams,
61
+ observe?: 'body',
62
+ reportProgress?: boolean,
63
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
64
+ ): Observable<Array<AssetRelationType>>;
65
+ public httpAssetRelationTypeGetAll(
66
+ requestParameters?: HttpAssetRelationTypeGetAllRequestParams,
67
+ observe?: 'response',
68
+ reportProgress?: boolean,
69
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
70
+ ): Observable<HttpResponse<Array<AssetRelationType>>>;
71
+ public httpAssetRelationTypeGetAll(
72
+ requestParameters?: HttpAssetRelationTypeGetAllRequestParams,
73
+ observe?: 'events',
74
+ reportProgress?: boolean,
75
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
76
+ ): Observable<HttpEvent<Array<AssetRelationType>>>;
77
+ public httpAssetRelationTypeGetAll(
78
+ requestParameters?: HttpAssetRelationTypeGetAllRequestParams,
79
+ observe: any = 'body',
80
+ reportProgress: boolean = false,
81
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
82
+ ): Observable<any> {
83
+ const translations = requestParameters?.translations;
84
+ const acceptLanguage = requestParameters?.acceptLanguage;
85
+
86
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
87
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
88
+
89
+ let localVarHeaders = this.defaultHeaders;
90
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
91
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
92
+ }
93
+
94
+ // authentication (function_key) required
95
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
96
+
97
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
98
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
99
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
100
+ }
101
+
102
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
103
+
104
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
105
+
106
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
107
+ if (localVarHttpHeaderAcceptSelected) {
108
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
109
+ responseType_ = 'text';
110
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
111
+ responseType_ = 'json';
112
+ } else {
113
+ responseType_ = 'blob';
114
+ }
115
+ }
116
+
117
+ let localVarPath = `/assetrelationtypes`;
118
+ const { basePath, withCredentials } = this.configuration;
119
+ return this.httpClient.request<Array<AssetRelationType>>('get', `${basePath}${localVarPath}`, {
120
+ context: localVarHttpContext,
121
+ params: localVarQueryParameters,
122
+ responseType: <any>responseType_,
123
+ ...(withCredentials ? { withCredentials } : {}),
124
+ headers: localVarHeaders,
125
+ observe: observe,
126
+ transferCache: localVarTransferCache,
127
+ reportProgress: reportProgress
128
+ });
129
+ }
130
+
131
+ /**
132
+ * This endpoint gets a single asset relation type.
133
+ * @param requestParameters
134
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
135
+ * @param reportProgress flag to report request and response progress.
136
+ */
137
+ public httpAssetRelationTypeGetById(
138
+ requestParameters: HttpAssetRelationTypeGetByIdRequestParams,
139
+ observe?: 'body',
140
+ reportProgress?: boolean,
141
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
142
+ ): Observable<AssetRelationType>;
143
+ public httpAssetRelationTypeGetById(
144
+ requestParameters: HttpAssetRelationTypeGetByIdRequestParams,
145
+ observe?: 'response',
146
+ reportProgress?: boolean,
147
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
148
+ ): Observable<HttpResponse<AssetRelationType>>;
149
+ public httpAssetRelationTypeGetById(
150
+ requestParameters: HttpAssetRelationTypeGetByIdRequestParams,
151
+ observe?: 'events',
152
+ reportProgress?: boolean,
153
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
154
+ ): Observable<HttpEvent<AssetRelationType>>;
155
+ public httpAssetRelationTypeGetById(
156
+ requestParameters: HttpAssetRelationTypeGetByIdRequestParams,
157
+ observe: any = 'body',
158
+ reportProgress: boolean = false,
159
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
160
+ ): Observable<any> {
161
+ const id = requestParameters?.id;
162
+ if (id === null || id === undefined) {
163
+ throw new Error('Required parameter id was null or undefined when calling httpAssetRelationTypeGetById.');
164
+ }
165
+ const translations = requestParameters?.translations;
166
+ const acceptLanguage = requestParameters?.acceptLanguage;
167
+
168
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
169
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
170
+
171
+ let localVarHeaders = this.defaultHeaders;
172
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
173
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
174
+ }
175
+
176
+ // authentication (function_key) required
177
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
178
+
179
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
180
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
181
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
182
+ }
183
+
184
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
185
+
186
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
187
+
188
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
189
+ if (localVarHttpHeaderAcceptSelected) {
190
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
191
+ responseType_ = 'text';
192
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
193
+ responseType_ = 'json';
194
+ } else {
195
+ responseType_ = 'blob';
196
+ }
197
+ }
198
+
199
+ let localVarPath = `/assetrelationtypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
200
+ const { basePath, withCredentials } = this.configuration;
201
+ return this.httpClient.request<AssetRelationType>('get', `${basePath}${localVarPath}`, {
202
+ context: localVarHttpContext,
203
+ params: localVarQueryParameters,
204
+ responseType: <any>responseType_,
205
+ ...(withCredentials ? { withCredentials } : {}),
206
+ headers: localVarHeaders,
207
+ observe: observe,
208
+ transferCache: localVarTransferCache,
209
+ reportProgress: reportProgress
210
+ });
211
+ }
212
+ }
@@ -16,8 +16,9 @@ export interface AgravityVersion {
16
16
  updated?: string | null;
17
17
  client_id?: string | null;
18
18
  tenant_id?: string | null;
19
+ subscription_id?: string | null;
19
20
  base?: string | null;
20
21
  version?: string | null;
21
- vector_search_enabled?: boolean | null;
22
+ enabled_features?: Array<string> | null;
22
23
  region?: string | null;
23
24
  }
@@ -9,6 +9,7 @@
9
9
  */
10
10
  import { CollTypeItem } from './collTypeItem.pub.agravity';
11
11
  import { AssetBlob } from './assetBlob.pub.agravity';
12
+ import { AssetCheckout } from './assetCheckout.pub.agravity';
12
13
 
13
14
  export interface Asset {
14
15
  id?: string | null;
@@ -26,6 +27,8 @@ export interface Asset {
26
27
  availability?: string | null;
27
28
  available_from?: string | null;
28
29
  available_to?: string | null;
30
+ checkout?: AssetCheckout | null;
31
+ fs_synced?: string | null;
29
32
  custom?: any | null;
30
33
  items?: Array<CollTypeItem> | null;
31
34
  translations?: { [key: string]: { [key: string]: any } } | null;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Public Functions
3
+ *
4
+ * Contact: support@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 { Asset } from './asset.pub.agravity';
11
+
12
+ export interface AssetBulkUpdate {
13
+ collection_id?: string | null;
14
+ ref_asset?: Asset;
15
+ asset_ids?: Array<string> | null;
16
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Public Functions
3
+ *
4
+ * Contact: support@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 AssetCheckout {
12
+ user_id?: string | null;
13
+ checkout_date?: string | null;
14
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Public Functions
3
+ *
4
+ * Contact: support@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 { PermissionEntity } from './permissionEntity.pub.agravity';
11
+
12
+ export interface AssetRelationType {
13
+ id?: string | null;
14
+ entity_type?: string | null;
15
+ hierarchical?: boolean | null;
16
+ sequential?: boolean | null;
17
+ unique_per_asset?: boolean | null;
18
+ translations?: { [key: string]: { [key: string]: any } } | null;
19
+ permissions?: Array<PermissionEntity> | null;
20
+ name?: string | null;
21
+ description?: string | null;
22
+ add_properties?: { [key: string]: any } | null;
23
+ status?: string | null;
24
+ created_date?: string | null;
25
+ created_by?: string | null;
26
+ modified_date?: string | null;
27
+ modified_by?: string | null;
28
+ pk?: string | null;
29
+ _etag?: string | null;
30
+ }
package/model/models.ts CHANGED
@@ -7,10 +7,13 @@ export * from './allWebAppData.pub.agravity';
7
7
  export * from './asset.pub.agravity';
8
8
  export * from './assetAvailability.pub.agravity';
9
9
  export * from './assetBlob.pub.agravity';
10
+ export * from './assetBulkUpdate.pub.agravity';
11
+ export * from './assetCheckout.pub.agravity';
10
12
  export * from './assetIconRule.pub.agravity';
11
13
  export * from './assetIdFormat.pub.agravity';
12
14
  export * from './assetPageResult.pub.agravity';
13
15
  export * from './assetRelation.pub.agravity';
16
+ export * from './assetRelationType.pub.agravity';
14
17
  export * from './azSearchOptions.pub.agravity';
15
18
  export * from './collTypeItem.pub.agravity';
16
19
  export * from './collection.pub.agravity';
@@ -26,7 +26,11 @@ export namespace WhereParam {
26
26
  Contains: 'Contains',
27
27
  StartsWith: 'StartsWith',
28
28
  ArrayContains: 'ArrayContains',
29
- ArrayContainsPartial: 'ArrayContainsPartial'
29
+ ArrayContainsPartial: 'ArrayContainsPartial',
30
+ IsDefined: 'IsDefined',
31
+ IsNotDefined: 'IsNotDefined',
32
+ IsEmpty: 'IsEmpty',
33
+ IsNotEmpty: 'IsNotEmpty'
30
34
  } as const;
31
35
  export type OperatorEnum = (typeof OperatorEnum)[keyof typeof OperatorEnum];
32
36
  export const ValueTypeEnum = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agravity/public",
3
- "version": "10.2.5",
3
+ "version": "10.3.1",
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": {