myio-js-library 0.1.182 → 0.1.183
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.cjs
CHANGED
|
@@ -1685,11 +1685,11 @@ function buildEntityMapFromDatasource(datasources) {
|
|
|
1685
1685
|
const dsArray = Array.isArray(datasources) ? datasources : [];
|
|
1686
1686
|
const map = /* @__PURE__ */ new Map();
|
|
1687
1687
|
dsArray.forEach((ds) => {
|
|
1688
|
-
const entityId = ds?.entityId;
|
|
1688
|
+
const entityId = ds?.entity?.id?.id || ds?.entity?.id || ds?.entityId || null;
|
|
1689
1689
|
if (!entityId) return;
|
|
1690
1690
|
if (!map.has(entityId)) {
|
|
1691
1691
|
const entity = ds?.entity;
|
|
1692
|
-
const draftLabel = entity?.label || entity?.name || ds?.name || null;
|
|
1692
|
+
const draftLabel = entity?.label || entity?.name || ds?.entityLabel || ds?.name || null;
|
|
1693
1693
|
map.set(entityId, {
|
|
1694
1694
|
id: entityId,
|
|
1695
1695
|
identifier: null,
|
|
@@ -1711,7 +1711,7 @@ function buildEntityMapFromDatasource(datasources) {
|
|
|
1711
1711
|
function hydrateEntityMapWithCtxData(data, map) {
|
|
1712
1712
|
const rows = Array.isArray(data) ? data : [];
|
|
1713
1713
|
rows.forEach((row) => {
|
|
1714
|
-
const entityId = row?.datasource?.entityId || null;
|
|
1714
|
+
const entityId = row?.datasource?.entity?.id?.id || row?.datasource?.entity?.id || row?.datasource?.entityId || null;
|
|
1715
1715
|
if (!entityId || !map.has(entityId)) return;
|
|
1716
1716
|
const rawKey = row?.dataKey?.name || "";
|
|
1717
1717
|
if (!rawKey) return;
|
package/dist/index.js
CHANGED
|
@@ -1538,11 +1538,11 @@ function buildEntityMapFromDatasource(datasources) {
|
|
|
1538
1538
|
const dsArray = Array.isArray(datasources) ? datasources : [];
|
|
1539
1539
|
const map = /* @__PURE__ */ new Map();
|
|
1540
1540
|
dsArray.forEach((ds) => {
|
|
1541
|
-
const entityId = ds?.entityId;
|
|
1541
|
+
const entityId = ds?.entity?.id?.id || ds?.entity?.id || ds?.entityId || null;
|
|
1542
1542
|
if (!entityId) return;
|
|
1543
1543
|
if (!map.has(entityId)) {
|
|
1544
1544
|
const entity = ds?.entity;
|
|
1545
|
-
const draftLabel = entity?.label || entity?.name || ds?.name || null;
|
|
1545
|
+
const draftLabel = entity?.label || entity?.name || ds?.entityLabel || ds?.name || null;
|
|
1546
1546
|
map.set(entityId, {
|
|
1547
1547
|
id: entityId,
|
|
1548
1548
|
identifier: null,
|
|
@@ -1564,7 +1564,7 @@ function buildEntityMapFromDatasource(datasources) {
|
|
|
1564
1564
|
function hydrateEntityMapWithCtxData(data, map) {
|
|
1565
1565
|
const rows = Array.isArray(data) ? data : [];
|
|
1566
1566
|
rows.forEach((row) => {
|
|
1567
|
-
const entityId = row?.datasource?.entityId || null;
|
|
1567
|
+
const entityId = row?.datasource?.entity?.id?.id || row?.datasource?.entity?.id || row?.datasource?.entityId || null;
|
|
1568
1568
|
if (!entityId || !map.has(entityId)) return;
|
|
1569
1569
|
const rawKey = row?.dataKey?.name || "";
|
|
1570
1570
|
if (!rawKey) return;
|
|
@@ -1544,11 +1544,11 @@
|
|
|
1544
1544
|
const dsArray = Array.isArray(datasources) ? datasources : [];
|
|
1545
1545
|
const map = /* @__PURE__ */ new Map();
|
|
1546
1546
|
dsArray.forEach((ds) => {
|
|
1547
|
-
const entityId = ds?.entityId;
|
|
1547
|
+
const entityId = ds?.entity?.id?.id || ds?.entity?.id || ds?.entityId || null;
|
|
1548
1548
|
if (!entityId) return;
|
|
1549
1549
|
if (!map.has(entityId)) {
|
|
1550
1550
|
const entity = ds?.entity;
|
|
1551
|
-
const draftLabel = entity?.label || entity?.name || ds?.name || null;
|
|
1551
|
+
const draftLabel = entity?.label || entity?.name || ds?.entityLabel || ds?.name || null;
|
|
1552
1552
|
map.set(entityId, {
|
|
1553
1553
|
id: entityId,
|
|
1554
1554
|
identifier: null,
|
|
@@ -1570,7 +1570,7 @@
|
|
|
1570
1570
|
function hydrateEntityMapWithCtxData(data, map) {
|
|
1571
1571
|
const rows = Array.isArray(data) ? data : [];
|
|
1572
1572
|
rows.forEach((row) => {
|
|
1573
|
-
const entityId = row?.datasource?.entityId || null;
|
|
1573
|
+
const entityId = row?.datasource?.entity?.id?.id || row?.datasource?.entity?.id || row?.datasource?.entityId || null;
|
|
1574
1574
|
if (!entityId || !map.has(entityId)) return;
|
|
1575
1575
|
const rawKey = row?.dataKey?.name || "";
|
|
1576
1576
|
if (!rawKey) return;
|