@agravity/private 10.0.1 → 10.1.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.
@@ -80,6 +80,7 @@ model/assetRelation.agravity.ts
80
80
  model/assetRelationType.agravity.ts
81
81
  model/assetTextContent.agravity.ts
82
82
  model/assetsOperationBody.agravity.ts
83
+ model/availableExportFields.agravity.ts
83
84
  model/azSearchOptions.agravity.ts
84
85
  model/azureIdentity.agravity.ts
85
86
  model/blobInfoObj.agravity.ts
@@ -106,9 +107,14 @@ model/entityListResult.agravity.ts
106
107
  model/entityNamesRequest.agravity.ts
107
108
  model/entityTranslations.agravity.ts
108
109
  model/excelExportTableEntity.agravity.ts
110
+ model/excelImportTableEntity.agravity.ts
111
+ model/exportFieldDefinition.agravity.ts
109
112
  model/frontendAppConfig.agravity.ts
110
113
  model/groupAllAppData.agravity.ts
111
114
  model/historyEntry.agravity.ts
115
+ model/httpAssetExportFieldSelector.agravity.ts
116
+ model/httpAssetExportInputParameter.agravity.ts
117
+ model/httpRequestAvailableExportFieldsInputParameter.agravity.ts
112
118
  model/infoEntitySkillEnhanced.agravity.ts
113
119
  model/metadata.agravity.ts
114
120
  model/models.ts
@@ -128,6 +134,7 @@ model/publishedAsset.agravity.ts
128
134
  model/quickShare.agravity.ts
129
135
  model/quickShareFull.agravity.ts
130
136
  model/relatedAsset.agravity.ts
137
+ model/reverseAssetSearchFieldSettings.agravity.ts
131
138
  model/sasToken.agravity.ts
132
139
  model/savedSearch.agravity.ts
133
140
  model/searchAdminDataSourceStatus.agravity.ts
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # @agravity/private@10.0.1
1
+ # @agravity/private@10.1.0
2
2
 
3
3
  <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2025. All Rights Reserved
4
4
 
5
- The version of the OpenAPI document: 10.0.1
5
+ The version of the OpenAPI document: 10.1.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/private@10.0.1 --save
27
+ npm install @agravity/private@10.1.0 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -14,10 +14,20 @@ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParam
14
14
  import { CustomHttpParameterCodec } from '../encoder';
15
15
  import { Observable } from 'rxjs';
16
16
 
17
+ // @ts-ignore
18
+ import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
17
19
  // @ts-ignore
18
20
  import { AgravityInfoResponse } from '../model/agravityInfoResponse.agravity';
19
21
  // @ts-ignore
22
+ import { AvailableExportFields } from '../model/availableExportFields.agravity';
23
+ // @ts-ignore
20
24
  import { ExcelExportTableEntity } from '../model/excelExportTableEntity.agravity';
25
+ // @ts-ignore
26
+ import { ExcelImportTableEntity } from '../model/excelImportTableEntity.agravity';
27
+ // @ts-ignore
28
+ import { HttpAssetExportInputParameter } from '../model/httpAssetExportInputParameter.agravity';
29
+ // @ts-ignore
30
+ import { HttpRequestAvailableExportFieldsInputParameter } from '../model/httpRequestAvailableExportFieldsInputParameter.agravity';
21
31
 
22
32
  // @ts-ignore
23
33
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
@@ -25,9 +35,9 @@ import { AgravityConfiguration } from '../configuration';
25
35
  import { BaseService } from '../api.base.service';
26
36
 
27
37
  export interface HttpDataExportAssetsAsExcelRequestParams {
28
- /** Used to specify what to be returned. Valid values are: collection_type_ids, collection_ids and asset_ids. When providing multiple values separate it with comma (\&#39;,\&#39;). */
29
- ids?: string;
30
- /** In which language the assets should be exported. */
38
+ /** This endpoint takes an asset export input parameter and starts the excel export. */
39
+ httpAssetExportInputParameter: HttpAssetExportInputParameter;
40
+ /** Primary language for the export. */
31
41
  language?: string;
32
42
  }
33
43
 
@@ -51,6 +61,25 @@ export interface HttpDataExportTranslationsCheckStatusRequestParams {
51
61
  id: string;
52
62
  }
53
63
 
64
+ export interface HttpDataImportAssetsAsExcelRequestParams {
65
+ /** The filename of the Excel file to import (must be uploaded to the excel import container). */
66
+ fileName: string;
67
+ /** Primary language for the import. */
68
+ language?: string;
69
+ /** Whether to delete empty values from assets (default: false - ignore empty values). */
70
+ deleteEmptyValues?: boolean;
71
+ }
72
+
73
+ export interface HttpDataImportCheckStatusRequestParams {
74
+ /** The ID of import */
75
+ id: string;
76
+ }
77
+
78
+ export interface HttpGetAvailableExportFieldsRequestParams {
79
+ /** This endpoint takes an ids request parameter and gets all available fields for these ids. */
80
+ httpRequestAvailableExportFieldsInputParameter: HttpRequestAvailableExportFieldsInputParameter;
81
+ }
82
+
54
83
  @Injectable({
55
84
  providedIn: 'root'
56
85
  })
@@ -70,34 +99,36 @@ export class DataImportExportManagementService extends BaseService {
70
99
  * @param reportProgress flag to report request and response progress.
71
100
  */
72
101
  public httpDataExportAssetsAsExcel(
73
- requestParameters?: HttpDataExportAssetsAsExcelRequestParams,
102
+ requestParameters: HttpDataExportAssetsAsExcelRequestParams,
74
103
  observe?: 'body',
75
104
  reportProgress?: boolean,
76
105
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
77
106
  ): Observable<ExcelExportTableEntity>;
78
107
  public httpDataExportAssetsAsExcel(
79
- requestParameters?: HttpDataExportAssetsAsExcelRequestParams,
108
+ requestParameters: HttpDataExportAssetsAsExcelRequestParams,
80
109
  observe?: 'response',
81
110
  reportProgress?: boolean,
82
111
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
83
112
  ): Observable<HttpResponse<ExcelExportTableEntity>>;
84
113
  public httpDataExportAssetsAsExcel(
85
- requestParameters?: HttpDataExportAssetsAsExcelRequestParams,
114
+ requestParameters: HttpDataExportAssetsAsExcelRequestParams,
86
115
  observe?: 'events',
87
116
  reportProgress?: boolean,
88
117
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
89
118
  ): Observable<HttpEvent<ExcelExportTableEntity>>;
90
119
  public httpDataExportAssetsAsExcel(
91
- requestParameters?: HttpDataExportAssetsAsExcelRequestParams,
120
+ requestParameters: HttpDataExportAssetsAsExcelRequestParams,
92
121
  observe: any = 'body',
93
122
  reportProgress: boolean = false,
94
123
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
95
124
  ): Observable<any> {
96
- const ids = requestParameters?.ids;
125
+ const httpAssetExportInputParameter = requestParameters?.httpAssetExportInputParameter;
126
+ if (httpAssetExportInputParameter === null || httpAssetExportInputParameter === undefined) {
127
+ throw new Error('Required parameter httpAssetExportInputParameter was null or undefined when calling httpDataExportAssetsAsExcel.');
128
+ }
97
129
  const language = requestParameters?.language;
98
130
 
99
131
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
100
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>ids, 'ids');
101
132
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>language, 'language');
102
133
 
103
134
  let localVarHeaders = this.defaultHeaders;
@@ -114,6 +145,13 @@ export class DataImportExportManagementService extends BaseService {
114
145
 
115
146
  const localVarTransferCache: boolean = options?.transferCache ?? true;
116
147
 
148
+ // to determine the Content-Type header
149
+ const consumes: string[] = ['application/json'];
150
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
151
+ if (httpContentTypeSelected !== undefined) {
152
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
153
+ }
154
+
117
155
  let responseType_: 'text' | 'json' | 'blob' = 'json';
118
156
  if (localVarHttpHeaderAcceptSelected) {
119
157
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -127,8 +165,9 @@ export class DataImportExportManagementService extends BaseService {
127
165
 
128
166
  let localVarPath = `/data/excel/export/assets`;
129
167
  const { basePath, withCredentials } = this.configuration;
130
- return this.httpClient.request<ExcelExportTableEntity>('get', `${basePath}${localVarPath}`, {
168
+ return this.httpClient.request<ExcelExportTableEntity>('post', `${basePath}${localVarPath}`, {
131
169
  context: localVarHttpContext,
170
+ body: httpAssetExportInputParameter,
132
171
  params: localVarQueryParameters,
133
172
  responseType: <any>responseType_,
134
173
  ...(withCredentials ? { withCredentials } : {}),
@@ -433,6 +472,160 @@ export class DataImportExportManagementService extends BaseService {
433
472
  });
434
473
  }
435
474
 
475
+ /**
476
+ * This endpoint starts an excel import of assets from an uploaded Excel file.
477
+ * @param requestParameters
478
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
479
+ * @param reportProgress flag to report request and response progress.
480
+ */
481
+ public httpDataImportAssetsAsExcel(
482
+ requestParameters: HttpDataImportAssetsAsExcelRequestParams,
483
+ observe?: 'body',
484
+ reportProgress?: boolean,
485
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
486
+ ): Observable<ExcelExportTableEntity>;
487
+ public httpDataImportAssetsAsExcel(
488
+ requestParameters: HttpDataImportAssetsAsExcelRequestParams,
489
+ observe?: 'response',
490
+ reportProgress?: boolean,
491
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
492
+ ): Observable<HttpResponse<ExcelExportTableEntity>>;
493
+ public httpDataImportAssetsAsExcel(
494
+ requestParameters: HttpDataImportAssetsAsExcelRequestParams,
495
+ observe?: 'events',
496
+ reportProgress?: boolean,
497
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
498
+ ): Observable<HttpEvent<ExcelExportTableEntity>>;
499
+ public httpDataImportAssetsAsExcel(
500
+ requestParameters: HttpDataImportAssetsAsExcelRequestParams,
501
+ observe: any = 'body',
502
+ reportProgress: boolean = false,
503
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
504
+ ): Observable<any> {
505
+ const fileName = requestParameters?.fileName;
506
+ if (fileName === null || fileName === undefined) {
507
+ throw new Error('Required parameter fileName was null or undefined when calling httpDataImportAssetsAsExcel.');
508
+ }
509
+ const language = requestParameters?.language;
510
+ const deleteEmptyValues = requestParameters?.deleteEmptyValues;
511
+
512
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
513
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fileName, 'fileName');
514
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>language, 'language');
515
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>deleteEmptyValues, 'deleteEmptyValues');
516
+
517
+ let localVarHeaders = this.defaultHeaders;
518
+
519
+ // authentication (msal_auth) required
520
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
521
+
522
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
523
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
524
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
525
+ }
526
+
527
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
528
+
529
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
530
+
531
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
532
+ if (localVarHttpHeaderAcceptSelected) {
533
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
534
+ responseType_ = 'text';
535
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
536
+ responseType_ = 'json';
537
+ } else {
538
+ responseType_ = 'blob';
539
+ }
540
+ }
541
+
542
+ let localVarPath = `/data/excel/import/assets`;
543
+ const { basePath, withCredentials } = this.configuration;
544
+ return this.httpClient.request<ExcelExportTableEntity>('post', `${basePath}${localVarPath}`, {
545
+ context: localVarHttpContext,
546
+ params: localVarQueryParameters,
547
+ responseType: <any>responseType_,
548
+ ...(withCredentials ? { withCredentials } : {}),
549
+ headers: localVarHeaders,
550
+ observe: observe,
551
+ transferCache: localVarTransferCache,
552
+ reportProgress: reportProgress
553
+ });
554
+ }
555
+
556
+ /**
557
+ * This endpoint retrieves the status of the excel import.
558
+ * @param requestParameters
559
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
560
+ * @param reportProgress flag to report request and response progress.
561
+ */
562
+ public httpDataImportCheckStatus(
563
+ requestParameters: HttpDataImportCheckStatusRequestParams,
564
+ observe?: 'body',
565
+ reportProgress?: boolean,
566
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
567
+ ): Observable<ExcelImportTableEntity>;
568
+ public httpDataImportCheckStatus(
569
+ requestParameters: HttpDataImportCheckStatusRequestParams,
570
+ observe?: 'response',
571
+ reportProgress?: boolean,
572
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
573
+ ): Observable<HttpResponse<ExcelImportTableEntity>>;
574
+ public httpDataImportCheckStatus(
575
+ requestParameters: HttpDataImportCheckStatusRequestParams,
576
+ observe?: 'events',
577
+ reportProgress?: boolean,
578
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
579
+ ): Observable<HttpEvent<ExcelImportTableEntity>>;
580
+ public httpDataImportCheckStatus(
581
+ requestParameters: HttpDataImportCheckStatusRequestParams,
582
+ observe: any = 'body',
583
+ reportProgress: boolean = false,
584
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
585
+ ): Observable<any> {
586
+ const id = requestParameters?.id;
587
+ if (id === null || id === undefined) {
588
+ throw new Error('Required parameter id was null or undefined when calling httpDataImportCheckStatus.');
589
+ }
590
+
591
+ let localVarHeaders = this.defaultHeaders;
592
+
593
+ // authentication (msal_auth) required
594
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
595
+
596
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
597
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
598
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
599
+ }
600
+
601
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
602
+
603
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
604
+
605
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
606
+ if (localVarHttpHeaderAcceptSelected) {
607
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
608
+ responseType_ = 'text';
609
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
610
+ responseType_ = 'json';
611
+ } else {
612
+ responseType_ = 'blob';
613
+ }
614
+ }
615
+
616
+ let localVarPath = `/data/excel/import/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
617
+ const { basePath, withCredentials } = this.configuration;
618
+ return this.httpClient.request<ExcelImportTableEntity>('get', `${basePath}${localVarPath}`, {
619
+ context: localVarHttpContext,
620
+ responseType: <any>responseType_,
621
+ ...(withCredentials ? { withCredentials } : {}),
622
+ headers: localVarHeaders,
623
+ observe: observe,
624
+ transferCache: localVarTransferCache,
625
+ reportProgress: reportProgress
626
+ });
627
+ }
628
+
436
629
  /**
437
630
  * This endpoint puts a excel file on the translations import blob container
438
631
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
@@ -495,4 +688,85 @@ export class DataImportExportManagementService extends BaseService {
495
688
  reportProgress: reportProgress
496
689
  });
497
690
  }
691
+
692
+ /**
693
+ * This endpoint gets available fields for asset export selection
694
+ * @param requestParameters
695
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
696
+ * @param reportProgress flag to report request and response progress.
697
+ */
698
+ public httpGetAvailableExportFields(
699
+ requestParameters: HttpGetAvailableExportFieldsRequestParams,
700
+ observe?: 'body',
701
+ reportProgress?: boolean,
702
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
703
+ ): Observable<AvailableExportFields>;
704
+ public httpGetAvailableExportFields(
705
+ requestParameters: HttpGetAvailableExportFieldsRequestParams,
706
+ observe?: 'response',
707
+ reportProgress?: boolean,
708
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
709
+ ): Observable<HttpResponse<AvailableExportFields>>;
710
+ public httpGetAvailableExportFields(
711
+ requestParameters: HttpGetAvailableExportFieldsRequestParams,
712
+ observe?: 'events',
713
+ reportProgress?: boolean,
714
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
715
+ ): Observable<HttpEvent<AvailableExportFields>>;
716
+ public httpGetAvailableExportFields(
717
+ requestParameters: HttpGetAvailableExportFieldsRequestParams,
718
+ observe: any = 'body',
719
+ reportProgress: boolean = false,
720
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
721
+ ): Observable<any> {
722
+ const httpRequestAvailableExportFieldsInputParameter = requestParameters?.httpRequestAvailableExportFieldsInputParameter;
723
+ if (httpRequestAvailableExportFieldsInputParameter === null || httpRequestAvailableExportFieldsInputParameter === undefined) {
724
+ throw new Error('Required parameter httpRequestAvailableExportFieldsInputParameter was null or undefined when calling httpGetAvailableExportFields.');
725
+ }
726
+
727
+ let localVarHeaders = this.defaultHeaders;
728
+
729
+ // authentication (msal_auth) required
730
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
731
+
732
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
733
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
734
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
735
+ }
736
+
737
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
738
+
739
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
740
+
741
+ // to determine the Content-Type header
742
+ const consumes: string[] = ['application/json'];
743
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
744
+ if (httpContentTypeSelected !== undefined) {
745
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
746
+ }
747
+
748
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
749
+ if (localVarHttpHeaderAcceptSelected) {
750
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
751
+ responseType_ = 'text';
752
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
753
+ responseType_ = 'json';
754
+ } else {
755
+ responseType_ = 'blob';
756
+ }
757
+ }
758
+
759
+ let localVarPath = `/data/excel/export/assets/fields`;
760
+ const { basePath, withCredentials } = this.configuration;
761
+ return this.httpClient.request<AvailableExportFields>('post', `${basePath}${localVarPath}`, {
762
+ context: localVarHttpContext,
763
+ body: httpRequestAvailableExportFieldsInputParameter,
764
+ responseType: <any>responseType_,
765
+ ...(withCredentials ? { withCredentials } : {}),
766
+ headers: localVarHeaders,
767
+ observe: observe,
768
+ transferCache: localVarTransferCache,
769
+ reportProgress: reportProgress
770
+ });
771
+ }
498
772
  }
@@ -24,6 +24,15 @@ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
24
  import { AgravityConfiguration } from '../configuration';
25
25
  import { BaseService } from '../api.base.service';
26
26
 
27
+ export interface HttpStructureCreateCollectionsRequestParams {
28
+ /** The collection-type id to be used for creating the structure. If not given, the default collection-type is used (as defined in app settings). */
29
+ collectiontypeid?: string;
30
+ /** The collection id to be used as parent for creating the structure. If not given, the structure is created at root level of the given collection-type. */
31
+ parent?: string;
32
+ /** If set to true, the root folder level is treated as collection-type and not as collection. Cannot be used together with parameter \&quot;parent\&quot; or \&quot;collectiontypeid\&quot;. Default is false. */
33
+ rootiscolltype?: string;
34
+ }
35
+
27
36
  @Injectable({
28
37
  providedIn: 'root'
29
38
  })
@@ -38,29 +47,43 @@ export class StructureImportService extends BaseService {
38
47
 
39
48
  /**
40
49
  * This endpoint reads and creates structure elements for subfolders in the database based on container folder structure
50
+ * @param requestParameters
41
51
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
42
52
  * @param reportProgress flag to report request and response progress.
43
53
  */
44
54
  public httpStructureCreateCollections(
55
+ requestParameters?: HttpStructureCreateCollectionsRequestParams,
45
56
  observe?: 'body',
46
57
  reportProgress?: boolean,
47
58
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
48
59
  ): Observable<Array<BlobInfoObj>>;
49
60
  public httpStructureCreateCollections(
61
+ requestParameters?: HttpStructureCreateCollectionsRequestParams,
50
62
  observe?: 'response',
51
63
  reportProgress?: boolean,
52
64
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
53
65
  ): Observable<HttpResponse<Array<BlobInfoObj>>>;
54
66
  public httpStructureCreateCollections(
67
+ requestParameters?: HttpStructureCreateCollectionsRequestParams,
55
68
  observe?: 'events',
56
69
  reportProgress?: boolean,
57
70
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
58
71
  ): Observable<HttpEvent<Array<BlobInfoObj>>>;
59
72
  public httpStructureCreateCollections(
73
+ requestParameters?: HttpStructureCreateCollectionsRequestParams,
60
74
  observe: any = 'body',
61
75
  reportProgress: boolean = false,
62
76
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
63
77
  ): Observable<any> {
78
+ const collectiontypeid = requestParameters?.collectiontypeid;
79
+ const parent = requestParameters?.parent;
80
+ const rootiscolltype = requestParameters?.rootiscolltype;
81
+
82
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
83
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectiontypeid, 'collectiontypeid');
84
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>parent, 'parent');
85
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>rootiscolltype, 'rootiscolltype');
86
+
64
87
  let localVarHeaders = this.defaultHeaders;
65
88
 
66
89
  // authentication (msal_auth) required
@@ -90,6 +113,7 @@ export class StructureImportService extends BaseService {
90
113
  const { basePath, withCredentials } = this.configuration;
91
114
  return this.httpClient.request<Array<BlobInfoObj>>('put', `${basePath}${localVarPath}`, {
92
115
  context: localVarHttpContext,
116
+ params: localVarQueryParameters,
93
117
  responseType: <any>responseType_,
94
118
  ...(withCredentials ? { withCredentials } : {}),
95
119
  headers: localVarHeaders,
@@ -11,4 +11,6 @@
11
11
  export interface AiFieldGeneration {
12
12
  prompt?: string | null;
13
13
  field_type?: string | null;
14
+ mapping?: string | null;
15
+ translate_mapping?: boolean | null;
14
16
  }
@@ -21,6 +21,7 @@ export interface Asset {
21
21
  blobs?: Array<AssetBlob> | null;
22
22
  collections?: Array<string> | null;
23
23
  failed_reason?: string | null;
24
+ quality_gate?: Array<string> | null;
24
25
  region_of_origin?: string | null;
25
26
  availability?: string | null;
26
27
  available_from?: string | null;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@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 { ExportFieldDefinition } from './exportFieldDefinition.agravity';
11
+
12
+ export interface AvailableExportFields {
13
+ core_fields?: Array<ExportFieldDefinition> | null;
14
+ custom_fields?: Array<ExportFieldDefinition> | null;
15
+ available_languages?: Array<string> | null;
16
+ }
@@ -10,14 +10,14 @@
10
10
 
11
11
  export interface ExcelExportTableEntity {
12
12
  url?: string | null;
13
- status?: string;
13
+ status?: string | null;
14
14
  filters?: string | null;
15
15
  exclude?: string | null;
16
16
  ids?: string | null;
17
17
  language?: string | null;
18
- orchestrationId?: string;
19
- partitionKey?: string;
20
- rowKey?: string;
18
+ orchestration_id?: string | null;
19
+ pk?: string | null;
20
+ row_key?: string | null;
21
21
  timestamp?: string | null;
22
22
  eTag?: object;
23
23
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@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 ExcelImportTableEntity {
12
+ url?: string | null;
13
+ status?: string | null;
14
+ user_id?: string | null;
15
+ message?: string | null;
16
+ language?: string | null;
17
+ filename?: string | null;
18
+ progress?: number | null;
19
+ orchestration_id?: string | null;
20
+ pk?: string | null;
21
+ row_key?: string | null;
22
+ timestamp?: string | null;
23
+ eTag?: object;
24
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@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 ExportFieldDefinition {
12
+ id?: string | null;
13
+ display_name?: string | null;
14
+ field_type?: string | null;
15
+ is_multi?: boolean | null;
16
+ is_translatable?: boolean | null;
17
+ is_importable?: boolean | null;
18
+ is_core?: boolean | null;
19
+ default_value?: any | null;
20
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@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 HttpAssetExportFieldSelector {
12
+ id?: string | null;
13
+ languages?: Array<string> | null;
14
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@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 { HttpAssetExportFieldSelector } from './httpAssetExportFieldSelector.agravity';
11
+
12
+ export interface HttpAssetExportInputParameter {
13
+ ids?: Array<string> | null;
14
+ selected_fields?: Array<HttpAssetExportFieldSelector> | null;
15
+ include_thumbnails?: boolean | null;
16
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@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 HttpRequestAvailableExportFieldsInputParameter {
12
+ ids?: Array<string> | null;
13
+ }
package/model/models.ts CHANGED
@@ -25,6 +25,7 @@ export * from './assetRelation.agravity';
25
25
  export * from './assetRelationType.agravity';
26
26
  export * from './assetTextContent.agravity';
27
27
  export * from './assetsOperationBody.agravity';
28
+ export * from './availableExportFields.agravity';
28
29
  export * from './azSearchOptions.agravity';
29
30
  export * from './azureIdentity.agravity';
30
31
  export * from './blobInfoObj.agravity';
@@ -51,9 +52,14 @@ export * from './entityListResult.agravity';
51
52
  export * from './entityNamesRequest.agravity';
52
53
  export * from './entityTranslations.agravity';
53
54
  export * from './excelExportTableEntity.agravity';
55
+ export * from './excelImportTableEntity.agravity';
56
+ export * from './exportFieldDefinition.agravity';
54
57
  export * from './frontendAppConfig.agravity';
55
58
  export * from './groupAllAppData.agravity';
56
59
  export * from './historyEntry.agravity';
60
+ export * from './httpAssetExportFieldSelector.agravity';
61
+ export * from './httpAssetExportInputParameter.agravity';
62
+ export * from './httpRequestAvailableExportFieldsInputParameter.agravity';
57
63
  export * from './infoEntitySkillEnhanced.agravity';
58
64
  export * from './metadata.agravity';
59
65
  export * from './moveCollectionBody.agravity';
@@ -72,6 +78,7 @@ export * from './publishedAsset.agravity';
72
78
  export * from './quickShare.agravity';
73
79
  export * from './quickShareFull.agravity';
74
80
  export * from './relatedAsset.agravity';
81
+ export * from './reverseAssetSearchFieldSettings.agravity';
75
82
  export * from './sasToken.agravity';
76
83
  export * from './savedSearch.agravity';
77
84
  export * from './searchAdminDataSourceStatus.agravity';
@@ -15,4 +15,5 @@ export interface PortalFields {
15
15
  facet_order?: number | null;
16
16
  labels?: { [key: string]: string } | null;
17
17
  user_context?: PortalUserContext | null;
18
+ format?: string | null;
18
19
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ *
4
+ * Contact: office@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 ReverseAssetSearchFieldSettings {
12
+ image?: string | null;
13
+ document?: string | null;
14
+ }
@@ -7,6 +7,7 @@
7
7
  * https://openapi-generator.tech
8
8
  * Do not edit the class manually.
9
9
  */
10
+ import { ReverseAssetSearchFieldSettings } from './reverseAssetSearchFieldSettings.agravity';
10
11
 
11
12
  export interface SearchSettings {
12
13
  id?: string | null;
@@ -14,7 +15,7 @@ export interface SearchSettings {
14
15
  vectorizable_ai_field_types?: Array<string> | null;
15
16
  similar_asset_search_ai_field_type_vector?: string | null;
16
17
  similar_asset_search_limit?: number | null;
17
- reverse_asset_search_ai_field?: string | null;
18
+ reverse_asset_search_ai_field?: ReverseAssetSearchFieldSettings | null;
18
19
  broadness?: { [key: string]: Array<string> } | null;
19
20
  status?: string | null;
20
21
  created_date?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agravity/private",
3
- "version": "10.0.1",
3
+ "version": "10.1.0",
4
4
  "description": "The Agravity GlobalDAM API which allowes authenticated user to access the Agravity GlobalDAM Backend",
5
5
  "author": "Philipp Losbichler",
6
6
  "repository": {