@ysgroup/contracts 0.1.28 → 0.1.29

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 +38 -38
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/contracts",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  export type AccountType = "STOCK" | "FUTURES" | "CREDIT" | "STOCK_OPTION" | "GOLD" | "INCOME_SWAP" | "FUTURES_OPTION" | "HUGANGTONG" | "NEW3BOARD" | "SHENGANGTONG";
5
5
  export type AppKind = "service" | "link";
6
6
  export type AppStatus = "enabled" | "disabled" | "maintenance";
7
- export type AuthorizationTable = "users" | "teams" | "owners" | "accounts" | "exchange_accounts" | "mount_exchange_accounts" | "bank_cards" | "banks" | "cnaps" | "custodians" | "strategies" | "projects" | "project_owner" | "owner_strategy" | "account_strategy" | "company_employees" | "brokers" | "broker_branches" | "servers" | "trading_platforms" | "trading_nodes" | "trading_seats" | "trading_gateways" | "counter_suppliers" | "server_rooms" | "file_metas" | "app_configs";
7
+ export type AuthorizationTable = "users" | "teams" | "owners" | "accounts" | "exchange_accounts" | "mount_exchange_accounts" | "bank_cards" | "banks" | "cnaps" | "custodians" | "strategies" | "projects" | "project_owner" | "owner_strategy" | "account_strategy" | "company_employees" | "brokers" | "broker_branches" | "servers" | "trading_counters" | "trading_nodes" | "trading_seats" | "trading_gateways" | "counter_suppliers" | "server_rooms" | "file_metas" | "app_configs";
8
8
  export type ChangeOp = "upsert" | "delete";
9
9
  export type CounterTier = "low_latency_95" | "low_latency_85" | "low_latency_98" | "apex_99";
10
10
  export type ExchangeType = "SH" | "SZ" | "SHFE" | "CFFEX" | "CZCE" | "DCE" | "GFEX" | "INE" | "SGE" | "UNKNOWN";
@@ -286,7 +286,7 @@ export const ENUM_META = {
286
286
  "label": "服务器表",
287
287
  "sort": 170
288
288
  },
289
- "trading_platforms": {
289
+ "trading_counters": {
290
290
  "label": "交易柜台表",
291
291
  "sort": 180
292
292
  },
@@ -609,16 +609,16 @@ export interface Server {
609
609
  "port": number; /** 端口;sensitivity=restricted(仅风险提示,不决定应用授权) */
610
610
  }
611
611
 
612
- export interface TradingPlatform {
612
+ export interface TradingCounter {
613
613
  "_id"?: string; /** 主键 */
614
614
  "created_at"?: number; /** 创建时间 */
615
615
  "updated_at"?: number; /** 更新时间 */
616
616
  "deleted_at"?: null | number; /** 软删除时间 */
617
617
  "broker_id": string; /** 开户公司ID */
618
- "counter_supplier_id": string; /** 柜台供应商ID */
619
- "server_room_id": string; /** 机房ID */
620
- "server_ips"?: ServerRef[]; /** 服务IP列表;sensitivity=restricted(仅风险提示,不决定应用授权) */
621
618
  "name": string; /** 柜台名称 */
619
+ "counter_supplier_id"?: string; /** 柜台供应商ID */
620
+ "server_room_id"?: string; /** 机房ID */
621
+ "server_ips"?: ServerRef[]; /** 服务IP列表;sensitivity=restricted(仅风险提示,不决定应用授权) */
622
622
  "exchanges"?: ExchangeType[]; /** 支持交易所 */
623
623
  "memo"?: string; /** 备注 */
624
624
  }
@@ -629,7 +629,7 @@ export interface TradingNode {
629
629
  "updated_at"?: number; /** 更新时间 */
630
630
  "deleted_at"?: null | number; /** 软删除时间 */
631
631
  "broker_id": string; /** 开户公司ID */
632
- "counter_tier": CounterTier; /** 柜台档位 */
632
+ "trading_counter_id": string; /** 交易柜台ID */
633
633
  "branch_name": string; /** 营业部名称 */
634
634
  "exchange_id": ExchangeType; /** 交易市场 */
635
635
  "node_name": string; /** 节点名称 */
@@ -827,7 +827,7 @@ export const TABLES = {
827
827
  "brokers": "Broker",
828
828
  "broker_branches": "BrokerBranch",
829
829
  "servers": "Server",
830
- "trading_platforms": "TradingPlatform",
830
+ "trading_counters": "TradingCounter",
831
831
  "trading_nodes": "TradingNode",
832
832
  "trading_seats": "TradingSeat",
833
833
  "trading_gateways": "TradingGateway",
@@ -960,7 +960,7 @@ export const AUTHORIZATION_TABLE_META = {
960
960
  "scope_mode": "global",
961
961
  "description": "授权后提供全部存活记录"
962
962
  },
963
- "trading_platforms": {
963
+ "trading_counters": {
964
964
  "name": "交易柜台表",
965
965
  "category": "参考数据",
966
966
  "scope_mode": "global",
@@ -3036,7 +3036,7 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3036
3036
  "blocked_reason": ""
3037
3037
  }
3038
3038
  ],
3039
- "trading_platforms": [
3039
+ "trading_counters": [
3040
3040
  {
3041
3041
  "key": "_id",
3042
3042
  "title": "主键",
@@ -3087,6 +3087,16 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3087
3087
  "system_required": false,
3088
3088
  "blocked_reason": ""
3089
3089
  },
3090
+ {
3091
+ "key": "name",
3092
+ "title": "柜台名称",
3093
+ "kind": "original",
3094
+ "type": "<class 'str'>",
3095
+ "sensitivity": "public",
3096
+ "selectable": true,
3097
+ "system_required": false,
3098
+ "blocked_reason": ""
3099
+ },
3090
3100
  {
3091
3101
  "key": "counter_supplier_id",
3092
3102
  "title": "柜台供应商ID",
@@ -3117,16 +3127,6 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3117
3127
  "system_required": false,
3118
3128
  "blocked_reason": ""
3119
3129
  },
3120
- {
3121
- "key": "name",
3122
- "title": "柜台名称",
3123
- "kind": "original",
3124
- "type": "<class 'str'>",
3125
- "sensitivity": "public",
3126
- "selectable": true,
3127
- "system_required": false,
3128
- "blocked_reason": ""
3129
- },
3130
3130
  {
3131
3131
  "key": "exchanges",
3132
3132
  "title": "支持交易所",
@@ -3200,10 +3200,10 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3200
3200
  "blocked_reason": ""
3201
3201
  },
3202
3202
  {
3203
- "key": "counter_tier",
3204
- "title": "柜台档位",
3203
+ "key": "trading_counter_id",
3204
+ "title": "交易柜台ID",
3205
3205
  "kind": "original",
3206
- "type": "<enum 'CounterTier'>",
3206
+ "type": "<class 'str'>",
3207
3207
  "sensitivity": "public",
3208
3208
  "selectable": true,
3209
3209
  "system_required": false,
@@ -4607,7 +4607,7 @@ export const FIELD_SPECS = {
4607
4607
  "sensitivity": "restricted"
4608
4608
  }
4609
4609
  ],
4610
- "trading_platforms": [
4610
+ "trading_counters": [
4611
4611
  {
4612
4612
  "key": "broker_id",
4613
4613
  "title": "开户公司ID",
@@ -4616,12 +4616,20 @@ export const FIELD_SPECS = {
4616
4616
  "required": true,
4617
4617
  "sensitivity": "public"
4618
4618
  },
4619
+ {
4620
+ "key": "name",
4621
+ "title": "柜台名称",
4622
+ "widget": "text",
4623
+ "enum": null,
4624
+ "required": true,
4625
+ "sensitivity": "public"
4626
+ },
4619
4627
  {
4620
4628
  "key": "counter_supplier_id",
4621
4629
  "title": "柜台供应商ID",
4622
4630
  "widget": "text",
4623
4631
  "enum": null,
4624
- "required": true,
4632
+ "required": false,
4625
4633
  "sensitivity": "public"
4626
4634
  },
4627
4635
  {
@@ -4629,7 +4637,7 @@ export const FIELD_SPECS = {
4629
4637
  "title": "机房ID",
4630
4638
  "widget": "text",
4631
4639
  "enum": null,
4632
- "required": true,
4640
+ "required": false,
4633
4641
  "sensitivity": "public"
4634
4642
  },
4635
4643
  {
@@ -4640,14 +4648,6 @@ export const FIELD_SPECS = {
4640
4648
  "required": false,
4641
4649
  "sensitivity": "restricted"
4642
4650
  },
4643
- {
4644
- "key": "name",
4645
- "title": "柜台名称",
4646
- "widget": "text",
4647
- "enum": null,
4648
- "required": true,
4649
- "sensitivity": "public"
4650
- },
4651
4651
  {
4652
4652
  "key": "exchanges",
4653
4653
  "title": "支持交易所",
@@ -4675,10 +4675,10 @@ export const FIELD_SPECS = {
4675
4675
  "sensitivity": "public"
4676
4676
  },
4677
4677
  {
4678
- "key": "counter_tier",
4679
- "title": "柜台档位",
4680
- "widget": "enum",
4681
- "enum": "CounterTier",
4678
+ "key": "trading_counter_id",
4679
+ "title": "交易柜台ID",
4680
+ "widget": "text",
4681
+ "enum": null,
4682
4682
  "required": true,
4683
4683
  "sensitivity": "public"
4684
4684
  },