@sovity.de/edc-client 3.2.0 → 4.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.
- package/dist/EdcClient.d.ts +1 -5
- package/dist/generated/apis/EnterpriseEditionApi.d.ts +0 -13
- package/dist/generated/apis/UIApi.d.ts +18 -1
- package/dist/generated/apis/UseCaseApi.d.ts +12 -1
- package/dist/generated/apis/index.d.ts +0 -1
- package/dist/generated/models/AssetEntryDto.d.ts +28 -0
- package/dist/generated/models/AssetRequestDto.d.ts +28 -0
- package/dist/generated/models/AtomicConstraintDto.d.ts +45 -0
- package/dist/generated/models/ContractAgreementTransferRequest.d.ts +41 -0
- package/dist/generated/models/ContractAgreementTransferRequestParams.d.ts +36 -0
- package/dist/generated/models/ContractDefinitionRequestDto.d.ts +45 -0
- package/dist/generated/models/CreateOfferingDto.d.ts +35 -0
- package/dist/generated/models/CriterionDto.d.ts +32 -0
- package/dist/generated/models/DataAddressDto.d.ts +22 -0
- package/dist/generated/models/ExpressionDto.d.ts +61 -0
- package/dist/generated/models/IdResponseDto.d.ts +26 -0
- package/dist/generated/models/PermissionDto.d.ts +21 -0
- package/dist/generated/models/PolicyDefinitionRequestDto.d.ts +27 -0
- package/dist/generated/models/PolicyDto.d.ts +9 -2
- package/dist/generated/models/TransferHistoryEntry.d.ts +83 -0
- package/dist/generated/models/TransferHistoryPage.d.ts +21 -0
- package/dist/generated/models/index.d.ts +15 -15
- package/dist/sovity-edc-client.js +661 -706
- package/dist/sovity-edc-client.js.map +1 -1
- package/dist/sovity-edc-client.umd.cjs +1 -1
- package/dist/sovity-edc-client.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/generated/apis/BrokerServerApi.d.ts +0 -40
- package/dist/generated/models/CatalogPageQuery.d.ts +0 -49
- package/dist/generated/models/CatalogPageResult.d.ts +0 -42
- package/dist/generated/models/CatalogPageSortingItem.d.ts +0 -36
- package/dist/generated/models/CnfFilter.d.ts +0 -21
- package/dist/generated/models/CnfFilterAttribute.d.ts +0 -33
- package/dist/generated/models/CnfFilterItem.d.ts +0 -26
- package/dist/generated/models/CnfFilterValue.d.ts +0 -21
- package/dist/generated/models/CnfFilterValueAttribute.d.ts +0 -26
- package/dist/generated/models/ConnectorListEntry.d.ts +0 -82
- package/dist/generated/models/ConnectorPageQuery.d.ts +0 -40
- package/dist/generated/models/ConnectorPageResult.d.ts +0 -35
- package/dist/generated/models/ConnectorPageSortingItem.d.ts +0 -34
- package/dist/generated/models/ContractOfferConnectorInfo.d.ts +0 -52
- package/dist/generated/models/ContractOfferDto.d.ts +0 -35
- package/dist/generated/models/PaginationMetadata.d.ts +0 -38
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var d = (t, e,
|
|
4
|
-
const
|
|
5
|
-
class
|
|
1
|
+
var T = Object.defineProperty;
|
|
2
|
+
var N = (t, e, r) => e in t ? T(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var d = (t, e, r) => (N(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
+
const E = "http://localhost".replace(/\/+$/, "");
|
|
5
|
+
class S {
|
|
6
6
|
constructor(e = {}) {
|
|
7
7
|
this.configuration = e;
|
|
8
8
|
}
|
|
@@ -10,7 +10,7 @@ class O {
|
|
|
10
10
|
this.configuration = e;
|
|
11
11
|
}
|
|
12
12
|
get basePath() {
|
|
13
|
-
return this.configuration.basePath != null ? this.configuration.basePath :
|
|
13
|
+
return this.configuration.basePath != null ? this.configuration.basePath : E;
|
|
14
14
|
}
|
|
15
15
|
get fetchApi() {
|
|
16
16
|
return this.configuration.fetchApi;
|
|
@@ -19,7 +19,7 @@ class O {
|
|
|
19
19
|
return this.configuration.middleware || [];
|
|
20
20
|
}
|
|
21
21
|
get queryParamsStringify() {
|
|
22
|
-
return this.configuration.queryParamsStringify ||
|
|
22
|
+
return this.configuration.queryParamsStringify || h;
|
|
23
23
|
}
|
|
24
24
|
get username() {
|
|
25
25
|
return this.configuration.username;
|
|
@@ -44,33 +44,33 @@ class O {
|
|
|
44
44
|
return this.configuration.credentials;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
const R = new
|
|
47
|
+
const R = new S(), l = class {
|
|
48
48
|
constructor(e = R) {
|
|
49
49
|
d(this, "middleware");
|
|
50
|
-
d(this, "fetchApi", async (e,
|
|
51
|
-
let
|
|
50
|
+
d(this, "fetchApi", async (e, r) => {
|
|
51
|
+
let n = { url: e, init: r };
|
|
52
52
|
for (const o of this.middleware)
|
|
53
|
-
o.pre && (
|
|
53
|
+
o.pre && (n = await o.pre({
|
|
54
54
|
fetch: this.fetchApi,
|
|
55
|
-
...
|
|
56
|
-
}) ||
|
|
55
|
+
...n
|
|
56
|
+
}) || n);
|
|
57
57
|
let i;
|
|
58
58
|
try {
|
|
59
59
|
i = await (this.configuration.fetchApi || fetch)(
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
n.url,
|
|
61
|
+
n.init
|
|
62
62
|
);
|
|
63
63
|
} catch (o) {
|
|
64
|
-
for (const
|
|
65
|
-
|
|
64
|
+
for (const a of this.middleware)
|
|
65
|
+
a.onError && (i = await a.onError({
|
|
66
66
|
fetch: this.fetchApi,
|
|
67
|
-
url:
|
|
68
|
-
init:
|
|
67
|
+
url: n.url,
|
|
68
|
+
init: n.init,
|
|
69
69
|
error: o,
|
|
70
70
|
response: i ? i.clone() : void 0
|
|
71
71
|
}) || i);
|
|
72
72
|
if (i === void 0)
|
|
73
|
-
throw o instanceof Error ? new
|
|
73
|
+
throw o instanceof Error ? new x(
|
|
74
74
|
o,
|
|
75
75
|
"The request failed and the interceptors did not return an alternative response"
|
|
76
76
|
) : o;
|
|
@@ -78,8 +78,8 @@ const R = new O(), p = class {
|
|
|
78
78
|
for (const o of this.middleware)
|
|
79
79
|
o.post && (i = await o.post({
|
|
80
80
|
fetch: this.fetchApi,
|
|
81
|
-
url:
|
|
82
|
-
init:
|
|
81
|
+
url: n.url,
|
|
82
|
+
init: n.init,
|
|
83
83
|
response: i.clone()
|
|
84
84
|
}) || i);
|
|
85
85
|
return i;
|
|
@@ -87,16 +87,16 @@ const R = new O(), p = class {
|
|
|
87
87
|
this.configuration = e, this.middleware = e.middleware;
|
|
88
88
|
}
|
|
89
89
|
withMiddleware(...e) {
|
|
90
|
-
const
|
|
91
|
-
return
|
|
90
|
+
const r = this.clone();
|
|
91
|
+
return r.middleware = r.middleware.concat(...e), r;
|
|
92
92
|
}
|
|
93
93
|
withPreMiddleware(...e) {
|
|
94
|
-
const
|
|
95
|
-
return this.withMiddleware(...
|
|
94
|
+
const r = e.map((n) => ({ pre: n }));
|
|
95
|
+
return this.withMiddleware(...r);
|
|
96
96
|
}
|
|
97
97
|
withPostMiddleware(...e) {
|
|
98
|
-
const
|
|
99
|
-
return this.withMiddleware(...
|
|
98
|
+
const r = e.map((n) => ({ post: n }));
|
|
99
|
+
return this.withMiddleware(...r);
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* Check if the given MIME is a JSON MIME.
|
|
@@ -109,20 +109,20 @@ const R = new O(), p = class {
|
|
|
109
109
|
* @return True if the given MIME is JSON, false otherwise.
|
|
110
110
|
*/
|
|
111
111
|
isJsonMime(e) {
|
|
112
|
-
return e ?
|
|
112
|
+
return e ? l.jsonRegex.test(e) : !1;
|
|
113
113
|
}
|
|
114
|
-
async request(e,
|
|
115
|
-
const { url:
|
|
114
|
+
async request(e, r) {
|
|
115
|
+
const { url: n, init: i } = await this.createFetchParams(
|
|
116
116
|
e,
|
|
117
|
-
|
|
118
|
-
), o = await this.fetchApi(
|
|
117
|
+
r
|
|
118
|
+
), o = await this.fetchApi(n, i);
|
|
119
119
|
if (o && o.status >= 200 && o.status < 300)
|
|
120
120
|
return o;
|
|
121
|
-
throw new
|
|
121
|
+
throw new q(o, "Response returned an error code");
|
|
122
122
|
}
|
|
123
|
-
async createFetchParams(e,
|
|
124
|
-
let
|
|
125
|
-
e.query !== void 0 && Object.keys(e.query).length !== 0 && (
|
|
123
|
+
async createFetchParams(e, r) {
|
|
124
|
+
let n = this.configuration.basePath + e.path;
|
|
125
|
+
e.query !== void 0 && Object.keys(e.query).length !== 0 && (n += "?" + this.configuration.queryParamsStringify(e.query));
|
|
126
126
|
const i = Object.assign(
|
|
127
127
|
{},
|
|
128
128
|
this.configuration.headers,
|
|
@@ -131,114 +131,114 @@ const R = new O(), p = class {
|
|
|
131
131
|
Object.keys(i).forEach(
|
|
132
132
|
(g) => i[g] === void 0 ? delete i[g] : {}
|
|
133
133
|
);
|
|
134
|
-
const o = typeof
|
|
134
|
+
const o = typeof r == "function" ? r : async () => r, a = {
|
|
135
135
|
method: e.method,
|
|
136
136
|
headers: i,
|
|
137
137
|
body: e.body,
|
|
138
138
|
credentials: this.configuration.credentials
|
|
139
|
-
},
|
|
140
|
-
...
|
|
139
|
+
}, u = {
|
|
140
|
+
...a,
|
|
141
141
|
...await o({
|
|
142
|
-
init:
|
|
142
|
+
init: a,
|
|
143
143
|
context: e
|
|
144
144
|
})
|
|
145
|
-
},
|
|
146
|
-
...
|
|
147
|
-
body:
|
|
145
|
+
}, I = {
|
|
146
|
+
...u,
|
|
147
|
+
body: J(u.body) || u.body instanceof URLSearchParams || F(u.body) ? u.body : JSON.stringify(u.body)
|
|
148
148
|
};
|
|
149
|
-
return { url:
|
|
149
|
+
return { url: n, init: I };
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
152
|
* Create a shallow clone of `this` by constructing a new instance
|
|
153
153
|
* and then shallow cloning data members.
|
|
154
154
|
*/
|
|
155
155
|
clone() {
|
|
156
|
-
const e = this.constructor,
|
|
157
|
-
return
|
|
156
|
+
const e = this.constructor, r = new e(this.configuration);
|
|
157
|
+
return r.middleware = this.middleware.slice(), r;
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
|
-
let f =
|
|
160
|
+
let f = l;
|
|
161
161
|
d(f, "jsonRegex", new RegExp(
|
|
162
162
|
"^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$",
|
|
163
163
|
"i"
|
|
164
164
|
));
|
|
165
|
-
function
|
|
165
|
+
function F(t) {
|
|
166
166
|
return typeof Blob < "u" && t instanceof Blob;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function J(t) {
|
|
169
169
|
return typeof FormData < "u" && t instanceof FormData;
|
|
170
170
|
}
|
|
171
|
-
class
|
|
172
|
-
constructor(
|
|
173
|
-
super(
|
|
171
|
+
class q extends Error {
|
|
172
|
+
constructor(r, n) {
|
|
173
|
+
super(n);
|
|
174
174
|
d(this, "name", "ResponseError");
|
|
175
|
-
this.response =
|
|
175
|
+
this.response = r;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
class
|
|
179
|
-
constructor(
|
|
180
|
-
super(
|
|
178
|
+
class x extends Error {
|
|
179
|
+
constructor(r, n) {
|
|
180
|
+
super(n);
|
|
181
181
|
d(this, "name", "FetchError");
|
|
182
|
-
this.cause =
|
|
182
|
+
this.cause = r;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
class
|
|
186
|
-
constructor(
|
|
187
|
-
super(
|
|
185
|
+
class y extends Error {
|
|
186
|
+
constructor(r, n) {
|
|
187
|
+
super(n);
|
|
188
188
|
d(this, "name", "RequiredError");
|
|
189
|
-
this.field =
|
|
189
|
+
this.field = r;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
const
|
|
192
|
+
const zt = {
|
|
193
193
|
csv: ",",
|
|
194
194
|
ssv: " ",
|
|
195
195
|
tsv: " ",
|
|
196
196
|
pipes: "|"
|
|
197
197
|
};
|
|
198
|
-
function
|
|
199
|
-
const
|
|
200
|
-
return
|
|
198
|
+
function s(t, e) {
|
|
199
|
+
const r = t[e];
|
|
200
|
+
return r != null;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
return Object.keys(t).map((
|
|
202
|
+
function h(t, e = "") {
|
|
203
|
+
return Object.keys(t).map((r) => P(r, t[r], e)).filter((r) => r.length > 0).join("&");
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
const
|
|
205
|
+
function P(t, e, r = "") {
|
|
206
|
+
const n = r + (r.length ? `[${t}]` : t);
|
|
207
207
|
if (e instanceof Array) {
|
|
208
|
-
const i = e.map((o) => encodeURIComponent(String(o))).join(`&${encodeURIComponent(
|
|
209
|
-
return `${encodeURIComponent(
|
|
208
|
+
const i = e.map((o) => encodeURIComponent(String(o))).join(`&${encodeURIComponent(n)}=`);
|
|
209
|
+
return `${encodeURIComponent(n)}=${i}`;
|
|
210
210
|
}
|
|
211
211
|
if (e instanceof Set) {
|
|
212
212
|
const i = Array.from(e);
|
|
213
|
-
return
|
|
213
|
+
return P(t, i, r);
|
|
214
214
|
}
|
|
215
|
-
return e instanceof Date ? `${encodeURIComponent(
|
|
215
|
+
return e instanceof Date ? `${encodeURIComponent(n)}=${encodeURIComponent(
|
|
216
216
|
e.toISOString()
|
|
217
|
-
)}` : e instanceof Object ?
|
|
217
|
+
)}` : e instanceof Object ? h(e, n) : `${encodeURIComponent(n)}=${encodeURIComponent(
|
|
218
218
|
String(e)
|
|
219
219
|
)}`;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Qt(t, e) {
|
|
222
222
|
return Object.keys(t).reduce(
|
|
223
|
-
(
|
|
223
|
+
(r, n) => ({ ...r, [n]: e(t[n]) }),
|
|
224
224
|
{}
|
|
225
225
|
);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function _t(t) {
|
|
228
228
|
for (const e of t)
|
|
229
229
|
if (e.contentType === "multipart/form-data")
|
|
230
230
|
return !0;
|
|
231
231
|
return !1;
|
|
232
232
|
}
|
|
233
|
-
class
|
|
234
|
-
constructor(e,
|
|
235
|
-
this.raw = e, this.transformer =
|
|
233
|
+
class c {
|
|
234
|
+
constructor(e, r = (n) => n) {
|
|
235
|
+
this.raw = e, this.transformer = r;
|
|
236
236
|
}
|
|
237
237
|
async value() {
|
|
238
238
|
return this.transformer(await this.raw.json());
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
class
|
|
241
|
+
class b {
|
|
242
242
|
constructor(e) {
|
|
243
243
|
this.raw = e;
|
|
244
244
|
}
|
|
@@ -261,11 +261,11 @@ class Yt {
|
|
|
261
261
|
return await this.raw.text();
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Wt(t) {
|
|
265
265
|
let e = !0;
|
|
266
266
|
return e = e && "assetId" in t, e = e && "createdAt" in t, e = e && "properties" in t, e;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function M(t) {
|
|
269
269
|
return U(t);
|
|
270
270
|
}
|
|
271
271
|
function U(t, e) {
|
|
@@ -275,7 +275,7 @@ function U(t, e) {
|
|
|
275
275
|
properties: t.properties
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function L(t) {
|
|
279
279
|
if (t !== void 0)
|
|
280
280
|
return t === null ? null : {
|
|
281
281
|
assetId: t.assetId,
|
|
@@ -283,613 +283,528 @@ function P(t) {
|
|
|
283
283
|
properties: t.properties
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Zt(t) {
|
|
287
287
|
let e = !0;
|
|
288
|
-
return e = e && "
|
|
288
|
+
return e = e && "properties" in t, e;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
return
|
|
290
|
+
function G(t) {
|
|
291
|
+
return H(t);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function H(t, e) {
|
|
294
294
|
return t == null ? t : {
|
|
295
|
-
id: t.id,
|
|
296
|
-
|
|
295
|
+
id: s(t, "id") ? t.id : void 0,
|
|
296
|
+
properties: t.properties
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function K(t) {
|
|
300
300
|
if (t !== void 0)
|
|
301
301
|
return t === null ? null : {
|
|
302
302
|
id: t.id,
|
|
303
|
-
|
|
303
|
+
properties: t.properties
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function vt(t) {
|
|
307
307
|
let e = !0;
|
|
308
|
-
return e = e && "
|
|
308
|
+
return e = e && "properties" in t, e;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
return
|
|
310
|
+
function k(t) {
|
|
311
|
+
return $(t);
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function $(t, e) {
|
|
314
314
|
return t == null ? t : {
|
|
315
|
-
|
|
315
|
+
properties: t.properties
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function B(t) {
|
|
319
319
|
if (t !== void 0)
|
|
320
320
|
return t === null ? null : {
|
|
321
|
-
|
|
321
|
+
properties: t.properties
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
MostRecent: "MOST_RECENT",
|
|
328
|
-
Originator: "ORIGINATOR"
|
|
329
|
-
};
|
|
330
|
-
function ee(t) {
|
|
331
|
-
return !0;
|
|
324
|
+
function jt(t) {
|
|
325
|
+
let e = !0;
|
|
326
|
+
return e = e && "asset" in t, e = e && "dataAddress" in t, e;
|
|
332
327
|
}
|
|
333
|
-
function
|
|
328
|
+
function V(t) {
|
|
334
329
|
return z(t);
|
|
335
330
|
}
|
|
336
331
|
function z(t, e) {
|
|
337
332
|
return t == null ? t : {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
sorting: a(t, "sorting") ? t.sorting : void 0,
|
|
341
|
-
pageOneBased: a(t, "pageOneBased") ? t.pageOneBased : void 0
|
|
333
|
+
asset: G(t.asset),
|
|
334
|
+
dataAddress: k(t.dataAddress)
|
|
342
335
|
};
|
|
343
336
|
}
|
|
344
|
-
function
|
|
337
|
+
function Q(t) {
|
|
345
338
|
if (t !== void 0)
|
|
346
339
|
return t === null ? null : {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
sorting: t.sorting,
|
|
350
|
-
pageOneBased: t.pageOneBased
|
|
340
|
+
asset: K(t.asset),
|
|
341
|
+
dataAddress: B(t.dataAddress)
|
|
351
342
|
};
|
|
352
343
|
}
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
344
|
+
const te = {
|
|
345
|
+
Eq: "EQ",
|
|
346
|
+
Neq: "NEQ",
|
|
347
|
+
Gt: "GT",
|
|
348
|
+
Geq: "GEQ",
|
|
349
|
+
Lt: "LT",
|
|
350
|
+
Leq: "LEQ",
|
|
351
|
+
In: "IN"
|
|
358
352
|
};
|
|
359
|
-
function
|
|
353
|
+
function ee(t) {
|
|
360
354
|
let e = !0;
|
|
361
|
-
return e = e && "
|
|
355
|
+
return e = e && "leftExpression" in t, e = e && "operator" in t, e = e && "rightExpression" in t, e;
|
|
362
356
|
}
|
|
363
|
-
function
|
|
364
|
-
return
|
|
357
|
+
function _(t) {
|
|
358
|
+
return X(t);
|
|
365
359
|
}
|
|
366
|
-
function
|
|
360
|
+
function X(t, e) {
|
|
367
361
|
return t == null ? t : {
|
|
368
|
-
|
|
369
|
-
|
|
362
|
+
leftExpression: t.leftExpression,
|
|
363
|
+
operator: t.operator,
|
|
364
|
+
rightExpression: t.rightExpression
|
|
370
365
|
};
|
|
371
366
|
}
|
|
372
|
-
function
|
|
367
|
+
function Y(t) {
|
|
373
368
|
if (t !== void 0)
|
|
374
369
|
return t === null ? null : {
|
|
375
|
-
|
|
376
|
-
|
|
370
|
+
leftExpression: t.leftExpression,
|
|
371
|
+
operator: t.operator,
|
|
372
|
+
rightExpression: t.rightExpression
|
|
377
373
|
};
|
|
378
374
|
}
|
|
379
|
-
function
|
|
375
|
+
function re(t) {
|
|
380
376
|
let e = !0;
|
|
381
|
-
return e = e && "
|
|
377
|
+
return e = e && "numActiveConsumingContractAgreements" in t, e;
|
|
382
378
|
}
|
|
383
379
|
function W(t) {
|
|
384
|
-
return
|
|
380
|
+
return Z(t);
|
|
385
381
|
}
|
|
386
|
-
function
|
|
382
|
+
function Z(t, e) {
|
|
387
383
|
return t == null ? t : {
|
|
388
|
-
|
|
389
|
-
|
|
384
|
+
numActiveConsumingContractAgreements: t.numActiveConsumingContractAgreements,
|
|
385
|
+
maxActiveConsumingContractAgreements: s(
|
|
386
|
+
t,
|
|
387
|
+
"maxActiveConsumingContractAgreements"
|
|
388
|
+
) ? t.maxActiveConsumingContractAgreements : void 0
|
|
390
389
|
};
|
|
391
390
|
}
|
|
392
|
-
function
|
|
391
|
+
function ne(t) {
|
|
393
392
|
if (t !== void 0)
|
|
394
393
|
return t === null ? null : {
|
|
395
|
-
|
|
396
|
-
|
|
394
|
+
numActiveConsumingContractAgreements: t.numActiveConsumingContractAgreements,
|
|
395
|
+
maxActiveConsumingContractAgreements: t.maxActiveConsumingContractAgreements
|
|
397
396
|
};
|
|
398
397
|
}
|
|
399
|
-
|
|
398
|
+
const ie = {
|
|
399
|
+
Running: "RUNNING",
|
|
400
|
+
Ok: "OK",
|
|
401
|
+
Error: "ERROR"
|
|
402
|
+
};
|
|
403
|
+
function oe(t) {
|
|
400
404
|
let e = !0;
|
|
401
|
-
return e = e && "
|
|
405
|
+
return e = e && "name" in t, e = e && "code" in t, e = e && "simplifiedState" in t, e;
|
|
402
406
|
}
|
|
403
|
-
function
|
|
407
|
+
function A(t) {
|
|
404
408
|
return v(t);
|
|
405
409
|
}
|
|
406
410
|
function v(t, e) {
|
|
407
411
|
return t == null ? t : {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
412
|
+
name: t.name,
|
|
413
|
+
code: t.code,
|
|
414
|
+
simplifiedState: t.simplifiedState
|
|
411
415
|
};
|
|
412
416
|
}
|
|
413
|
-
function
|
|
417
|
+
function O(t) {
|
|
414
418
|
if (t !== void 0)
|
|
415
419
|
return t === null ? null : {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
420
|
+
name: t.name,
|
|
421
|
+
code: t.code,
|
|
422
|
+
simplifiedState: t.simplifiedState
|
|
419
423
|
};
|
|
420
424
|
}
|
|
421
425
|
function se(t) {
|
|
422
426
|
let e = !0;
|
|
423
|
-
return e = e && "
|
|
427
|
+
return e = e && "transferProcessId" in t, e = e && "lastUpdatedDate" in t, e = e && "state" in t, e;
|
|
424
428
|
}
|
|
425
|
-
function
|
|
426
|
-
return
|
|
429
|
+
function j(t) {
|
|
430
|
+
return tt(t);
|
|
427
431
|
}
|
|
428
|
-
function
|
|
432
|
+
function tt(t, e) {
|
|
429
433
|
return t == null ? t : {
|
|
430
|
-
|
|
434
|
+
transferProcessId: t.transferProcessId,
|
|
435
|
+
lastUpdatedDate: new Date(t.lastUpdatedDate),
|
|
436
|
+
state: A(t.state),
|
|
437
|
+
errorMessage: s(t, "errorMessage") ? t.errorMessage : void 0
|
|
431
438
|
};
|
|
432
439
|
}
|
|
433
|
-
function
|
|
440
|
+
function et(t) {
|
|
434
441
|
if (t !== void 0)
|
|
435
442
|
return t === null ? null : {
|
|
436
|
-
|
|
443
|
+
transferProcessId: t.transferProcessId,
|
|
444
|
+
lastUpdatedDate: t.lastUpdatedDate.toISOString(),
|
|
445
|
+
state: O(t.state),
|
|
446
|
+
errorMessage: t.errorMessage
|
|
437
447
|
};
|
|
438
448
|
}
|
|
439
|
-
const
|
|
440
|
-
|
|
441
|
-
|
|
449
|
+
const ae = {
|
|
450
|
+
Empty: "EMPTY",
|
|
451
|
+
AtomicConstraint: "ATOMIC_CONSTRAINT",
|
|
452
|
+
And: "AND",
|
|
453
|
+
Or: "OR",
|
|
454
|
+
Xor: "XOR"
|
|
442
455
|
};
|
|
443
|
-
function
|
|
444
|
-
|
|
445
|
-
return e = e && "endpoint" in t, e = e && "title" in t, e = e && "description" in t, e = e && "onlineStatus" in t, e;
|
|
456
|
+
function ce(t) {
|
|
457
|
+
return !0;
|
|
446
458
|
}
|
|
447
|
-
function
|
|
448
|
-
return
|
|
459
|
+
function p(t) {
|
|
460
|
+
return rt(t);
|
|
449
461
|
}
|
|
450
|
-
function
|
|
462
|
+
function rt(t, e) {
|
|
451
463
|
return t == null ? t : {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
t,
|
|
458
|
-
"offlineSinceOrLastUpdatedAt"
|
|
459
|
-
) ? new Date(t.offlineSinceOrLastUpdatedAt) : void 0
|
|
464
|
+
type: s(t, "type") ? t.type : void 0,
|
|
465
|
+
atomicConstraint: s(t, "atomicConstraint") ? _(t.atomicConstraint) : void 0,
|
|
466
|
+
and: s(t, "and") ? t.and.map(p) : void 0,
|
|
467
|
+
or: s(t, "or") ? t.or.map(p) : void 0,
|
|
468
|
+
xor: s(t, "xor") ? t.xor.map(p) : void 0
|
|
460
469
|
};
|
|
461
470
|
}
|
|
462
|
-
function
|
|
471
|
+
function m(t) {
|
|
463
472
|
if (t !== void 0)
|
|
464
473
|
return t === null ? null : {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
474
|
+
type: t.type,
|
|
475
|
+
atomicConstraint: Y(t.atomicConstraint),
|
|
476
|
+
and: t.and === void 0 ? void 0 : t.and.map(m),
|
|
477
|
+
or: t.or === void 0 ? void 0 : t.or.map(m),
|
|
478
|
+
xor: t.xor === void 0 ? void 0 : t.xor.map(m)
|
|
470
479
|
};
|
|
471
480
|
}
|
|
472
481
|
function de(t) {
|
|
473
482
|
let e = !0;
|
|
474
|
-
return e = e && "
|
|
483
|
+
return e = e && "constraints" in t, e;
|
|
475
484
|
}
|
|
476
|
-
function
|
|
477
|
-
return
|
|
485
|
+
function nt(t) {
|
|
486
|
+
return it(t);
|
|
478
487
|
}
|
|
479
|
-
function
|
|
488
|
+
function it(t, e) {
|
|
480
489
|
return t == null ? t : {
|
|
481
|
-
|
|
490
|
+
constraints: p(t.constraints)
|
|
482
491
|
};
|
|
483
492
|
}
|
|
484
|
-
function
|
|
493
|
+
function ot(t) {
|
|
485
494
|
if (t !== void 0)
|
|
486
495
|
return t === null ? null : {
|
|
487
|
-
|
|
496
|
+
constraints: m(t.constraints)
|
|
488
497
|
};
|
|
489
498
|
}
|
|
490
|
-
function
|
|
491
|
-
|
|
492
|
-
return e = e && "connectorInfo" in t, e = e && "asset" in t, e = e && "policy" in t, e;
|
|
499
|
+
function ue(t) {
|
|
500
|
+
return !0;
|
|
493
501
|
}
|
|
494
|
-
function
|
|
495
|
-
return
|
|
502
|
+
function w(t) {
|
|
503
|
+
return st(t);
|
|
496
504
|
}
|
|
497
|
-
function
|
|
505
|
+
function st(t, e) {
|
|
498
506
|
return t == null ? t : {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
),
|
|
502
|
-
asset: C(t.asset),
|
|
503
|
-
policy: w(t.policy)
|
|
507
|
+
legacyPolicy: s(t, "legacyPolicy") ? t.legacyPolicy : void 0,
|
|
508
|
+
permission: s(t, "permission") ? nt(t.permission) : void 0
|
|
504
509
|
};
|
|
505
510
|
}
|
|
506
|
-
function
|
|
511
|
+
function C(t) {
|
|
507
512
|
if (t !== void 0)
|
|
508
513
|
return t === null ? null : {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
policy: I(t.policy)
|
|
514
|
+
legacyPolicy: t.legacyPolicy,
|
|
515
|
+
permission: ot(t.permission)
|
|
512
516
|
};
|
|
513
517
|
}
|
|
514
|
-
|
|
518
|
+
const fe = {
|
|
519
|
+
Consuming: "CONSUMING",
|
|
520
|
+
Providing: "PROVIDING"
|
|
521
|
+
};
|
|
522
|
+
function pe(t) {
|
|
515
523
|
let e = !0;
|
|
516
|
-
return e = e && "
|
|
524
|
+
return e = e && "contractAgreementId" in t, e = e && "contractNegotiationId" in t, e = e && "direction" in t, e = e && "counterPartyAddress" in t, e = e && "counterPartyId" in t, e = e && "contractSigningDate" in t, e = e && "contractStartDate" in t, e = e && "contractEndDate" in t, e = e && "asset" in t, e = e && "contractPolicy" in t, e = e && "transferProcesses" in t, e;
|
|
517
525
|
}
|
|
518
|
-
function
|
|
519
|
-
return
|
|
526
|
+
function at(t) {
|
|
527
|
+
return ct(t);
|
|
520
528
|
}
|
|
521
|
-
function
|
|
529
|
+
function ct(t, e) {
|
|
522
530
|
return t == null ? t : {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
531
|
+
contractAgreementId: t.contractAgreementId,
|
|
532
|
+
contractNegotiationId: t.contractNegotiationId,
|
|
533
|
+
direction: t.direction,
|
|
534
|
+
counterPartyAddress: t.counterPartyAddress,
|
|
535
|
+
counterPartyId: t.counterPartyId,
|
|
536
|
+
contractSigningDate: new Date(t.contractSigningDate),
|
|
537
|
+
contractStartDate: new Date(t.contractStartDate),
|
|
538
|
+
contractEndDate: new Date(t.contractEndDate),
|
|
539
|
+
asset: M(t.asset),
|
|
540
|
+
contractPolicy: w(t.contractPolicy),
|
|
541
|
+
transferProcesses: t.transferProcesses.map(
|
|
542
|
+
j
|
|
543
|
+
)
|
|
527
544
|
};
|
|
528
545
|
}
|
|
529
|
-
function
|
|
546
|
+
function dt(t) {
|
|
530
547
|
if (t !== void 0)
|
|
531
548
|
return t === null ? null : {
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
549
|
+
contractAgreementId: t.contractAgreementId,
|
|
550
|
+
contractNegotiationId: t.contractNegotiationId,
|
|
551
|
+
direction: t.direction,
|
|
552
|
+
counterPartyAddress: t.counterPartyAddress,
|
|
553
|
+
counterPartyId: t.counterPartyId,
|
|
554
|
+
contractSigningDate: t.contractSigningDate.toISOString(),
|
|
555
|
+
contractStartDate: t.contractStartDate.toISOString(),
|
|
556
|
+
contractEndDate: t.contractEndDate.toISOString(),
|
|
557
|
+
asset: L(t.asset),
|
|
558
|
+
contractPolicy: C(t.contractPolicy),
|
|
559
|
+
transferProcesses: t.transferProcesses.map(
|
|
560
|
+
et
|
|
561
|
+
)
|
|
536
562
|
};
|
|
537
563
|
}
|
|
538
|
-
function
|
|
564
|
+
function me(t) {
|
|
539
565
|
let e = !0;
|
|
540
|
-
return e = e && "
|
|
566
|
+
return e = e && "contractAgreements" in t, e;
|
|
541
567
|
}
|
|
542
|
-
function
|
|
543
|
-
return
|
|
568
|
+
function ut(t) {
|
|
569
|
+
return ft(t);
|
|
544
570
|
}
|
|
545
|
-
function
|
|
571
|
+
function ft(t, e) {
|
|
546
572
|
return t == null ? t : {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
k
|
|
550
|
-
),
|
|
551
|
-
paginationMetadata: A(
|
|
552
|
-
t.paginationMetadata
|
|
553
|
-
),
|
|
554
|
-
contractOffers: t.contractOffers.map(
|
|
555
|
-
st
|
|
573
|
+
contractAgreements: t.contractAgreements.map(
|
|
574
|
+
at
|
|
556
575
|
)
|
|
557
576
|
};
|
|
558
577
|
}
|
|
559
|
-
function
|
|
578
|
+
function le(t) {
|
|
560
579
|
if (t !== void 0)
|
|
561
580
|
return t === null ? null : {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
H
|
|
565
|
-
),
|
|
566
|
-
paginationMetadata: T(t.paginationMetadata),
|
|
567
|
-
contractOffers: t.contractOffers.map(
|
|
568
|
-
ut
|
|
581
|
+
contractAgreements: t.contractAgreements.map(
|
|
582
|
+
dt
|
|
569
583
|
)
|
|
570
584
|
};
|
|
571
585
|
}
|
|
572
|
-
function
|
|
586
|
+
function ge(t) {
|
|
573
587
|
let e = !0;
|
|
574
|
-
return e = e && "
|
|
588
|
+
return e = e && "contractAgreementId" in t, e = e && "dataSinkProperties" in t, e = e && "properties" in t, e;
|
|
575
589
|
}
|
|
576
|
-
function
|
|
590
|
+
function pt(t) {
|
|
577
591
|
return mt(t);
|
|
578
592
|
}
|
|
579
593
|
function mt(t, e) {
|
|
580
594
|
return t == null ? t : {
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
"maxActiveConsumingContractAgreements"
|
|
585
|
-
) ? t.maxActiveConsumingContractAgreements : void 0
|
|
595
|
+
contractAgreementId: t.contractAgreementId,
|
|
596
|
+
dataSinkProperties: t.dataSinkProperties,
|
|
597
|
+
properties: t.properties
|
|
586
598
|
};
|
|
587
599
|
}
|
|
588
|
-
function
|
|
600
|
+
function lt(t) {
|
|
589
601
|
if (t !== void 0)
|
|
590
602
|
return t === null ? null : {
|
|
591
|
-
|
|
592
|
-
|
|
603
|
+
contractAgreementId: t.contractAgreementId,
|
|
604
|
+
dataSinkProperties: t.dataSinkProperties,
|
|
605
|
+
properties: t.properties
|
|
593
606
|
};
|
|
594
607
|
}
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
|
|
608
|
+
const ye = {
|
|
609
|
+
ParamsOnly: "PARAMS_ONLY",
|
|
610
|
+
CustomJson: "CUSTOM_JSON"
|
|
598
611
|
};
|
|
599
|
-
function
|
|
612
|
+
function De(t) {
|
|
600
613
|
let e = !0;
|
|
601
|
-
return e = e && "
|
|
602
|
-
}
|
|
603
|
-
function pt(t) {
|
|
604
|
-
return St(t);
|
|
605
|
-
}
|
|
606
|
-
function St(t, e) {
|
|
607
|
-
return t == null ? t : {
|
|
608
|
-
id: t.id,
|
|
609
|
-
idsId: t.idsId,
|
|
610
|
-
endpoint: t.endpoint,
|
|
611
|
-
title: t.title,
|
|
612
|
-
description: t.description,
|
|
613
|
-
createdAt: a(t, "createdAt") ? new Date(t.createdAt) : void 0,
|
|
614
|
-
lastFetchAt: a(t, "lastFetchAt") ? new Date(t.lastFetchAt) : void 0,
|
|
615
|
-
onlineStatus: t.onlineStatus,
|
|
616
|
-
offlineSince: a(t, "offlineSince") ? new Date(t.offlineSince) : void 0,
|
|
617
|
-
numContractOffers: a(t, "numContractOffers") ? t.numContractOffers : void 0
|
|
618
|
-
};
|
|
614
|
+
return e = e && "type" in t, e;
|
|
619
615
|
}
|
|
620
|
-
function
|
|
621
|
-
|
|
622
|
-
return t === null ? null : {
|
|
623
|
-
id: t.id,
|
|
624
|
-
idsId: t.idsId,
|
|
625
|
-
endpoint: t.endpoint,
|
|
626
|
-
title: t.title,
|
|
627
|
-
description: t.description,
|
|
628
|
-
createdAt: t.createdAt === void 0 ? void 0 : t.createdAt.toISOString(),
|
|
629
|
-
lastFetchAt: t.lastFetchAt === void 0 ? void 0 : t.lastFetchAt.toISOString(),
|
|
630
|
-
onlineStatus: t.onlineStatus,
|
|
631
|
-
offlineSince: t.offlineSince === void 0 ? void 0 : t.offlineSince.toISOString(),
|
|
632
|
-
numContractOffers: t.numContractOffers
|
|
633
|
-
};
|
|
634
|
-
}
|
|
635
|
-
const he = {
|
|
636
|
-
Title: "TITLE",
|
|
637
|
-
MostRecent: "MOST_RECENT"
|
|
638
|
-
};
|
|
639
|
-
function Ce(t) {
|
|
640
|
-
return !0;
|
|
641
|
-
}
|
|
642
|
-
function Pe(t) {
|
|
643
|
-
return yt(t);
|
|
616
|
+
function Se(t) {
|
|
617
|
+
return gt(t);
|
|
644
618
|
}
|
|
645
|
-
function
|
|
619
|
+
function gt(t, e) {
|
|
646
620
|
return t == null ? t : {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
621
|
+
type: t.type,
|
|
622
|
+
params: s(t, "params") ? pt(t.params) : void 0,
|
|
623
|
+
customJson: s(t, "customJson") ? t.customJson : void 0
|
|
650
624
|
};
|
|
651
625
|
}
|
|
652
|
-
function
|
|
626
|
+
function yt(t) {
|
|
653
627
|
if (t !== void 0)
|
|
654
628
|
return t === null ? null : {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
629
|
+
type: t.type,
|
|
630
|
+
params: lt(t.params),
|
|
631
|
+
customJson: t.customJson
|
|
658
632
|
};
|
|
659
633
|
}
|
|
660
|
-
|
|
661
|
-
Title: "TITLE",
|
|
662
|
-
MostRecent: "MOST_RECENT"
|
|
663
|
-
};
|
|
664
|
-
function Ie(t) {
|
|
634
|
+
function he(t) {
|
|
665
635
|
let e = !0;
|
|
666
|
-
return e = e && "
|
|
636
|
+
return e = e && "operandLeft" in t, e = e && "operator" in t, e;
|
|
667
637
|
}
|
|
668
|
-
function
|
|
669
|
-
return
|
|
638
|
+
function Dt(t) {
|
|
639
|
+
return St(t);
|
|
670
640
|
}
|
|
671
|
-
function
|
|
641
|
+
function St(t, e) {
|
|
672
642
|
return t == null ? t : {
|
|
673
|
-
|
|
674
|
-
|
|
643
|
+
operandLeft: t.operandLeft,
|
|
644
|
+
operator: t.operator,
|
|
645
|
+
operandRight: s(t, "operandRight") ? t.operandRight : void 0
|
|
675
646
|
};
|
|
676
647
|
}
|
|
677
|
-
function
|
|
648
|
+
function ht(t) {
|
|
678
649
|
if (t !== void 0)
|
|
679
650
|
return t === null ? null : {
|
|
680
|
-
|
|
681
|
-
|
|
651
|
+
operandLeft: t.operandLeft,
|
|
652
|
+
operator: t.operator,
|
|
653
|
+
operandRight: t.operandRight
|
|
682
654
|
};
|
|
683
655
|
}
|
|
684
|
-
function
|
|
656
|
+
function Pe(t) {
|
|
685
657
|
let e = !0;
|
|
686
|
-
return e = e && "
|
|
658
|
+
return e = e && "accessPolicyId" in t, e = e && "contractPolicyId" in t, e = e && "criteria" in t, e;
|
|
687
659
|
}
|
|
688
|
-
function
|
|
660
|
+
function Pt(t) {
|
|
689
661
|
return At(t);
|
|
690
662
|
}
|
|
691
663
|
function At(t, e) {
|
|
692
664
|
return t == null ? t : {
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
),
|
|
699
|
-
connectors: t.connectors.map(
|
|
700
|
-
pt
|
|
701
|
-
)
|
|
702
|
-
};
|
|
703
|
-
}
|
|
704
|
-
function Te(t) {
|
|
705
|
-
if (t !== void 0)
|
|
706
|
-
return t === null ? null : {
|
|
707
|
-
availableSortings: t.availableSortings.map(
|
|
708
|
-
wt
|
|
709
|
-
),
|
|
710
|
-
paginationMetadata: T(t.paginationMetadata),
|
|
711
|
-
connectors: t.connectors.map(
|
|
712
|
-
Ot
|
|
713
|
-
)
|
|
714
|
-
};
|
|
715
|
-
}
|
|
716
|
-
const Fe = {
|
|
717
|
-
Running: "RUNNING",
|
|
718
|
-
Ok: "OK",
|
|
719
|
-
Error: "ERROR"
|
|
720
|
-
};
|
|
721
|
-
function Ne(t) {
|
|
722
|
-
let e = !0;
|
|
723
|
-
return e = e && "name" in t, e = e && "code" in t, e = e && "simplifiedState" in t, e;
|
|
724
|
-
}
|
|
725
|
-
function Tt(t) {
|
|
726
|
-
return Ft(t);
|
|
727
|
-
}
|
|
728
|
-
function Ft(t, e) {
|
|
729
|
-
return t == null ? t : {
|
|
730
|
-
name: t.name,
|
|
731
|
-
code: t.code,
|
|
732
|
-
simplifiedState: t.simplifiedState
|
|
665
|
+
id: s(t, "id") ? t.id : void 0,
|
|
666
|
+
accessPolicyId: t.accessPolicyId,
|
|
667
|
+
contractPolicyId: t.contractPolicyId,
|
|
668
|
+
criteria: t.criteria.map(Dt),
|
|
669
|
+
validity: s(t, "validity") ? t.validity : void 0
|
|
733
670
|
};
|
|
734
671
|
}
|
|
735
|
-
function
|
|
672
|
+
function Ot(t) {
|
|
736
673
|
if (t !== void 0)
|
|
737
674
|
return t === null ? null : {
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
675
|
+
id: t.id,
|
|
676
|
+
accessPolicyId: t.accessPolicyId,
|
|
677
|
+
contractPolicyId: t.contractPolicyId,
|
|
678
|
+
criteria: t.criteria.map(ht),
|
|
679
|
+
validity: t.validity
|
|
741
680
|
};
|
|
742
681
|
}
|
|
743
|
-
function
|
|
682
|
+
function Ae(t) {
|
|
744
683
|
let e = !0;
|
|
745
|
-
return e = e && "
|
|
684
|
+
return e = e && "id" in t, e = e && "policy" in t, e;
|
|
746
685
|
}
|
|
747
|
-
function
|
|
748
|
-
return
|
|
686
|
+
function wt(t) {
|
|
687
|
+
return Ct(t);
|
|
749
688
|
}
|
|
750
|
-
function
|
|
689
|
+
function Ct(t, e) {
|
|
751
690
|
return t == null ? t : {
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
state: Tt(t.state),
|
|
755
|
-
errorMessage: a(t, "errorMessage") ? t.errorMessage : void 0
|
|
691
|
+
id: t.id,
|
|
692
|
+
policy: w(t.policy)
|
|
756
693
|
};
|
|
757
694
|
}
|
|
758
|
-
function
|
|
695
|
+
function It(t) {
|
|
759
696
|
if (t !== void 0)
|
|
760
697
|
return t === null ? null : {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
state: Nt(t.state),
|
|
764
|
-
errorMessage: t.errorMessage
|
|
698
|
+
id: t.id,
|
|
699
|
+
policy: C(t.policy)
|
|
765
700
|
};
|
|
766
701
|
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
Providing: "PROVIDING"
|
|
770
|
-
};
|
|
771
|
-
function Re(t) {
|
|
772
|
-
let e = !0;
|
|
773
|
-
return e = e && "contractAgreementId" in t, e = e && "contractNegotiationId" in t, e = e && "direction" in t, e = e && "counterPartyAddress" in t, e = e && "counterPartyId" in t, e = e && "contractSigningDate" in t, e = e && "contractStartDate" in t, e = e && "contractEndDate" in t, e = e && "asset" in t, e = e && "contractPolicy" in t, e = e && "transferProcesses" in t, e;
|
|
702
|
+
function Oe(t) {
|
|
703
|
+
return !0;
|
|
774
704
|
}
|
|
775
|
-
function
|
|
776
|
-
return
|
|
705
|
+
function we(t) {
|
|
706
|
+
return Tt(t);
|
|
777
707
|
}
|
|
778
|
-
function
|
|
708
|
+
function Tt(t, e) {
|
|
779
709
|
return t == null ? t : {
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
contractEndDate: new Date(t.contractEndDate),
|
|
788
|
-
asset: C(t.asset),
|
|
789
|
-
contractPolicy: w(t.contractPolicy),
|
|
790
|
-
transferProcesses: t.transferProcesses.map(
|
|
791
|
-
Dt
|
|
792
|
-
)
|
|
710
|
+
assetEntry: s(t, "assetEntry") ? V(t.assetEntry) : void 0,
|
|
711
|
+
policyDefinitionRequest: s(t, "policyDefinitionRequest") ? wt(
|
|
712
|
+
t.policyDefinitionRequest
|
|
713
|
+
) : void 0,
|
|
714
|
+
contractDefinitionRequest: s(t, "contractDefinitionRequest") ? Pt(
|
|
715
|
+
t.contractDefinitionRequest
|
|
716
|
+
) : void 0
|
|
793
717
|
};
|
|
794
718
|
}
|
|
795
|
-
function
|
|
719
|
+
function Nt(t) {
|
|
796
720
|
if (t !== void 0)
|
|
797
721
|
return t === null ? null : {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
contractStartDate: t.contractStartDate.toISOString(),
|
|
805
|
-
contractEndDate: t.contractEndDate.toISOString(),
|
|
806
|
-
asset: P(t.asset),
|
|
807
|
-
contractPolicy: I(t.contractPolicy),
|
|
808
|
-
transferProcesses: t.transferProcesses.map(
|
|
809
|
-
Rt
|
|
722
|
+
assetEntry: Q(t.assetEntry),
|
|
723
|
+
policyDefinitionRequest: It(
|
|
724
|
+
t.policyDefinitionRequest
|
|
725
|
+
),
|
|
726
|
+
contractDefinitionRequest: Ot(
|
|
727
|
+
t.contractDefinitionRequest
|
|
810
728
|
)
|
|
811
729
|
};
|
|
812
730
|
}
|
|
813
|
-
function
|
|
814
|
-
|
|
815
|
-
return e = e && "contractAgreements" in t, e;
|
|
731
|
+
function Ce(t) {
|
|
732
|
+
return !0;
|
|
816
733
|
}
|
|
817
|
-
function
|
|
818
|
-
return
|
|
734
|
+
function Et(t) {
|
|
735
|
+
return Rt(t);
|
|
819
736
|
}
|
|
820
|
-
function
|
|
737
|
+
function Rt(t, e) {
|
|
821
738
|
return t == null ? t : {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
)
|
|
739
|
+
createdAt: s(t, "createdAt") ? t.createdAt : void 0,
|
|
740
|
+
id: s(t, "id") ? t.id : void 0
|
|
825
741
|
};
|
|
826
742
|
}
|
|
827
|
-
function
|
|
743
|
+
function Ie(t) {
|
|
828
744
|
if (t !== void 0)
|
|
829
745
|
return t === null ? null : {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
)
|
|
746
|
+
createdAt: t.createdAt,
|
|
747
|
+
id: t.id
|
|
833
748
|
};
|
|
834
749
|
}
|
|
835
|
-
function
|
|
750
|
+
function Te(t) {
|
|
836
751
|
let e = !0;
|
|
837
752
|
return e = e && "incomingTransferProcessCounts" in t, e = e && "outgoingTransferProcessCounts" in t, e;
|
|
838
753
|
}
|
|
839
|
-
function
|
|
840
|
-
return
|
|
754
|
+
function Ft(t) {
|
|
755
|
+
return Jt(t);
|
|
841
756
|
}
|
|
842
|
-
function
|
|
757
|
+
function Jt(t, e) {
|
|
843
758
|
return t == null ? t : {
|
|
844
759
|
incomingTransferProcessCounts: t.incomingTransferProcessCounts,
|
|
845
760
|
outgoingTransferProcessCounts: t.outgoingTransferProcessCounts
|
|
846
761
|
};
|
|
847
762
|
}
|
|
848
|
-
function
|
|
763
|
+
function qt(t) {
|
|
849
764
|
if (t !== void 0)
|
|
850
765
|
return t === null ? null : {
|
|
851
766
|
incomingTransferProcessCounts: t.incomingTransferProcessCounts,
|
|
852
767
|
outgoingTransferProcessCounts: t.outgoingTransferProcessCounts
|
|
853
768
|
};
|
|
854
769
|
}
|
|
855
|
-
function
|
|
770
|
+
function Ne(t) {
|
|
856
771
|
let e = !0;
|
|
857
772
|
return e = e && "assetsCount" in t, e = e && "policiesCount" in t, e = e && "contractDefinitionsCount" in t, e = e && "contractAgreementsCount" in t, e = e && "transferProcessDto" in t, e;
|
|
858
773
|
}
|
|
859
|
-
function
|
|
860
|
-
return
|
|
774
|
+
function xt(t) {
|
|
775
|
+
return bt(t);
|
|
861
776
|
}
|
|
862
|
-
function
|
|
777
|
+
function bt(t, e) {
|
|
863
778
|
return t == null ? t : {
|
|
864
779
|
assetsCount: t.assetsCount,
|
|
865
780
|
policiesCount: t.policiesCount,
|
|
866
781
|
contractDefinitionsCount: t.contractDefinitionsCount,
|
|
867
782
|
contractAgreementsCount: t.contractAgreementsCount,
|
|
868
|
-
transferProcessDto:
|
|
783
|
+
transferProcessDto: Ft(
|
|
869
784
|
t.transferProcessDto
|
|
870
785
|
)
|
|
871
786
|
};
|
|
872
787
|
}
|
|
873
|
-
function
|
|
788
|
+
function Ee(t) {
|
|
874
789
|
if (t !== void 0)
|
|
875
790
|
return t === null ? null : {
|
|
876
791
|
assetsCount: t.assetsCount,
|
|
877
792
|
policiesCount: t.policiesCount,
|
|
878
793
|
contractDefinitionsCount: t.contractDefinitionsCount,
|
|
879
794
|
contractAgreementsCount: t.contractAgreementsCount,
|
|
880
|
-
transferProcessDto:
|
|
795
|
+
transferProcessDto: qt(
|
|
881
796
|
t.transferProcessDto
|
|
882
797
|
)
|
|
883
798
|
};
|
|
884
799
|
}
|
|
885
|
-
function
|
|
800
|
+
function Re(t) {
|
|
886
801
|
let e = !0;
|
|
887
802
|
return e = e && "storedFileId" in t, e = e && "fileName" in t, e = e && "fileExtension" in t, e = e && "mediaType" in t, e = e && "byteSize" in t, e = e && "assetProperties" in t, e = e && "creationDate" in t, e = e && "lastModifiedDate" in t, e;
|
|
888
803
|
}
|
|
889
|
-
function
|
|
890
|
-
return
|
|
804
|
+
function D(t) {
|
|
805
|
+
return Mt(t);
|
|
891
806
|
}
|
|
892
|
-
function
|
|
807
|
+
function Mt(t, e) {
|
|
893
808
|
return t == null ? t : {
|
|
894
809
|
storedFileId: t.storedFileId,
|
|
895
810
|
fileName: t.fileName,
|
|
@@ -901,7 +816,7 @@ function Kt(t, e) {
|
|
|
901
816
|
lastModifiedDate: new Date(t.lastModifiedDate)
|
|
902
817
|
};
|
|
903
818
|
}
|
|
904
|
-
function
|
|
819
|
+
function Fe(t) {
|
|
905
820
|
if (t !== void 0)
|
|
906
821
|
return t === null ? null : {
|
|
907
822
|
storedFileId: t.storedFileId,
|
|
@@ -914,89 +829,85 @@ function Be(t) {
|
|
|
914
829
|
lastModifiedDate: t.lastModifiedDate.toISOString()
|
|
915
830
|
};
|
|
916
831
|
}
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
const o = await this.request(
|
|
925
|
-
{
|
|
926
|
-
path: "/wrapper/broker/catalog-page",
|
|
927
|
-
method: "POST",
|
|
928
|
-
headers: i,
|
|
929
|
-
query: r,
|
|
930
|
-
body: G(
|
|
931
|
-
e.catalogPageQuery
|
|
932
|
-
)
|
|
933
|
-
},
|
|
934
|
-
n
|
|
935
|
-
);
|
|
936
|
-
return new u(
|
|
937
|
-
o,
|
|
938
|
-
(s) => ft(s)
|
|
939
|
-
);
|
|
940
|
-
}
|
|
941
|
-
/**
|
|
942
|
-
* Query indexed Contract Offers
|
|
943
|
-
*/
|
|
944
|
-
async catalogPage(e = {}, n) {
|
|
945
|
-
return await (await this.catalogPageRaw(
|
|
946
|
-
e,
|
|
947
|
-
n
|
|
948
|
-
)).value();
|
|
949
|
-
}
|
|
950
|
-
/**
|
|
951
|
-
* Query known Connectors
|
|
952
|
-
*/
|
|
953
|
-
async connectorPageRaw(e, n) {
|
|
954
|
-
const r = {}, i = {};
|
|
955
|
-
i["Content-Type"] = "application/json";
|
|
956
|
-
const o = await this.request(
|
|
957
|
-
{
|
|
958
|
-
path: "/wrapper/broker/connector-page",
|
|
959
|
-
method: "POST",
|
|
960
|
-
headers: i,
|
|
961
|
-
query: r,
|
|
962
|
-
body: ht(
|
|
963
|
-
e.connectorPageQuery
|
|
964
|
-
)
|
|
965
|
-
},
|
|
966
|
-
n
|
|
967
|
-
);
|
|
968
|
-
return new u(
|
|
969
|
-
o,
|
|
970
|
-
(s) => It(s)
|
|
971
|
-
);
|
|
972
|
-
}
|
|
973
|
-
/**
|
|
974
|
-
* Query known Connectors
|
|
975
|
-
*/
|
|
976
|
-
async connectorPage(e = {}, n) {
|
|
977
|
-
return await (await this.connectorPageRaw(
|
|
978
|
-
e,
|
|
979
|
-
n
|
|
980
|
-
)).value();
|
|
981
|
-
}
|
|
832
|
+
const Je = {
|
|
833
|
+
Consuming: "CONSUMING",
|
|
834
|
+
Providing: "PROVIDING"
|
|
835
|
+
};
|
|
836
|
+
function qe(t) {
|
|
837
|
+
let e = !0;
|
|
838
|
+
return e = e && "transferProcessId" in t, e = e && "createdDate" in t, e = e && "lastUpdatedDate" in t, e = e && "state" in t, e = e && "contractAgreementId" in t, e = e && "direction" in t, e = e && "counterPartyConnectorEndpoint" in t, e = e && "assetName" in t, e = e && "assetId" in t, e;
|
|
982
839
|
}
|
|
983
|
-
|
|
840
|
+
function Ut(t) {
|
|
841
|
+
return Lt(t);
|
|
842
|
+
}
|
|
843
|
+
function Lt(t, e) {
|
|
844
|
+
return t == null ? t : {
|
|
845
|
+
transferProcessId: t.transferProcessId,
|
|
846
|
+
createdDate: new Date(t.createdDate),
|
|
847
|
+
lastUpdatedDate: new Date(t.lastUpdatedDate),
|
|
848
|
+
state: A(t.state),
|
|
849
|
+
contractAgreementId: t.contractAgreementId,
|
|
850
|
+
direction: t.direction,
|
|
851
|
+
counterPartyConnectorEndpoint: t.counterPartyConnectorEndpoint,
|
|
852
|
+
assetName: t.assetName,
|
|
853
|
+
assetId: t.assetId,
|
|
854
|
+
errorMessage: s(t, "errorMessage") ? t.errorMessage : void 0
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
function Gt(t) {
|
|
858
|
+
if (t !== void 0)
|
|
859
|
+
return t === null ? null : {
|
|
860
|
+
transferProcessId: t.transferProcessId,
|
|
861
|
+
createdDate: t.createdDate.toISOString(),
|
|
862
|
+
lastUpdatedDate: t.lastUpdatedDate.toISOString(),
|
|
863
|
+
state: O(t.state),
|
|
864
|
+
contractAgreementId: t.contractAgreementId,
|
|
865
|
+
direction: t.direction,
|
|
866
|
+
counterPartyConnectorEndpoint: t.counterPartyConnectorEndpoint,
|
|
867
|
+
assetName: t.assetName,
|
|
868
|
+
assetId: t.assetId,
|
|
869
|
+
errorMessage: t.errorMessage
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
function xe(t) {
|
|
873
|
+
let e = !0;
|
|
874
|
+
return e = e && "transferEntries" in t, e;
|
|
875
|
+
}
|
|
876
|
+
function Ht(t) {
|
|
877
|
+
return Kt(t);
|
|
878
|
+
}
|
|
879
|
+
function Kt(t, e) {
|
|
880
|
+
return t == null ? t : {
|
|
881
|
+
transferEntries: t.transferEntries.map(
|
|
882
|
+
Ut
|
|
883
|
+
)
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
function be(t) {
|
|
887
|
+
if (t !== void 0)
|
|
888
|
+
return t === null ? null : {
|
|
889
|
+
transferEntries: t.transferEntries.map(
|
|
890
|
+
Gt
|
|
891
|
+
)
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
class kt extends f {
|
|
984
895
|
/**
|
|
985
896
|
* Available and used resources of a connector.
|
|
986
897
|
*/
|
|
987
898
|
async connectorLimitsRaw(e) {
|
|
988
|
-
const
|
|
899
|
+
const r = {}, n = {}, i = await this.request(
|
|
989
900
|
{
|
|
990
901
|
path: "/wrapper/ee/connector-limits",
|
|
991
902
|
method: "GET",
|
|
992
|
-
headers:
|
|
993
|
-
query:
|
|
903
|
+
headers: n,
|
|
904
|
+
query: r
|
|
994
905
|
},
|
|
995
906
|
e
|
|
996
907
|
);
|
|
997
|
-
return new
|
|
908
|
+
return new c(
|
|
998
909
|
i,
|
|
999
|
-
(o) =>
|
|
910
|
+
(o) => W(o)
|
|
1000
911
|
);
|
|
1001
912
|
}
|
|
1002
913
|
/**
|
|
@@ -1009,18 +920,18 @@ class $t extends f {
|
|
|
1009
920
|
* Create an asset using the stored file as data source.
|
|
1010
921
|
* Create a file storage asset.
|
|
1011
922
|
*/
|
|
1012
|
-
async createStoredFileAssetRaw(e,
|
|
923
|
+
async createStoredFileAssetRaw(e, r) {
|
|
1013
924
|
if (e.storedFileId === null || e.storedFileId === void 0)
|
|
1014
|
-
throw new
|
|
925
|
+
throw new y(
|
|
1015
926
|
"storedFileId",
|
|
1016
927
|
"Required parameter requestParameters.storedFileId was null or undefined when calling createStoredFileAsset."
|
|
1017
928
|
);
|
|
1018
929
|
if (e.requestBody === null || e.requestBody === void 0)
|
|
1019
|
-
throw new
|
|
930
|
+
throw new y(
|
|
1020
931
|
"requestBody",
|
|
1021
932
|
"Required parameter requestParameters.requestBody was null or undefined when calling createStoredFileAsset."
|
|
1022
933
|
);
|
|
1023
|
-
const
|
|
934
|
+
const n = {}, i = {};
|
|
1024
935
|
i["Content-Type"] = "application/json";
|
|
1025
936
|
const o = await this.request(
|
|
1026
937
|
{
|
|
@@ -1030,24 +941,24 @@ class $t extends f {
|
|
|
1030
941
|
),
|
|
1031
942
|
method: "POST",
|
|
1032
943
|
headers: i,
|
|
1033
|
-
query:
|
|
944
|
+
query: n,
|
|
1034
945
|
body: e.requestBody
|
|
1035
946
|
},
|
|
1036
|
-
|
|
947
|
+
r
|
|
1037
948
|
);
|
|
1038
|
-
return new
|
|
949
|
+
return new c(
|
|
1039
950
|
o,
|
|
1040
|
-
(
|
|
951
|
+
(a) => D(a)
|
|
1041
952
|
);
|
|
1042
953
|
}
|
|
1043
954
|
/**
|
|
1044
955
|
* Create an asset using the stored file as data source.
|
|
1045
956
|
* Create a file storage asset.
|
|
1046
957
|
*/
|
|
1047
|
-
async createStoredFileAsset(e,
|
|
958
|
+
async createStoredFileAsset(e, r) {
|
|
1048
959
|
return await (await this.createStoredFileAssetRaw(
|
|
1049
960
|
e,
|
|
1050
|
-
|
|
961
|
+
r
|
|
1051
962
|
)).value();
|
|
1052
963
|
}
|
|
1053
964
|
/**
|
|
@@ -1055,18 +966,18 @@ class $t extends f {
|
|
|
1055
966
|
* Get all stored files.
|
|
1056
967
|
*/
|
|
1057
968
|
async listStoredFilesRaw(e) {
|
|
1058
|
-
const
|
|
969
|
+
const r = {}, n = {}, i = await this.request(
|
|
1059
970
|
{
|
|
1060
971
|
path: "/wrapper/ee/file-storage/stored-files",
|
|
1061
972
|
method: "GET",
|
|
1062
|
-
headers:
|
|
1063
|
-
query:
|
|
973
|
+
headers: n,
|
|
974
|
+
query: r
|
|
1064
975
|
},
|
|
1065
976
|
e
|
|
1066
977
|
);
|
|
1067
|
-
return new
|
|
978
|
+
return new c(
|
|
1068
979
|
i,
|
|
1069
|
-
(o) => o.map(
|
|
980
|
+
(o) => o.map(D)
|
|
1070
981
|
);
|
|
1071
982
|
}
|
|
1072
983
|
/**
|
|
@@ -1076,83 +987,130 @@ class $t extends f {
|
|
|
1076
987
|
async listStoredFiles(e) {
|
|
1077
988
|
return await (await this.listStoredFilesRaw(e)).value();
|
|
1078
989
|
}
|
|
990
|
+
}
|
|
991
|
+
class $t extends f {
|
|
1079
992
|
/**
|
|
1080
|
-
*
|
|
1081
|
-
* Upload a file.
|
|
993
|
+
* Collect all data for Contract Agreement Page
|
|
1082
994
|
*/
|
|
1083
|
-
async
|
|
1084
|
-
const r = {},
|
|
1085
|
-
{ contentType: "multipart/form-data" }
|
|
1086
|
-
]);
|
|
1087
|
-
let c, l = !1;
|
|
1088
|
-
l = s, l ? c = new FormData() : c = new URLSearchParams(), e.file !== void 0 && c.append("file", e.file);
|
|
1089
|
-
const g = await this.request(
|
|
995
|
+
async contractAgreementEndpointRaw(e) {
|
|
996
|
+
const r = {}, n = {}, i = await this.request(
|
|
1090
997
|
{
|
|
1091
|
-
path: "/wrapper/
|
|
998
|
+
path: "/wrapper/ui/pages/contract-agreement-page",
|
|
999
|
+
method: "GET",
|
|
1000
|
+
headers: n,
|
|
1001
|
+
query: r
|
|
1002
|
+
},
|
|
1003
|
+
e
|
|
1004
|
+
);
|
|
1005
|
+
return new c(
|
|
1006
|
+
i,
|
|
1007
|
+
(o) => ut(o)
|
|
1008
|
+
);
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Collect all data for Contract Agreement Page
|
|
1012
|
+
*/
|
|
1013
|
+
async contractAgreementEndpoint(e) {
|
|
1014
|
+
return await (await this.contractAgreementEndpointRaw(e)).value();
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Initiate a Transfer Process
|
|
1018
|
+
*/
|
|
1019
|
+
async initiateTransferRaw(e, r) {
|
|
1020
|
+
const n = {}, i = {};
|
|
1021
|
+
i["Content-Type"] = "application/json";
|
|
1022
|
+
const o = await this.request(
|
|
1023
|
+
{
|
|
1024
|
+
path: "/wrapper/ui/pages/contract-agreement-page/transfers",
|
|
1092
1025
|
method: "POST",
|
|
1093
1026
|
headers: i,
|
|
1094
|
-
query:
|
|
1095
|
-
body:
|
|
1027
|
+
query: n,
|
|
1028
|
+
body: yt(
|
|
1029
|
+
e.contractAgreementTransferRequest
|
|
1030
|
+
)
|
|
1096
1031
|
},
|
|
1097
|
-
|
|
1032
|
+
r
|
|
1098
1033
|
);
|
|
1099
|
-
return new
|
|
1100
|
-
|
|
1101
|
-
(
|
|
1034
|
+
return new c(
|
|
1035
|
+
o,
|
|
1036
|
+
(a) => Et(a)
|
|
1102
1037
|
);
|
|
1103
1038
|
}
|
|
1104
1039
|
/**
|
|
1105
|
-
*
|
|
1106
|
-
* Upload a file.
|
|
1040
|
+
* Initiate a Transfer Process
|
|
1107
1041
|
*/
|
|
1108
|
-
async
|
|
1109
|
-
return await (await this.
|
|
1042
|
+
async initiateTransfer(e = {}, r) {
|
|
1043
|
+
return await (await this.initiateTransferRaw(
|
|
1110
1044
|
e,
|
|
1111
|
-
|
|
1045
|
+
r
|
|
1112
1046
|
)).value();
|
|
1113
1047
|
}
|
|
1114
|
-
}
|
|
1115
|
-
class zt extends f {
|
|
1116
1048
|
/**
|
|
1117
|
-
* Collect all data for Contract Agreement Page
|
|
1118
1049
|
*/
|
|
1119
|
-
async
|
|
1120
|
-
const
|
|
1050
|
+
async transferHistoryPageEndpointRaw(e) {
|
|
1051
|
+
const r = {}, n = {}, i = await this.request(
|
|
1121
1052
|
{
|
|
1122
|
-
path: "/wrapper/ui/pages/
|
|
1053
|
+
path: "/wrapper/ui/pages/transfer-history-page",
|
|
1123
1054
|
method: "GET",
|
|
1124
|
-
headers:
|
|
1125
|
-
query:
|
|
1055
|
+
headers: n,
|
|
1056
|
+
query: r
|
|
1126
1057
|
},
|
|
1127
1058
|
e
|
|
1128
1059
|
);
|
|
1129
|
-
return new
|
|
1060
|
+
return new c(
|
|
1130
1061
|
i,
|
|
1131
|
-
(o) =>
|
|
1062
|
+
(o) => Ht(o)
|
|
1132
1063
|
);
|
|
1133
1064
|
}
|
|
1134
1065
|
/**
|
|
1135
|
-
* Collect all data for Contract Agreement Page
|
|
1136
1066
|
*/
|
|
1137
|
-
async
|
|
1138
|
-
return await (await this.
|
|
1067
|
+
async transferHistoryPageEndpoint(e) {
|
|
1068
|
+
return await (await this.transferHistoryPageEndpointRaw(
|
|
1069
|
+
e
|
|
1070
|
+
)).value();
|
|
1139
1071
|
}
|
|
1140
1072
|
}
|
|
1141
|
-
class
|
|
1073
|
+
class Bt extends f {
|
|
1074
|
+
/**
|
|
1075
|
+
* Creates an offer
|
|
1076
|
+
*/
|
|
1077
|
+
async createOfferEndpointRaw(e, r) {
|
|
1078
|
+
const n = {}, i = {};
|
|
1079
|
+
i["Content-Type"] = "application/json";
|
|
1080
|
+
const o = await this.request(
|
|
1081
|
+
{
|
|
1082
|
+
path: "/wrapper/use-case-api/contract-offer",
|
|
1083
|
+
method: "POST",
|
|
1084
|
+
headers: i,
|
|
1085
|
+
query: n,
|
|
1086
|
+
body: Nt(
|
|
1087
|
+
e.createOfferingDto
|
|
1088
|
+
)
|
|
1089
|
+
},
|
|
1090
|
+
r
|
|
1091
|
+
);
|
|
1092
|
+
return new b(o);
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Creates an offer
|
|
1096
|
+
*/
|
|
1097
|
+
async createOfferEndpoint(e = {}, r) {
|
|
1098
|
+
await this.createOfferEndpointRaw(e, r);
|
|
1099
|
+
}
|
|
1142
1100
|
/**
|
|
1143
1101
|
* List available functions in policies, prohibitions and obligations.
|
|
1144
1102
|
*/
|
|
1145
1103
|
async getSupportedFunctionsRaw(e) {
|
|
1146
|
-
const
|
|
1104
|
+
const r = {}, n = {}, i = await this.request(
|
|
1147
1105
|
{
|
|
1148
1106
|
path: "/wrapper/use-case-api/supported-policy-functions",
|
|
1149
1107
|
method: "GET",
|
|
1150
|
-
headers:
|
|
1151
|
-
query:
|
|
1108
|
+
headers: n,
|
|
1109
|
+
query: r
|
|
1152
1110
|
},
|
|
1153
1111
|
e
|
|
1154
1112
|
);
|
|
1155
|
-
return new
|
|
1113
|
+
return new c(i);
|
|
1156
1114
|
}
|
|
1157
1115
|
/**
|
|
1158
1116
|
* List available functions in policies, prohibitions and obligations.
|
|
@@ -1164,18 +1122,18 @@ class Gt extends f {
|
|
|
1164
1122
|
* Basic KPIs about the running EDC Connector.
|
|
1165
1123
|
*/
|
|
1166
1124
|
async kpiEndpointRaw(e) {
|
|
1167
|
-
const
|
|
1125
|
+
const r = {}, n = {}, i = await this.request(
|
|
1168
1126
|
{
|
|
1169
1127
|
path: "/wrapper/use-case-api/kpis",
|
|
1170
1128
|
method: "GET",
|
|
1171
|
-
headers:
|
|
1172
|
-
query:
|
|
1129
|
+
headers: n,
|
|
1130
|
+
query: r
|
|
1173
1131
|
},
|
|
1174
1132
|
e
|
|
1175
1133
|
);
|
|
1176
|
-
return new
|
|
1134
|
+
return new c(
|
|
1177
1135
|
i,
|
|
1178
|
-
(o) =>
|
|
1136
|
+
(o) => xt(o)
|
|
1179
1137
|
);
|
|
1180
1138
|
}
|
|
1181
1139
|
/**
|
|
@@ -1185,8 +1143,8 @@ class Gt extends f {
|
|
|
1185
1143
|
return await (await this.kpiEndpointRaw(e)).value();
|
|
1186
1144
|
}
|
|
1187
1145
|
}
|
|
1188
|
-
function
|
|
1189
|
-
const e = new
|
|
1146
|
+
function Me(t) {
|
|
1147
|
+
const e = new S({
|
|
1190
1148
|
basePath: t.managementApiUrl,
|
|
1191
1149
|
headers: {
|
|
1192
1150
|
"x-api-key": t.managementApiKey ?? "ApiKeyDefaultValue"
|
|
@@ -1195,140 +1153,137 @@ function Qe(t) {
|
|
|
1195
1153
|
...t.configOverrides
|
|
1196
1154
|
});
|
|
1197
1155
|
return {
|
|
1198
|
-
uiApi: new
|
|
1199
|
-
useCaseApi: new
|
|
1200
|
-
enterpriseEditionApi: new
|
|
1156
|
+
uiApi: new $t(e),
|
|
1157
|
+
useCaseApi: new Bt(e),
|
|
1158
|
+
enterpriseEditionApi: new kt(e)
|
|
1201
1159
|
};
|
|
1202
1160
|
}
|
|
1203
1161
|
export {
|
|
1204
|
-
|
|
1162
|
+
M as AssetDtoFromJSON,
|
|
1205
1163
|
U as AssetDtoFromJSONTyped,
|
|
1206
|
-
|
|
1207
|
-
|
|
1164
|
+
L as AssetDtoToJSON,
|
|
1165
|
+
V as AssetEntryDtoFromJSON,
|
|
1166
|
+
z as AssetEntryDtoFromJSONTyped,
|
|
1167
|
+
Q as AssetEntryDtoToJSON,
|
|
1168
|
+
G as AssetRequestDtoFromJSON,
|
|
1169
|
+
H as AssetRequestDtoFromJSONTyped,
|
|
1170
|
+
K as AssetRequestDtoToJSON,
|
|
1171
|
+
_ as AtomicConstraintDtoFromJSON,
|
|
1172
|
+
X as AtomicConstraintDtoFromJSONTyped,
|
|
1173
|
+
te as AtomicConstraintDtoOperatorEnum,
|
|
1174
|
+
Y as AtomicConstraintDtoToJSON,
|
|
1175
|
+
E as BASE_PATH,
|
|
1208
1176
|
f as BaseAPI,
|
|
1209
1177
|
Xt as BlobApiResponse,
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
Oe as ConnectorListEntryOnlineStatusEnum,
|
|
1245
|
-
Ot as ConnectorListEntryToJSON,
|
|
1246
|
-
Pe as ConnectorPageQueryFromJSON,
|
|
1247
|
-
yt as ConnectorPageQueryFromJSONTyped,
|
|
1248
|
-
he as ConnectorPageQuerySortingEnum,
|
|
1249
|
-
ht as ConnectorPageQueryToJSON,
|
|
1250
|
-
It as ConnectorPageResultFromJSON,
|
|
1251
|
-
At as ConnectorPageResultFromJSONTyped,
|
|
1252
|
-
Te as ConnectorPageResultToJSON,
|
|
1253
|
-
Ct as ConnectorPageSortingItemFromJSON,
|
|
1254
|
-
Pt as ConnectorPageSortingItemFromJSONTyped,
|
|
1255
|
-
we as ConnectorPageSortingItemSortingEnum,
|
|
1256
|
-
wt as ConnectorPageSortingItemToJSON,
|
|
1257
|
-
Je as ContractAgreementCardDirectionEnum,
|
|
1258
|
-
Et as ContractAgreementCardFromJSON,
|
|
1259
|
-
bt as ContractAgreementCardFromJSONTyped,
|
|
1260
|
-
Mt as ContractAgreementCardToJSON,
|
|
1261
|
-
qt as ContractAgreementPageFromJSON,
|
|
1262
|
-
Lt as ContractAgreementPageFromJSONTyped,
|
|
1263
|
-
be as ContractAgreementPageToJSON,
|
|
1264
|
-
Dt as ContractAgreementTransferProcessFromJSON,
|
|
1265
|
-
Jt as ContractAgreementTransferProcessFromJSONTyped,
|
|
1266
|
-
Rt as ContractAgreementTransferProcessToJSON,
|
|
1267
|
-
rt as ContractOfferConnectorInfoFromJSON,
|
|
1268
|
-
it as ContractOfferConnectorInfoFromJSONTyped,
|
|
1269
|
-
ce as ContractOfferConnectorInfoOnlineStatusEnum,
|
|
1270
|
-
ot as ContractOfferConnectorInfoToJSON,
|
|
1271
|
-
st as ContractOfferDtoFromJSON,
|
|
1272
|
-
ct as ContractOfferDtoFromJSONTyped,
|
|
1273
|
-
ut as ContractOfferDtoToJSON,
|
|
1178
|
+
zt as COLLECTION_FORMATS,
|
|
1179
|
+
S as Configuration,
|
|
1180
|
+
W as ConnectorLimitsFromJSON,
|
|
1181
|
+
Z as ConnectorLimitsFromJSONTyped,
|
|
1182
|
+
ne as ConnectorLimitsToJSON,
|
|
1183
|
+
fe as ContractAgreementCardDirectionEnum,
|
|
1184
|
+
at as ContractAgreementCardFromJSON,
|
|
1185
|
+
ct as ContractAgreementCardFromJSONTyped,
|
|
1186
|
+
dt as ContractAgreementCardToJSON,
|
|
1187
|
+
ut as ContractAgreementPageFromJSON,
|
|
1188
|
+
ft as ContractAgreementPageFromJSONTyped,
|
|
1189
|
+
le as ContractAgreementPageToJSON,
|
|
1190
|
+
j as ContractAgreementTransferProcessFromJSON,
|
|
1191
|
+
tt as ContractAgreementTransferProcessFromJSONTyped,
|
|
1192
|
+
et as ContractAgreementTransferProcessToJSON,
|
|
1193
|
+
Se as ContractAgreementTransferRequestFromJSON,
|
|
1194
|
+
gt as ContractAgreementTransferRequestFromJSONTyped,
|
|
1195
|
+
pt as ContractAgreementTransferRequestParamsFromJSON,
|
|
1196
|
+
mt as ContractAgreementTransferRequestParamsFromJSONTyped,
|
|
1197
|
+
lt as ContractAgreementTransferRequestParamsToJSON,
|
|
1198
|
+
yt as ContractAgreementTransferRequestToJSON,
|
|
1199
|
+
ye as ContractAgreementTransferRequestTypeEnum,
|
|
1200
|
+
Pt as ContractDefinitionRequestDtoFromJSON,
|
|
1201
|
+
At as ContractDefinitionRequestDtoFromJSONTyped,
|
|
1202
|
+
Ot as ContractDefinitionRequestDtoToJSON,
|
|
1203
|
+
we as CreateOfferingDtoFromJSON,
|
|
1204
|
+
Tt as CreateOfferingDtoFromJSONTyped,
|
|
1205
|
+
Nt as CreateOfferingDtoToJSON,
|
|
1206
|
+
Dt as CriterionDtoFromJSON,
|
|
1207
|
+
St as CriterionDtoFromJSONTyped,
|
|
1208
|
+
ht as CriterionDtoToJSON,
|
|
1209
|
+
k as DataAddressDtoFromJSON,
|
|
1210
|
+
$ as DataAddressDtoFromJSONTyped,
|
|
1211
|
+
B as DataAddressDtoToJSON,
|
|
1274
1212
|
R as DefaultConfig,
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1213
|
+
kt as EnterpriseEditionApi,
|
|
1214
|
+
p as ExpressionDtoFromJSON,
|
|
1215
|
+
rt as ExpressionDtoFromJSONTyped,
|
|
1216
|
+
m as ExpressionDtoToJSON,
|
|
1217
|
+
ae as ExpressionDtoTypeEnum,
|
|
1218
|
+
x as FetchError,
|
|
1219
|
+
Et as IdResponseDtoFromJSON,
|
|
1220
|
+
Rt as IdResponseDtoFromJSONTyped,
|
|
1221
|
+
Ie as IdResponseDtoToJSON,
|
|
1222
|
+
c as JSONApiResponse,
|
|
1223
|
+
xt as KpiResultFromJSON,
|
|
1224
|
+
bt as KpiResultFromJSONTyped,
|
|
1225
|
+
Ee as KpiResultToJSON,
|
|
1226
|
+
nt as PermissionDtoFromJSON,
|
|
1227
|
+
it as PermissionDtoFromJSONTyped,
|
|
1228
|
+
ot as PermissionDtoToJSON,
|
|
1229
|
+
wt as PolicyDefinitionRequestDtoFromJSON,
|
|
1230
|
+
Ct as PolicyDefinitionRequestDtoFromJSONTyped,
|
|
1231
|
+
It as PolicyDefinitionRequestDtoToJSON,
|
|
1284
1232
|
w as PolicyDtoFromJSON,
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1233
|
+
st as PolicyDtoFromJSONTyped,
|
|
1234
|
+
C as PolicyDtoToJSON,
|
|
1235
|
+
y as RequiredError,
|
|
1236
|
+
q as ResponseError,
|
|
1237
|
+
D as StoredFileFromJSON,
|
|
1238
|
+
Mt as StoredFileFromJSONTyped,
|
|
1239
|
+
Fe as StoredFileToJSON,
|
|
1292
1240
|
Yt as TextApiResponse,
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
Ne as
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1241
|
+
Je as TransferHistoryEntryDirectionEnum,
|
|
1242
|
+
Ut as TransferHistoryEntryFromJSON,
|
|
1243
|
+
Lt as TransferHistoryEntryFromJSONTyped,
|
|
1244
|
+
Gt as TransferHistoryEntryToJSON,
|
|
1245
|
+
Ht as TransferHistoryPageFromJSON,
|
|
1246
|
+
Kt as TransferHistoryPageFromJSONTyped,
|
|
1247
|
+
be as TransferHistoryPageToJSON,
|
|
1248
|
+
A as TransferProcessStateFromJSON,
|
|
1249
|
+
v as TransferProcessStateFromJSONTyped,
|
|
1250
|
+
ie as TransferProcessStateSimplifiedStateEnum,
|
|
1251
|
+
O as TransferProcessStateToJSON,
|
|
1252
|
+
Ft as TransferProcessStatesDtoFromJSON,
|
|
1253
|
+
Jt as TransferProcessStatesDtoFromJSONTyped,
|
|
1254
|
+
qt as TransferProcessStatesDtoToJSON,
|
|
1255
|
+
$t as UIApi,
|
|
1256
|
+
Bt as UseCaseApi,
|
|
1257
|
+
b as VoidApiResponse,
|
|
1258
|
+
Me as buildEdcClient,
|
|
1259
|
+
_t as canConsumeForm,
|
|
1260
|
+
s as exists,
|
|
1261
|
+
Wt as instanceOfAssetDto,
|
|
1262
|
+
jt as instanceOfAssetEntryDto,
|
|
1263
|
+
Zt as instanceOfAssetRequestDto,
|
|
1264
|
+
ee as instanceOfAtomicConstraintDto,
|
|
1265
|
+
re as instanceOfConnectorLimits,
|
|
1266
|
+
pe as instanceOfContractAgreementCard,
|
|
1267
|
+
me as instanceOfContractAgreementPage,
|
|
1268
|
+
se as instanceOfContractAgreementTransferProcess,
|
|
1269
|
+
De as instanceOfContractAgreementTransferRequest,
|
|
1270
|
+
ge as instanceOfContractAgreementTransferRequestParams,
|
|
1271
|
+
Pe as instanceOfContractDefinitionRequestDto,
|
|
1272
|
+
Oe as instanceOfCreateOfferingDto,
|
|
1273
|
+
he as instanceOfCriterionDto,
|
|
1274
|
+
vt as instanceOfDataAddressDto,
|
|
1275
|
+
ce as instanceOfExpressionDto,
|
|
1276
|
+
Ce as instanceOfIdResponseDto,
|
|
1277
|
+
Ne as instanceOfKpiResult,
|
|
1278
|
+
de as instanceOfPermissionDto,
|
|
1279
|
+
Ae as instanceOfPolicyDefinitionRequestDto,
|
|
1280
|
+
ue as instanceOfPolicyDto,
|
|
1281
|
+
Re as instanceOfStoredFile,
|
|
1282
|
+
qe as instanceOfTransferHistoryEntry,
|
|
1283
|
+
xe as instanceOfTransferHistoryPage,
|
|
1284
|
+
oe as instanceOfTransferProcessState,
|
|
1285
|
+
Te as instanceOfTransferProcessStatesDto,
|
|
1286
|
+
Qt as mapValues,
|
|
1287
|
+
h as querystring
|
|
1333
1288
|
};
|
|
1334
1289
|
//# sourceMappingURL=sovity-edc-client.js.map
|