@almadar/core 10.69.0 → 10.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -59563,7 +59563,19 @@ function deriveExpectations(schema, orbitalName) {
59563
59563
  ownerByEntity.set(def.name, o.name);
59564
59564
  defByEntity.set(def.name, def);
59565
59565
  }
59566
- if (def.identity === true && identityDef === void 0) identityDef = def;
59566
+ }
59567
+ }
59568
+ for (const o of schema.orbitals) {
59569
+ const primary = o.entity;
59570
+ if (typeof primary === "object" && primary !== null && "fields" in primary && primary.identity === true) {
59571
+ identityDef = primary;
59572
+ break;
59573
+ }
59574
+ }
59575
+ if (identityDef === void 0) {
59576
+ for (const o of schema.orbitals) {
59577
+ identityDef = inlineEntitiesOf(o).find((def) => def.identity === true);
59578
+ if (identityDef !== void 0) break;
59567
59579
  }
59568
59580
  }
59569
59581
  const ownDefs = inlineEntitiesOf(orbital);