@startinblox/core 2.0.6-beta.19 → 2.0.6-beta.20

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.
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { q as mergeContexts, o as getRawContext, n as normalizeContext } from "./helpers-DtCY-jxq.js";
5
- import { S as StoreService } from "./store-BpnX896B.js";
5
+ import { S as StoreService } from "./store-D1nUbSMR.js";
6
6
  const store = StoreService.getInstance();
7
7
  class CustomGetter {
8
8
  // search attributes to give to server
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { g as getDefaultExportFromCjs, S as StoreService, b as base_context, f as formatAttributesToServerPaginationOptions, m as mergeServerSearchOptions, a as formatAttributesToServerSearchOptions, c as StoreType, d as StoreFactory, h as hasSetLocalData, e as hasQueryIndex, __tla as __tla_0 } from "./store-BpnX896B.js";
4
+ import { g as getDefaultExportFromCjs, S as StoreService, b as base_context, f as formatAttributesToServerPaginationOptions, m as mergeServerSearchOptions, a as formatAttributesToServerSearchOptions, c as StoreType, d as StoreFactory, h as hasSetLocalData, e as hasQueryIndex, __tla as __tla_0 } from "./store-D1nUbSMR.js";
5
5
  import { d as defineComponent, n as normalizeContext, u as uniqID, f as fuzzyCompare, a as asyncQuerySelector, i as importInlineCSS, b as importCSS, c as doesResourceContainList, e as findClosingBracketMatchIndex, p as parseFieldsString, g as evalTemplateString, h as compare, j as generalComparator, t as transformArrayToContainer, s as setDeepProperty } from "./helpers-DtCY-jxq.js";
6
- import { __tla as __tla_1 } from "./store-BpnX896B.js";
7
- import { A, D } from "./store-BpnX896B.js";
6
+ import { __tla as __tla_1 } from "./store-D1nUbSMR.js";
7
+ import { A, D } from "./store-D1nUbSMR.js";
8
8
  import { k } from "./helpers-DtCY-jxq.js";
9
9
  let index$4, BaseWidgetMixin, index$3, CounterMixin, DspCatalogDisplay, EdcAssetsDisplay, FederationMixin, FilterMixin, GrouperMixin, HighlighterMixin, ListMixin, NextMixin, PaginateMixin, RequiredMixin, Sib, SolidAcChecker, SolidDelete, SolidDisplay, SolidForm, SolidFormSearch, SolidLang, SolidMemberAdd, SolidMemberDelete, SolidMembership, SolidTable, SolidTemplateElement, SolidWidget, SorterMixin, StoreMixin, index$2, index$1, index, TranslationMixin, ValidationMixin, WidgetMixin, b, o$2, newWidgetFactory, D2, o$1, m, widgetFactory;
10
10
  let __tla = Promise.all([
@@ -3631,7 +3631,7 @@ let __tla = (async () => {
3631
3631
  }
3632
3632
  return catalog;
3633
3633
  }
3634
- async negotiateContract(counterPartyAddress, _offerId, policy, counterPartyId) {
3634
+ async negotiateContract(counterPartyAddress, _offerId, policy, counterPartyId, protocol) {
3635
3635
  await this.ensureAuthenticated();
3636
3636
  console.log("[DataspaceConnectorStore] Received policy for negotiation:", policy);
3637
3637
  console.log("[DataspaceConnectorStore] Policy keys:", Object.keys(policy));
@@ -3655,14 +3655,17 @@ let __tla = (async () => {
3655
3655
  "@type": "ContractRequest",
3656
3656
  counterPartyAddress,
3657
3657
  counterPartyId,
3658
- protocol: "dataspace-protocol-http",
3658
+ protocol: protocol ?? this.config.dspProtocol ?? "dataspace-protocol-http",
3659
3659
  policy: {
3660
3660
  "@context": "http://www.w3.org/ns/odrl.jsonld",
3661
3661
  ...cleanPolicy,
3662
3662
  "@type": "odrl:Offer",
3663
3663
  assigner: cleanPolicy.assigner || policy.assigner || counterPartyId || "provider",
3664
3664
  target: targetAssetId,
3665
- "odrl:target": targetAssetId
3665
+ "odrl:target": targetAssetId,
3666
+ "odrl:permission": cleanPolicy["odrl:permission"] ?? cleanPolicy.permission ?? [],
3667
+ "odrl:prohibition": cleanPolicy["odrl:prohibition"] ?? cleanPolicy.prohibition ?? [],
3668
+ "odrl:obligation": cleanPolicy["odrl:obligation"] ?? cleanPolicy.obligation ?? []
3666
3669
  }
3667
3670
  };
3668
3671
  console.log("[DataspaceConnectorStore] Contract negotiation request:", JSON.stringify(negotiationRequest, null, 2));
@@ -3682,8 +3685,8 @@ let __tla = (async () => {
3682
3685
  this.contractNegotiations.set(negotiationId, negotiation);
3683
3686
  return negotiationId;
3684
3687
  }
3685
- initiateNegotiation(counterPartyAddress, assetId, policy, counterPartyId) {
3686
- return this.negotiateContract(counterPartyAddress, assetId, policy, counterPartyId);
3688
+ initiateNegotiation(counterPartyAddress, assetId, policy, counterPartyId, protocol) {
3689
+ return this.negotiateContract(counterPartyAddress, assetId, policy, counterPartyId, protocol);
3687
3690
  }
3688
3691
  getNegotiationStatus(negotiationId) {
3689
3692
  return this._getNegotiationStatus(negotiationId);
@@ -3821,7 +3824,7 @@ let __tla = (async () => {
3821
3824
  this.transferProcesses.set(transferId, transfer);
3822
3825
  return transferId;
3823
3826
  }
3824
- async initiateEDRTransfer(assetId, counterPartyAddress, contractId, providerParticipantId) {
3827
+ async initiateEDRTransfer(assetId, counterPartyAddress, contractId, providerParticipantId, protocol) {
3825
3828
  await this.ensureAuthenticated();
3826
3829
  const edrRequest = {
3827
3830
  "@context": this.mergeContext({
@@ -3829,7 +3832,7 @@ let __tla = (async () => {
3829
3832
  }),
3830
3833
  "@type": "https://w3id.org/edc/v0.0.1/ns/TransferRequest",
3831
3834
  assetId,
3832
- protocol: "dataspace-protocol-http",
3835
+ protocol: protocol ?? this.config.dspProtocol ?? "dataspace-protocol-http",
3833
3836
  counterPartyAddress,
3834
3837
  contractId,
3835
3838
  transferType: "HttpData-PULL",
@@ -4314,7 +4317,7 @@ let __tla = (async () => {
4314
4317
  }),
4315
4318
  "@type": "CatalogRequestMessage",
4316
4319
  counterPartyAddress: counterPartyAddress || this.getProtocolEndpoint(),
4317
- protocol: "dataspace-protocol-http"
4320
+ protocol: this.config.dspProtocol ?? "dataspace-protocol-http"
4318
4321
  };
4319
4322
  }
4320
4323
  return {
@@ -4324,7 +4327,7 @@ let __tla = (async () => {
4324
4327
  ]),
4325
4328
  "@type": "https://w3id.org/edc/v0.0.1/ns/CatalogRequestMessage",
4326
4329
  counterPartyAddress: counterPartyAddress || this.config.endpoint || "",
4327
- protocol: "dataspace-protocol-http"
4330
+ protocol: this.config.dspProtocol ?? "dataspace-protocol-http"
4328
4331
  };
4329
4332
  }
4330
4333
  getProtocolEndpoint() {
@@ -33057,7 +33060,7 @@ sh:property [
33057
33060
  window.dispatchEvent(event);
33058
33061
  }
33059
33062
  async initGetter() {
33060
- const { CustomGetter } = await import("./custom-getter-CBnSj88B.js");
33063
+ const { CustomGetter } = await import("./custom-getter-Blm6IRrs.js");
33061
33064
  return CustomGetter;
33062
33065
  }
33063
33066
  disconnectedCallback() {
package/dist/store.js CHANGED
@@ -1,4 +1,4 @@
1
- import { s, S, c, b, e, j, h, i } from "./store-BpnX896B.js";
1
+ import { s, S, c, b, e, j, h, i } from "./store-D1nUbSMR.js";
2
2
  export {
3
3
  s as SEMANTIZER,
4
4
  S as StoreService,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/core",
3
- "version": "2.0.6-beta.19",
3
+ "version": "2.0.6-beta.20",
4
4
  "description": "This is a series of web component respecting both the web components standards and the Linked Data Platform convention.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",