@sovity.de/edc-client 8.0.0 → 8.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.
@@ -23,6 +23,38 @@ export declare function AssetPageFromJSONTyped(json: any, ignoreDiscriminator: b
23
23
 
24
24
  export declare function AssetPageToJSON(value?: AssetPage | null): any;
25
25
 
26
+ /**
27
+ * Type-Safe OpenAPI generator friendly Constraint DTO that supports an opinionated subset of the original EDC Constraint Entity.
28
+ * @export
29
+ * @interface AtomicConstraintDto
30
+ */
31
+ export declare interface AtomicConstraintDto {
32
+ /**
33
+ * Left part of the constraint.
34
+ * @type {string}
35
+ * @memberof AtomicConstraintDto
36
+ */
37
+ leftExpression: string;
38
+ /**
39
+ *
40
+ * @type {OperatorDto}
41
+ * @memberof AtomicConstraintDto
42
+ */
43
+ operator: OperatorDto;
44
+ /**
45
+ * Right part of the constraint.
46
+ * @type {string}
47
+ * @memberof AtomicConstraintDto
48
+ */
49
+ rightExpression: string;
50
+ }
51
+
52
+ export declare function AtomicConstraintDtoFromJSON(json: any): AtomicConstraintDto;
53
+
54
+ export declare function AtomicConstraintDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AtomicConstraintDto;
55
+
56
+ export declare function AtomicConstraintDtoToJSON(value?: AtomicConstraintDto | null): any;
57
+
26
58
  /**
27
59
  * sovity EDC API Wrapper
28
60
  * sovity\'s EDC API Wrapper contains a selection of APIs for multiple consumers, e.g. our EDC UI API, our generic Use Case API, our Commercial APIs, etc. We bundled these APIs, so we can have an easier time generating our API Client Libraries.
@@ -639,6 +671,10 @@ export declare interface CreatePolicyDefinitionRequest {
639
671
  policyDefinitionCreateRequest?: PolicyDefinitionCreateRequest;
640
672
  }
641
673
 
674
+ export declare interface CreatePolicyDefinitionUseCaseRequest {
675
+ policyCreateRequest?: PolicyCreateRequest;
676
+ }
677
+
642
678
  /**
643
679
  * DAPS Config
644
680
  * @export
@@ -933,6 +969,61 @@ export declare interface ErrorContext {
933
969
 
934
970
  export declare function exists(json: any, key: string): boolean;
935
971
 
972
+ /**
973
+ * Represents a single atomic constraint or a multiplicity constraint. The atomicConstraint will be evaluated if the constraintType is ATOMIC_CONSTRAINT.
974
+ * @export
975
+ * @interface Expression
976
+ */
977
+ export declare interface Expression {
978
+ /**
979
+ *
980
+ * @type {ExpressionType}
981
+ * @memberof Expression
982
+ */
983
+ expressionType?: ExpressionType;
984
+ /**
985
+ * List of policy elements that are evaluated according the expressionType.
986
+ * @type {Array<Expression>}
987
+ * @memberof Expression
988
+ */
989
+ expressions?: Array<Expression>;
990
+ /**
991
+ *
992
+ * @type {AtomicConstraintDto}
993
+ * @memberof Expression
994
+ */
995
+ atomicConstraint?: AtomicConstraintDto;
996
+ }
997
+
998
+ export declare function ExpressionFromJSON(json: any): Expression;
999
+
1000
+ export declare function ExpressionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Expression;
1001
+
1002
+ export declare function ExpressionToJSON(value?: Expression | null): any;
1003
+
1004
+ /**
1005
+ * Expression types:
1006
+ * * `ATOMIC_CONSTRAINT` - A single constraint for the policy
1007
+ * * `AND` - Several constraints, all of which must be respected
1008
+ * * `OR` - Several constraints, of which at least one must be respected
1009
+ * * `XOR` - Several constraints, of which exactly one must be respected
1010
+ * @export
1011
+ */
1012
+ export declare const ExpressionType: {
1013
+ readonly AtomicConstraint: "ATOMIC_CONSTRAINT";
1014
+ readonly And: "AND";
1015
+ readonly Or: "OR";
1016
+ readonly Xor: "XOR";
1017
+ };
1018
+
1019
+ export declare type ExpressionType = (typeof ExpressionType)[keyof typeof ExpressionType];
1020
+
1021
+ export declare function ExpressionTypeFromJSON(json: any): ExpressionType;
1022
+
1023
+ export declare function ExpressionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExpressionType;
1024
+
1025
+ export declare function ExpressionTypeToJSON(value?: ExpressionType | null): any;
1026
+
936
1027
  export declare type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
937
1028
 
938
1029
  export declare class FetchError extends Error {
@@ -1092,6 +1183,11 @@ export declare type InitOverrideFunction = (requestContext: {
1092
1183
  */
1093
1184
  export declare function instanceOfAssetPage(value: object): boolean;
1094
1185
 
1186
+ /**
1187
+ * Check if a given object implements the AtomicConstraintDto interface.
1188
+ */
1189
+ export declare function instanceOfAtomicConstraintDto(value: object): boolean;
1190
+
1095
1191
  /**
1096
1192
  * Check if a given object implements the CatalogFilterExpression interface.
1097
1193
  */
@@ -1172,6 +1268,11 @@ export declare function instanceOfDashboardPage(value: object): boolean;
1172
1268
  */
1173
1269
  export declare function instanceOfDashboardTransferAmounts(value: object): boolean;
1174
1270
 
1271
+ /**
1272
+ * Check if a given object implements the Expression interface.
1273
+ */
1274
+ export declare function instanceOfExpression(value: object): boolean;
1275
+
1175
1276
  /**
1176
1277
  * Check if a given object implements the IdResponseDto interface.
1177
1278
  */
@@ -1192,6 +1293,16 @@ export declare function instanceOfInitiateTransferRequest(value: object): boolea
1192
1293
  */
1193
1294
  export declare function instanceOfKpiResult(value: object): boolean;
1194
1295
 
1296
+ /**
1297
+ * Check if a given object implements the PermissionDto interface.
1298
+ */
1299
+ export declare function instanceOfPermissionDto(value: object): boolean;
1300
+
1301
+ /**
1302
+ * Check if a given object implements the PolicyCreateRequest interface.
1303
+ */
1304
+ export declare function instanceOfPolicyCreateRequest(value: object): boolean;
1305
+
1195
1306
  /**
1196
1307
  * Check if a given object implements the PolicyDefinitionCreateRequest interface.
1197
1308
  */
@@ -1377,6 +1488,52 @@ export declare function OperatorDtoFromJSONTyped(json: any, ignoreDiscriminator:
1377
1488
 
1378
1489
  export declare function OperatorDtoToJSON(value?: OperatorDto | null): any;
1379
1490
 
1491
+ /**
1492
+ * Permission description for the policy to evaluate to TRUE.
1493
+ * @export
1494
+ * @interface PermissionDto
1495
+ */
1496
+ export declare interface PermissionDto {
1497
+ /**
1498
+ *
1499
+ * @type {Expression}
1500
+ * @memberof PermissionDto
1501
+ */
1502
+ expression: Expression;
1503
+ }
1504
+
1505
+ export declare function PermissionDtoFromJSON(json: any): PermissionDto;
1506
+
1507
+ export declare function PermissionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionDto;
1508
+
1509
+ export declare function PermissionDtoToJSON(value?: PermissionDto | null): any;
1510
+
1511
+ /**
1512
+ * Policy Creation Request Supporting Multiplicity Constraints.
1513
+ * @export
1514
+ * @interface PolicyCreateRequest
1515
+ */
1516
+ export declare interface PolicyCreateRequest {
1517
+ /**
1518
+ * Policy Definition ID
1519
+ * @type {string}
1520
+ * @memberof PolicyCreateRequest
1521
+ */
1522
+ policyDefinitionId: string;
1523
+ /**
1524
+ *
1525
+ * @type {PermissionDto}
1526
+ * @memberof PolicyCreateRequest
1527
+ */
1528
+ permission?: PermissionDto;
1529
+ }
1530
+
1531
+ export declare function PolicyCreateRequestFromJSON(json: any): PolicyCreateRequest;
1532
+
1533
+ export declare function PolicyCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyCreateRequest;
1534
+
1535
+ export declare function PolicyCreateRequestToJSON(value?: PolicyCreateRequest | null): any;
1536
+
1380
1537
  /**
1381
1538
  * Data for creating a Policy Definition
1382
1539
  * @export
@@ -2841,6 +2998,14 @@ export declare function UiPolicyToJSON(value?: UiPolicy | null): any;
2841
2998
  *
2842
2999
  */
2843
3000
  export declare class UseCaseApi extends runtime.BaseAPI {
3001
+ /**
3002
+ * Create a new Policy Definition
3003
+ */
3004
+ createPolicyDefinitionUseCaseRaw(requestParameters: CreatePolicyDefinitionUseCaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IdResponseDto>>;
3005
+ /**
3006
+ * Create a new Policy Definition
3007
+ */
3008
+ createPolicyDefinitionUseCase(requestParameters?: CreatePolicyDefinitionUseCaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IdResponseDto>;
2844
3009
  /**
2845
3010
  * Basic KPIs about the running EDC Connector.
2846
3011
  */