@agravity/public 6.1.6 → 7.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.
Files changed (81) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/api.ts +3 -0
  4. package/api/publicAssetManagement.pub.agravity.ts +1 -1
  5. package/api/publicAssetOperations.pub.agravity.ts +176 -11
  6. package/api/publicAssetPublishing.pub.agravity.ts +1 -1
  7. package/api/publicAssetVersioning.pub.agravity.ts +1 -1
  8. package/api/publicAuthenticationManagement.pub.agravity.ts +1 -1
  9. package/api/publicCollectionManagement.pub.agravity.ts +1 -1
  10. package/api/publicCollectionSecureUpload.pub.agravity.ts +1 -1
  11. package/api/publicCollectionTypeManagement.pub.agravity.ts +1 -1
  12. package/api/publicConfigurationManagement.pub.agravity.ts +1 -1
  13. package/api/publicDownloadFormatManagement.pub.agravity.ts +1 -1
  14. package/api/publicGeneralManagement.pub.agravity.ts +1 -1
  15. package/api/publicHelperTools.pub.agravity.ts +1 -1
  16. package/api/publicPortalManagement.pub.agravity.ts +183 -0
  17. package/api/publicPublishing.pub.agravity.ts +1 -1
  18. package/api/publicSavedSearch.pub.agravity.ts +1 -1
  19. package/api/publicSearchManagement.pub.agravity.ts +9 -1
  20. package/api/publicSharingManagement.pub.agravity.ts +1 -1
  21. package/api/publicSignalRConnectionManagement.pub.agravity.ts +1 -1
  22. package/api/publicStaticDefinedListManagement.pub.agravity.ts +1 -1
  23. package/api/publicTranslationManagement.pub.agravity.ts +1 -1
  24. package/api/publicWebAppData.pub.agravity.ts +1 -1
  25. package/api/publicWorkspaceManagement.pub.agravity.ts +1 -1
  26. package/api.module.ts +1 -0
  27. package/index.ts +1 -0
  28. package/model/agravityErrorResponse.pub.agravity.ts +1 -1
  29. package/model/agravityVersion.pub.agravity.ts +1 -1
  30. package/model/allWebAppData.pub.agravity.ts +1 -1
  31. package/model/artificialIntelligenceGroup.pub.agravity.ts +1 -1
  32. package/model/asset.pub.agravity.ts +1 -1
  33. package/model/assetAvailability.pub.agravity.ts +1 -1
  34. package/model/assetBlob.pub.agravity.ts +1 -1
  35. package/model/assetIdFormat.pub.agravity.ts +1 -1
  36. package/model/assetPageResult.pub.agravity.ts +1 -1
  37. package/model/azSearchOptions.pub.agravity.ts +2 -1
  38. package/model/badRequestResult.pub.agravity.ts +1 -1
  39. package/model/collTypeItem.pub.agravity.ts +2 -2
  40. package/model/collection.pub.agravity.ts +1 -1
  41. package/model/collectionType.pub.agravity.ts +2 -2
  42. package/model/collectionUDL.pub.agravity.ts +1 -1
  43. package/model/createSftpUserResult.pub.agravity.ts +1 -1
  44. package/model/dataResult.pub.agravity.ts +1 -1
  45. package/model/distZipResponse.pub.agravity.ts +1 -1
  46. package/model/downloadFormat.pub.agravity.ts +1 -1
  47. package/model/dynamicImageOperation.pub.agravity.ts +1 -1
  48. package/model/entityId.pub.agravity.ts +1 -1
  49. package/model/entityIdName.pub.agravity.ts +1 -1
  50. package/model/frontendAppConfig.pub.agravity.ts +1 -1
  51. package/model/groupAllAppData.pub.agravity.ts +1 -1
  52. package/model/metadata.pub.agravity.ts +1 -1
  53. package/model/models.ts +5 -0
  54. package/model/moveCollectionBody.pub.agravity.ts +17 -0
  55. package/model/okResult.pub.agravity.ts +1 -1
  56. package/model/permissionEntity.pub.agravity.ts +1 -1
  57. package/model/portal.pub.agravity.ts +35 -0
  58. package/model/portalConfiguration.pub.agravity.ts +45 -0
  59. package/model/portalLanguages.pub.agravity.ts +16 -0
  60. package/model/portalTheme.pub.agravity.ts +18 -0
  61. package/model/publishEntity.pub.agravity.ts +1 -1
  62. package/model/publishedAsset.pub.agravity.ts +1 -1
  63. package/model/quickShareFull.pub.agravity.ts +1 -1
  64. package/model/sasToken.pub.agravity.ts +1 -1
  65. package/model/savedSearch.pub.agravity.ts +1 -1
  66. package/model/searchFacet.pub.agravity.ts +1 -1
  67. package/model/searchFacetEntity.pub.agravity.ts +1 -1
  68. package/model/searchResult.pub.agravity.ts +1 -1
  69. package/model/searchableItem.pub.agravity.ts +1 -1
  70. package/model/secureUploadEntity.pub.agravity.ts +1 -1
  71. package/model/sharedAllowedFormat.pub.agravity.ts +1 -1
  72. package/model/sharedAsset.pub.agravity.ts +1 -1
  73. package/model/sharedCollectionFull.pub.agravity.ts +1 -1
  74. package/model/sharedCollectionZipRequest.pub.agravity.ts +1 -1
  75. package/model/signalRConnectionInfo.pub.agravity.ts +1 -1
  76. package/model/staticDefinedList.pub.agravity.ts +1 -1
  77. package/model/versionEntity.pub.agravity.ts +1 -1
  78. package/model/versionedAsset.pub.agravity.ts +1 -1
  79. package/model/whereParam.pub.agravity.ts +1 -1
  80. package/model/workspace.pub.agravity.ts +2 -2
  81. package/package.json +1 -1
@@ -15,6 +15,7 @@ api/publicConfigurationManagement.pub.agravity.ts
15
15
  api/publicDownloadFormatManagement.pub.agravity.ts
16
16
  api/publicGeneralManagement.pub.agravity.ts
17
17
  api/publicHelperTools.pub.agravity.ts
18
+ api/publicPortalManagement.pub.agravity.ts
18
19
  api/publicPublishing.pub.agravity.ts
19
20
  api/publicSavedSearch.pub.agravity.ts
20
21
  api/publicSearchManagement.pub.agravity.ts
@@ -54,8 +55,13 @@ model/frontendAppConfig.pub.agravity.ts
54
55
  model/groupAllAppData.pub.agravity.ts
55
56
  model/metadata.pub.agravity.ts
56
57
  model/models.ts
58
+ model/moveCollectionBody.pub.agravity.ts
57
59
  model/okResult.pub.agravity.ts
58
60
  model/permissionEntity.pub.agravity.ts
61
+ model/portal.pub.agravity.ts
62
+ model/portalConfiguration.pub.agravity.ts
63
+ model/portalLanguages.pub.agravity.ts
64
+ model/portalTheme.pub.agravity.ts
59
65
  model/publishEntity.pub.agravity.ts
60
66
  model/publishedAsset.pub.agravity.ts
61
67
  model/quickShareFull.pub.agravity.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @agravity/public@6.1.6
1
+ ## @agravity/public@7.0.0
2
2
 
3
3
  ### Building
4
4
 
@@ -19,7 +19,7 @@ Navigate to the folder of your consuming project and run one of next commands.
19
19
  _published:_
20
20
 
21
21
  ```
22
- npm install @agravity/public@6.1.6 --save
22
+ npm install @agravity/public@7.0.0 --save
23
23
  ```
24
24
 
25
25
  _without publishing (not recommended):_
package/api/api.ts CHANGED
@@ -22,6 +22,8 @@ export * from './publicGeneralManagement.pub.agravity';
22
22
  import { PublicGeneralManagementService } from './publicGeneralManagement.pub.agravity';
23
23
  export * from './publicHelperTools.pub.agravity';
24
24
  import { PublicHelperToolsService } from './publicHelperTools.pub.agravity';
25
+ export * from './publicPortalManagement.pub.agravity';
26
+ import { PublicPortalManagementService } from './publicPortalManagement.pub.agravity';
25
27
  export * from './publicPublishing.pub.agravity';
26
28
  import { PublicPublishingService } from './publicPublishing.pub.agravity';
27
29
  export * from './publicSavedSearch.pub.agravity';
@@ -53,6 +55,7 @@ export const APIS = [
53
55
  PublicDownloadFormatManagementService,
54
56
  PublicGeneralManagementService,
55
57
  PublicHelperToolsService,
58
+ PublicPortalManagementService,
56
59
  PublicPublishingService,
57
60
  PublicSavedSearchService,
58
61
  PublicSearchManagementService,
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,6 +21,7 @@ import { AssetAvailability } from '../model/models';
21
21
  import { AssetBlob } from '../model/models';
22
22
  import { Collection } from '../model/models';
23
23
  import { DynamicImageOperation } from '../model/models';
24
+ import { MoveCollectionBody } from '../model/models';
24
25
 
25
26
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
26
27
  import { AgravityPublicConfiguration } from '../configuration';
@@ -312,17 +313,127 @@ export class PublicAssetOperationsService {
312
313
  });
313
314
  }
314
315
 
316
+ /**
317
+ * This endpoint allows to move/assign from/to another collection with the given operation parameter.
318
+ * @param id The ID of the asset.
319
+ * @param moveCollectionBody Contains information about this operation.
320
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
321
+ * @param reportProgress flag to report request and response progress.
322
+ */
323
+ public httpAssetToCollection(id: string, moveCollectionBody: MoveCollectionBody, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
324
+ public httpAssetToCollection(
325
+ id: string,
326
+ moveCollectionBody: MoveCollectionBody,
327
+ observe?: 'response',
328
+ reportProgress?: boolean,
329
+ options?: { httpHeaderAccept?: 'application/json' }
330
+ ): Observable<HttpResponse<any>>;
331
+ public httpAssetToCollection(
332
+ id: string,
333
+ moveCollectionBody: MoveCollectionBody,
334
+ observe?: 'events',
335
+ reportProgress?: boolean,
336
+ options?: { httpHeaderAccept?: 'application/json' }
337
+ ): Observable<HttpEvent<any>>;
338
+ public httpAssetToCollection(
339
+ id: string,
340
+ moveCollectionBody: MoveCollectionBody,
341
+ observe: any = 'body',
342
+ reportProgress: boolean = false,
343
+ options?: { httpHeaderAccept?: 'application/json' }
344
+ ): Observable<any> {
345
+ if (id === null || id === undefined) {
346
+ throw new Error('Required parameter id was null or undefined when calling httpAssetToCollection.');
347
+ }
348
+ if (moveCollectionBody === null || moveCollectionBody === undefined) {
349
+ throw new Error('Required parameter moveCollectionBody was null or undefined when calling httpAssetToCollection.');
350
+ }
351
+
352
+ let headers = this.defaultHeaders;
353
+
354
+ let credential: string | undefined;
355
+ // authentication (function_key) required
356
+ credential = this.configuration.lookupCredential('function_key');
357
+ if (credential) {
358
+ headers = headers.set('x-functions-key', credential);
359
+ }
360
+
361
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
362
+ if (httpHeaderAcceptSelected === undefined) {
363
+ // to determine the Accept header
364
+ const httpHeaderAccepts: string[] = ['application/json'];
365
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
366
+ }
367
+ if (httpHeaderAcceptSelected !== undefined) {
368
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
369
+ }
370
+
371
+ // to determine the Content-Type header
372
+ const consumes: string[] = ['application/json'];
373
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
374
+ if (httpContentTypeSelected !== undefined) {
375
+ headers = headers.set('Content-Type', httpContentTypeSelected);
376
+ }
377
+
378
+ let responseType_: 'text' | 'json' = 'json';
379
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
380
+ responseType_ = 'text';
381
+ }
382
+
383
+ return this.httpClient.post<any>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}/tocollection`, moveCollectionBody, {
384
+ responseType: <any>responseType_,
385
+ withCredentials: this.configuration.withCredentials,
386
+ headers: headers,
387
+ observe: observe,
388
+ reportProgress: reportProgress
389
+ });
390
+ }
391
+
315
392
  /**
316
393
  * This endpoint checks, if an asset exists and returns the url for the requested blob.
317
394
  * @param id The ID of the asset.
318
- * @param c \&quot;t\&quot; for thumbnail (default); \&quot;o\&quot; for optimized; \&quot;i\&quot; for internal.
395
+ * @param c \&quot;t\&quot; for thumbnail (default); \&quot;op\&quot; for optimized; \&quot;os\&quot; for original size; \&quot;o\&quot; for original.
396
+ * @param portalId If the request comes from portal this is the indicator. If used the \&quot;key\&quot; param becomes mandatory.
397
+ * @param key The key is the MD5 hash of the original blob of the asset.
319
398
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
320
399
  * @param reportProgress flag to report request and response progress.
321
400
  */
322
- public httpGetAssetBlob(id: string, c: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AssetBlob>;
323
- public httpGetAssetBlob(id: string, c: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<AssetBlob>>;
324
- public httpGetAssetBlob(id: string, c: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<AssetBlob>>;
325
- public httpGetAssetBlob(id: string, c: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
401
+ public httpGetAssetBlob(
402
+ id: string,
403
+ c: string,
404
+ portalId?: string,
405
+ key?: string,
406
+ observe?: 'body',
407
+ reportProgress?: boolean,
408
+ options?: { httpHeaderAccept?: 'application/json' }
409
+ ): Observable<AssetBlob>;
410
+ public httpGetAssetBlob(
411
+ id: string,
412
+ c: string,
413
+ portalId?: string,
414
+ key?: string,
415
+ observe?: 'response',
416
+ reportProgress?: boolean,
417
+ options?: { httpHeaderAccept?: 'application/json' }
418
+ ): Observable<HttpResponse<AssetBlob>>;
419
+ public httpGetAssetBlob(
420
+ id: string,
421
+ c: string,
422
+ portalId?: string,
423
+ key?: string,
424
+ observe?: 'events',
425
+ reportProgress?: boolean,
426
+ options?: { httpHeaderAccept?: 'application/json' }
427
+ ): Observable<HttpEvent<AssetBlob>>;
428
+ public httpGetAssetBlob(
429
+ id: string,
430
+ c: string,
431
+ portalId?: string,
432
+ key?: string,
433
+ observe: any = 'body',
434
+ reportProgress: boolean = false,
435
+ options?: { httpHeaderAccept?: 'application/json' }
436
+ ): Observable<any> {
326
437
  if (id === null || id === undefined) {
327
438
  throw new Error('Required parameter id was null or undefined when calling httpGetAssetBlob.');
328
439
  }
@@ -334,6 +445,12 @@ export class PublicAssetOperationsService {
334
445
  if (c !== undefined && c !== null) {
335
446
  queryParameters = this.addToHttpParams(queryParameters, <any>c, 'c');
336
447
  }
448
+ if (portalId !== undefined && portalId !== null) {
449
+ queryParameters = this.addToHttpParams(queryParameters, <any>portalId, 'portal_id');
450
+ }
451
+ if (key !== undefined && key !== null) {
452
+ queryParameters = this.addToHttpParams(queryParameters, <any>key, 'key');
453
+ }
337
454
 
338
455
  let headers = this.defaultHeaders;
339
456
 
@@ -458,14 +575,53 @@ export class PublicAssetOperationsService {
458
575
  /**
459
576
  * This endpoint is similar to GetAssetBlob but with ContentDistribution and filename to let browser download the content.
460
577
  * @param id The ID of the asset.
461
- * @param c \&quot;t\&quot; for thumbnail (default); \&quot;o\&quot; for optimized; \&quot;i\&quot; for internal.
578
+ * @param c \&quot;t\&quot; for thumbnail (default); \&quot;op\&quot; for optimized; \&quot;os\&quot; for original size; \&quot;o\&quot; for original.
579
+ * @param f (optional) provide the id of any valid download format.
580
+ * @param portalId If the request comes from portal this is the indicator. It will be checked if the requested blob is valid for the portal.
581
+ * @param key The key is the MD5 hash of the original blob of the asset.
462
582
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
463
583
  * @param reportProgress flag to report request and response progress.
464
584
  */
465
- public httpGetAssetDownload(id: string, c?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AssetBlob>;
466
- public httpGetAssetDownload(id: string, c?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<AssetBlob>>;
467
- public httpGetAssetDownload(id: string, c?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<AssetBlob>>;
468
- public httpGetAssetDownload(id: string, c?: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
585
+ public httpGetAssetDownload(
586
+ id: string,
587
+ c?: string,
588
+ f?: string,
589
+ portalId?: string,
590
+ key?: string,
591
+ observe?: 'body',
592
+ reportProgress?: boolean,
593
+ options?: { httpHeaderAccept?: 'application/json' }
594
+ ): Observable<AssetBlob>;
595
+ public httpGetAssetDownload(
596
+ id: string,
597
+ c?: string,
598
+ f?: string,
599
+ portalId?: string,
600
+ key?: string,
601
+ observe?: 'response',
602
+ reportProgress?: boolean,
603
+ options?: { httpHeaderAccept?: 'application/json' }
604
+ ): Observable<HttpResponse<AssetBlob>>;
605
+ public httpGetAssetDownload(
606
+ id: string,
607
+ c?: string,
608
+ f?: string,
609
+ portalId?: string,
610
+ key?: string,
611
+ observe?: 'events',
612
+ reportProgress?: boolean,
613
+ options?: { httpHeaderAccept?: 'application/json' }
614
+ ): Observable<HttpEvent<AssetBlob>>;
615
+ public httpGetAssetDownload(
616
+ id: string,
617
+ c?: string,
618
+ f?: string,
619
+ portalId?: string,
620
+ key?: string,
621
+ observe: any = 'body',
622
+ reportProgress: boolean = false,
623
+ options?: { httpHeaderAccept?: 'application/json' }
624
+ ): Observable<any> {
469
625
  if (id === null || id === undefined) {
470
626
  throw new Error('Required parameter id was null or undefined when calling httpGetAssetDownload.');
471
627
  }
@@ -474,6 +630,15 @@ export class PublicAssetOperationsService {
474
630
  if (c !== undefined && c !== null) {
475
631
  queryParameters = this.addToHttpParams(queryParameters, <any>c, 'c');
476
632
  }
633
+ if (f !== undefined && f !== null) {
634
+ queryParameters = this.addToHttpParams(queryParameters, <any>f, 'f');
635
+ }
636
+ if (portalId !== undefined && portalId !== null) {
637
+ queryParameters = this.addToHttpParams(queryParameters, <any>portalId, 'portal_id');
638
+ }
639
+ if (key !== undefined && key !== null) {
640
+ queryParameters = this.addToHttpParams(queryParameters, <any>key, 'key');
641
+ }
477
642
 
478
643
  let headers = this.defaultHeaders;
479
644
 
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,183 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Public Functions
3
+ * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
+ *
5
+ * The version of the OpenAPI document: 7.0.0
6
+ * Contact: office@agravity.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /* tslint:disable:no-unused-variable member-ordering */
13
+
14
+ import { Inject, Injectable, Optional } from '@angular/core';
15
+ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
16
+ import { CustomHttpParameterCodec } from '../encoder';
17
+ import { Observable } from 'rxjs';
18
+
19
+ import { Portal } from '../model/models';
20
+ import { PortalConfiguration } from '../model/models';
21
+
22
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23
+ import { AgravityPublicConfiguration } from '../configuration';
24
+
25
+ @Injectable({
26
+ providedIn: 'root'
27
+ })
28
+ export class PublicPortalManagementService {
29
+ protected basePath = 'http://localhost:7072/api';
30
+ public defaultHeaders = new HttpHeaders();
31
+ public configuration = new AgravityPublicConfiguration();
32
+ public encoder: HttpParameterCodec;
33
+
34
+ constructor(
35
+ protected httpClient: HttpClient,
36
+ @Optional() @Inject(BASE_PATH) basePath: string,
37
+ @Optional() configuration: AgravityPublicConfiguration
38
+ ) {
39
+ if (configuration) {
40
+ this.configuration = configuration;
41
+ }
42
+ if (typeof this.configuration.basePath !== 'string') {
43
+ if (typeof basePath !== 'string') {
44
+ basePath = this.basePath;
45
+ }
46
+ this.configuration.basePath = basePath;
47
+ }
48
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
49
+ }
50
+
51
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
52
+ if (typeof value === 'object' && value instanceof Date === false) {
53
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
54
+ } else {
55
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
56
+ }
57
+ return httpParams;
58
+ }
59
+
60
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
61
+ if (value == null) {
62
+ return httpParams;
63
+ }
64
+
65
+ if (typeof value === 'object') {
66
+ if (Array.isArray(value)) {
67
+ (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
68
+ } else if (value instanceof Date) {
69
+ if (key != null) {
70
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
71
+ } else {
72
+ throw Error('key may not be null if value is Date');
73
+ }
74
+ } else {
75
+ Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
76
+ }
77
+ } else if (key != null) {
78
+ httpParams = httpParams.append(key, value);
79
+ } else {
80
+ throw Error('key may not be null if value is not object or array');
81
+ }
82
+ return httpParams;
83
+ }
84
+
85
+ /**
86
+ * This endpoint returns a full configuration of the portal. Incl. download formats, SDLs, UDLs, etc.
87
+ * @param id The ID of the portal.
88
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
89
+ * @param reportProgress flag to report request and response progress.
90
+ */
91
+ public httpPortalsConfigurationGetById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<PortalConfiguration>;
92
+ public httpPortalsConfigurationGetById(
93
+ id: string,
94
+ observe?: 'response',
95
+ reportProgress?: boolean,
96
+ options?: { httpHeaderAccept?: 'application/json' }
97
+ ): Observable<HttpResponse<PortalConfiguration>>;
98
+ public httpPortalsConfigurationGetById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<PortalConfiguration>>;
99
+ public httpPortalsConfigurationGetById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
100
+ if (id === null || id === undefined) {
101
+ throw new Error('Required parameter id was null or undefined when calling httpPortalsConfigurationGetById.');
102
+ }
103
+
104
+ let headers = this.defaultHeaders;
105
+
106
+ let credential: string | undefined;
107
+ // authentication (function_key) required
108
+ credential = this.configuration.lookupCredential('function_key');
109
+ if (credential) {
110
+ headers = headers.set('x-functions-key', credential);
111
+ }
112
+
113
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
114
+ if (httpHeaderAcceptSelected === undefined) {
115
+ // to determine the Accept header
116
+ const httpHeaderAccepts: string[] = ['application/json'];
117
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
118
+ }
119
+ if (httpHeaderAcceptSelected !== undefined) {
120
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
121
+ }
122
+
123
+ let responseType_: 'text' | 'json' = 'json';
124
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
125
+ responseType_ = 'text';
126
+ }
127
+
128
+ return this.httpClient.get<PortalConfiguration>(`${this.configuration.basePath}/portals/${encodeURIComponent(String(id))}/config`, {
129
+ responseType: <any>responseType_,
130
+ withCredentials: this.configuration.withCredentials,
131
+ headers: headers,
132
+ observe: observe,
133
+ reportProgress: reportProgress
134
+ });
135
+ }
136
+
137
+ /**
138
+ * This endpoint return the created portal by ID.
139
+ * @param id The ID of the portal.
140
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
141
+ * @param reportProgress flag to report request and response progress.
142
+ */
143
+ public httpPortalsGetById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Portal>;
144
+ public httpPortalsGetById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Portal>>;
145
+ public httpPortalsGetById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Portal>>;
146
+ public httpPortalsGetById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
147
+ if (id === null || id === undefined) {
148
+ throw new Error('Required parameter id was null or undefined when calling httpPortalsGetById.');
149
+ }
150
+
151
+ let headers = this.defaultHeaders;
152
+
153
+ let credential: string | undefined;
154
+ // authentication (function_key) required
155
+ credential = this.configuration.lookupCredential('function_key');
156
+ if (credential) {
157
+ headers = headers.set('x-functions-key', credential);
158
+ }
159
+
160
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
161
+ if (httpHeaderAcceptSelected === undefined) {
162
+ // to determine the Accept header
163
+ const httpHeaderAccepts: string[] = ['application/json'];
164
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
165
+ }
166
+ if (httpHeaderAcceptSelected !== undefined) {
167
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
168
+ }
169
+
170
+ let responseType_: 'text' | 'json' = 'json';
171
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
172
+ responseType_ = 'text';
173
+ }
174
+
175
+ return this.httpClient.get<Portal>(`${this.configuration.basePath}/portals/${encodeURIComponent(String(id))}`, {
176
+ responseType: <any>responseType_,
177
+ withCredentials: this.configuration.withCredentials,
178
+ headers: headers,
179
+ observe: observe,
180
+ reportProgress: reportProgress
181
+ });
182
+ }
183
+ }
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Agravity OpenAPI Documentation - Public Functions
3
3
  * <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 6.1.6
5
+ * The version of the OpenAPI document: 7.0.0
6
6
  * Contact: office@agravity.io
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).