@hamak/smart-data-dico 1.12.0 → 1.12.3

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.
@@ -9547,13 +9547,15 @@ function normalizeRelationshipEnds(rel) {
9547
9547
  entity: rel.source.entity,
9548
9548
  cardinality: rel.source.cardinality,
9549
9549
  role: rel.source.name,
9550
- referenceAttributes: rel.source.referenceAttributes
9550
+ referenceAttributes: rel.source.referenceAttributes,
9551
+ stereotype: rel.source.stereotype
9551
9552
  },
9552
9553
  {
9553
9554
  entity: rel.target.entity,
9554
9555
  cardinality: rel.target.cardinality,
9555
9556
  role: rel.target.name,
9556
- referenceAttributes: rel.target.referenceAttributes
9557
+ referenceAttributes: rel.target.referenceAttributes,
9558
+ stereotype: rel.target.stereotype
9557
9559
  }
9558
9560
  ];
9559
9561
  }
@@ -9566,8 +9568,8 @@ function normalizeRelationship(rel) {
9566
9568
  return {
9567
9569
  ...rel,
9568
9570
  ends: hasEnds ? rel.ends : [a, b],
9569
- source: rel.source ?? { entity: a.entity, cardinality: a.cardinality, name: a.role, referenceAttributes: a.referenceAttributes },
9570
- target: rel.target ?? { entity: b.entity, cardinality: b.cardinality, name: b.role, referenceAttributes: b.referenceAttributes }
9571
+ source: rel.source ?? { entity: a.entity, cardinality: a.cardinality, name: a.role, referenceAttributes: a.referenceAttributes, stereotype: a.stereotype },
9572
+ target: rel.target ?? { entity: b.entity, cardinality: b.cardinality, name: b.role, referenceAttributes: b.referenceAttributes, stereotype: b.stereotype }
9571
9573
  };
9572
9574
  }
9573
9575
  __name(normalizeRelationship, "normalizeRelationship");
@@ -9661,7 +9663,8 @@ var relationshipSchema = {
9661
9663
  entity: { type: "string" },
9662
9664
  cardinality: { type: "string", enum: Object.values(Cardinality) },
9663
9665
  name: { type: "string" },
9664
- referenceAttributes: { type: "array", items: { type: "string" } }
9666
+ referenceAttributes: { type: "array", items: { type: "string" } },
9667
+ stereotype: { type: "string" }
9665
9668
  }
9666
9669
  },
9667
9670
  target: {
@@ -9671,7 +9674,8 @@ var relationshipSchema = {
9671
9674
  entity: { type: "string" },
9672
9675
  cardinality: { type: "string", enum: Object.values(Cardinality) },
9673
9676
  name: { type: "string" },
9674
- referenceAttributes: { type: "array", items: { type: "string" } }
9677
+ referenceAttributes: { type: "array", items: { type: "string" } },
9678
+ stereotype: { type: "string" }
9675
9679
  }
9676
9680
  },
9677
9681
  metadata: { type: "array" }