feat: restore legacy named playlist workflows

This commit is contained in:
2026-07-12 11:59:18 +09:00
parent a481c96c39
commit af80c36cde
52 changed files with 9261 additions and 83 deletions

View File

@@ -22,6 +22,9 @@
const foreignIndexCandleWorkflow = typeof module === "object" && module.exports
? require("./legacy-foreign-index-candle-workflow.js")
: root.MbnLegacyForeignIndexCandleWorkflow;
const foreignStockWorkflow = typeof module === "object" && module.exports
? require("./named-foreign-stock-restore-workflow.js")
: root.MbnNamedForeignStockRestoreWorkflow;
const api = Object.freeze(factory(
stockWorkflow,
fixedWorkflow,
@@ -29,7 +32,8 @@
expertWorkflow,
comparisonWorkflow,
industryWorkflow,
foreignIndexCandleWorkflow));
foreignIndexCandleWorkflow,
foreignStockWorkflow));
if (typeof module === "object" && module.exports) module.exports = api;
if (root) root.MbnLegacyNamedRowWorkflow = api;
})(typeof globalThis === "object" ? globalThis : this, function (
@@ -39,11 +43,13 @@
expertWorkflow,
comparisonWorkflow,
industryWorkflow,
foreignIndexCandleWorkflow) {
foreignIndexCandleWorkflow,
foreignStockWorkflow) {
"use strict";
if (!stockWorkflow || !fixedWorkflow || !themeWorkflow || !expertWorkflow ||
!comparisonWorkflow || !industryWorkflow || !foreignIndexCandleWorkflow) {
!comparisonWorkflow || !industryWorkflow || !foreignIndexCandleWorkflow ||
!foreignStockWorkflow) {
throw new Error("Legacy named-row dependencies are unavailable.");
}
@@ -382,6 +388,8 @@
break;
case "legacy-foreign-index-candle-workflow":
return foreignIndexCandleWorkflow.matchesRaw(entry, rawRow);
case "legacy-named-foreign-stock-workflow":
return foreignStockWorkflow.matchesRaw(entry, rawRow);
default:
return false;
}
@@ -415,6 +423,8 @@
return industryWorkflow.restoreIndustryPlaylistEntry(entry);
case "legacy-foreign-index-candle-workflow":
return foreignIndexCandleWorkflow.restorePlaylistEntry(entry);
case "legacy-named-foreign-stock-workflow":
return foreignStockWorkflow.restorePlaylistEntry(entry);
default:
return null;
}
@@ -445,6 +455,8 @@
return industryFixedLegacySignature(trusted.operator);
case "legacy-foreign-index-candle-workflow":
return foreignIndexCandleWorkflow.legacySelectionForEntry(trusted);
case "legacy-named-foreign-stock-workflow":
return foreignStockWorkflow.legacySelectionForEntry(trusted);
default:
return null;
}