@ysgroup/contracts 0.1.29 → 0.1.30

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +19 -83
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/contracts",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/index.ts CHANGED
@@ -391,13 +391,6 @@ export interface AccountServerRef {
391
391
  "port"?: number; /** 端口 */
392
392
  }
393
393
 
394
- export interface ServerRef {
395
- "name"?: string; /** 名称 */
396
- "type"?: ServerType | null; /** 类型 */
397
- "host"?: string; /** 地址 */
398
- "port"?: number; /** 端口 */
399
- }
400
-
401
394
  export interface NavCategory {
402
395
  "name": string; /** 分类名 */
403
396
  "fund_names"?: string[]; /** 基金名称 */
@@ -617,9 +610,6 @@ export interface TradingCounter {
617
610
  "broker_id": string; /** 开户公司ID */
618
611
  "name": string; /** 柜台名称 */
619
612
  "counter_supplier_id"?: string; /** 柜台供应商ID */
620
- "server_room_id"?: string; /** 机房ID */
621
- "server_ips"?: ServerRef[]; /** 服务IP列表;sensitivity=restricted(仅风险提示,不决定应用授权) */
622
- "exchanges"?: ExchangeType[]; /** 支持交易所 */
623
613
  "memo"?: string; /** 备注 */
624
614
  }
625
615
 
@@ -631,7 +621,6 @@ export interface TradingNode {
631
621
  "broker_id": string; /** 开户公司ID */
632
622
  "trading_counter_id": string; /** 交易柜台ID */
633
623
  "branch_name": string; /** 营业部名称 */
634
- "exchange_id": ExchangeType; /** 交易市场 */
635
624
  "node_name": string; /** 节点名称 */
636
625
  "server_room": string; /** 所在机房 */
637
626
  "memo"?: string; /** 备注 */
@@ -644,6 +633,7 @@ export interface TradingSeat {
644
633
  "deleted_at"?: null | number; /** 软删除时间 */
645
634
  "trading_node_id": string; /** 交易节点ID */
646
635
  "seat_no": string; /** 席位号 */
636
+ "exchange_id": ExchangeType; /** 交易市场 */
647
637
  "memo"?: string; /** 备注 */
648
638
  }
649
639
 
@@ -3107,36 +3097,6 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3107
3097
  "system_required": false,
3108
3098
  "blocked_reason": ""
3109
3099
  },
3110
- {
3111
- "key": "server_room_id",
3112
- "title": "机房ID",
3113
- "kind": "original",
3114
- "type": "<class 'str'>",
3115
- "sensitivity": "public",
3116
- "selectable": true,
3117
- "system_required": false,
3118
- "blocked_reason": ""
3119
- },
3120
- {
3121
- "key": "server_ips",
3122
- "title": "服务IP列表",
3123
- "kind": "original",
3124
- "type": "list[ys_base.contracts.master.ServerRef]",
3125
- "sensitivity": "restricted",
3126
- "selectable": true,
3127
- "system_required": false,
3128
- "blocked_reason": ""
3129
- },
3130
- {
3131
- "key": "exchanges",
3132
- "title": "支持交易所",
3133
- "kind": "original",
3134
- "type": "list[ys_base.contracts.enums.ExchangeType]",
3135
- "sensitivity": "public",
3136
- "selectable": true,
3137
- "system_required": false,
3138
- "blocked_reason": ""
3139
- },
3140
3100
  {
3141
3101
  "key": "memo",
3142
3102
  "title": "备注",
@@ -3219,16 +3179,6 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3219
3179
  "system_required": false,
3220
3180
  "blocked_reason": ""
3221
3181
  },
3222
- {
3223
- "key": "exchange_id",
3224
- "title": "交易市场",
3225
- "kind": "original",
3226
- "type": "<enum 'ExchangeType'>",
3227
- "sensitivity": "public",
3228
- "selectable": true,
3229
- "system_required": false,
3230
- "blocked_reason": ""
3231
- },
3232
3182
  {
3233
3183
  "key": "node_name",
3234
3184
  "title": "节点名称",
@@ -3321,6 +3271,16 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3321
3271
  "system_required": false,
3322
3272
  "blocked_reason": ""
3323
3273
  },
3274
+ {
3275
+ "key": "exchange_id",
3276
+ "title": "交易市场",
3277
+ "kind": "original",
3278
+ "type": "<enum 'ExchangeType'>",
3279
+ "sensitivity": "public",
3280
+ "selectable": true,
3281
+ "system_required": false,
3282
+ "blocked_reason": ""
3283
+ },
3324
3284
  {
3325
3285
  "key": "memo",
3326
3286
  "title": "备注",
@@ -4632,30 +4592,6 @@ export const FIELD_SPECS = {
4632
4592
  "required": false,
4633
4593
  "sensitivity": "public"
4634
4594
  },
4635
- {
4636
- "key": "server_room_id",
4637
- "title": "机房ID",
4638
- "widget": "text",
4639
- "enum": null,
4640
- "required": false,
4641
- "sensitivity": "public"
4642
- },
4643
- {
4644
- "key": "server_ips",
4645
- "title": "服务IP列表",
4646
- "widget": "tags",
4647
- "enum": null,
4648
- "required": false,
4649
- "sensitivity": "restricted"
4650
- },
4651
- {
4652
- "key": "exchanges",
4653
- "title": "支持交易所",
4654
- "widget": "enum-multi",
4655
- "enum": "ExchangeType",
4656
- "required": false,
4657
- "sensitivity": "public"
4658
- },
4659
4595
  {
4660
4596
  "key": "memo",
4661
4597
  "title": "备注",
@@ -4690,14 +4626,6 @@ export const FIELD_SPECS = {
4690
4626
  "required": true,
4691
4627
  "sensitivity": "public"
4692
4628
  },
4693
- {
4694
- "key": "exchange_id",
4695
- "title": "交易市场",
4696
- "widget": "enum",
4697
- "enum": "ExchangeType",
4698
- "required": true,
4699
- "sensitivity": "public"
4700
- },
4701
4629
  {
4702
4630
  "key": "node_name",
4703
4631
  "title": "节点名称",
@@ -4740,6 +4668,14 @@ export const FIELD_SPECS = {
4740
4668
  "required": true,
4741
4669
  "sensitivity": "public"
4742
4670
  },
4671
+ {
4672
+ "key": "exchange_id",
4673
+ "title": "交易市场",
4674
+ "widget": "enum",
4675
+ "enum": "ExchangeType",
4676
+ "required": true,
4677
+ "sensitivity": "public"
4678
+ },
4743
4679
  {
4744
4680
  "key": "memo",
4745
4681
  "title": "备注",