@sovity.de/edc-client 14.1.0 → 15.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.
@@ -3,6 +3,10 @@ export declare interface ApiResponse<T> {
3
3
  value(): Promise<T>;
4
4
  }
5
5
 
6
+ export declare interface AssetDetailsPageRequest {
7
+ assetId: string;
8
+ }
9
+
6
10
  /**
7
11
  * Generic expression for filtering the data offers in the catalog
8
12
  * @export
@@ -66,24 +70,135 @@ export declare function AssetFilterConstraintToJSONTyped(value?: AssetFilterCons
66
70
  /**
67
71
  * All data for the Asset Page
68
72
  * @export
69
- * @interface AssetPage
73
+ * @interface AssetListPage
70
74
  */
71
- export declare interface AssetPage {
75
+ export declare interface AssetListPage {
72
76
  /**
73
- * Visible Assets
77
+ * Content of the current page.
74
78
  * @type {Array<UiAsset>}
75
- * @memberof AssetPage
79
+ * @memberof AssetListPage
80
+ */
81
+ content: Array<UiAsset>;
82
+ /**
83
+ * Number of items on all pages.
84
+ * @type {number}
85
+ * @memberof AssetListPage
86
+ */
87
+ totalItems: number;
88
+ /**
89
+ * Index of the last page
90
+ * @type {number}
91
+ * @memberof AssetListPage
92
+ */
93
+ lastPage: number;
94
+ /**
95
+ * Index of the previous page.
96
+ * @type {number}
97
+ * @memberof AssetListPage
98
+ */
99
+ previousPage?: number;
100
+ /**
101
+ * Index of the current page
102
+ * @type {number}
103
+ * @memberof AssetListPage
104
+ */
105
+ currentPage: number;
106
+ /**
107
+ * Index of the next page.
108
+ * @type {number}
109
+ * @memberof AssetListPage
110
+ */
111
+ nextPage?: number;
112
+ /**
113
+ * Index of the item at the start of the current page
114
+ * @type {number}
115
+ * @memberof AssetListPage
116
+ */
117
+ pageStart: number;
118
+ /**
119
+ * Index of the item at the end of the current page
120
+ * @type {number}
121
+ * @memberof AssetListPage
122
+ */
123
+ pageEnd: number;
124
+ /**
125
+ * Index of the next page.
126
+ * @type {number}
127
+ * @memberof AssetListPage
128
+ */
129
+ pageSize: number;
130
+ }
131
+
132
+ /**
133
+ * Properties to filter and sort the asset list page table
134
+ * @export
135
+ * @interface AssetListPageFilter
136
+ */
137
+ export declare interface AssetListPageFilter {
138
+ /**
139
+ * Query for filtering. If empty, show all entries
140
+ * @type {string}
141
+ * @memberof AssetListPageFilter
142
+ */
143
+ query?: string;
144
+ /**
145
+ * Page Index. Defaults to 0
146
+ * @type {number}
147
+ * @memberof AssetListPageFilter
76
148
  */
77
- assets: Array<UiAsset>;
149
+ page?: number;
150
+ /**
151
+ * Size of each page. If left out, show all entries
152
+ * @type {number}
153
+ * @memberof AssetListPageFilter
154
+ */
155
+ pageSize?: number;
156
+ /**
157
+ * Sort List by properties in order of appearance in the array. If empty, sort by creation date
158
+ * @type {Array<TableColumnSortAssetListSortProperty>}
159
+ * @memberof AssetListPageFilter
160
+ */
161
+ sort?: Array<TableColumnSortAssetListSortProperty>;
162
+ }
163
+
164
+ export declare function AssetListPageFilterFromJSON(json: any): AssetListPageFilter;
165
+
166
+ export declare function AssetListPageFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetListPageFilter;
167
+
168
+ export declare function AssetListPageFilterToJSON(json: any): AssetListPageFilter;
169
+
170
+ export declare function AssetListPageFilterToJSONTyped(value?: AssetListPageFilter | null, ignoreDiscriminator?: boolean): any;
171
+
172
+ export declare function AssetListPageFromJSON(json: any): AssetListPage;
173
+
174
+ export declare function AssetListPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetListPage;
175
+
176
+ export declare interface AssetListPageRequest {
177
+ assetListPageFilter?: AssetListPageFilter;
78
178
  }
79
179
 
80
- export declare function AssetPageFromJSON(json: any): AssetPage;
180
+ export declare function AssetListPageToJSON(json: any): AssetListPage;
181
+
182
+ export declare function AssetListPageToJSONTyped(value?: AssetListPage | null, ignoreDiscriminator?: boolean): any;
183
+
184
+ /**
185
+ * Properties, for which sorting in the asset list is enabled
186
+ * @export
187
+ */
188
+ export declare const AssetListSortProperty: {
189
+ readonly Title: "TITLE";
190
+ readonly DescriptionShortText: "DESCRIPTION_SHORT_TEXT";
191
+ };
81
192
 
82
- export declare function AssetPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetPage;
193
+ export declare type AssetListSortProperty = (typeof AssetListSortProperty)[keyof typeof AssetListSortProperty];
83
194
 
84
- export declare function AssetPageToJSON(json: any): AssetPage;
195
+ export declare function AssetListSortPropertyFromJSON(json: any): AssetListSortProperty;
85
196
 
86
- export declare function AssetPageToJSONTyped(value?: AssetPage | null, ignoreDiscriminator?: boolean): any;
197
+ export declare function AssetListSortPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetListSortProperty;
198
+
199
+ export declare function AssetListSortPropertyToJSON(value?: AssetListSortProperty | null): any;
200
+
201
+ export declare function AssetListSortPropertyToJSONTyped(value: any, ignoreDiscriminator: boolean): AssetListSortProperty;
87
202
 
88
203
  /**
89
204
  * sovity EDC API Wrapper
@@ -1774,9 +1889,9 @@ export declare interface FileUploadCreateAssetRequest {
1774
1889
  }
1775
1890
 
1776
1891
  export declare interface GetCatalogPageDataOfferRequest {
1777
- participantId: string;
1778
- connectorEndpoint: string;
1779
1892
  dataOfferId: string;
1893
+ participantId?: string;
1894
+ connectorEndpoint?: string;
1780
1895
  }
1781
1896
 
1782
1897
  export declare interface GetCatalogPageDataOffersRequest {
@@ -1988,9 +2103,16 @@ export declare function instanceOfAssetFilterConstraint(value: any): value is As
1988
2103
  export declare function instanceOfAssetFilterConstraintOperator(value: any): boolean;
1989
2104
 
1990
2105
  /**
1991
- * Check if a given object implements the AssetPage interface.
2106
+ * Check if a given object implements the AssetListPage interface.
1992
2107
  */
1993
- export declare function instanceOfAssetPage(value: any): value is AssetPage;
2108
+ export declare function instanceOfAssetListPage(value: any): value is AssetListPage;
2109
+
2110
+ /**
2111
+ * Check if a given object implements the AssetListPageFilter interface.
2112
+ */
2113
+ export declare function instanceOfAssetListPageFilter(value: any): value is AssetListPageFilter;
2114
+
2115
+ export declare function instanceOfAssetListSortProperty(value: any): boolean;
1994
2116
 
1995
2117
  /**
1996
2118
  * Check if a given object implements the BuildInfo interface.
@@ -2226,6 +2348,11 @@ export declare function instanceOfPolicyDefinitionDto(value: any): value is Poli
2226
2348
  */
2227
2349
  export declare function instanceOfPolicyDefinitionPage(value: any): value is PolicyDefinitionPage;
2228
2350
 
2351
+ /**
2352
+ * Check if a given object implements the TableColumnSortAssetListSortProperty interface.
2353
+ */
2354
+ export declare function instanceOfTableColumnSortAssetListSortProperty(value: any): value is TableColumnSortAssetListSortProperty;
2355
+
2229
2356
  /**
2230
2357
  * Check if a given object implements the TransferHistoryEntry interface.
2231
2358
  */
@@ -2841,6 +2968,34 @@ declare namespace runtime {
2841
2968
  }
2842
2969
  }
2843
2970
 
2971
+ /**
2972
+ * Sort a column by a given property
2973
+ * @export
2974
+ * @interface TableColumnSortAssetListSortProperty
2975
+ */
2976
+ export declare interface TableColumnSortAssetListSortProperty {
2977
+ /**
2978
+ * Name of the column to sort for
2979
+ * @type {AssetListSortProperty}
2980
+ * @memberof TableColumnSortAssetListSortProperty
2981
+ */
2982
+ columnName: AssetListSortProperty;
2983
+ /**
2984
+ * Flag whether to sort ascending. If left out, sort ascending
2985
+ * @type {boolean}
2986
+ * @memberof TableColumnSortAssetListSortProperty
2987
+ */
2988
+ descending?: boolean;
2989
+ }
2990
+
2991
+ export declare function TableColumnSortAssetListSortPropertyFromJSON(json: any): TableColumnSortAssetListSortProperty;
2992
+
2993
+ export declare function TableColumnSortAssetListSortPropertyFromJSONTyped(json: any, ignoreDiscriminator: boolean): TableColumnSortAssetListSortProperty;
2994
+
2995
+ export declare function TableColumnSortAssetListSortPropertyToJSON(json: any): TableColumnSortAssetListSortProperty;
2996
+
2997
+ export declare function TableColumnSortAssetListSortPropertyToJSONTyped(value?: TableColumnSortAssetListSortProperty | null, ignoreDiscriminator?: boolean): any;
2998
+
2844
2999
  export declare interface TerminateContractAgreementRequest {
2845
3000
  contractAgreementId: string;
2846
3001
  contractTerminationRequest?: ContractTerminationRequest;
@@ -3102,6 +3257,22 @@ export declare function TransferProcessStateToJSONTyped(value?: TransferProcessS
3102
3257
  *
3103
3258
  */
3104
3259
  export declare class UIApi extends runtime.BaseAPI {
3260
+ /**
3261
+ * Get details for a specific Asset
3262
+ */
3263
+ assetDetailsPageRaw(requestParameters: AssetDetailsPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UiAsset>>;
3264
+ /**
3265
+ * Get details for a specific Asset
3266
+ */
3267
+ assetDetailsPage(requestParameters: AssetDetailsPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UiAsset>;
3268
+ /**
3269
+ * Collect all data for Asset Page
3270
+ */
3271
+ assetListPageRaw(requestParameters: AssetListPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetListPage>>;
3272
+ /**
3273
+ * Collect all data for Asset Page
3274
+ */
3275
+ assetListPage(requestParameters?: AssetListPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetListPage>;
3105
3276
  /**
3106
3277
  * Get the build version info
3107
3278
  */
@@ -3258,14 +3429,6 @@ export declare class UIApi extends runtime.BaseAPI {
3258
3429
  * Collect all data for the Edit Vault Secret Page
3259
3430
  */
3260
3431
  editVaultSecretPage(requestParameters: EditVaultSecretPageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VaultSecretEditPage>;
3261
- /**
3262
- * Collect all data for Asset Page
3263
- */
3264
- getAssetPageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetPage>>;
3265
- /**
3266
- * Collect all data for Asset Page
3267
- */
3268
- getAssetPage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetPage>;
3269
3432
  /**
3270
3433
  * Fetch a specific data offer from a connector
3271
3434
  */