@agravity/public 10.3.4 → 11.0.0
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/.openapi-generator/FILES +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api/publicAIOperations.pub.agravity.ts +5 -3
- package/api/publicAssetManagement.pub.agravity.ts +69 -35
- package/api/publicAssetOperations.pub.agravity.ts +114 -59
- package/api/publicAssetPublishing.pub.agravity.ts +11 -5
- package/api/publicAssetRelationManagement.pub.agravity.ts +37 -21
- package/api/publicAssetRelationTypeManagement.pub.agravity.ts +16 -10
- package/api/publicAssetVersioning.pub.agravity.ts +27 -12
- package/api/publicAuthenticationManagement.pub.agravity.ts +19 -11
- package/api/publicCollectionManagement.pub.agravity.ts +67 -36
- package/api/publicCollectionSecureUpload.pub.agravity.ts +16 -10
- package/api/publicCollectionTypeManagement.pub.agravity.ts +25 -15
- package/api/publicConfigurationManagement.pub.agravity.ts +9 -6
- package/api/publicDownloadFormatManagement.pub.agravity.ts +12 -7
- package/api/publicEndpoints.pub.agravity.ts +30 -17
- package/api/publicGeneralManagement.pub.agravity.ts +24 -12
- package/api/publicHelperTools.pub.agravity.ts +33 -19
- package/api/publicPortalManagement.pub.agravity.ts +27 -12
- package/api/publicPublishing.pub.agravity.ts +11 -7
- package/api/publicSavedSearch.pub.agravity.ts +11 -7
- package/api/publicSearchManagement.pub.agravity.ts +67 -36
- package/api/publicSharingManagement.pub.agravity.ts +30 -16
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +5 -3
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +25 -15
- package/api/publicTranslationManagement.pub.agravity.ts +19 -11
- package/api/publicWebAppData.pub.agravity.ts +8 -4
- package/api/publicWorkspaceManagement.pub.agravity.ts +16 -10
- package/api.base.service.ts +41 -27
- package/configuration.ts +3 -2
- package/encoder.ts +15 -0
- package/package.json +9 -9
- package/query.params.ts +165 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.20.0
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# @agravity/public@
|
|
1
|
+
# @agravity/public@11.0.0
|
|
2
2
|
|
|
3
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 & 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 & Versioned - Public API versioning ensures backward compatibility</li></ul><h2>Core Features & 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 & 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:
|
|
5
|
+
The version of the OpenAPI document: 11.0.0
|
|
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@
|
|
27
|
+
npm install @agravity/public@11.0.0 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
11
11
|
|
|
12
12
|
import { Inject, Injectable, Optional } from '@angular/core';
|
|
13
|
-
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent,
|
|
14
|
-
import { CustomHttpParameterCodec } from '../encoder';
|
|
13
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
15
14
|
import { Observable } from 'rxjs';
|
|
15
|
+
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
|
16
16
|
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
|
|
@@ -48,9 +48,11 @@ export class PublicAIOperationsService extends BaseService {
|
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* This endpoint allows to use one asset which is used for searching similar assets.
|
|
51
|
+
* @endpoint post /ai/reverseassetsearch
|
|
51
52
|
* @param requestParameters
|
|
52
53
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
53
54
|
* @param reportProgress flag to report request and response progress.
|
|
55
|
+
* @param options additional options
|
|
54
56
|
*/
|
|
55
57
|
public httpReverseAssetSearch(
|
|
56
58
|
requestParameters?: HttpReverseAssetSearchRequestParams,
|
|
@@ -153,7 +155,7 @@ export class PublicAIOperationsService extends BaseService {
|
|
|
153
155
|
...(withCredentials ? { withCredentials } : {}),
|
|
154
156
|
headers: localVarHeaders,
|
|
155
157
|
observe: observe,
|
|
156
|
-
transferCache: localVarTransferCache,
|
|
158
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
157
159
|
reportProgress: reportProgress
|
|
158
160
|
});
|
|
159
161
|
}
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
11
11
|
|
|
12
12
|
import { Inject, Injectable, Optional } from '@angular/core';
|
|
13
|
-
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent,
|
|
14
|
-
import { CustomHttpParameterCodec } from '../encoder';
|
|
13
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
15
14
|
import { Observable } from 'rxjs';
|
|
15
|
+
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
|
16
16
|
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
|
|
@@ -137,9 +137,11 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
|
+
* @endpoint post /assetsupload
|
|
140
141
|
* @param requestParameters
|
|
141
142
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
142
143
|
* @param reportProgress flag to report request and response progress.
|
|
144
|
+
* @param options additional options
|
|
143
145
|
*/
|
|
144
146
|
public httpAssetUploadFile(
|
|
145
147
|
requestParameters?: HttpAssetUploadFileRequestParams,
|
|
@@ -242,15 +244,17 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
242
244
|
...(withCredentials ? { withCredentials } : {}),
|
|
243
245
|
headers: localVarHeaders,
|
|
244
246
|
observe: observe,
|
|
245
|
-
transferCache: localVarTransferCache,
|
|
247
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
246
248
|
reportProgress: reportProgress
|
|
247
249
|
});
|
|
248
250
|
}
|
|
249
251
|
|
|
250
252
|
/**
|
|
253
|
+
* @endpoint delete /assetsbulkupdate
|
|
251
254
|
* @param requestParameters
|
|
252
255
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
253
256
|
* @param reportProgress flag to report request and response progress.
|
|
257
|
+
* @param options additional options
|
|
254
258
|
*/
|
|
255
259
|
public httpAssetsBulkDeleteUpdate(
|
|
256
260
|
requestParameters: HttpAssetsBulkDeleteUpdateRequestParams,
|
|
@@ -322,15 +326,17 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
322
326
|
...(withCredentials ? { withCredentials } : {}),
|
|
323
327
|
headers: localVarHeaders,
|
|
324
328
|
observe: observe,
|
|
325
|
-
transferCache: localVarTransferCache,
|
|
329
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
326
330
|
reportProgress: reportProgress
|
|
327
331
|
});
|
|
328
332
|
}
|
|
329
333
|
|
|
330
334
|
/**
|
|
335
|
+
* @endpoint post /assetsbulkupdate
|
|
331
336
|
* @param requestParameters
|
|
332
337
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
333
338
|
* @param reportProgress flag to report request and response progress.
|
|
339
|
+
* @param options additional options
|
|
334
340
|
*/
|
|
335
341
|
public httpAssetsBulkPostUpdate(
|
|
336
342
|
requestParameters: HttpAssetsBulkPostUpdateRequestParams,
|
|
@@ -406,15 +412,17 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
406
412
|
...(withCredentials ? { withCredentials } : {}),
|
|
407
413
|
headers: localVarHeaders,
|
|
408
414
|
observe: observe,
|
|
409
|
-
transferCache: localVarTransferCache,
|
|
415
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
410
416
|
reportProgress: reportProgress
|
|
411
417
|
});
|
|
412
418
|
}
|
|
413
419
|
|
|
414
420
|
/**
|
|
421
|
+
* @endpoint put /assetsbulkupdate
|
|
415
422
|
* @param requestParameters
|
|
416
423
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
417
424
|
* @param reportProgress flag to report request and response progress.
|
|
425
|
+
* @param options additional options
|
|
418
426
|
*/
|
|
419
427
|
public httpAssetsBulkPutUpdate(
|
|
420
428
|
requestParameters: HttpAssetsBulkPutUpdateRequestParams,
|
|
@@ -490,16 +498,18 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
490
498
|
...(withCredentials ? { withCredentials } : {}),
|
|
491
499
|
headers: localVarHeaders,
|
|
492
500
|
observe: observe,
|
|
493
|
-
transferCache: localVarTransferCache,
|
|
501
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
494
502
|
reportProgress: reportProgress
|
|
495
503
|
});
|
|
496
504
|
}
|
|
497
505
|
|
|
498
506
|
/**
|
|
499
507
|
* This endpoint creates one asset entry in the database.
|
|
508
|
+
* @endpoint post /assets
|
|
500
509
|
* @param requestParameters
|
|
501
510
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
502
511
|
* @param reportProgress flag to report request and response progress.
|
|
512
|
+
* @param options additional options
|
|
503
513
|
*/
|
|
504
514
|
public httpAssetsCreate(
|
|
505
515
|
requestParameters: HttpAssetsCreateRequestParams,
|
|
@@ -536,9 +546,11 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
536
546
|
const translations = requestParameters?.translations;
|
|
537
547
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
538
548
|
|
|
539
|
-
let localVarQueryParameters = new
|
|
540
|
-
|
|
541
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
549
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
550
|
+
|
|
551
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'collectionid', <any>collectionid, QueryParamStyle.Form, true);
|
|
552
|
+
|
|
553
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
542
554
|
|
|
543
555
|
let localVarHeaders = this.defaultHeaders;
|
|
544
556
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
@@ -580,20 +592,22 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
580
592
|
return this.httpClient.request<Asset>('post', `${basePath}${localVarPath}`, {
|
|
581
593
|
context: localVarHttpContext,
|
|
582
594
|
body: asset,
|
|
583
|
-
params: localVarQueryParameters,
|
|
595
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
584
596
|
responseType: <any>responseType_,
|
|
585
597
|
...(withCredentials ? { withCredentials } : {}),
|
|
586
598
|
headers: localVarHeaders,
|
|
587
599
|
observe: observe,
|
|
588
|
-
transferCache: localVarTransferCache,
|
|
600
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
589
601
|
reportProgress: reportProgress
|
|
590
602
|
});
|
|
591
603
|
}
|
|
592
604
|
|
|
593
605
|
/**
|
|
606
|
+
* @endpoint delete /assets/{id}
|
|
594
607
|
* @param requestParameters
|
|
595
608
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
596
609
|
* @param reportProgress flag to report request and response progress.
|
|
610
|
+
* @param options additional options
|
|
597
611
|
*/
|
|
598
612
|
public httpAssetsDeleteById(
|
|
599
613
|
requestParameters: HttpAssetsDeleteByIdRequestParams,
|
|
@@ -657,16 +671,18 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
657
671
|
...(withCredentials ? { withCredentials } : {}),
|
|
658
672
|
headers: localVarHeaders,
|
|
659
673
|
observe: observe,
|
|
660
|
-
transferCache: localVarTransferCache,
|
|
674
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
661
675
|
reportProgress: reportProgress
|
|
662
676
|
});
|
|
663
677
|
}
|
|
664
678
|
|
|
665
679
|
/**
|
|
666
680
|
* This endpoint lists all the assets, which are stored in the database and not deleted (status \"A\")
|
|
681
|
+
* @endpoint get /assets
|
|
667
682
|
* @param requestParameters
|
|
668
683
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
669
684
|
* @param reportProgress flag to report request and response progress.
|
|
685
|
+
* @param options additional options
|
|
670
686
|
*/
|
|
671
687
|
public httpAssetsGet(
|
|
672
688
|
requestParameters?: HttpAssetsGetRequestParams,
|
|
@@ -704,17 +720,27 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
704
720
|
const translations = requestParameters?.translations;
|
|
705
721
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
706
722
|
|
|
707
|
-
let localVarQueryParameters = new
|
|
708
|
-
|
|
709
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
710
|
-
|
|
711
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
712
|
-
|
|
713
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
714
|
-
|
|
715
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
716
|
-
|
|
717
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
723
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
724
|
+
|
|
725
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'collectionid', <any>collectionid, QueryParamStyle.Form, true);
|
|
726
|
+
|
|
727
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'collectiontypeid', <any>collectiontypeid, QueryParamStyle.Form, true);
|
|
728
|
+
|
|
729
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'fields', <any>fields, QueryParamStyle.Form, true);
|
|
730
|
+
|
|
731
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'expose', <any>expose, QueryParamStyle.Form, true);
|
|
732
|
+
|
|
733
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'continuation_token', <any>continuationToken, QueryParamStyle.Form, true);
|
|
734
|
+
|
|
735
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'limit', <any>limit, QueryParamStyle.Form, true);
|
|
736
|
+
|
|
737
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'orderby', <any>orderby, QueryParamStyle.Form, true);
|
|
738
|
+
|
|
739
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'filter', <any>filter, QueryParamStyle.Form, true);
|
|
740
|
+
|
|
741
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'items', <any>items, QueryParamStyle.Form, true);
|
|
742
|
+
|
|
743
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
718
744
|
|
|
719
745
|
let localVarHeaders = this.defaultHeaders;
|
|
720
746
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
@@ -748,21 +774,23 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
748
774
|
const { basePath, withCredentials } = this.configuration;
|
|
749
775
|
return this.httpClient.request<AssetPageResult>('get', `${basePath}${localVarPath}`, {
|
|
750
776
|
context: localVarHttpContext,
|
|
751
|
-
params: localVarQueryParameters,
|
|
777
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
752
778
|
responseType: <any>responseType_,
|
|
753
779
|
...(withCredentials ? { withCredentials } : {}),
|
|
754
780
|
headers: localVarHeaders,
|
|
755
781
|
observe: observe,
|
|
756
|
-
transferCache: localVarTransferCache,
|
|
782
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
757
783
|
reportProgress: reportProgress
|
|
758
784
|
});
|
|
759
785
|
}
|
|
760
786
|
|
|
761
787
|
/**
|
|
762
788
|
* This endpoint returns one single asset (from ID). If the returned asset is from a special asset type (e.g. \"AssetImage\") it returns the full entity.
|
|
789
|
+
* @endpoint get /assets/{id}
|
|
763
790
|
* @param requestParameters
|
|
764
791
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
765
792
|
* @param reportProgress flag to report request and response progress.
|
|
793
|
+
* @param options additional options
|
|
766
794
|
*/
|
|
767
795
|
public httpAssetsGetById(
|
|
768
796
|
requestParameters: HttpAssetsGetByIdRequestParams,
|
|
@@ -797,10 +825,13 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
797
825
|
const translations = requestParameters?.translations;
|
|
798
826
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
799
827
|
|
|
800
|
-
let localVarQueryParameters = new
|
|
801
|
-
|
|
802
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
803
|
-
|
|
828
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
829
|
+
|
|
830
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'fields', <any>fields, QueryParamStyle.Form, true);
|
|
831
|
+
|
|
832
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'expose', <any>expose, QueryParamStyle.Form, true);
|
|
833
|
+
|
|
834
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
804
835
|
|
|
805
836
|
let localVarHeaders = this.defaultHeaders;
|
|
806
837
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
@@ -834,21 +865,23 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
834
865
|
const { basePath, withCredentials } = this.configuration;
|
|
835
866
|
return this.httpClient.request<Asset>('get', `${basePath}${localVarPath}`, {
|
|
836
867
|
context: localVarHttpContext,
|
|
837
|
-
params: localVarQueryParameters,
|
|
868
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
838
869
|
responseType: <any>responseType_,
|
|
839
870
|
...(withCredentials ? { withCredentials } : {}),
|
|
840
871
|
headers: localVarHeaders,
|
|
841
872
|
observe: observe,
|
|
842
|
-
transferCache: localVarTransferCache,
|
|
873
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
843
874
|
reportProgress: reportProgress
|
|
844
875
|
});
|
|
845
876
|
}
|
|
846
877
|
|
|
847
878
|
/**
|
|
848
879
|
* This endpoint updates one single asset (from ID)
|
|
880
|
+
* @endpoint post /assets/{id}
|
|
849
881
|
* @param requestParameters
|
|
850
882
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
851
883
|
* @param reportProgress flag to report request and response progress.
|
|
884
|
+
* @param options additional options
|
|
852
885
|
*/
|
|
853
886
|
public httpPublicAssetsUpdateById(
|
|
854
887
|
requestParameters: HttpPublicAssetsUpdateByIdRequestParams,
|
|
@@ -885,8 +918,9 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
885
918
|
const translations = requestParameters?.translations;
|
|
886
919
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
887
920
|
|
|
888
|
-
let localVarQueryParameters = new
|
|
889
|
-
|
|
921
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
922
|
+
|
|
923
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
890
924
|
|
|
891
925
|
let localVarHeaders = this.defaultHeaders;
|
|
892
926
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
@@ -928,12 +962,12 @@ export class PublicAssetManagementService extends BaseService {
|
|
|
928
962
|
return this.httpClient.request<Asset>('post', `${basePath}${localVarPath}`, {
|
|
929
963
|
context: localVarHttpContext,
|
|
930
964
|
body: asset,
|
|
931
|
-
params: localVarQueryParameters,
|
|
965
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
932
966
|
responseType: <any>responseType_,
|
|
933
967
|
...(withCredentials ? { withCredentials } : {}),
|
|
934
968
|
headers: localVarHeaders,
|
|
935
969
|
observe: observe,
|
|
936
|
-
transferCache: localVarTransferCache,
|
|
970
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
937
971
|
reportProgress: reportProgress
|
|
938
972
|
});
|
|
939
973
|
}
|