@dshtrading/eventbus 0.1.1 → 0.1.3
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/lib/index.d.ts +3 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -8,8 +8,10 @@ declare const name = "dsh-trading-eventbus";
|
|
|
8
8
|
/**
|
|
9
9
|
* store 词汇(v1,封闭集合)。新 store = 本 union 加成员 + 客户端 handler 注册,
|
|
10
10
|
* 事件面不开放任意字符串(防注入 & 保持可枚举)。
|
|
11
|
+
* 'chart'(issue #63):图表激活名册(挂载/摘除/调参)失效信号。
|
|
12
|
+
* 'holdings'(issue #65):统一资产台账(staged/holdings 两区)失效信号。
|
|
11
13
|
*/
|
|
12
|
-
type TradingEventStore = 'indicators' | 'strategies' | 'knowledge' | 'watchlists' | 'selection' | 'routing';
|
|
14
|
+
type TradingEventStore = 'indicators' | 'strategies' | 'knowledge' | 'watchlists' | 'selection' | 'routing' | 'chart' | 'tasks' | 'holdings';
|
|
13
15
|
/** 单条失效信号(桥 SSE 帧的 data 载荷形状,也是 subscribe 回调入参)。 */
|
|
14
16
|
interface TradingEvent {
|
|
15
17
|
readonly store: TradingEventStore;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dshtrading/eventbus",
|
|
3
3
|
"description": "In-process invalidation event bus for dsh-trading: tradingEvents cordis service (emit/subscribe/per-store revision), zero HTTP, zero business data",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|