myio-js-library 0.1.231 → 0.1.232
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
|
@@ -45123,10 +45123,16 @@ async function fetchIngestionDevicesAllPaged(customerId) {
|
|
|
45123
45123
|
function findIngestionDeviceByCentralSlaveId(devices, centralId, slaveId) {
|
|
45124
45124
|
const slaveIdNum = typeof slaveId === "string" ? parseInt(slaveId, 10) : slaveId;
|
|
45125
45125
|
for (const device of devices) {
|
|
45126
|
-
|
|
45126
|
+
const deviceGatewayId = device.gatewayId || device.gateway?.id;
|
|
45127
|
+
if (deviceGatewayId === centralId && device.slaveId === slaveIdNum) {
|
|
45128
|
+
console.log("[UpsellModal] Found matching device:", device.name, "gatewayId:", deviceGatewayId, "slaveId:", device.slaveId);
|
|
45127
45129
|
return device;
|
|
45128
45130
|
}
|
|
45129
45131
|
}
|
|
45132
|
+
console.log("[UpsellModal] No match found. Looking for centralId:", centralId, "slaveId:", slaveIdNum);
|
|
45133
|
+
devices.slice(0, 3).forEach((d, i) => {
|
|
45134
|
+
console.log(`[UpsellModal] Sample device ${i}:`, d.name, "gatewayId:", d.gatewayId || d.gateway?.id, "slaveId:", d.slaveId);
|
|
45135
|
+
});
|
|
45130
45136
|
return null;
|
|
45131
45137
|
}
|
|
45132
45138
|
function getThemeColors3(theme) {
|
package/dist/index.js
CHANGED
|
@@ -44939,10 +44939,16 @@ async function fetchIngestionDevicesAllPaged(customerId) {
|
|
|
44939
44939
|
function findIngestionDeviceByCentralSlaveId(devices, centralId, slaveId) {
|
|
44940
44940
|
const slaveIdNum = typeof slaveId === "string" ? parseInt(slaveId, 10) : slaveId;
|
|
44941
44941
|
for (const device of devices) {
|
|
44942
|
-
|
|
44942
|
+
const deviceGatewayId = device.gatewayId || device.gateway?.id;
|
|
44943
|
+
if (deviceGatewayId === centralId && device.slaveId === slaveIdNum) {
|
|
44944
|
+
console.log("[UpsellModal] Found matching device:", device.name, "gatewayId:", deviceGatewayId, "slaveId:", device.slaveId);
|
|
44943
44945
|
return device;
|
|
44944
44946
|
}
|
|
44945
44947
|
}
|
|
44948
|
+
console.log("[UpsellModal] No match found. Looking for centralId:", centralId, "slaveId:", slaveIdNum);
|
|
44949
|
+
devices.slice(0, 3).forEach((d, i) => {
|
|
44950
|
+
console.log(`[UpsellModal] Sample device ${i}:`, d.name, "gatewayId:", d.gatewayId || d.gateway?.id, "slaveId:", d.slaveId);
|
|
44951
|
+
});
|
|
44946
44952
|
return null;
|
|
44947
44953
|
}
|
|
44948
44954
|
function getThemeColors3(theme) {
|
|
@@ -44747,10 +44747,16 @@
|
|
|
44747
44747
|
function findIngestionDeviceByCentralSlaveId(devices, centralId, slaveId) {
|
|
44748
44748
|
const slaveIdNum = typeof slaveId === "string" ? parseInt(slaveId, 10) : slaveId;
|
|
44749
44749
|
for (const device of devices) {
|
|
44750
|
-
|
|
44750
|
+
const deviceGatewayId = device.gatewayId || device.gateway?.id;
|
|
44751
|
+
if (deviceGatewayId === centralId && device.slaveId === slaveIdNum) {
|
|
44752
|
+
console.log("[UpsellModal] Found matching device:", device.name, "gatewayId:", deviceGatewayId, "slaveId:", device.slaveId);
|
|
44751
44753
|
return device;
|
|
44752
44754
|
}
|
|
44753
44755
|
}
|
|
44756
|
+
console.log("[UpsellModal] No match found. Looking for centralId:", centralId, "slaveId:", slaveIdNum);
|
|
44757
|
+
devices.slice(0, 3).forEach((d, i) => {
|
|
44758
|
+
console.log(`[UpsellModal] Sample device ${i}:`, d.name, "gatewayId:", d.gatewayId || d.gateway?.id, "slaveId:", d.slaveId);
|
|
44759
|
+
});
|
|
44754
44760
|
return null;
|
|
44755
44761
|
}
|
|
44756
44762
|
function getThemeColors3(theme) {
|