@sovity.de/edc-client 3.2.0 → 3.3.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.
@@ -1,8 +1,8 @@
1
- var N = Object.defineProperty;
2
- var D = (t, e, n) => e in t ? N(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var d = (t, e, n) => (D(t, typeof e != "symbol" ? e + "" : e, n), n);
4
- const J = "http://localhost".replace(/\/+$/, "");
5
- class O {
1
+ var D = Object.defineProperty;
2
+ var F = (t, e, r) => e in t ? D(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var d = (t, e, r) => (F(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ const N = "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 : J;
13
+ return this.configuration.basePath != null ? this.configuration.basePath : N;
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 || y;
22
+ return this.configuration.queryParamsStringify || O;
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 O(), p = class {
48
- constructor(e = R) {
47
+ const E = new S(), l = class {
48
+ constructor(e = E) {
49
49
  d(this, "middleware");
50
- d(this, "fetchApi", async (e, n) => {
51
- let r = { url: e, init: n };
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 && (r = await o.pre({
53
+ o.pre && (n = await o.pre({
54
54
  fetch: this.fetchApi,
55
- ...r
56
- }) || r);
55
+ ...n
56
+ }) || n);
57
57
  let i;
58
58
  try {
59
59
  i = await (this.configuration.fetchApi || fetch)(
60
- r.url,
61
- r.init
60
+ n.url,
61
+ n.init
62
62
  );
63
63
  } catch (o) {
64
64
  for (const s of this.middleware)
65
65
  s.onError && (i = await s.onError({
66
66
  fetch: this.fetchApi,
67
- url: r.url,
68
- init: r.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 q(
73
+ throw o instanceof Error ? new M(
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: r.url,
82
- init: r.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 n = this.clone();
91
- return n.middleware = n.middleware.concat(...e), n;
90
+ const r = this.clone();
91
+ return r.middleware = r.middleware.concat(...e), r;
92
92
  }
93
93
  withPreMiddleware(...e) {
94
- const n = e.map((r) => ({ pre: r }));
95
- return this.withMiddleware(...n);
94
+ const r = e.map((n) => ({ pre: n }));
95
+ return this.withMiddleware(...r);
96
96
  }
97
97
  withPostMiddleware(...e) {
98
- const n = e.map((r) => ({ post: r }));
99
- return this.withMiddleware(...n);
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 ? p.jsonRegex.test(e) : !1;
112
+ return e ? l.jsonRegex.test(e) : !1;
113
113
  }
114
- async request(e, n) {
115
- const { url: r, init: i } = await this.createFetchParams(
114
+ async request(e, r) {
115
+ const { url: n, init: i } = await this.createFetchParams(
116
116
  e,
117
- n
118
- ), o = await this.fetchApi(r, i);
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 M(o, "Response returned an error code");
121
+ throw new b(o, "Response returned an error code");
122
122
  }
123
- async createFetchParams(e, n) {
124
- let r = this.configuration.basePath + e.path;
125
- e.query !== void 0 && Object.keys(e.query).length !== 0 && (r += "?" + this.configuration.queryParamsStringify(e.query));
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,121 +131,121 @@ 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 n == "function" ? n : async () => n, s = {
134
+ const o = typeof r == "function" ? r : async () => r, s = {
135
135
  method: e.method,
136
136
  headers: i,
137
137
  body: e.body,
138
138
  credentials: this.configuration.credentials
139
- }, c = {
139
+ }, f = {
140
140
  ...s,
141
141
  ...await o({
142
142
  init: s,
143
143
  context: e
144
144
  })
145
- }, l = {
146
- ...c,
147
- body: b(c.body) || c.body instanceof URLSearchParams || E(c.body) ? c.body : JSON.stringify(c.body)
145
+ }, T = {
146
+ ...f,
147
+ body: J(f.body) || f.body instanceof URLSearchParams || R(f.body) ? f.body : JSON.stringify(f.body)
148
148
  };
149
- return { url: r, init: l };
149
+ return { url: n, init: T };
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, n = new e(this.configuration);
157
- return n.middleware = this.middleware.slice(), n;
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 = p;
161
- d(f, "jsonRegex", new RegExp(
160
+ let u = l;
161
+ d(u, "jsonRegex", new RegExp(
162
162
  "^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$",
163
163
  "i"
164
164
  ));
165
- function E(t) {
165
+ function R(t) {
166
166
  return typeof Blob < "u" && t instanceof Blob;
167
167
  }
168
- function b(t) {
168
+ function J(t) {
169
169
  return typeof FormData < "u" && t instanceof FormData;
170
170
  }
171
- class M extends Error {
172
- constructor(n, r) {
173
- super(r);
171
+ class b extends Error {
172
+ constructor(r, n) {
173
+ super(n);
174
174
  d(this, "name", "ResponseError");
175
- this.response = n;
175
+ this.response = r;
176
176
  }
177
177
  }
178
- class q extends Error {
179
- constructor(n, r) {
180
- super(r);
178
+ class M extends Error {
179
+ constructor(r, n) {
180
+ super(n);
181
181
  d(this, "name", "FetchError");
182
- this.cause = n;
182
+ this.cause = r;
183
183
  }
184
184
  }
185
- class S extends Error {
186
- constructor(n, r) {
187
- super(r);
185
+ class p extends Error {
186
+ constructor(r, n) {
187
+ super(n);
188
188
  d(this, "name", "RequiredError");
189
- this.field = n;
189
+ this.field = r;
190
190
  }
191
191
  }
192
- const _t = {
192
+ const Yt = {
193
193
  csv: ",",
194
194
  ssv: " ",
195
195
  tsv: " ",
196
196
  pipes: "|"
197
197
  };
198
198
  function a(t, e) {
199
- const n = t[e];
200
- return n != null;
199
+ const r = t[e];
200
+ return r != null;
201
201
  }
202
- function y(t, e = "") {
203
- return Object.keys(t).map((n) => h(n, t[n], e)).filter((n) => n.length > 0).join("&");
202
+ function O(t, e = "") {
203
+ return Object.keys(t).map((r) => y(r, t[r], e)).filter((r) => r.length > 0).join("&");
204
204
  }
205
- function h(t, e, n = "") {
206
- const r = n + (n.length ? `[${t}]` : t);
205
+ function y(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(r)}=`);
209
- return `${encodeURIComponent(r)}=${i}`;
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 h(t, i, n);
213
+ return y(t, i, r);
214
214
  }
215
- return e instanceof Date ? `${encodeURIComponent(r)}=${encodeURIComponent(
215
+ return e instanceof Date ? `${encodeURIComponent(n)}=${encodeURIComponent(
216
216
  e.toISOString()
217
- )}` : e instanceof Object ? y(e, r) : `${encodeURIComponent(r)}=${encodeURIComponent(
217
+ )}` : e instanceof Object ? O(e, n) : `${encodeURIComponent(n)}=${encodeURIComponent(
218
218
  String(e)
219
219
  )}`;
220
220
  }
221
- function Ht(t, e) {
221
+ function Zt(t, e) {
222
222
  return Object.keys(t).reduce(
223
- (n, r) => ({ ...n, [r]: e(t[r]) }),
223
+ (r, n) => ({ ...r, [n]: e(t[n]) }),
224
224
  {}
225
225
  );
226
226
  }
227
- function L(t) {
227
+ function vt(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 u {
234
- constructor(e, n = (r) => r) {
235
- this.raw = e, this.transformer = n;
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 Wt {
241
+ class jt {
242
242
  constructor(e) {
243
243
  this.raw = e;
244
244
  }
245
245
  async value() {
246
246
  }
247
247
  }
248
- class Xt {
248
+ class te {
249
249
  constructor(e) {
250
250
  this.raw = e;
251
251
  }
@@ -253,7 +253,7 @@ class Xt {
253
253
  return await this.raw.blob();
254
254
  }
255
255
  }
256
- class Yt {
256
+ class ee {
257
257
  constructor(e) {
258
258
  this.raw = e;
259
259
  }
@@ -261,21 +261,21 @@ class Yt {
261
261
  return await this.raw.text();
262
262
  }
263
263
  }
264
- function Zt(t) {
264
+ function re(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 C(t) {
269
- return U(t);
268
+ function q(t) {
269
+ return L(t);
270
270
  }
271
- function U(t, e) {
271
+ function L(t, e) {
272
272
  return t == null ? t : {
273
273
  assetId: t.assetId,
274
274
  createdAt: new Date(t.createdAt),
275
275
  properties: t.properties
276
276
  };
277
277
  }
278
- function P(t) {
278
+ function U(t) {
279
279
  if (t !== void 0)
280
280
  return t === null ? null : {
281
281
  assetId: t.assetId,
@@ -283,7 +283,7 @@ function P(t) {
283
283
  properties: t.properties
284
284
  };
285
285
  }
286
- function vt(t) {
286
+ function ne(t) {
287
287
  let e = !0;
288
288
  return e = e && "id" in t, e = e && "selectedIds" in t, e;
289
289
  }
@@ -303,37 +303,36 @@ function Q(t) {
303
303
  selectedIds: t.selectedIds
304
304
  };
305
305
  }
306
- function jt(t) {
306
+ function ie(t) {
307
307
  let e = !0;
308
308
  return e = e && "selectedAttributeValues" in t, e;
309
309
  }
310
310
  function x(t) {
311
- return K(t);
311
+ return G(t);
312
312
  }
313
- function K(t, e) {
313
+ function G(t, e) {
314
314
  return t == null ? t : {
315
315
  selectedAttributeValues: t.selectedAttributeValues.map(B)
316
316
  };
317
317
  }
318
- function $(t) {
318
+ function H(t) {
319
319
  if (t !== void 0)
320
320
  return t === null ? null : {
321
321
  selectedAttributeValues: t.selectedAttributeValues.map(Q)
322
322
  };
323
323
  }
324
- const te = {
325
- Match: "MATCH",
326
- Title: "TITLE",
324
+ const oe = {
327
325
  MostRecent: "MOST_RECENT",
326
+ Title: "TITLE",
328
327
  Originator: "ORIGINATOR"
329
328
  };
330
- function ee(t) {
329
+ function ae(t) {
331
330
  return !0;
332
331
  }
333
- function ne(t) {
334
- return z(t);
332
+ function se(t) {
333
+ return K(t);
335
334
  }
336
- function z(t, e) {
335
+ function K(t, e) {
337
336
  return t == null ? t : {
338
337
  filter: a(t, "filter") ? x(t.filter) : void 0,
339
338
  searchQuery: a(t, "searchQuery") ? t.searchQuery : void 0,
@@ -341,42 +340,41 @@ function z(t, e) {
341
340
  pageOneBased: a(t, "pageOneBased") ? t.pageOneBased : void 0
342
341
  };
343
342
  }
344
- function G(t) {
343
+ function $(t) {
345
344
  if (t !== void 0)
346
345
  return t === null ? null : {
347
- filter: $(t.filter),
346
+ filter: H(t.filter),
348
347
  searchQuery: t.searchQuery,
349
348
  sorting: t.sorting,
350
349
  pageOneBased: t.pageOneBased
351
350
  };
352
351
  }
353
- const re = {
354
- Match: "MATCH",
355
- Title: "TITLE",
352
+ const ce = {
356
353
  MostRecent: "MOST_RECENT",
354
+ Title: "TITLE",
357
355
  Originator: "ORIGINATOR"
358
356
  };
359
- function ie(t) {
357
+ function de(t) {
360
358
  let e = !0;
361
359
  return e = e && "sorting" in t, e = e && "title" in t, e;
362
360
  }
363
361
  function k(t) {
364
- return _(t);
362
+ return z(t);
365
363
  }
366
- function _(t, e) {
364
+ function z(t, e) {
367
365
  return t == null ? t : {
368
366
  sorting: t.sorting,
369
367
  title: t.title
370
368
  };
371
369
  }
372
- function H(t) {
370
+ function _(t) {
373
371
  if (t !== void 0)
374
372
  return t === null ? null : {
375
373
  sorting: t.sorting,
376
374
  title: t.title
377
375
  };
378
376
  }
379
- function oe(t) {
377
+ function ue(t) {
380
378
  let e = !0;
381
379
  return e = e && "id" in t, e = e && "title" in t, e;
382
380
  }
@@ -396,7 +394,7 @@ function Y(t) {
396
394
  title: t.title
397
395
  };
398
396
  }
399
- function ae(t) {
397
+ function fe(t) {
400
398
  let e = !0;
401
399
  return e = e && "id" in t, e = e && "title" in t, e = e && "values" in t, e;
402
400
  }
@@ -418,7 +416,7 @@ function j(t) {
418
416
  values: t.values.map(Y)
419
417
  };
420
418
  }
421
- function se(t) {
419
+ function le(t) {
422
420
  let e = !0;
423
421
  return e = e && "fields" in t, e;
424
422
  }
@@ -430,95 +428,105 @@ function et(t, e) {
430
428
  fields: t.fields.map(Z)
431
429
  };
432
430
  }
433
- function nt(t) {
431
+ function rt(t) {
434
432
  if (t !== void 0)
435
433
  return t === null ? null : {
436
434
  fields: t.fields.map(j)
437
435
  };
438
436
  }
439
- const ce = {
440
- Online: "ONLINE",
441
- Offline: "OFFLINE"
442
- };
443
- function ue(t) {
437
+ function ge(t) {
444
438
  let e = !0;
445
- return e = e && "endpoint" in t, e = e && "title" in t, e = e && "description" in t, e = e && "onlineStatus" in t, e;
439
+ return e = e && "legacyPolicy" in t, e;
446
440
  }
447
- function rt(t) {
448
- return it(t);
441
+ function h(t) {
442
+ return nt(t);
449
443
  }
450
- function it(t, e) {
444
+ function nt(t, e) {
451
445
  return t == null ? t : {
452
- endpoint: t.endpoint,
453
- title: t.title,
454
- description: t.description,
455
- onlineStatus: t.onlineStatus,
456
- offlineSinceOrLastUpdatedAt: a(
457
- t,
458
- "offlineSinceOrLastUpdatedAt"
459
- ) ? new Date(t.offlineSinceOrLastUpdatedAt) : void 0
446
+ legacyPolicy: t.legacyPolicy
460
447
  };
461
448
  }
462
- function ot(t) {
449
+ function A(t) {
463
450
  if (t !== void 0)
464
451
  return t === null ? null : {
465
- endpoint: t.endpoint,
466
- title: t.title,
467
- description: t.description,
468
- onlineStatus: t.onlineStatus,
469
- offlineSinceOrLastUpdatedAt: t.offlineSinceOrLastUpdatedAt === void 0 ? void 0 : t.offlineSinceOrLastUpdatedAt.toISOString()
452
+ legacyPolicy: t.legacyPolicy
470
453
  };
471
454
  }
472
- function de(t) {
455
+ function pe(t) {
473
456
  let e = !0;
474
- return e = e && "legacyPolicy" in t, e;
457
+ return e = e && "contractOfferId" in t, e = e && "createdAt" in t, e = e && "updatedAt" in t, e = e && "contractPolicy" in t, e;
475
458
  }
476
- function w(t) {
477
- return at(t);
459
+ function it(t) {
460
+ return ot(t);
478
461
  }
479
- function at(t, e) {
462
+ function ot(t, e) {
480
463
  return t == null ? t : {
481
- legacyPolicy: t.legacyPolicy
464
+ contractOfferId: t.contractOfferId,
465
+ createdAt: new Date(t.createdAt),
466
+ updatedAt: new Date(t.updatedAt),
467
+ contractPolicy: h(t.contractPolicy)
482
468
  };
483
469
  }
484
- function I(t) {
470
+ function at(t) {
485
471
  if (t !== void 0)
486
472
  return t === null ? null : {
487
- legacyPolicy: t.legacyPolicy
473
+ contractOfferId: t.contractOfferId,
474
+ createdAt: t.createdAt.toISOString(),
475
+ updatedAt: t.updatedAt.toISOString(),
476
+ contractPolicy: A(t.contractPolicy)
488
477
  };
489
478
  }
490
- function fe(t) {
479
+ const me = {
480
+ Online: "ONLINE",
481
+ Offline: "OFFLINE"
482
+ };
483
+ function Se(t) {
491
484
  let e = !0;
492
- return e = e && "connectorInfo" in t, e = e && "asset" in t, e = e && "policy" in t, e;
485
+ return e = e && "assetId" in t, e = e && "connectorEndpoint" in t, e = e && "connectorOnlineStatus" in t, e = e && "createdAt" in t, e = e && "updatedAt" in t, e = e && "properties" in t, e = e && "contractOffers" in t, e;
493
486
  }
494
487
  function st(t) {
495
488
  return ct(t);
496
489
  }
497
490
  function ct(t, e) {
498
491
  return t == null ? t : {
499
- connectorInfo: rt(
500
- t.connectorInfo
501
- ),
502
- asset: C(t.asset),
503
- policy: w(t.policy)
492
+ assetId: t.assetId,
493
+ connectorEndpoint: t.connectorEndpoint,
494
+ connectorOnlineStatus: t.connectorOnlineStatus,
495
+ connectorOfflineSinceOrLastUpdatedAt: a(
496
+ t,
497
+ "connectorOfflineSinceOrLastUpdatedAt"
498
+ ) ? new Date(t.connectorOfflineSinceOrLastUpdatedAt) : void 0,
499
+ createdAt: new Date(t.createdAt),
500
+ updatedAt: new Date(t.updatedAt),
501
+ properties: t.properties,
502
+ contractOffers: t.contractOffers.map(
503
+ it
504
+ )
504
505
  };
505
506
  }
506
- function ut(t) {
507
+ function dt(t) {
507
508
  if (t !== void 0)
508
509
  return t === null ? null : {
509
- connectorInfo: ot(t.connectorInfo),
510
- asset: P(t.asset),
511
- policy: I(t.policy)
510
+ assetId: t.assetId,
511
+ connectorEndpoint: t.connectorEndpoint,
512
+ connectorOnlineStatus: t.connectorOnlineStatus,
513
+ connectorOfflineSinceOrLastUpdatedAt: t.connectorOfflineSinceOrLastUpdatedAt === void 0 ? void 0 : t.connectorOfflineSinceOrLastUpdatedAt.toISOString(),
514
+ createdAt: t.createdAt.toISOString(),
515
+ updatedAt: t.updatedAt.toISOString(),
516
+ properties: t.properties,
517
+ contractOffers: t.contractOffers.map(
518
+ at
519
+ )
512
520
  };
513
521
  }
514
- function le(t) {
522
+ function Oe(t) {
515
523
  let e = !0;
516
524
  return e = e && "numTotal" in t, e = e && "numVisible" in t, e = e && "pageOneBased" in t, e = e && "pageSize" in t, e;
517
525
  }
518
- function A(t) {
519
- return dt(t);
526
+ function C(t) {
527
+ return ut(t);
520
528
  }
521
- function dt(t, e) {
529
+ function ut(t, e) {
522
530
  return t == null ? t : {
523
531
  numTotal: t.numTotal,
524
532
  numVisible: t.numVisible,
@@ -526,7 +534,7 @@ function dt(t, e) {
526
534
  pageSize: t.pageSize
527
535
  };
528
536
  }
529
- function T(t) {
537
+ function P(t) {
530
538
  if (t !== void 0)
531
539
  return t === null ? null : {
532
540
  numTotal: t.numTotal,
@@ -535,9 +543,9 @@ function T(t) {
535
543
  pageSize: t.pageSize
536
544
  };
537
545
  }
538
- function ge(t) {
546
+ function ye(t) {
539
547
  let e = !0;
540
- return e = e && "availableFilters" in t, e = e && "availableSortings" in t, e = e && "paginationMetadata" in t, e = e && "contractOffers" in t, e;
548
+ return e = e && "availableFilters" in t, e = e && "availableSortings" in t, e = e && "paginationMetadata" in t, e = e && "dataOffers" in t, e;
541
549
  }
542
550
  function ft(t) {
543
551
  return lt(t);
@@ -548,35 +556,35 @@ function lt(t, e) {
548
556
  availableSortings: t.availableSortings.map(
549
557
  k
550
558
  ),
551
- paginationMetadata: A(
559
+ paginationMetadata: C(
552
560
  t.paginationMetadata
553
561
  ),
554
- contractOffers: t.contractOffers.map(
562
+ dataOffers: t.dataOffers.map(
555
563
  st
556
564
  )
557
565
  };
558
566
  }
559
- function me(t) {
567
+ function he(t) {
560
568
  if (t !== void 0)
561
569
  return t === null ? null : {
562
- availableFilters: nt(t.availableFilters),
570
+ availableFilters: rt(t.availableFilters),
563
571
  availableSortings: t.availableSortings.map(
564
- H
572
+ _
565
573
  ),
566
- paginationMetadata: T(t.paginationMetadata),
567
- contractOffers: t.contractOffers.map(
568
- ut
574
+ paginationMetadata: P(t.paginationMetadata),
575
+ dataOffers: t.dataOffers.map(
576
+ dt
569
577
  )
570
578
  };
571
579
  }
572
- function pe(t) {
580
+ function Ae(t) {
573
581
  let e = !0;
574
582
  return e = e && "numActiveConsumingContractAgreements" in t, e;
575
583
  }
576
584
  function gt(t) {
577
- return mt(t);
585
+ return pt(t);
578
586
  }
579
- function mt(t, e) {
587
+ function pt(t, e) {
580
588
  return t == null ? t : {
581
589
  numActiveConsumingContractAgreements: t.numActiveConsumingContractAgreements,
582
590
  maxActiveConsumingContractAgreements: a(
@@ -585,35 +593,32 @@ function mt(t, e) {
585
593
  ) ? t.maxActiveConsumingContractAgreements : void 0
586
594
  };
587
595
  }
588
- function Se(t) {
596
+ function Ce(t) {
589
597
  if (t !== void 0)
590
598
  return t === null ? null : {
591
599
  numActiveConsumingContractAgreements: t.numActiveConsumingContractAgreements,
592
600
  maxActiveConsumingContractAgreements: t.maxActiveConsumingContractAgreements
593
601
  };
594
602
  }
595
- const Oe = {
603
+ const Pe = {
596
604
  Online: "ONLINE",
597
605
  Offline: "OFFLINE"
598
606
  };
599
- function ye(t) {
607
+ function Ie(t) {
600
608
  let e = !0;
601
- return e = e && "id" in t, e = e && "idsId" in t, e = e && "endpoint" in t, e = e && "title" in t, e = e && "description" in t, e = e && "onlineStatus" in t, e;
609
+ return e = e && "id" in t, e = e && "endpoint" in t, e = e && "createdAt" in t, e = e && "onlineStatus" in t, e;
602
610
  }
603
- function pt(t) {
611
+ function mt(t) {
604
612
  return St(t);
605
613
  }
606
614
  function St(t, e) {
607
615
  return t == null ? t : {
608
616
  id: t.id,
609
- idsId: t.idsId,
610
617
  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,
618
+ createdAt: new Date(t.createdAt),
619
+ lastSuccessfulRefreshAt: a(t, "lastSuccessfulRefreshAt") ? new Date(t.lastSuccessfulRefreshAt) : void 0,
620
+ lastRefreshAttemptAt: a(t, "lastRefreshAttemptAt") ? new Date(t.lastRefreshAttemptAt) : void 0,
615
621
  onlineStatus: t.onlineStatus,
616
- offlineSince: a(t, "offlineSince") ? new Date(t.offlineSince) : void 0,
617
622
  numContractOffers: a(t, "numContractOffers") ? t.numContractOffers : void 0
618
623
  };
619
624
  }
@@ -621,25 +626,22 @@ function Ot(t) {
621
626
  if (t !== void 0)
622
627
  return t === null ? null : {
623
628
  id: t.id,
624
- idsId: t.idsId,
625
629
  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
+ createdAt: t.createdAt.toISOString(),
631
+ lastSuccessfulRefreshAt: t.lastSuccessfulRefreshAt === void 0 ? void 0 : t.lastSuccessfulRefreshAt.toISOString(),
632
+ lastRefreshAttemptAt: t.lastRefreshAttemptAt === void 0 ? void 0 : t.lastRefreshAttemptAt.toISOString(),
630
633
  onlineStatus: t.onlineStatus,
631
- offlineSince: t.offlineSince === void 0 ? void 0 : t.offlineSince.toISOString(),
632
634
  numContractOffers: t.numContractOffers
633
635
  };
634
636
  }
635
- const he = {
636
- Title: "TITLE",
637
- MostRecent: "MOST_RECENT"
637
+ const we = {
638
+ MostRecent: "MOST_RECENT",
639
+ Title: "TITLE"
638
640
  };
639
- function Ce(t) {
641
+ function Te(t) {
640
642
  return !0;
641
643
  }
642
- function Pe(t) {
644
+ function De(t) {
643
645
  return yt(t);
644
646
  }
645
647
  function yt(t, e) {
@@ -657,82 +659,82 @@ function ht(t) {
657
659
  pageOneBased: t.pageOneBased
658
660
  };
659
661
  }
660
- const we = {
661
- Title: "TITLE",
662
- MostRecent: "MOST_RECENT"
662
+ const Fe = {
663
+ MostRecent: "MOST_RECENT",
664
+ Title: "TITLE"
663
665
  };
664
- function Ie(t) {
666
+ function Ne(t) {
665
667
  let e = !0;
666
668
  return e = e && "sorting" in t, e = e && "title" in t, e;
667
669
  }
668
- function Ct(t) {
669
- return Pt(t);
670
+ function At(t) {
671
+ return Ct(t);
670
672
  }
671
- function Pt(t, e) {
673
+ function Ct(t, e) {
672
674
  return t == null ? t : {
673
675
  sorting: t.sorting,
674
676
  title: t.title
675
677
  };
676
678
  }
677
- function wt(t) {
679
+ function Pt(t) {
678
680
  if (t !== void 0)
679
681
  return t === null ? null : {
680
682
  sorting: t.sorting,
681
683
  title: t.title
682
684
  };
683
685
  }
684
- function Ae(t) {
686
+ function Ee(t) {
685
687
  let e = !0;
686
688
  return e = e && "availableSortings" in t, e = e && "paginationMetadata" in t, e = e && "connectors" in t, e;
687
689
  }
688
690
  function It(t) {
689
- return At(t);
691
+ return wt(t);
690
692
  }
691
- function At(t, e) {
693
+ function wt(t, e) {
692
694
  return t == null ? t : {
693
695
  availableSortings: t.availableSortings.map(
694
- Ct
696
+ At
695
697
  ),
696
- paginationMetadata: A(
698
+ paginationMetadata: C(
697
699
  t.paginationMetadata
698
700
  ),
699
701
  connectors: t.connectors.map(
700
- pt
702
+ mt
701
703
  )
702
704
  };
703
705
  }
704
- function Te(t) {
706
+ function Re(t) {
705
707
  if (t !== void 0)
706
708
  return t === null ? null : {
707
709
  availableSortings: t.availableSortings.map(
708
- wt
710
+ Pt
709
711
  ),
710
- paginationMetadata: T(t.paginationMetadata),
712
+ paginationMetadata: P(t.paginationMetadata),
711
713
  connectors: t.connectors.map(
712
714
  Ot
713
715
  )
714
716
  };
715
717
  }
716
- const Fe = {
718
+ const Je = {
717
719
  Running: "RUNNING",
718
720
  Ok: "OK",
719
721
  Error: "ERROR"
720
722
  };
721
- function Ne(t) {
723
+ function be(t) {
722
724
  let e = !0;
723
725
  return e = e && "name" in t, e = e && "code" in t, e = e && "simplifiedState" in t, e;
724
726
  }
725
- function Tt(t) {
726
- return Ft(t);
727
+ function I(t) {
728
+ return Tt(t);
727
729
  }
728
- function Ft(t, e) {
730
+ function Tt(t, e) {
729
731
  return t == null ? t : {
730
732
  name: t.name,
731
733
  code: t.code,
732
734
  simplifiedState: t.simplifiedState
733
735
  };
734
736
  }
735
- function Nt(t) {
737
+ function w(t) {
736
738
  if (t !== void 0)
737
739
  return t === null ? null : {
738
740
  name: t.name,
@@ -740,42 +742,42 @@ function Nt(t) {
740
742
  simplifiedState: t.simplifiedState
741
743
  };
742
744
  }
743
- function De(t) {
745
+ function Me(t) {
744
746
  let e = !0;
745
747
  return e = e && "transferProcessId" in t, e = e && "lastUpdatedDate" in t, e = e && "state" in t, e;
746
748
  }
747
749
  function Dt(t) {
748
- return Jt(t);
750
+ return Ft(t);
749
751
  }
750
- function Jt(t, e) {
752
+ function Ft(t, e) {
751
753
  return t == null ? t : {
752
754
  transferProcessId: t.transferProcessId,
753
755
  lastUpdatedDate: new Date(t.lastUpdatedDate),
754
- state: Tt(t.state),
756
+ state: I(t.state),
755
757
  errorMessage: a(t, "errorMessage") ? t.errorMessage : void 0
756
758
  };
757
759
  }
758
- function Rt(t) {
760
+ function Nt(t) {
759
761
  if (t !== void 0)
760
762
  return t === null ? null : {
761
763
  transferProcessId: t.transferProcessId,
762
764
  lastUpdatedDate: t.lastUpdatedDate.toISOString(),
763
- state: Nt(t.state),
765
+ state: w(t.state),
764
766
  errorMessage: t.errorMessage
765
767
  };
766
768
  }
767
- const Je = {
769
+ const qe = {
768
770
  Consuming: "CONSUMING",
769
771
  Providing: "PROVIDING"
770
772
  };
771
- function Re(t) {
773
+ function Le(t) {
772
774
  let e = !0;
773
775
  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;
774
776
  }
775
777
  function Et(t) {
776
- return bt(t);
778
+ return Rt(t);
777
779
  }
778
- function bt(t, e) {
780
+ function Rt(t, e) {
779
781
  return t == null ? t : {
780
782
  contractAgreementId: t.contractAgreementId,
781
783
  contractNegotiationId: t.contractNegotiationId,
@@ -785,14 +787,14 @@ function bt(t, e) {
785
787
  contractSigningDate: new Date(t.contractSigningDate),
786
788
  contractStartDate: new Date(t.contractStartDate),
787
789
  contractEndDate: new Date(t.contractEndDate),
788
- asset: C(t.asset),
789
- contractPolicy: w(t.contractPolicy),
790
+ asset: q(t.asset),
791
+ contractPolicy: h(t.contractPolicy),
790
792
  transferProcesses: t.transferProcesses.map(
791
793
  Dt
792
794
  )
793
795
  };
794
796
  }
795
- function Mt(t) {
797
+ function Jt(t) {
796
798
  if (t !== void 0)
797
799
  return t === null ? null : {
798
800
  contractAgreementId: t.contractAgreementId,
@@ -803,93 +805,93 @@ function Mt(t) {
803
805
  contractSigningDate: t.contractSigningDate.toISOString(),
804
806
  contractStartDate: t.contractStartDate.toISOString(),
805
807
  contractEndDate: t.contractEndDate.toISOString(),
806
- asset: P(t.asset),
807
- contractPolicy: I(t.contractPolicy),
808
+ asset: U(t.asset),
809
+ contractPolicy: A(t.contractPolicy),
808
810
  transferProcesses: t.transferProcesses.map(
809
- Rt
811
+ Nt
810
812
  )
811
813
  };
812
814
  }
813
- function Ee(t) {
815
+ function Ue(t) {
814
816
  let e = !0;
815
817
  return e = e && "contractAgreements" in t, e;
816
818
  }
817
- function qt(t) {
818
- return Lt(t);
819
+ function bt(t) {
820
+ return Mt(t);
819
821
  }
820
- function Lt(t, e) {
822
+ function Mt(t, e) {
821
823
  return t == null ? t : {
822
824
  contractAgreements: t.contractAgreements.map(
823
825
  Et
824
826
  )
825
827
  };
826
828
  }
827
- function be(t) {
829
+ function Be(t) {
828
830
  if (t !== void 0)
829
831
  return t === null ? null : {
830
832
  contractAgreements: t.contractAgreements.map(
831
- Mt
833
+ Jt
832
834
  )
833
835
  };
834
836
  }
835
- function Me(t) {
837
+ function Ve(t) {
836
838
  let e = !0;
837
839
  return e = e && "incomingTransferProcessCounts" in t, e = e && "outgoingTransferProcessCounts" in t, e;
838
840
  }
839
- function Ut(t) {
840
- return Bt(t);
841
+ function qt(t) {
842
+ return Lt(t);
841
843
  }
842
- function Bt(t, e) {
844
+ function Lt(t, e) {
843
845
  return t == null ? t : {
844
846
  incomingTransferProcessCounts: t.incomingTransferProcessCounts,
845
847
  outgoingTransferProcessCounts: t.outgoingTransferProcessCounts
846
848
  };
847
849
  }
848
- function Vt(t) {
850
+ function Ut(t) {
849
851
  if (t !== void 0)
850
852
  return t === null ? null : {
851
853
  incomingTransferProcessCounts: t.incomingTransferProcessCounts,
852
854
  outgoingTransferProcessCounts: t.outgoingTransferProcessCounts
853
855
  };
854
856
  }
855
- function qe(t) {
857
+ function Qe(t) {
856
858
  let e = !0;
857
859
  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
860
  }
859
- function Qt(t) {
860
- return xt(t);
861
+ function Bt(t) {
862
+ return Vt(t);
861
863
  }
862
- function xt(t, e) {
864
+ function Vt(t, e) {
863
865
  return t == null ? t : {
864
866
  assetsCount: t.assetsCount,
865
867
  policiesCount: t.policiesCount,
866
868
  contractDefinitionsCount: t.contractDefinitionsCount,
867
869
  contractAgreementsCount: t.contractAgreementsCount,
868
- transferProcessDto: Ut(
870
+ transferProcessDto: qt(
869
871
  t.transferProcessDto
870
872
  )
871
873
  };
872
874
  }
873
- function Le(t) {
875
+ function xe(t) {
874
876
  if (t !== void 0)
875
877
  return t === null ? null : {
876
878
  assetsCount: t.assetsCount,
877
879
  policiesCount: t.policiesCount,
878
880
  contractDefinitionsCount: t.contractDefinitionsCount,
879
881
  contractAgreementsCount: t.contractAgreementsCount,
880
- transferProcessDto: Vt(
882
+ transferProcessDto: Ut(
881
883
  t.transferProcessDto
882
884
  )
883
885
  };
884
886
  }
885
- function Ue(t) {
887
+ function Ge(t) {
886
888
  let e = !0;
887
889
  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
890
  }
889
891
  function m(t) {
890
- return Kt(t);
892
+ return Qt(t);
891
893
  }
892
- function Kt(t, e) {
894
+ function Qt(t, e) {
893
895
  return t == null ? t : {
894
896
  storedFileId: t.storedFileId,
895
897
  fileName: t.fileName,
@@ -901,7 +903,7 @@ function Kt(t, e) {
901
903
  lastModifiedDate: new Date(t.lastModifiedDate)
902
904
  };
903
905
  }
904
- function Be(t) {
906
+ function He(t) {
905
907
  if (t !== void 0)
906
908
  return t === null ? null : {
907
909
  storedFileId: t.storedFileId,
@@ -914,26 +916,88 @@ function Be(t) {
914
916
  lastModifiedDate: t.lastModifiedDate.toISOString()
915
917
  };
916
918
  }
917
- class Ve extends f {
919
+ const Ke = {
920
+ Consuming: "CONSUMING",
921
+ Providing: "PROVIDING"
922
+ };
923
+ function $e(t) {
924
+ let e = !0;
925
+ 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;
926
+ }
927
+ function xt(t) {
928
+ return Gt(t);
929
+ }
930
+ function Gt(t, e) {
931
+ return t == null ? t : {
932
+ transferProcessId: t.transferProcessId,
933
+ createdDate: new Date(t.createdDate),
934
+ lastUpdatedDate: new Date(t.lastUpdatedDate),
935
+ state: I(t.state),
936
+ contractAgreementId: t.contractAgreementId,
937
+ direction: t.direction,
938
+ counterPartyConnectorEndpoint: t.counterPartyConnectorEndpoint,
939
+ assetName: t.assetName,
940
+ assetId: t.assetId,
941
+ errorMessage: a(t, "errorMessage") ? t.errorMessage : void 0
942
+ };
943
+ }
944
+ function Ht(t) {
945
+ if (t !== void 0)
946
+ return t === null ? null : {
947
+ transferProcessId: t.transferProcessId,
948
+ createdDate: t.createdDate.toISOString(),
949
+ lastUpdatedDate: t.lastUpdatedDate.toISOString(),
950
+ state: w(t.state),
951
+ contractAgreementId: t.contractAgreementId,
952
+ direction: t.direction,
953
+ counterPartyConnectorEndpoint: t.counterPartyConnectorEndpoint,
954
+ assetName: t.assetName,
955
+ assetId: t.assetId,
956
+ errorMessage: t.errorMessage
957
+ };
958
+ }
959
+ function ke(t) {
960
+ let e = !0;
961
+ return e = e && "transferEntries" in t, e;
962
+ }
963
+ function Kt(t) {
964
+ return $t(t);
965
+ }
966
+ function $t(t, e) {
967
+ return t == null ? t : {
968
+ transferEntries: t.transferEntries.map(
969
+ xt
970
+ )
971
+ };
972
+ }
973
+ function ze(t) {
974
+ if (t !== void 0)
975
+ return t === null ? null : {
976
+ transferEntries: t.transferEntries.map(
977
+ Ht
978
+ )
979
+ };
980
+ }
981
+ class kt extends u {
918
982
  /**
919
983
  * Query indexed Contract Offers
920
984
  */
921
- async catalogPageRaw(e, n) {
922
- const r = {}, i = {};
985
+ async catalogPageRaw(e, r) {
986
+ const n = {}, i = {};
923
987
  i["Content-Type"] = "application/json";
924
988
  const o = await this.request(
925
989
  {
926
990
  path: "/wrapper/broker/catalog-page",
927
991
  method: "POST",
928
992
  headers: i,
929
- query: r,
930
- body: G(
993
+ query: n,
994
+ body: $(
931
995
  e.catalogPageQuery
932
996
  )
933
997
  },
934
- n
998
+ r
935
999
  );
936
- return new u(
1000
+ return new c(
937
1001
  o,
938
1002
  (s) => ft(s)
939
1003
  );
@@ -941,31 +1005,31 @@ class Ve extends f {
941
1005
  /**
942
1006
  * Query indexed Contract Offers
943
1007
  */
944
- async catalogPage(e = {}, n) {
1008
+ async catalogPage(e = {}, r) {
945
1009
  return await (await this.catalogPageRaw(
946
1010
  e,
947
- n
1011
+ r
948
1012
  )).value();
949
1013
  }
950
1014
  /**
951
1015
  * Query known Connectors
952
1016
  */
953
- async connectorPageRaw(e, n) {
954
- const r = {}, i = {};
1017
+ async connectorPageRaw(e, r) {
1018
+ const n = {}, i = {};
955
1019
  i["Content-Type"] = "application/json";
956
1020
  const o = await this.request(
957
1021
  {
958
1022
  path: "/wrapper/broker/connector-page",
959
1023
  method: "POST",
960
1024
  headers: i,
961
- query: r,
1025
+ query: n,
962
1026
  body: ht(
963
1027
  e.connectorPageQuery
964
1028
  )
965
1029
  },
966
- n
1030
+ r
967
1031
  );
968
- return new u(
1032
+ return new c(
969
1033
  o,
970
1034
  (s) => It(s)
971
1035
  );
@@ -973,28 +1037,28 @@ class Ve extends f {
973
1037
  /**
974
1038
  * Query known Connectors
975
1039
  */
976
- async connectorPage(e = {}, n) {
1040
+ async connectorPage(e = {}, r) {
977
1041
  return await (await this.connectorPageRaw(
978
1042
  e,
979
- n
1043
+ r
980
1044
  )).value();
981
1045
  }
982
1046
  }
983
- class $t extends f {
1047
+ class zt extends u {
984
1048
  /**
985
1049
  * Available and used resources of a connector.
986
1050
  */
987
1051
  async connectorLimitsRaw(e) {
988
- const n = {}, r = {}, i = await this.request(
1052
+ const r = {}, n = {}, i = await this.request(
989
1053
  {
990
1054
  path: "/wrapper/ee/connector-limits",
991
1055
  method: "GET",
992
- headers: r,
993
- query: n
1056
+ headers: n,
1057
+ query: r
994
1058
  },
995
1059
  e
996
1060
  );
997
- return new u(
1061
+ return new c(
998
1062
  i,
999
1063
  (o) => gt(o)
1000
1064
  );
@@ -1009,18 +1073,18 @@ class $t extends f {
1009
1073
  * Create an asset using the stored file as data source.
1010
1074
  * Create a file storage asset.
1011
1075
  */
1012
- async createStoredFileAssetRaw(e, n) {
1076
+ async createStoredFileAssetRaw(e, r) {
1013
1077
  if (e.storedFileId === null || e.storedFileId === void 0)
1014
- throw new S(
1078
+ throw new p(
1015
1079
  "storedFileId",
1016
1080
  "Required parameter requestParameters.storedFileId was null or undefined when calling createStoredFileAsset."
1017
1081
  );
1018
1082
  if (e.requestBody === null || e.requestBody === void 0)
1019
- throw new S(
1083
+ throw new p(
1020
1084
  "requestBody",
1021
1085
  "Required parameter requestParameters.requestBody was null or undefined when calling createStoredFileAsset."
1022
1086
  );
1023
- const r = {}, i = {};
1087
+ const n = {}, i = {};
1024
1088
  i["Content-Type"] = "application/json";
1025
1089
  const o = await this.request(
1026
1090
  {
@@ -1030,12 +1094,12 @@ class $t extends f {
1030
1094
  ),
1031
1095
  method: "POST",
1032
1096
  headers: i,
1033
- query: r,
1097
+ query: n,
1034
1098
  body: e.requestBody
1035
1099
  },
1036
- n
1100
+ r
1037
1101
  );
1038
- return new u(
1102
+ return new c(
1039
1103
  o,
1040
1104
  (s) => m(s)
1041
1105
  );
@@ -1044,10 +1108,10 @@ class $t extends f {
1044
1108
  * Create an asset using the stored file as data source.
1045
1109
  * Create a file storage asset.
1046
1110
  */
1047
- async createStoredFileAsset(e, n) {
1111
+ async createStoredFileAsset(e, r) {
1048
1112
  return await (await this.createStoredFileAssetRaw(
1049
1113
  e,
1050
- n
1114
+ r
1051
1115
  )).value();
1052
1116
  }
1053
1117
  /**
@@ -1055,16 +1119,16 @@ class $t extends f {
1055
1119
  * Get all stored files.
1056
1120
  */
1057
1121
  async listStoredFilesRaw(e) {
1058
- const n = {}, r = {}, i = await this.request(
1122
+ const r = {}, n = {}, i = await this.request(
1059
1123
  {
1060
1124
  path: "/wrapper/ee/file-storage/stored-files",
1061
1125
  method: "GET",
1062
- headers: r,
1063
- query: n
1126
+ headers: n,
1127
+ query: r
1064
1128
  },
1065
1129
  e
1066
1130
  );
1067
- return new u(
1131
+ return new c(
1068
1132
  i,
1069
1133
  (o) => o.map(m)
1070
1134
  );
@@ -1076,83 +1140,72 @@ class $t extends f {
1076
1140
  async listStoredFiles(e) {
1077
1141
  return await (await this.listStoredFilesRaw(e)).value();
1078
1142
  }
1143
+ }
1144
+ class _t extends u {
1079
1145
  /**
1080
- * Upload a file to the file storage. <br> On a successful upload to the file storage a StoredFile object is returned. <br> The assetProperties remain empty and are only added upon a asset create request.
1081
- * Upload a file.
1146
+ * Collect all data for Contract Agreement Page
1082
1147
  */
1083
- async uploadStoredFileRaw(e, n) {
1084
- const r = {}, i = {}, s = L([
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(
1148
+ async contractAgreementEndpointRaw(e) {
1149
+ const r = {}, n = {}, i = await this.request(
1090
1150
  {
1091
- path: "/wrapper/ee/file-storage/stored-files",
1092
- method: "POST",
1093
- headers: i,
1094
- query: r,
1095
- body: c
1151
+ path: "/wrapper/ui/pages/contract-agreement-page",
1152
+ method: "GET",
1153
+ headers: n,
1154
+ query: r
1096
1155
  },
1097
- n
1156
+ e
1098
1157
  );
1099
- return new u(
1100
- g,
1101
- (F) => m(F)
1158
+ return new c(
1159
+ i,
1160
+ (o) => bt(o)
1102
1161
  );
1103
1162
  }
1104
1163
  /**
1105
- * Upload a file to the file storage. <br> On a successful upload to the file storage a StoredFile object is returned. <br> The assetProperties remain empty and are only added upon a asset create request.
1106
- * Upload a file.
1164
+ * Collect all data for Contract Agreement Page
1107
1165
  */
1108
- async uploadStoredFile(e = {}, n) {
1109
- return await (await this.uploadStoredFileRaw(
1110
- e,
1111
- n
1112
- )).value();
1166
+ async contractAgreementEndpoint(e) {
1167
+ return await (await this.contractAgreementEndpointRaw(e)).value();
1113
1168
  }
1114
- }
1115
- class zt extends f {
1116
1169
  /**
1117
- * Collect all data for Contract Agreement Page
1118
1170
  */
1119
- async contractAgreementEndpointRaw(e) {
1120
- const n = {}, r = {}, i = await this.request(
1171
+ async transferHistoryPageEndpointRaw(e) {
1172
+ const r = {}, n = {}, i = await this.request(
1121
1173
  {
1122
- path: "/wrapper/ui/pages/contract-agreement-page",
1174
+ path: "/wrapper/ui/pages/transfer-history-page",
1123
1175
  method: "GET",
1124
- headers: r,
1125
- query: n
1176
+ headers: n,
1177
+ query: r
1126
1178
  },
1127
1179
  e
1128
1180
  );
1129
- return new u(
1181
+ return new c(
1130
1182
  i,
1131
- (o) => qt(o)
1183
+ (o) => Kt(o)
1132
1184
  );
1133
1185
  }
1134
1186
  /**
1135
- * Collect all data for Contract Agreement Page
1136
1187
  */
1137
- async contractAgreementEndpoint(e) {
1138
- return await (await this.contractAgreementEndpointRaw(e)).value();
1188
+ async transferHistoryPageEndpoint(e) {
1189
+ return await (await this.transferHistoryPageEndpointRaw(
1190
+ e
1191
+ )).value();
1139
1192
  }
1140
1193
  }
1141
- class Gt extends f {
1194
+ class Wt extends u {
1142
1195
  /**
1143
1196
  * List available functions in policies, prohibitions and obligations.
1144
1197
  */
1145
1198
  async getSupportedFunctionsRaw(e) {
1146
- const n = {}, r = {}, i = await this.request(
1199
+ const r = {}, n = {}, i = await this.request(
1147
1200
  {
1148
1201
  path: "/wrapper/use-case-api/supported-policy-functions",
1149
1202
  method: "GET",
1150
- headers: r,
1151
- query: n
1203
+ headers: n,
1204
+ query: r
1152
1205
  },
1153
1206
  e
1154
1207
  );
1155
- return new u(i);
1208
+ return new c(i);
1156
1209
  }
1157
1210
  /**
1158
1211
  * List available functions in policies, prohibitions and obligations.
@@ -1164,18 +1217,18 @@ class Gt extends f {
1164
1217
  * Basic KPIs about the running EDC Connector.
1165
1218
  */
1166
1219
  async kpiEndpointRaw(e) {
1167
- const n = {}, r = {}, i = await this.request(
1220
+ const r = {}, n = {}, i = await this.request(
1168
1221
  {
1169
1222
  path: "/wrapper/use-case-api/kpis",
1170
1223
  method: "GET",
1171
- headers: r,
1172
- query: n
1224
+ headers: n,
1225
+ query: r
1173
1226
  },
1174
1227
  e
1175
1228
  );
1176
- return new u(
1229
+ return new c(
1177
1230
  i,
1178
- (o) => Qt(o)
1231
+ (o) => Bt(o)
1179
1232
  );
1180
1233
  }
1181
1234
  /**
@@ -1185,8 +1238,8 @@ class Gt extends f {
1185
1238
  return await (await this.kpiEndpointRaw(e)).value();
1186
1239
  }
1187
1240
  }
1188
- function Qe(t) {
1189
- const e = new O({
1241
+ function _e(t) {
1242
+ const e = new S({
1190
1243
  basePath: t.managementApiUrl,
1191
1244
  headers: {
1192
1245
  "x-api-key": t.managementApiKey ?? "ApiKeyDefaultValue"
@@ -1195,31 +1248,32 @@ function Qe(t) {
1195
1248
  ...t.configOverrides
1196
1249
  });
1197
1250
  return {
1198
- uiApi: new zt(e),
1199
- useCaseApi: new Gt(e),
1200
- enterpriseEditionApi: new $t(e)
1251
+ uiApi: new _t(e),
1252
+ useCaseApi: new Wt(e),
1253
+ enterpriseEditionApi: new zt(e),
1254
+ brokerServerApi: new kt(e)
1201
1255
  };
1202
1256
  }
1203
1257
  export {
1204
- C as AssetDtoFromJSON,
1205
- U as AssetDtoFromJSONTyped,
1206
- P as AssetDtoToJSON,
1207
- J as BASE_PATH,
1208
- f as BaseAPI,
1209
- Xt as BlobApiResponse,
1210
- Ve as BrokerServerApi,
1211
- _t as COLLECTION_FORMATS,
1212
- ne as CatalogPageQueryFromJSON,
1213
- z as CatalogPageQueryFromJSONTyped,
1214
- te as CatalogPageQuerySortingEnum,
1215
- G as CatalogPageQueryToJSON,
1258
+ q as AssetDtoFromJSON,
1259
+ L as AssetDtoFromJSONTyped,
1260
+ U as AssetDtoToJSON,
1261
+ N as BASE_PATH,
1262
+ u as BaseAPI,
1263
+ te as BlobApiResponse,
1264
+ kt as BrokerServerApi,
1265
+ Yt as COLLECTION_FORMATS,
1266
+ se as CatalogPageQueryFromJSON,
1267
+ K as CatalogPageQueryFromJSONTyped,
1268
+ oe as CatalogPageQuerySortingEnum,
1269
+ $ as CatalogPageQueryToJSON,
1216
1270
  ft as CatalogPageResultFromJSON,
1217
1271
  lt as CatalogPageResultFromJSONTyped,
1218
- me as CatalogPageResultToJSON,
1272
+ he as CatalogPageResultToJSON,
1219
1273
  k as CatalogPageSortingItemFromJSON,
1220
- _ as CatalogPageSortingItemFromJSONTyped,
1221
- re as CatalogPageSortingItemSortingEnum,
1222
- H as CatalogPageSortingItemToJSON,
1274
+ z as CatalogPageSortingItemFromJSONTyped,
1275
+ ce as CatalogPageSortingItemSortingEnum,
1276
+ _ as CatalogPageSortingItemToJSON,
1223
1277
  Z as CnfFilterAttributeFromJSON,
1224
1278
  v as CnfFilterAttributeFromJSONTyped,
1225
1279
  j as CnfFilterAttributeToJSON,
@@ -1228,107 +1282,116 @@ export {
1228
1282
  W as CnfFilterItemFromJSON,
1229
1283
  X as CnfFilterItemFromJSONTyped,
1230
1284
  Y as CnfFilterItemToJSON,
1231
- nt as CnfFilterToJSON,
1285
+ rt as CnfFilterToJSON,
1232
1286
  B as CnfFilterValueAttributeFromJSON,
1233
1287
  V as CnfFilterValueAttributeFromJSONTyped,
1234
1288
  Q as CnfFilterValueAttributeToJSON,
1235
1289
  x as CnfFilterValueFromJSON,
1236
- K as CnfFilterValueFromJSONTyped,
1237
- $ as CnfFilterValueToJSON,
1238
- O as Configuration,
1290
+ G as CnfFilterValueFromJSONTyped,
1291
+ H as CnfFilterValueToJSON,
1292
+ S as Configuration,
1239
1293
  gt as ConnectorLimitsFromJSON,
1240
- mt as ConnectorLimitsFromJSONTyped,
1241
- Se as ConnectorLimitsToJSON,
1242
- pt as ConnectorListEntryFromJSON,
1294
+ pt as ConnectorLimitsFromJSONTyped,
1295
+ Ce as ConnectorLimitsToJSON,
1296
+ mt as ConnectorListEntryFromJSON,
1243
1297
  St as ConnectorListEntryFromJSONTyped,
1244
- Oe as ConnectorListEntryOnlineStatusEnum,
1298
+ Pe as ConnectorListEntryOnlineStatusEnum,
1245
1299
  Ot as ConnectorListEntryToJSON,
1246
- Pe as ConnectorPageQueryFromJSON,
1300
+ De as ConnectorPageQueryFromJSON,
1247
1301
  yt as ConnectorPageQueryFromJSONTyped,
1248
- he as ConnectorPageQuerySortingEnum,
1302
+ we as ConnectorPageQuerySortingEnum,
1249
1303
  ht as ConnectorPageQueryToJSON,
1250
1304
  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,
1305
+ wt as ConnectorPageResultFromJSONTyped,
1306
+ Re as ConnectorPageResultToJSON,
1307
+ At as ConnectorPageSortingItemFromJSON,
1308
+ Ct as ConnectorPageSortingItemFromJSONTyped,
1309
+ Fe as ConnectorPageSortingItemSortingEnum,
1310
+ Pt as ConnectorPageSortingItemToJSON,
1311
+ qe as ContractAgreementCardDirectionEnum,
1258
1312
  Et as ContractAgreementCardFromJSON,
1259
- bt as ContractAgreementCardFromJSONTyped,
1260
- Mt as ContractAgreementCardToJSON,
1261
- qt as ContractAgreementPageFromJSON,
1262
- Lt as ContractAgreementPageFromJSONTyped,
1263
- be as ContractAgreementPageToJSON,
1313
+ Rt as ContractAgreementCardFromJSONTyped,
1314
+ Jt as ContractAgreementCardToJSON,
1315
+ bt as ContractAgreementPageFromJSON,
1316
+ Mt as ContractAgreementPageFromJSONTyped,
1317
+ Be as ContractAgreementPageToJSON,
1264
1318
  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,
1274
- R as DefaultConfig,
1275
- $t as EnterpriseEditionApi,
1276
- q as FetchError,
1277
- u as JSONApiResponse,
1278
- Qt as KpiResultFromJSON,
1279
- xt as KpiResultFromJSONTyped,
1280
- Le as KpiResultToJSON,
1281
- A as PaginationMetadataFromJSON,
1282
- dt as PaginationMetadataFromJSONTyped,
1283
- T as PaginationMetadataToJSON,
1284
- w as PolicyDtoFromJSON,
1285
- at as PolicyDtoFromJSONTyped,
1286
- I as PolicyDtoToJSON,
1287
- S as RequiredError,
1288
- M as ResponseError,
1319
+ Ft as ContractAgreementTransferProcessFromJSONTyped,
1320
+ Nt as ContractAgreementTransferProcessToJSON,
1321
+ me as DataOfferListEntryConnectorOnlineStatusEnum,
1322
+ it as DataOfferListEntryContractOfferFromJSON,
1323
+ ot as DataOfferListEntryContractOfferFromJSONTyped,
1324
+ at as DataOfferListEntryContractOfferToJSON,
1325
+ st as DataOfferListEntryFromJSON,
1326
+ ct as DataOfferListEntryFromJSONTyped,
1327
+ dt as DataOfferListEntryToJSON,
1328
+ E as DefaultConfig,
1329
+ zt as EnterpriseEditionApi,
1330
+ M as FetchError,
1331
+ c as JSONApiResponse,
1332
+ Bt as KpiResultFromJSON,
1333
+ Vt as KpiResultFromJSONTyped,
1334
+ xe as KpiResultToJSON,
1335
+ C as PaginationMetadataFromJSON,
1336
+ ut as PaginationMetadataFromJSONTyped,
1337
+ P as PaginationMetadataToJSON,
1338
+ h as PolicyDtoFromJSON,
1339
+ nt as PolicyDtoFromJSONTyped,
1340
+ A as PolicyDtoToJSON,
1341
+ p as RequiredError,
1342
+ b as ResponseError,
1289
1343
  m as StoredFileFromJSON,
1290
- Kt as StoredFileFromJSONTyped,
1291
- Be as StoredFileToJSON,
1292
- Yt as TextApiResponse,
1293
- Tt as TransferProcessStateFromJSON,
1294
- Ft as TransferProcessStateFromJSONTyped,
1295
- Fe as TransferProcessStateSimplifiedStateEnum,
1296
- Nt as TransferProcessStateToJSON,
1297
- Ut as TransferProcessStatesDtoFromJSON,
1298
- Bt as TransferProcessStatesDtoFromJSONTyped,
1299
- Vt as TransferProcessStatesDtoToJSON,
1300
- zt as UIApi,
1301
- Gt as UseCaseApi,
1302
- Wt as VoidApiResponse,
1303
- Qe as buildEdcClient,
1304
- L as canConsumeForm,
1344
+ Qt as StoredFileFromJSONTyped,
1345
+ He as StoredFileToJSON,
1346
+ ee as TextApiResponse,
1347
+ Ke as TransferHistoryEntryDirectionEnum,
1348
+ xt as TransferHistoryEntryFromJSON,
1349
+ Gt as TransferHistoryEntryFromJSONTyped,
1350
+ Ht as TransferHistoryEntryToJSON,
1351
+ Kt as TransferHistoryPageFromJSON,
1352
+ $t as TransferHistoryPageFromJSONTyped,
1353
+ ze as TransferHistoryPageToJSON,
1354
+ I as TransferProcessStateFromJSON,
1355
+ Tt as TransferProcessStateFromJSONTyped,
1356
+ Je as TransferProcessStateSimplifiedStateEnum,
1357
+ w as TransferProcessStateToJSON,
1358
+ qt as TransferProcessStatesDtoFromJSON,
1359
+ Lt as TransferProcessStatesDtoFromJSONTyped,
1360
+ Ut as TransferProcessStatesDtoToJSON,
1361
+ _t as UIApi,
1362
+ Wt as UseCaseApi,
1363
+ jt as VoidApiResponse,
1364
+ _e as buildEdcClient,
1365
+ vt as canConsumeForm,
1305
1366
  a as exists,
1306
- Zt as instanceOfAssetDto,
1307
- ee as instanceOfCatalogPageQuery,
1308
- ge as instanceOfCatalogPageResult,
1309
- ie as instanceOfCatalogPageSortingItem,
1310
- se as instanceOfCnfFilter,
1311
- ae as instanceOfCnfFilterAttribute,
1312
- oe as instanceOfCnfFilterItem,
1313
- jt as instanceOfCnfFilterValue,
1314
- vt as instanceOfCnfFilterValueAttribute,
1315
- pe as instanceOfConnectorLimits,
1316
- ye as instanceOfConnectorListEntry,
1317
- Ce as instanceOfConnectorPageQuery,
1318
- Ae as instanceOfConnectorPageResult,
1319
- Ie as instanceOfConnectorPageSortingItem,
1320
- Re as instanceOfContractAgreementCard,
1321
- Ee as instanceOfContractAgreementPage,
1322
- De as instanceOfContractAgreementTransferProcess,
1323
- ue as instanceOfContractOfferConnectorInfo,
1324
- fe as instanceOfContractOfferDto,
1325
- qe as instanceOfKpiResult,
1326
- le as instanceOfPaginationMetadata,
1327
- de as instanceOfPolicyDto,
1328
- Ue as instanceOfStoredFile,
1329
- Ne as instanceOfTransferProcessState,
1330
- Me as instanceOfTransferProcessStatesDto,
1331
- Ht as mapValues,
1332
- y as querystring
1367
+ re as instanceOfAssetDto,
1368
+ ae as instanceOfCatalogPageQuery,
1369
+ ye as instanceOfCatalogPageResult,
1370
+ de as instanceOfCatalogPageSortingItem,
1371
+ le as instanceOfCnfFilter,
1372
+ fe as instanceOfCnfFilterAttribute,
1373
+ ue as instanceOfCnfFilterItem,
1374
+ ie as instanceOfCnfFilterValue,
1375
+ ne as instanceOfCnfFilterValueAttribute,
1376
+ Ae as instanceOfConnectorLimits,
1377
+ Ie as instanceOfConnectorListEntry,
1378
+ Te as instanceOfConnectorPageQuery,
1379
+ Ee as instanceOfConnectorPageResult,
1380
+ Ne as instanceOfConnectorPageSortingItem,
1381
+ Le as instanceOfContractAgreementCard,
1382
+ Ue as instanceOfContractAgreementPage,
1383
+ Me as instanceOfContractAgreementTransferProcess,
1384
+ Se as instanceOfDataOfferListEntry,
1385
+ pe as instanceOfDataOfferListEntryContractOffer,
1386
+ Qe as instanceOfKpiResult,
1387
+ Oe as instanceOfPaginationMetadata,
1388
+ ge as instanceOfPolicyDto,
1389
+ Ge as instanceOfStoredFile,
1390
+ $e as instanceOfTransferHistoryEntry,
1391
+ ke as instanceOfTransferHistoryPage,
1392
+ be as instanceOfTransferProcessState,
1393
+ Ve as instanceOfTransferProcessStatesDto,
1394
+ Zt as mapValues,
1395
+ O as querystring
1333
1396
  };
1334
1397
  //# sourceMappingURL=sovity-edc-client.js.map