@sovity.de/edc-client 3.3.0 → 4.0.1

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.
Files changed (40) hide show
  1. package/dist/EdcClient.d.ts +1 -2
  2. package/dist/generated/apis/UIApi.d.ts +12 -1
  3. package/dist/generated/apis/UseCaseApi.d.ts +12 -1
  4. package/dist/generated/apis/index.d.ts +0 -1
  5. package/dist/generated/models/AssetEntryDto.d.ts +28 -0
  6. package/dist/generated/models/AssetRequestDto.d.ts +28 -0
  7. package/dist/generated/models/AtomicConstraintDto.d.ts +45 -0
  8. package/dist/generated/models/ContractAgreementTransferRequest.d.ts +41 -0
  9. package/dist/generated/models/ContractAgreementTransferRequestParams.d.ts +36 -0
  10. package/dist/generated/models/ContractDefinitionRequestDto.d.ts +45 -0
  11. package/dist/generated/models/CreateOfferingDto.d.ts +35 -0
  12. package/dist/generated/models/CriterionDto.d.ts +32 -0
  13. package/dist/generated/models/DataAddressDto.d.ts +22 -0
  14. package/dist/generated/models/ExpressionDto.d.ts +61 -0
  15. package/dist/generated/models/IdResponseDto.d.ts +26 -0
  16. package/dist/generated/models/PermissionDto.d.ts +21 -0
  17. package/dist/generated/models/PolicyDefinitionRequestDto.d.ts +27 -0
  18. package/dist/generated/models/PolicyDto.d.ts +9 -2
  19. package/dist/generated/models/index.d.ts +13 -15
  20. package/dist/sovity-edc-client.js +537 -645
  21. package/dist/sovity-edc-client.js.map +1 -1
  22. package/dist/sovity-edc-client.umd.cjs +1 -1
  23. package/dist/sovity-edc-client.umd.cjs.map +1 -1
  24. package/package.json +1 -1
  25. package/dist/generated/apis/BrokerServerApi.d.ts +0 -40
  26. package/dist/generated/models/CatalogPageQuery.d.ts +0 -48
  27. package/dist/generated/models/CatalogPageResult.d.ts +0 -42
  28. package/dist/generated/models/CatalogPageSortingItem.d.ts +0 -35
  29. package/dist/generated/models/CnfFilter.d.ts +0 -21
  30. package/dist/generated/models/CnfFilterAttribute.d.ts +0 -33
  31. package/dist/generated/models/CnfFilterItem.d.ts +0 -26
  32. package/dist/generated/models/CnfFilterValue.d.ts +0 -21
  33. package/dist/generated/models/CnfFilterValueAttribute.d.ts +0 -26
  34. package/dist/generated/models/ConnectorListEntry.d.ts +0 -64
  35. package/dist/generated/models/ConnectorPageQuery.d.ts +0 -40
  36. package/dist/generated/models/ConnectorPageResult.d.ts +0 -35
  37. package/dist/generated/models/ConnectorPageSortingItem.d.ts +0 -34
  38. package/dist/generated/models/DataOfferListEntry.d.ts +0 -73
  39. package/dist/generated/models/DataOfferListEntryContractOffer.d.ts +0 -39
  40. package/dist/generated/models/PaginationMetadata.d.ts +0 -38
@@ -1,7 +1,7 @@
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(/\/+$/, "");
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
5
  class S {
6
6
  constructor(e = {}) {
7
7
  this.configuration = e;
@@ -10,7 +10,7 @@ class S {
10
10
  this.configuration = e;
11
11
  }
12
12
  get basePath() {
13
- return this.configuration.basePath != null ? this.configuration.basePath : N;
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 S {
19
19
  return this.configuration.middleware || [];
20
20
  }
21
21
  get queryParamsStringify() {
22
- return this.configuration.queryParamsStringify || O;
22
+ return this.configuration.queryParamsStringify || h;
23
23
  }
24
24
  get username() {
25
25
  return this.configuration.username;
@@ -44,8 +44,8 @@ class S {
44
44
  return this.configuration.credentials;
45
45
  }
46
46
  }
47
- const E = new S(), l = class {
48
- constructor(e = E) {
47
+ const R = new S(), l = class {
48
+ constructor(e = R) {
49
49
  d(this, "middleware");
50
50
  d(this, "fetchApi", async (e, r) => {
51
51
  let n = { url: e, init: r };
@@ -61,8 +61,8 @@ const E = new S(), l = class {
61
61
  n.init
62
62
  );
63
63
  } catch (o) {
64
- for (const s of this.middleware)
65
- s.onError && (i = await s.onError({
64
+ for (const a of this.middleware)
65
+ a.onError && (i = await a.onError({
66
66
  fetch: this.fetchApi,
67
67
  url: n.url,
68
68
  init: n.init,
@@ -70,7 +70,7 @@ const E = new S(), l = class {
70
70
  response: i ? i.clone() : void 0
71
71
  }) || i);
72
72
  if (i === void 0)
73
- throw o instanceof Error ? new M(
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;
@@ -118,7 +118,7 @@ const E = new S(), l = class {
118
118
  ), o = await this.fetchApi(n, i);
119
119
  if (o && o.status >= 200 && o.status < 300)
120
120
  return o;
121
- throw new b(o, "Response returned an error code");
121
+ throw new q(o, "Response returned an error code");
122
122
  }
123
123
  async createFetchParams(e, r) {
124
124
  let n = this.configuration.basePath + e.path;
@@ -131,22 +131,22 @@ const E = new S(), l = class {
131
131
  Object.keys(i).forEach(
132
132
  (g) => i[g] === void 0 ? delete i[g] : {}
133
133
  );
134
- const o = typeof r == "function" ? r : async () => r, s = {
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
- }, f = {
140
- ...s,
139
+ }, u = {
140
+ ...a,
141
141
  ...await o({
142
- init: s,
142
+ init: a,
143
143
  context: e
144
144
  })
145
- }, T = {
146
- ...f,
147
- body: J(f.body) || f.body instanceof URLSearchParams || R(f.body) ? f.body : JSON.stringify(f.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: n, init: T };
149
+ return { url: n, init: I };
150
150
  }
151
151
  /**
152
152
  * Create a shallow clone of `this` by constructing a new instance
@@ -157,52 +157,52 @@ const E = new S(), l = class {
157
157
  return r.middleware = this.middleware.slice(), r;
158
158
  }
159
159
  };
160
- let u = l;
161
- d(u, "jsonRegex", new RegExp(
160
+ let f = l;
161
+ d(f, "jsonRegex", new RegExp(
162
162
  "^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$",
163
163
  "i"
164
164
  ));
165
- function R(t) {
165
+ function F(t) {
166
166
  return typeof Blob < "u" && t instanceof Blob;
167
167
  }
168
168
  function J(t) {
169
169
  return typeof FormData < "u" && t instanceof FormData;
170
170
  }
171
- class b extends Error {
171
+ class q extends Error {
172
172
  constructor(r, n) {
173
173
  super(n);
174
174
  d(this, "name", "ResponseError");
175
175
  this.response = r;
176
176
  }
177
177
  }
178
- class M extends Error {
178
+ class x extends Error {
179
179
  constructor(r, n) {
180
180
  super(n);
181
181
  d(this, "name", "FetchError");
182
182
  this.cause = r;
183
183
  }
184
184
  }
185
- class p extends Error {
185
+ class y extends Error {
186
186
  constructor(r, n) {
187
187
  super(n);
188
188
  d(this, "name", "RequiredError");
189
189
  this.field = r;
190
190
  }
191
191
  }
192
- const Yt = {
192
+ const zt = {
193
193
  csv: ",",
194
194
  ssv: " ",
195
195
  tsv: " ",
196
196
  pipes: "|"
197
197
  };
198
- function a(t, e) {
198
+ function s(t, e) {
199
199
  const r = t[e];
200
200
  return r != null;
201
201
  }
202
- function O(t, e = "") {
203
- return Object.keys(t).map((r) => y(r, t[r], e)).filter((r) => r.length > 0).join("&");
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 y(t, e, r = "") {
205
+ function P(t, e, r = "") {
206
206
  const n = r + (r.length ? `[${t}]` : t);
207
207
  if (e instanceof Array) {
208
208
  const i = e.map((o) => encodeURIComponent(String(o))).join(`&${encodeURIComponent(n)}=`);
@@ -210,21 +210,21 @@ function y(t, e, r = "") {
210
210
  }
211
211
  if (e instanceof Set) {
212
212
  const i = Array.from(e);
213
- return y(t, i, r);
213
+ return P(t, i, r);
214
214
  }
215
215
  return e instanceof Date ? `${encodeURIComponent(n)}=${encodeURIComponent(
216
216
  e.toISOString()
217
- )}` : e instanceof Object ? O(e, n) : `${encodeURIComponent(n)}=${encodeURIComponent(
217
+ )}` : e instanceof Object ? h(e, n) : `${encodeURIComponent(n)}=${encodeURIComponent(
218
218
  String(e)
219
219
  )}`;
220
220
  }
221
- function Zt(t, e) {
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 vt(t) {
227
+ function _t(t) {
228
228
  for (const e of t)
229
229
  if (e.contentType === "multipart/form-data")
230
230
  return !0;
@@ -238,14 +238,14 @@ class c {
238
238
  return this.transformer(await this.raw.json());
239
239
  }
240
240
  }
241
- class jt {
241
+ class b {
242
242
  constructor(e) {
243
243
  this.raw = e;
244
244
  }
245
245
  async value() {
246
246
  }
247
247
  }
248
- class te {
248
+ class Xt {
249
249
  constructor(e) {
250
250
  this.raw = e;
251
251
  }
@@ -253,7 +253,7 @@ class te {
253
253
  return await this.raw.blob();
254
254
  }
255
255
  }
256
- class ee {
256
+ class Yt {
257
257
  constructor(e) {
258
258
  this.raw = e;
259
259
  }
@@ -261,21 +261,21 @@ class ee {
261
261
  return await this.raw.text();
262
262
  }
263
263
  }
264
- function re(t) {
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 q(t) {
269
- return L(t);
268
+ function M(t) {
269
+ return U(t);
270
270
  }
271
- function L(t, e) {
271
+ function U(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 U(t) {
278
+ function L(t) {
279
279
  if (t !== void 0)
280
280
  return t === null ? null : {
281
281
  assetId: t.assetId,
@@ -283,615 +283,528 @@ function U(t) {
283
283
  properties: t.properties
284
284
  };
285
285
  }
286
- function ne(t) {
286
+ function Zt(t) {
287
287
  let e = !0;
288
- return e = e && "id" in t, e = e && "selectedIds" in t, e;
288
+ return e = e && "properties" in t, e;
289
289
  }
290
- function B(t) {
291
- return V(t);
290
+ function G(t) {
291
+ return H(t);
292
292
  }
293
- function V(t, e) {
293
+ function H(t, e) {
294
294
  return t == null ? t : {
295
- id: t.id,
296
- selectedIds: t.selectedIds
295
+ id: s(t, "id") ? t.id : void 0,
296
+ properties: t.properties
297
297
  };
298
298
  }
299
- function Q(t) {
299
+ function K(t) {
300
300
  if (t !== void 0)
301
301
  return t === null ? null : {
302
302
  id: t.id,
303
- selectedIds: t.selectedIds
303
+ properties: t.properties
304
304
  };
305
305
  }
306
- function ie(t) {
306
+ function vt(t) {
307
307
  let e = !0;
308
- return e = e && "selectedAttributeValues" in t, e;
308
+ return e = e && "properties" in t, e;
309
309
  }
310
- function x(t) {
311
- return G(t);
310
+ function k(t) {
311
+ return $(t);
312
312
  }
313
- function G(t, e) {
313
+ function $(t, e) {
314
314
  return t == null ? t : {
315
- selectedAttributeValues: t.selectedAttributeValues.map(B)
315
+ properties: t.properties
316
316
  };
317
317
  }
318
- function H(t) {
318
+ function B(t) {
319
319
  if (t !== void 0)
320
320
  return t === null ? null : {
321
- selectedAttributeValues: t.selectedAttributeValues.map(Q)
321
+ properties: t.properties
322
322
  };
323
323
  }
324
- const oe = {
325
- MostRecent: "MOST_RECENT",
326
- Title: "TITLE",
327
- Originator: "ORIGINATOR"
328
- };
329
- function ae(t) {
330
- return !0;
324
+ function jt(t) {
325
+ let e = !0;
326
+ return e = e && "asset" in t, e = e && "dataAddress" in t, e;
331
327
  }
332
- function se(t) {
333
- return K(t);
328
+ function V(t) {
329
+ return z(t);
334
330
  }
335
- function K(t, e) {
331
+ function z(t, e) {
336
332
  return t == null ? t : {
337
- filter: a(t, "filter") ? x(t.filter) : void 0,
338
- searchQuery: a(t, "searchQuery") ? t.searchQuery : void 0,
339
- sorting: a(t, "sorting") ? t.sorting : void 0,
340
- pageOneBased: a(t, "pageOneBased") ? t.pageOneBased : void 0
333
+ asset: G(t.asset),
334
+ dataAddress: k(t.dataAddress)
341
335
  };
342
336
  }
343
- function $(t) {
337
+ function Q(t) {
344
338
  if (t !== void 0)
345
339
  return t === null ? null : {
346
- filter: H(t.filter),
347
- searchQuery: t.searchQuery,
348
- sorting: t.sorting,
349
- pageOneBased: t.pageOneBased
340
+ asset: K(t.asset),
341
+ dataAddress: B(t.dataAddress)
350
342
  };
351
343
  }
352
- const ce = {
353
- MostRecent: "MOST_RECENT",
354
- Title: "TITLE",
355
- Originator: "ORIGINATOR"
344
+ const te = {
345
+ Eq: "EQ",
346
+ Neq: "NEQ",
347
+ Gt: "GT",
348
+ Geq: "GEQ",
349
+ Lt: "LT",
350
+ Leq: "LEQ",
351
+ In: "IN"
356
352
  };
357
- function de(t) {
353
+ function ee(t) {
358
354
  let e = !0;
359
- return e = e && "sorting" in t, e = e && "title" in t, e;
355
+ return e = e && "leftExpression" in t, e = e && "operator" in t, e = e && "rightExpression" in t, e;
360
356
  }
361
- function k(t) {
362
- return z(t);
357
+ function _(t) {
358
+ return X(t);
363
359
  }
364
- function z(t, e) {
360
+ function X(t, e) {
365
361
  return t == null ? t : {
366
- sorting: t.sorting,
367
- title: t.title
362
+ leftExpression: t.leftExpression,
363
+ operator: t.operator,
364
+ rightExpression: t.rightExpression
368
365
  };
369
366
  }
370
- function _(t) {
367
+ function Y(t) {
371
368
  if (t !== void 0)
372
369
  return t === null ? null : {
373
- sorting: t.sorting,
374
- title: t.title
370
+ leftExpression: t.leftExpression,
371
+ operator: t.operator,
372
+ rightExpression: t.rightExpression
375
373
  };
376
374
  }
377
- function ue(t) {
375
+ function re(t) {
378
376
  let e = !0;
379
- return e = e && "id" in t, e = e && "title" in t, e;
377
+ return e = e && "numActiveConsumingContractAgreements" in t, e;
380
378
  }
381
379
  function W(t) {
382
- return X(t);
380
+ return Z(t);
383
381
  }
384
- function X(t, e) {
382
+ function Z(t, e) {
385
383
  return t == null ? t : {
386
- id: t.id,
387
- title: t.title
384
+ numActiveConsumingContractAgreements: t.numActiveConsumingContractAgreements,
385
+ maxActiveConsumingContractAgreements: s(
386
+ t,
387
+ "maxActiveConsumingContractAgreements"
388
+ ) ? t.maxActiveConsumingContractAgreements : void 0
388
389
  };
389
390
  }
390
- function Y(t) {
391
+ function ne(t) {
391
392
  if (t !== void 0)
392
393
  return t === null ? null : {
393
- id: t.id,
394
- title: t.title
394
+ numActiveConsumingContractAgreements: t.numActiveConsumingContractAgreements,
395
+ maxActiveConsumingContractAgreements: t.maxActiveConsumingContractAgreements
395
396
  };
396
397
  }
397
- function fe(t) {
398
+ const ie = {
399
+ Running: "RUNNING",
400
+ Ok: "OK",
401
+ Error: "ERROR"
402
+ };
403
+ function oe(t) {
398
404
  let e = !0;
399
- return e = e && "id" in t, e = e && "title" in t, e = e && "values" in t, e;
405
+ return e = e && "name" in t, e = e && "code" in t, e = e && "simplifiedState" in t, e;
400
406
  }
401
- function Z(t) {
407
+ function A(t) {
402
408
  return v(t);
403
409
  }
404
410
  function v(t, e) {
405
411
  return t == null ? t : {
406
- id: t.id,
407
- title: t.title,
408
- values: t.values.map(W)
412
+ name: t.name,
413
+ code: t.code,
414
+ simplifiedState: t.simplifiedState
409
415
  };
410
416
  }
411
- function j(t) {
417
+ function O(t) {
412
418
  if (t !== void 0)
413
419
  return t === null ? null : {
414
- id: t.id,
415
- title: t.title,
416
- values: t.values.map(Y)
420
+ name: t.name,
421
+ code: t.code,
422
+ simplifiedState: t.simplifiedState
417
423
  };
418
424
  }
419
- function le(t) {
425
+ function se(t) {
420
426
  let e = !0;
421
- return e = e && "fields" in t, e;
427
+ return e = e && "transferProcessId" in t, e = e && "lastUpdatedDate" in t, e = e && "state" in t, e;
422
428
  }
423
- function tt(t) {
424
- return et(t);
429
+ function j(t) {
430
+ return tt(t);
425
431
  }
426
- function et(t, e) {
432
+ function tt(t, e) {
427
433
  return t == null ? t : {
428
- fields: t.fields.map(Z)
434
+ transferProcessId: t.transferProcessId,
435
+ lastUpdatedDate: new Date(t.lastUpdatedDate),
436
+ state: A(t.state),
437
+ errorMessage: s(t, "errorMessage") ? t.errorMessage : void 0
429
438
  };
430
439
  }
431
- function rt(t) {
440
+ function et(t) {
432
441
  if (t !== void 0)
433
442
  return t === null ? null : {
434
- fields: t.fields.map(j)
443
+ transferProcessId: t.transferProcessId,
444
+ lastUpdatedDate: t.lastUpdatedDate.toISOString(),
445
+ state: O(t.state),
446
+ errorMessage: t.errorMessage
435
447
  };
436
448
  }
437
- function ge(t) {
438
- let e = !0;
439
- return e = e && "legacyPolicy" in t, e;
449
+ const ae = {
450
+ Empty: "EMPTY",
451
+ AtomicConstraint: "ATOMIC_CONSTRAINT",
452
+ And: "AND",
453
+ Or: "OR",
454
+ Xor: "XOR"
455
+ };
456
+ function ce(t) {
457
+ return !0;
440
458
  }
441
- function h(t) {
442
- return nt(t);
459
+ function p(t) {
460
+ return rt(t);
443
461
  }
444
- function nt(t, e) {
462
+ function rt(t, e) {
445
463
  return t == null ? t : {
446
- legacyPolicy: t.legacyPolicy
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
447
469
  };
448
470
  }
449
- function A(t) {
471
+ function m(t) {
450
472
  if (t !== void 0)
451
473
  return t === null ? null : {
452
- legacyPolicy: t.legacyPolicy
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)
453
479
  };
454
480
  }
455
- function pe(t) {
481
+ function de(t) {
456
482
  let e = !0;
457
- return e = e && "contractOfferId" in t, e = e && "createdAt" in t, e = e && "updatedAt" in t, e = e && "contractPolicy" in t, e;
483
+ return e = e && "constraints" in t, e;
458
484
  }
459
- function it(t) {
460
- return ot(t);
485
+ function nt(t) {
486
+ return it(t);
461
487
  }
462
- function ot(t, e) {
488
+ function it(t, e) {
463
489
  return t == null ? t : {
464
- contractOfferId: t.contractOfferId,
465
- createdAt: new Date(t.createdAt),
466
- updatedAt: new Date(t.updatedAt),
467
- contractPolicy: h(t.contractPolicy)
490
+ constraints: p(t.constraints)
468
491
  };
469
492
  }
470
- function at(t) {
493
+ function ot(t) {
471
494
  if (t !== void 0)
472
495
  return t === null ? null : {
473
- contractOfferId: t.contractOfferId,
474
- createdAt: t.createdAt.toISOString(),
475
- updatedAt: t.updatedAt.toISOString(),
476
- contractPolicy: A(t.contractPolicy)
496
+ constraints: m(t.constraints)
477
497
  };
478
498
  }
479
- const me = {
480
- Online: "ONLINE",
481
- Offline: "OFFLINE"
482
- };
483
- function Se(t) {
484
- let e = !0;
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;
499
+ function ue(t) {
500
+ return !0;
486
501
  }
487
- function st(t) {
488
- return ct(t);
502
+ function w(t) {
503
+ return st(t);
489
504
  }
490
- function ct(t, e) {
505
+ function st(t, e) {
491
506
  return t == null ? t : {
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
- )
507
+ legacyPolicy: s(t, "legacyPolicy") ? t.legacyPolicy : void 0,
508
+ permission: s(t, "permission") ? nt(t.permission) : void 0
505
509
  };
506
510
  }
507
- function dt(t) {
511
+ function C(t) {
508
512
  if (t !== void 0)
509
513
  return t === null ? null : {
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
- )
514
+ legacyPolicy: t.legacyPolicy,
515
+ permission: ot(t.permission)
520
516
  };
521
517
  }
522
- function Oe(t) {
518
+ const fe = {
519
+ Consuming: "CONSUMING",
520
+ Providing: "PROVIDING"
521
+ };
522
+ function pe(t) {
523
523
  let e = !0;
524
- return e = e && "numTotal" in t, e = e && "numVisible" in t, e = e && "pageOneBased" in t, e = e && "pageSize" in t, 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;
525
525
  }
526
- function C(t) {
527
- return ut(t);
526
+ function at(t) {
527
+ return ct(t);
528
528
  }
529
- function ut(t, e) {
529
+ function ct(t, e) {
530
530
  return t == null ? t : {
531
- numTotal: t.numTotal,
532
- numVisible: t.numVisible,
533
- pageOneBased: t.pageOneBased,
534
- pageSize: t.pageSize
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
+ )
535
544
  };
536
545
  }
537
- function P(t) {
546
+ function dt(t) {
538
547
  if (t !== void 0)
539
548
  return t === null ? null : {
540
- numTotal: t.numTotal,
541
- numVisible: t.numVisible,
542
- pageOneBased: t.pageOneBased,
543
- pageSize: t.pageSize
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
+ )
544
562
  };
545
563
  }
546
- function ye(t) {
564
+ function me(t) {
547
565
  let e = !0;
548
- return e = e && "availableFilters" in t, e = e && "availableSortings" in t, e = e && "paginationMetadata" in t, e = e && "dataOffers" in t, e;
566
+ return e = e && "contractAgreements" in t, e;
549
567
  }
550
- function ft(t) {
551
- return lt(t);
568
+ function ut(t) {
569
+ return ft(t);
552
570
  }
553
- function lt(t, e) {
571
+ function ft(t, e) {
554
572
  return t == null ? t : {
555
- availableFilters: tt(t.availableFilters),
556
- availableSortings: t.availableSortings.map(
557
- k
558
- ),
559
- paginationMetadata: C(
560
- t.paginationMetadata
561
- ),
562
- dataOffers: t.dataOffers.map(
563
- st
573
+ contractAgreements: t.contractAgreements.map(
574
+ at
564
575
  )
565
576
  };
566
577
  }
567
- function he(t) {
578
+ function le(t) {
568
579
  if (t !== void 0)
569
580
  return t === null ? null : {
570
- availableFilters: rt(t.availableFilters),
571
- availableSortings: t.availableSortings.map(
572
- _
573
- ),
574
- paginationMetadata: P(t.paginationMetadata),
575
- dataOffers: t.dataOffers.map(
581
+ contractAgreements: t.contractAgreements.map(
576
582
  dt
577
583
  )
578
584
  };
579
585
  }
580
- function Ae(t) {
586
+ function ge(t) {
581
587
  let e = !0;
582
- return e = e && "numActiveConsumingContractAgreements" in t, e;
588
+ return e = e && "contractAgreementId" in t, e = e && "dataSinkProperties" in t, e = e && "properties" in t, e;
583
589
  }
584
- function gt(t) {
585
- return pt(t);
590
+ function pt(t) {
591
+ return mt(t);
586
592
  }
587
- function pt(t, e) {
593
+ function mt(t, e) {
588
594
  return t == null ? t : {
589
- numActiveConsumingContractAgreements: t.numActiveConsumingContractAgreements,
590
- maxActiveConsumingContractAgreements: a(
591
- t,
592
- "maxActiveConsumingContractAgreements"
593
- ) ? t.maxActiveConsumingContractAgreements : void 0
595
+ contractAgreementId: t.contractAgreementId,
596
+ dataSinkProperties: t.dataSinkProperties,
597
+ properties: t.properties
594
598
  };
595
599
  }
596
- function Ce(t) {
600
+ function lt(t) {
597
601
  if (t !== void 0)
598
602
  return t === null ? null : {
599
- numActiveConsumingContractAgreements: t.numActiveConsumingContractAgreements,
600
- maxActiveConsumingContractAgreements: t.maxActiveConsumingContractAgreements
603
+ contractAgreementId: t.contractAgreementId,
604
+ dataSinkProperties: t.dataSinkProperties,
605
+ properties: t.properties
601
606
  };
602
607
  }
603
- const Pe = {
604
- Online: "ONLINE",
605
- Offline: "OFFLINE"
608
+ const ye = {
609
+ ParamsOnly: "PARAMS_ONLY",
610
+ CustomJson: "CUSTOM_JSON"
606
611
  };
607
- function Ie(t) {
612
+ function De(t) {
608
613
  let e = !0;
609
- return e = e && "id" in t, e = e && "endpoint" in t, e = e && "createdAt" in t, e = e && "onlineStatus" in t, e;
614
+ return e = e && "type" in t, e;
610
615
  }
611
- function mt(t) {
612
- return St(t);
616
+ function Se(t) {
617
+ return gt(t);
613
618
  }
614
- function St(t, e) {
619
+ function gt(t, e) {
615
620
  return t == null ? t : {
616
- id: t.id,
617
- endpoint: t.endpoint,
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,
621
- onlineStatus: t.onlineStatus,
622
- numContractOffers: a(t, "numContractOffers") ? t.numContractOffers : void 0
621
+ type: t.type,
622
+ params: s(t, "params") ? pt(t.params) : void 0,
623
+ customJson: s(t, "customJson") ? t.customJson : void 0
623
624
  };
624
625
  }
625
- function Ot(t) {
626
+ function yt(t) {
626
627
  if (t !== void 0)
627
628
  return t === null ? null : {
628
- id: t.id,
629
- endpoint: t.endpoint,
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(),
633
- onlineStatus: t.onlineStatus,
634
- numContractOffers: t.numContractOffers
629
+ type: t.type,
630
+ params: lt(t.params),
631
+ customJson: t.customJson
635
632
  };
636
633
  }
637
- const we = {
638
- MostRecent: "MOST_RECENT",
639
- Title: "TITLE"
640
- };
641
- function Te(t) {
642
- return !0;
634
+ function he(t) {
635
+ let e = !0;
636
+ return e = e && "operandLeft" in t, e = e && "operator" in t, e;
643
637
  }
644
- function De(t) {
645
- return yt(t);
638
+ function Dt(t) {
639
+ return St(t);
646
640
  }
647
- function yt(t, e) {
641
+ function St(t, e) {
648
642
  return t == null ? t : {
649
- searchQuery: a(t, "searchQuery") ? t.searchQuery : void 0,
650
- sorting: a(t, "sorting") ? t.sorting : void 0,
651
- pageOneBased: a(t, "pageOneBased") ? t.pageOneBased : void 0
643
+ operandLeft: t.operandLeft,
644
+ operator: t.operator,
645
+ operandRight: s(t, "operandRight") ? t.operandRight : void 0
652
646
  };
653
647
  }
654
648
  function ht(t) {
655
649
  if (t !== void 0)
656
650
  return t === null ? null : {
657
- searchQuery: t.searchQuery,
658
- sorting: t.sorting,
659
- pageOneBased: t.pageOneBased
651
+ operandLeft: t.operandLeft,
652
+ operator: t.operator,
653
+ operandRight: t.operandRight
660
654
  };
661
655
  }
662
- const Fe = {
663
- MostRecent: "MOST_RECENT",
664
- Title: "TITLE"
665
- };
666
- function Ne(t) {
656
+ function Pe(t) {
667
657
  let e = !0;
668
- return e = e && "sorting" in t, e = e && "title" in t, e;
658
+ return e = e && "accessPolicyId" in t, e = e && "contractPolicyId" in t, e = e && "criteria" in t, e;
669
659
  }
670
- function At(t) {
671
- return Ct(t);
660
+ function Pt(t) {
661
+ return At(t);
672
662
  }
673
- function Ct(t, e) {
663
+ function At(t, e) {
674
664
  return t == null ? t : {
675
- sorting: t.sorting,
676
- title: t.title
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
677
670
  };
678
671
  }
679
- function Pt(t) {
672
+ function Ot(t) {
680
673
  if (t !== void 0)
681
674
  return t === null ? null : {
682
- sorting: t.sorting,
683
- title: t.title
675
+ id: t.id,
676
+ accessPolicyId: t.accessPolicyId,
677
+ contractPolicyId: t.contractPolicyId,
678
+ criteria: t.criteria.map(ht),
679
+ validity: t.validity
684
680
  };
685
681
  }
686
- function Ee(t) {
682
+ function Ae(t) {
687
683
  let e = !0;
688
- return e = e && "availableSortings" in t, e = e && "paginationMetadata" in t, e = e && "connectors" in t, e;
684
+ return e = e && "id" in t, e = e && "policy" in t, e;
689
685
  }
690
- function It(t) {
691
- return wt(t);
686
+ function wt(t) {
687
+ return Ct(t);
692
688
  }
693
- function wt(t, e) {
689
+ function Ct(t, e) {
694
690
  return t == null ? t : {
695
- availableSortings: t.availableSortings.map(
696
- At
697
- ),
698
- paginationMetadata: C(
699
- t.paginationMetadata
700
- ),
701
- connectors: t.connectors.map(
702
- mt
703
- )
691
+ id: t.id,
692
+ policy: w(t.policy)
704
693
  };
705
694
  }
706
- function Re(t) {
695
+ function It(t) {
707
696
  if (t !== void 0)
708
697
  return t === null ? null : {
709
- availableSortings: t.availableSortings.map(
710
- Pt
711
- ),
712
- paginationMetadata: P(t.paginationMetadata),
713
- connectors: t.connectors.map(
714
- Ot
715
- )
698
+ id: t.id,
699
+ policy: C(t.policy)
716
700
  };
717
701
  }
718
- const Je = {
719
- Running: "RUNNING",
720
- Ok: "OK",
721
- Error: "ERROR"
722
- };
723
- function be(t) {
724
- let e = !0;
725
- return e = e && "name" in t, e = e && "code" in t, e = e && "simplifiedState" in t, e;
702
+ function Oe(t) {
703
+ return !0;
726
704
  }
727
- function I(t) {
705
+ function we(t) {
728
706
  return Tt(t);
729
707
  }
730
708
  function Tt(t, e) {
731
709
  return t == null ? t : {
732
- name: t.name,
733
- code: t.code,
734
- simplifiedState: t.simplifiedState
735
- };
736
- }
737
- function w(t) {
738
- if (t !== void 0)
739
- return t === null ? null : {
740
- name: t.name,
741
- code: t.code,
742
- simplifiedState: t.simplifiedState
743
- };
744
- }
745
- function Me(t) {
746
- let e = !0;
747
- return e = e && "transferProcessId" in t, e = e && "lastUpdatedDate" in t, e = e && "state" in t, e;
748
- }
749
- function Dt(t) {
750
- return Ft(t);
751
- }
752
- function Ft(t, e) {
753
- return t == null ? t : {
754
- transferProcessId: t.transferProcessId,
755
- lastUpdatedDate: new Date(t.lastUpdatedDate),
756
- state: I(t.state),
757
- errorMessage: a(t, "errorMessage") ? t.errorMessage : void 0
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
758
717
  };
759
718
  }
760
719
  function Nt(t) {
761
720
  if (t !== void 0)
762
721
  return t === null ? null : {
763
- transferProcessId: t.transferProcessId,
764
- lastUpdatedDate: t.lastUpdatedDate.toISOString(),
765
- state: w(t.state),
766
- errorMessage: t.errorMessage
722
+ assetEntry: Q(t.assetEntry),
723
+ policyDefinitionRequest: It(
724
+ t.policyDefinitionRequest
725
+ ),
726
+ contractDefinitionRequest: Ot(
727
+ t.contractDefinitionRequest
728
+ )
767
729
  };
768
730
  }
769
- const qe = {
770
- Consuming: "CONSUMING",
771
- Providing: "PROVIDING"
772
- };
773
- function Le(t) {
774
- let e = !0;
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;
731
+ function Ce(t) {
732
+ return !0;
776
733
  }
777
734
  function Et(t) {
778
735
  return Rt(t);
779
736
  }
780
737
  function Rt(t, e) {
781
738
  return t == null ? t : {
782
- contractAgreementId: t.contractAgreementId,
783
- contractNegotiationId: t.contractNegotiationId,
784
- direction: t.direction,
785
- counterPartyAddress: t.counterPartyAddress,
786
- counterPartyId: t.counterPartyId,
787
- contractSigningDate: new Date(t.contractSigningDate),
788
- contractStartDate: new Date(t.contractStartDate),
789
- contractEndDate: new Date(t.contractEndDate),
790
- asset: q(t.asset),
791
- contractPolicy: h(t.contractPolicy),
792
- transferProcesses: t.transferProcesses.map(
793
- Dt
794
- )
739
+ createdAt: s(t, "createdAt") ? t.createdAt : void 0,
740
+ id: s(t, "id") ? t.id : void 0
795
741
  };
796
742
  }
797
- function Jt(t) {
798
- if (t !== void 0)
799
- return t === null ? null : {
800
- contractAgreementId: t.contractAgreementId,
801
- contractNegotiationId: t.contractNegotiationId,
802
- direction: t.direction,
803
- counterPartyAddress: t.counterPartyAddress,
804
- counterPartyId: t.counterPartyId,
805
- contractSigningDate: t.contractSigningDate.toISOString(),
806
- contractStartDate: t.contractStartDate.toISOString(),
807
- contractEndDate: t.contractEndDate.toISOString(),
808
- asset: U(t.asset),
809
- contractPolicy: A(t.contractPolicy),
810
- transferProcesses: t.transferProcesses.map(
811
- Nt
812
- )
813
- };
814
- }
815
- function Ue(t) {
816
- let e = !0;
817
- return e = e && "contractAgreements" in t, e;
818
- }
819
- function bt(t) {
820
- return Mt(t);
821
- }
822
- function Mt(t, e) {
823
- return t == null ? t : {
824
- contractAgreements: t.contractAgreements.map(
825
- Et
826
- )
827
- };
828
- }
829
- function Be(t) {
743
+ function Ie(t) {
830
744
  if (t !== void 0)
831
745
  return t === null ? null : {
832
- contractAgreements: t.contractAgreements.map(
833
- Jt
834
- )
746
+ createdAt: t.createdAt,
747
+ id: t.id
835
748
  };
836
749
  }
837
- function Ve(t) {
750
+ function Te(t) {
838
751
  let e = !0;
839
752
  return e = e && "incomingTransferProcessCounts" in t, e = e && "outgoingTransferProcessCounts" in t, e;
840
753
  }
841
- function qt(t) {
842
- return Lt(t);
754
+ function Ft(t) {
755
+ return Jt(t);
843
756
  }
844
- function Lt(t, e) {
757
+ function Jt(t, e) {
845
758
  return t == null ? t : {
846
759
  incomingTransferProcessCounts: t.incomingTransferProcessCounts,
847
760
  outgoingTransferProcessCounts: t.outgoingTransferProcessCounts
848
761
  };
849
762
  }
850
- function Ut(t) {
763
+ function qt(t) {
851
764
  if (t !== void 0)
852
765
  return t === null ? null : {
853
766
  incomingTransferProcessCounts: t.incomingTransferProcessCounts,
854
767
  outgoingTransferProcessCounts: t.outgoingTransferProcessCounts
855
768
  };
856
769
  }
857
- function Qe(t) {
770
+ function Ne(t) {
858
771
  let e = !0;
859
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;
860
773
  }
861
- function Bt(t) {
862
- return Vt(t);
774
+ function xt(t) {
775
+ return bt(t);
863
776
  }
864
- function Vt(t, e) {
777
+ function bt(t, e) {
865
778
  return t == null ? t : {
866
779
  assetsCount: t.assetsCount,
867
780
  policiesCount: t.policiesCount,
868
781
  contractDefinitionsCount: t.contractDefinitionsCount,
869
782
  contractAgreementsCount: t.contractAgreementsCount,
870
- transferProcessDto: qt(
783
+ transferProcessDto: Ft(
871
784
  t.transferProcessDto
872
785
  )
873
786
  };
874
787
  }
875
- function xe(t) {
788
+ function Ee(t) {
876
789
  if (t !== void 0)
877
790
  return t === null ? null : {
878
791
  assetsCount: t.assetsCount,
879
792
  policiesCount: t.policiesCount,
880
793
  contractDefinitionsCount: t.contractDefinitionsCount,
881
794
  contractAgreementsCount: t.contractAgreementsCount,
882
- transferProcessDto: Ut(
795
+ transferProcessDto: qt(
883
796
  t.transferProcessDto
884
797
  )
885
798
  };
886
799
  }
887
- function Ge(t) {
800
+ function Re(t) {
888
801
  let e = !0;
889
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;
890
803
  }
891
- function m(t) {
892
- return Qt(t);
804
+ function D(t) {
805
+ return Mt(t);
893
806
  }
894
- function Qt(t, e) {
807
+ function Mt(t, e) {
895
808
  return t == null ? t : {
896
809
  storedFileId: t.storedFileId,
897
810
  fileName: t.fileName,
@@ -903,7 +816,7 @@ function Qt(t, e) {
903
816
  lastModifiedDate: new Date(t.lastModifiedDate)
904
817
  };
905
818
  }
906
- function He(t) {
819
+ function Fe(t) {
907
820
  if (t !== void 0)
908
821
  return t === null ? null : {
909
822
  storedFileId: t.storedFileId,
@@ -916,38 +829,38 @@ function He(t) {
916
829
  lastModifiedDate: t.lastModifiedDate.toISOString()
917
830
  };
918
831
  }
919
- const Ke = {
832
+ const Je = {
920
833
  Consuming: "CONSUMING",
921
834
  Providing: "PROVIDING"
922
835
  };
923
- function $e(t) {
836
+ function qe(t) {
924
837
  let e = !0;
925
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;
926
839
  }
927
- function xt(t) {
928
- return Gt(t);
840
+ function Ut(t) {
841
+ return Lt(t);
929
842
  }
930
- function Gt(t, e) {
843
+ function Lt(t, e) {
931
844
  return t == null ? t : {
932
845
  transferProcessId: t.transferProcessId,
933
846
  createdDate: new Date(t.createdDate),
934
847
  lastUpdatedDate: new Date(t.lastUpdatedDate),
935
- state: I(t.state),
848
+ state: A(t.state),
936
849
  contractAgreementId: t.contractAgreementId,
937
850
  direction: t.direction,
938
851
  counterPartyConnectorEndpoint: t.counterPartyConnectorEndpoint,
939
852
  assetName: t.assetName,
940
853
  assetId: t.assetId,
941
- errorMessage: a(t, "errorMessage") ? t.errorMessage : void 0
854
+ errorMessage: s(t, "errorMessage") ? t.errorMessage : void 0
942
855
  };
943
856
  }
944
- function Ht(t) {
857
+ function Gt(t) {
945
858
  if (t !== void 0)
946
859
  return t === null ? null : {
947
860
  transferProcessId: t.transferProcessId,
948
861
  createdDate: t.createdDate.toISOString(),
949
862
  lastUpdatedDate: t.lastUpdatedDate.toISOString(),
950
- state: w(t.state),
863
+ state: O(t.state),
951
864
  contractAgreementId: t.contractAgreementId,
952
865
  direction: t.direction,
953
866
  counterPartyConnectorEndpoint: t.counterPartyConnectorEndpoint,
@@ -956,95 +869,29 @@ function Ht(t) {
956
869
  errorMessage: t.errorMessage
957
870
  };
958
871
  }
959
- function ke(t) {
872
+ function xe(t) {
960
873
  let e = !0;
961
874
  return e = e && "transferEntries" in t, e;
962
875
  }
963
- function Kt(t) {
964
- return $t(t);
876
+ function Ht(t) {
877
+ return Kt(t);
965
878
  }
966
- function $t(t, e) {
879
+ function Kt(t, e) {
967
880
  return t == null ? t : {
968
881
  transferEntries: t.transferEntries.map(
969
- xt
882
+ Ut
970
883
  )
971
884
  };
972
885
  }
973
- function ze(t) {
886
+ function be(t) {
974
887
  if (t !== void 0)
975
888
  return t === null ? null : {
976
889
  transferEntries: t.transferEntries.map(
977
- Ht
890
+ Gt
978
891
  )
979
892
  };
980
893
  }
981
- class kt extends u {
982
- /**
983
- * Query indexed Contract Offers
984
- */
985
- async catalogPageRaw(e, r) {
986
- const n = {}, i = {};
987
- i["Content-Type"] = "application/json";
988
- const o = await this.request(
989
- {
990
- path: "/wrapper/broker/catalog-page",
991
- method: "POST",
992
- headers: i,
993
- query: n,
994
- body: $(
995
- e.catalogPageQuery
996
- )
997
- },
998
- r
999
- );
1000
- return new c(
1001
- o,
1002
- (s) => ft(s)
1003
- );
1004
- }
1005
- /**
1006
- * Query indexed Contract Offers
1007
- */
1008
- async catalogPage(e = {}, r) {
1009
- return await (await this.catalogPageRaw(
1010
- e,
1011
- r
1012
- )).value();
1013
- }
1014
- /**
1015
- * Query known Connectors
1016
- */
1017
- async connectorPageRaw(e, r) {
1018
- const n = {}, i = {};
1019
- i["Content-Type"] = "application/json";
1020
- const o = await this.request(
1021
- {
1022
- path: "/wrapper/broker/connector-page",
1023
- method: "POST",
1024
- headers: i,
1025
- query: n,
1026
- body: ht(
1027
- e.connectorPageQuery
1028
- )
1029
- },
1030
- r
1031
- );
1032
- return new c(
1033
- o,
1034
- (s) => It(s)
1035
- );
1036
- }
1037
- /**
1038
- * Query known Connectors
1039
- */
1040
- async connectorPage(e = {}, r) {
1041
- return await (await this.connectorPageRaw(
1042
- e,
1043
- r
1044
- )).value();
1045
- }
1046
- }
1047
- class zt extends u {
894
+ class kt extends f {
1048
895
  /**
1049
896
  * Available and used resources of a connector.
1050
897
  */
@@ -1060,7 +907,7 @@ class zt extends u {
1060
907
  );
1061
908
  return new c(
1062
909
  i,
1063
- (o) => gt(o)
910
+ (o) => W(o)
1064
911
  );
1065
912
  }
1066
913
  /**
@@ -1075,12 +922,12 @@ class zt extends u {
1075
922
  */
1076
923
  async createStoredFileAssetRaw(e, r) {
1077
924
  if (e.storedFileId === null || e.storedFileId === void 0)
1078
- throw new p(
925
+ throw new y(
1079
926
  "storedFileId",
1080
927
  "Required parameter requestParameters.storedFileId was null or undefined when calling createStoredFileAsset."
1081
928
  );
1082
929
  if (e.requestBody === null || e.requestBody === void 0)
1083
- throw new p(
930
+ throw new y(
1084
931
  "requestBody",
1085
932
  "Required parameter requestParameters.requestBody was null or undefined when calling createStoredFileAsset."
1086
933
  );
@@ -1101,7 +948,7 @@ class zt extends u {
1101
948
  );
1102
949
  return new c(
1103
950
  o,
1104
- (s) => m(s)
951
+ (a) => D(a)
1105
952
  );
1106
953
  }
1107
954
  /**
@@ -1130,7 +977,7 @@ class zt extends u {
1130
977
  );
1131
978
  return new c(
1132
979
  i,
1133
- (o) => o.map(m)
980
+ (o) => o.map(D)
1134
981
  );
1135
982
  }
1136
983
  /**
@@ -1141,7 +988,7 @@ class zt extends u {
1141
988
  return await (await this.listStoredFilesRaw(e)).value();
1142
989
  }
1143
990
  }
1144
- class _t extends u {
991
+ class $t extends f {
1145
992
  /**
1146
993
  * Collect all data for Contract Agreement Page
1147
994
  */
@@ -1157,7 +1004,7 @@ class _t extends u {
1157
1004
  );
1158
1005
  return new c(
1159
1006
  i,
1160
- (o) => bt(o)
1007
+ (o) => ut(o)
1161
1008
  );
1162
1009
  }
1163
1010
  /**
@@ -1166,6 +1013,38 @@ class _t extends u {
1166
1013
  async contractAgreementEndpoint(e) {
1167
1014
  return await (await this.contractAgreementEndpointRaw(e)).value();
1168
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",
1025
+ method: "POST",
1026
+ headers: i,
1027
+ query: n,
1028
+ body: yt(
1029
+ e.contractAgreementTransferRequest
1030
+ )
1031
+ },
1032
+ r
1033
+ );
1034
+ return new c(
1035
+ o,
1036
+ (a) => Et(a)
1037
+ );
1038
+ }
1039
+ /**
1040
+ * Initiate a Transfer Process
1041
+ */
1042
+ async initiateTransfer(e = {}, r) {
1043
+ return await (await this.initiateTransferRaw(
1044
+ e,
1045
+ r
1046
+ )).value();
1047
+ }
1169
1048
  /**
1170
1049
  */
1171
1050
  async transferHistoryPageEndpointRaw(e) {
@@ -1180,7 +1059,7 @@ class _t extends u {
1180
1059
  );
1181
1060
  return new c(
1182
1061
  i,
1183
- (o) => Kt(o)
1062
+ (o) => Ht(o)
1184
1063
  );
1185
1064
  }
1186
1065
  /**
@@ -1191,7 +1070,33 @@ class _t extends u {
1191
1070
  )).value();
1192
1071
  }
1193
1072
  }
1194
- class Wt extends u {
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
+ }
1195
1100
  /**
1196
1101
  * List available functions in policies, prohibitions and obligations.
1197
1102
  */
@@ -1228,7 +1133,7 @@ class Wt extends u {
1228
1133
  );
1229
1134
  return new c(
1230
1135
  i,
1231
- (o) => Bt(o)
1136
+ (o) => xt(o)
1232
1137
  );
1233
1138
  }
1234
1139
  /**
@@ -1238,7 +1143,7 @@ class Wt extends u {
1238
1143
  return await (await this.kpiEndpointRaw(e)).value();
1239
1144
  }
1240
1145
  }
1241
- function _e(t) {
1146
+ function Me(t) {
1242
1147
  const e = new S({
1243
1148
  basePath: t.managementApiUrl,
1244
1149
  headers: {
@@ -1248,150 +1153,137 @@ function _e(t) {
1248
1153
  ...t.configOverrides
1249
1154
  });
1250
1155
  return {
1251
- uiApi: new _t(e),
1252
- useCaseApi: new Wt(e),
1253
- enterpriseEditionApi: new zt(e),
1254
- brokerServerApi: new kt(e)
1156
+ uiApi: new $t(e),
1157
+ useCaseApi: new Bt(e),
1158
+ enterpriseEditionApi: new kt(e)
1255
1159
  };
1256
1160
  }
1257
1161
  export {
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,
1270
- ft as CatalogPageResultFromJSON,
1271
- lt as CatalogPageResultFromJSONTyped,
1272
- he as CatalogPageResultToJSON,
1273
- k as CatalogPageSortingItemFromJSON,
1274
- z as CatalogPageSortingItemFromJSONTyped,
1275
- ce as CatalogPageSortingItemSortingEnum,
1276
- _ as CatalogPageSortingItemToJSON,
1277
- Z as CnfFilterAttributeFromJSON,
1278
- v as CnfFilterAttributeFromJSONTyped,
1279
- j as CnfFilterAttributeToJSON,
1280
- tt as CnfFilterFromJSON,
1281
- et as CnfFilterFromJSONTyped,
1282
- W as CnfFilterItemFromJSON,
1283
- X as CnfFilterItemFromJSONTyped,
1284
- Y as CnfFilterItemToJSON,
1285
- rt as CnfFilterToJSON,
1286
- B as CnfFilterValueAttributeFromJSON,
1287
- V as CnfFilterValueAttributeFromJSONTyped,
1288
- Q as CnfFilterValueAttributeToJSON,
1289
- x as CnfFilterValueFromJSON,
1290
- G as CnfFilterValueFromJSONTyped,
1291
- H as CnfFilterValueToJSON,
1162
+ M as AssetDtoFromJSON,
1163
+ U as AssetDtoFromJSONTyped,
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,
1176
+ f as BaseAPI,
1177
+ Xt as BlobApiResponse,
1178
+ zt as COLLECTION_FORMATS,
1292
1179
  S as Configuration,
1293
- gt as ConnectorLimitsFromJSON,
1294
- pt as ConnectorLimitsFromJSONTyped,
1295
- Ce as ConnectorLimitsToJSON,
1296
- mt as ConnectorListEntryFromJSON,
1297
- St as ConnectorListEntryFromJSONTyped,
1298
- Pe as ConnectorListEntryOnlineStatusEnum,
1299
- Ot as ConnectorListEntryToJSON,
1300
- De as ConnectorPageQueryFromJSON,
1301
- yt as ConnectorPageQueryFromJSONTyped,
1302
- we as ConnectorPageQuerySortingEnum,
1303
- ht as ConnectorPageQueryToJSON,
1304
- It as ConnectorPageResultFromJSON,
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,
1312
- Et as ContractAgreementCardFromJSON,
1313
- Rt as ContractAgreementCardFromJSONTyped,
1314
- Jt as ContractAgreementCardToJSON,
1315
- bt as ContractAgreementPageFromJSON,
1316
- Mt as ContractAgreementPageFromJSONTyped,
1317
- Be as ContractAgreementPageToJSON,
1318
- Dt as ContractAgreementTransferProcessFromJSON,
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,
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,
1212
+ R as DefaultConfig,
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,
1331
1222
  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,
1343
- m as StoredFileFromJSON,
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,
1366
- a as exists,
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
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,
1232
+ w as PolicyDtoFromJSON,
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,
1240
+ Yt as TextApiResponse,
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
1396
1288
  };
1397
1289
  //# sourceMappingURL=sovity-edc-client.js.map