@sovity.de/edc-client 7.2.0 → 7.2.2
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.
|
@@ -47,7 +47,7 @@ class D {
|
|
|
47
47
|
return this.configuration.credentials;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
const H = new D(),
|
|
50
|
+
const H = new D(), g = class g {
|
|
51
51
|
constructor(t = H) {
|
|
52
52
|
p(this, "middleware");
|
|
53
53
|
p(this, "fetchApi", async (t, r) => {
|
|
@@ -112,7 +112,7 @@ const H = new D(), h = class {
|
|
|
112
112
|
* @return True if the given MIME is JSON, false otherwise.
|
|
113
113
|
*/
|
|
114
114
|
isJsonMime(t) {
|
|
115
|
-
return t ?
|
|
115
|
+
return t ? g.jsonRegex.test(t) : !1;
|
|
116
116
|
}
|
|
117
117
|
async request(t, r) {
|
|
118
118
|
const { url: i, init: o } = await this.createFetchParams(
|
|
@@ -160,11 +160,11 @@ const H = new D(), h = class {
|
|
|
160
160
|
return r.middleware = this.middleware.slice(), r;
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
|
-
|
|
164
|
-
p(l, "jsonRegex", new RegExp(
|
|
163
|
+
p(g, "jsonRegex", new RegExp(
|
|
165
164
|
"^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$",
|
|
166
165
|
"i"
|
|
167
166
|
));
|
|
167
|
+
let l = g;
|
|
168
168
|
function k(e) {
|
|
169
169
|
return typeof Blob < "u" && e instanceof Blob;
|
|
170
170
|
}
|
|
@@ -268,7 +268,7 @@ function Mt(e) {
|
|
|
268
268
|
let t = !0;
|
|
269
269
|
return t = t && "assetId" in e, t = t && "connectorEndpoint" in e, t = t && "participantId" in e, t = t && "title" in e, t = t && "creatorOrganizationName" in e, t = t && "isOwnConnector" in e, t;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function m(e) {
|
|
272
272
|
return Q(e);
|
|
273
273
|
}
|
|
274
274
|
function Q(e, t) {
|
|
@@ -329,7 +329,7 @@ function Q(e, t) {
|
|
|
329
329
|
assetJsonLd: n(e, "assetJsonLd") ? e.assetJsonLd : void 0
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function y(e) {
|
|
333
333
|
if (e !== void 0)
|
|
334
334
|
return e === null ? null : {
|
|
335
335
|
assetId: e.assetId,
|
|
@@ -382,13 +382,13 @@ function V(e) {
|
|
|
382
382
|
}
|
|
383
383
|
function B(e, t) {
|
|
384
384
|
return e == null ? e : {
|
|
385
|
-
assets: e.assets.map(
|
|
385
|
+
assets: e.assets.map(m)
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
function Ht(e) {
|
|
389
389
|
if (e !== void 0)
|
|
390
390
|
return e === null ? null : {
|
|
391
|
-
assets: e.assets.map(
|
|
391
|
+
assets: e.assets.map(y)
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
394
|
function kt(e) {
|
|
@@ -574,7 +574,7 @@ function jt(e) {
|
|
|
574
574
|
let t = !0;
|
|
575
575
|
return t = t && "policyJsonLd" in e, t = t && "errors" in e, t;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function P(e) {
|
|
578
578
|
return pe(e);
|
|
579
579
|
}
|
|
580
580
|
function pe(e, t) {
|
|
@@ -586,7 +586,7 @@ function pe(e, t) {
|
|
|
586
586
|
errors: e.errors
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function h(e) {
|
|
590
590
|
if (e !== void 0)
|
|
591
591
|
return e === null ? null : {
|
|
592
592
|
policyJsonLd: e.policyJsonLd,
|
|
@@ -611,8 +611,8 @@ function le(e, t) {
|
|
|
611
611
|
counterPartyAddress: e.counterPartyAddress,
|
|
612
612
|
counterPartyId: e.counterPartyId,
|
|
613
613
|
contractSigningDate: new Date(e.contractSigningDate),
|
|
614
|
-
asset:
|
|
615
|
-
contractPolicy:
|
|
614
|
+
asset: m(e.asset),
|
|
615
|
+
contractPolicy: P(e.contractPolicy),
|
|
616
616
|
transferProcesses: e.transferProcesses.map(
|
|
617
617
|
ee
|
|
618
618
|
)
|
|
@@ -627,8 +627,8 @@ function ge(e) {
|
|
|
627
627
|
counterPartyAddress: e.counterPartyAddress,
|
|
628
628
|
counterPartyId: e.counterPartyId,
|
|
629
629
|
contractSigningDate: e.contractSigningDate.toISOString(),
|
|
630
|
-
asset:
|
|
631
|
-
contractPolicy:
|
|
630
|
+
asset: y(e.asset),
|
|
631
|
+
contractPolicy: h(e.contractPolicy),
|
|
632
632
|
transferProcesses: e.transferProcesses.map(
|
|
633
633
|
re
|
|
634
634
|
)
|
|
@@ -1157,14 +1157,14 @@ function dt(e) {
|
|
|
1157
1157
|
function ut(e, t) {
|
|
1158
1158
|
return e == null ? e : {
|
|
1159
1159
|
policyDefinitionId: e.policyDefinitionId,
|
|
1160
|
-
policy:
|
|
1160
|
+
policy: P(e.policy)
|
|
1161
1161
|
};
|
|
1162
1162
|
}
|
|
1163
1163
|
function pt(e) {
|
|
1164
1164
|
if (e !== void 0)
|
|
1165
1165
|
return e === null ? null : {
|
|
1166
1166
|
policyDefinitionId: e.policyDefinitionId,
|
|
1167
|
-
policy:
|
|
1167
|
+
policy: h(e.policy)
|
|
1168
1168
|
};
|
|
1169
1169
|
}
|
|
1170
1170
|
function vr(e) {
|
|
@@ -1434,14 +1434,14 @@ function Dt(e) {
|
|
|
1434
1434
|
function Ot(e, t) {
|
|
1435
1435
|
return e == null ? e : {
|
|
1436
1436
|
contractOfferId: e.contractOfferId,
|
|
1437
|
-
policy:
|
|
1437
|
+
policy: P(e.policy)
|
|
1438
1438
|
};
|
|
1439
1439
|
}
|
|
1440
1440
|
function Tt(e) {
|
|
1441
1441
|
if (e !== void 0)
|
|
1442
1442
|
return e === null ? null : {
|
|
1443
1443
|
contractOfferId: e.contractOfferId,
|
|
1444
|
-
policy:
|
|
1444
|
+
policy: h(e.policy)
|
|
1445
1445
|
};
|
|
1446
1446
|
}
|
|
1447
1447
|
function Xr(e) {
|
|
@@ -1455,7 +1455,7 @@ function Ut(e, t) {
|
|
|
1455
1455
|
return e == null ? e : {
|
|
1456
1456
|
endpoint: e.endpoint,
|
|
1457
1457
|
participantId: e.participantId,
|
|
1458
|
-
asset:
|
|
1458
|
+
asset: m(e.asset),
|
|
1459
1459
|
contractOffers: e.contractOffers.map(
|
|
1460
1460
|
Dt
|
|
1461
1461
|
)
|
|
@@ -1466,7 +1466,7 @@ function Yr(e) {
|
|
|
1466
1466
|
return e === null ? null : {
|
|
1467
1467
|
endpoint: e.endpoint,
|
|
1468
1468
|
participantId: e.participantId,
|
|
1469
|
-
asset:
|
|
1469
|
+
asset: y(e.asset),
|
|
1470
1470
|
contractOffers: e.contractOffers.map(
|
|
1471
1471
|
Tt
|
|
1472
1472
|
)
|
|
@@ -2041,7 +2041,7 @@ class Jt extends l {
|
|
|
2041
2041
|
);
|
|
2042
2042
|
return new c(
|
|
2043
2043
|
a,
|
|
2044
|
-
(s) =>
|
|
2044
|
+
(s) => m(s)
|
|
2045
2045
|
);
|
|
2046
2046
|
}
|
|
2047
2047
|
/**
|
|
@@ -2323,9 +2323,9 @@ export {
|
|
|
2323
2323
|
Qr as UiAssetEditMetadataRequestFromJSON,
|
|
2324
2324
|
It as UiAssetEditMetadataRequestFromJSONTyped,
|
|
2325
2325
|
wt as UiAssetEditMetadataRequestToJSON,
|
|
2326
|
-
|
|
2326
|
+
m as UiAssetFromJSON,
|
|
2327
2327
|
Q as UiAssetFromJSONTyped,
|
|
2328
|
-
|
|
2328
|
+
y as UiAssetToJSON,
|
|
2329
2329
|
S as UiContractNegotiationFromJSON,
|
|
2330
2330
|
St as UiContractNegotiationFromJSONTyped,
|
|
2331
2331
|
Br as UiContractNegotiationToJSON,
|
|
@@ -2355,7 +2355,7 @@ export {
|
|
|
2355
2355
|
it as UiPolicyCreateRequestFromJSON,
|
|
2356
2356
|
ot as UiPolicyCreateRequestFromJSONTyped,
|
|
2357
2357
|
at as UiPolicyCreateRequestToJSON,
|
|
2358
|
-
|
|
2358
|
+
P as UiPolicyFromJSON,
|
|
2359
2359
|
pe as UiPolicyFromJSONTyped,
|
|
2360
2360
|
se as UiPolicyLiteralFromJSON,
|
|
2361
2361
|
ce as UiPolicyLiteralFromJSONTyped,
|
|
@@ -2364,7 +2364,7 @@ export {
|
|
|
2364
2364
|
oe as UiPolicyLiteralTypeFromJSON,
|
|
2365
2365
|
ae as UiPolicyLiteralTypeFromJSONTyped,
|
|
2366
2366
|
Yt as UiPolicyLiteralTypeToJSON,
|
|
2367
|
-
|
|
2367
|
+
h as UiPolicyToJSON,
|
|
2368
2368
|
Ft as UseCaseApi,
|
|
2369
2369
|
$ as VoidApiResponse,
|
|
2370
2370
|
Wr as buildEdcClient,
|