feature/Reynolds-and-Reynolds-DMS-API-Integration -Expand

This commit is contained in:
Dave
2025-10-01 14:38:59 -04:00
parent d0eeb7d55d
commit 99b79126c3
7 changed files with 605 additions and 126 deletions

View File

@@ -394,6 +394,30 @@ const redisSocketEvents = ({
logger.log("rr-calc-allocations-error", "error", null, null, { message: error.message, stack: error.stack });
}
});
socket.on("rr-lookup-combined", async ({ jobid, params }, cb) => {
try {
const { RrCombinedSearch } = require("../rr/rr-lookup");
const data = await RrCombinedSearch({
socket,
redisHelpers: { setSessionTransactionData, getSessionTransactionData },
jobid,
params
});
cb?.(data);
} catch (e) {
RRLogger(socket, "error", `RR combined lookup error: ${e.message}`);
cb?.(null);
}
});
socket.on("rr-get-advisors", async ({ jobid, params }, cb) => {
// similar pattern using RrGetAdvisors
});
socket.on("rr-get-parts", async ({ jobid, params }, cb) => {
// similar pattern using RrGetParts
});
};
// Call Handlers