@ysgroup/contracts 0.1.26 → 0.1.27

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 +139 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/contracts",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
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" | "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_platforms" | "trading_nodes" | "trading_seats" | "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";
@@ -294,6 +294,10 @@ export const ENUM_META = {
294
294
  "label": "交易节点表",
295
295
  "sort": 185
296
296
  },
297
+ "trading_seats": {
298
+ "label": "交易席位表",
299
+ "sort": 186
300
+ },
297
301
  "counter_suppliers": {
298
302
  "label": "柜台供应商表",
299
303
  "sort": 190
@@ -471,6 +475,7 @@ export interface ExchangeAccount {
471
475
  "type": string; /** 股卡类型 */
472
476
  "exchange_id": ExchangeType; /** 交易所 */
473
477
  "exchange_account": string; /** 交易编码 */
478
+ "trading_seat_id"?: string; /** 交易席位ID */
474
479
  }
475
480
 
476
481
  export interface MountExchangeAccount {
@@ -628,6 +633,16 @@ export interface TradingNode {
628
633
  "memo"?: string; /** 备注 */
629
634
  }
630
635
 
636
+ export interface TradingSeat {
637
+ "_id"?: string; /** 主键 */
638
+ "created_at"?: number; /** 创建时间 */
639
+ "updated_at"?: number; /** 更新时间 */
640
+ "deleted_at"?: null | number; /** 软删除时间 */
641
+ "trading_node_id": string; /** 交易节点ID */
642
+ "seat_no": string; /** 席位号 */
643
+ "memo"?: string; /** 备注 */
644
+ }
645
+
631
646
  export interface CounterSupplier {
632
647
  "_id"?: string; /** 主键 */
633
648
  "created_at"?: number; /** 创建时间 */
@@ -800,6 +815,7 @@ export const TABLES = {
800
815
  "servers": "Server",
801
816
  "trading_platforms": "TradingPlatform",
802
817
  "trading_nodes": "TradingNode",
818
+ "trading_seats": "TradingSeat",
803
819
  "counter_suppliers": "CounterSupplier",
804
820
  "server_rooms": "ServerRoom",
805
821
  "user_app": "UserApp",
@@ -941,6 +957,12 @@ export const AUTHORIZATION_TABLE_META = {
941
957
  "scope_mode": "global",
942
958
  "description": "授权后提供全部存活记录"
943
959
  },
960
+ "trading_seats": {
961
+ "name": "交易席位表",
962
+ "category": "参考数据",
963
+ "scope_mode": "global",
964
+ "description": "授权后提供全部存活记录"
965
+ },
944
966
  "counter_suppliers": {
945
967
  "name": "柜台供应商表",
946
968
  "category": "参考数据",
@@ -1903,6 +1925,16 @@ export const AUTHORIZATION_FIELD_CATALOG = {
1903
1925
  "selectable": true,
1904
1926
  "system_required": false,
1905
1927
  "blocked_reason": ""
1928
+ },
1929
+ {
1930
+ "key": "trading_seat_id",
1931
+ "title": "交易席位ID",
1932
+ "kind": "original",
1933
+ "type": "<class 'str'>",
1934
+ "sensitivity": "public",
1935
+ "selectable": true,
1936
+ "system_required": false,
1937
+ "blocked_reason": ""
1906
1938
  }
1907
1939
  ],
1908
1940
  "mount_exchange_accounts": [
@@ -3207,6 +3239,78 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3207
3239
  "blocked_reason": ""
3208
3240
  }
3209
3241
  ],
3242
+ "trading_seats": [
3243
+ {
3244
+ "key": "_id",
3245
+ "title": "主键",
3246
+ "kind": "original",
3247
+ "type": "<class 'str'>",
3248
+ "sensitivity": "public",
3249
+ "selectable": true,
3250
+ "system_required": true,
3251
+ "blocked_reason": ""
3252
+ },
3253
+ {
3254
+ "key": "created_at",
3255
+ "title": "创建时间",
3256
+ "kind": "original",
3257
+ "type": "<class 'float'>",
3258
+ "sensitivity": "public",
3259
+ "selectable": true,
3260
+ "system_required": false,
3261
+ "blocked_reason": ""
3262
+ },
3263
+ {
3264
+ "key": "updated_at",
3265
+ "title": "更新时间",
3266
+ "kind": "original",
3267
+ "type": "<class 'float'>",
3268
+ "sensitivity": "public",
3269
+ "selectable": true,
3270
+ "system_required": false,
3271
+ "blocked_reason": ""
3272
+ },
3273
+ {
3274
+ "key": "deleted_at",
3275
+ "title": "软删除时间",
3276
+ "kind": "original",
3277
+ "type": "float | None",
3278
+ "sensitivity": "public",
3279
+ "selectable": false,
3280
+ "system_required": false,
3281
+ "blocked_reason": "系统安全字段,禁止进入同步流"
3282
+ },
3283
+ {
3284
+ "key": "trading_node_id",
3285
+ "title": "交易节点ID",
3286
+ "kind": "original",
3287
+ "type": "<class 'str'>",
3288
+ "sensitivity": "public",
3289
+ "selectable": true,
3290
+ "system_required": false,
3291
+ "blocked_reason": ""
3292
+ },
3293
+ {
3294
+ "key": "seat_no",
3295
+ "title": "席位号",
3296
+ "kind": "original",
3297
+ "type": "<class 'str'>",
3298
+ "sensitivity": "public",
3299
+ "selectable": true,
3300
+ "system_required": false,
3301
+ "blocked_reason": ""
3302
+ },
3303
+ {
3304
+ "key": "memo",
3305
+ "title": "备注",
3306
+ "kind": "original",
3307
+ "type": "<class 'str'>",
3308
+ "sensitivity": "public",
3309
+ "selectable": true,
3310
+ "system_required": false,
3311
+ "blocked_reason": ""
3312
+ }
3313
+ ],
3210
3314
  "counter_suppliers": [
3211
3315
  {
3212
3316
  "key": "_id",
@@ -3978,6 +4082,14 @@ export const FIELD_SPECS = {
3978
4082
  "enum": null,
3979
4083
  "required": true,
3980
4084
  "sensitivity": "public"
4085
+ },
4086
+ {
4087
+ "key": "trading_seat_id",
4088
+ "title": "交易席位ID",
4089
+ "widget": "text",
4090
+ "enum": null,
4091
+ "required": false,
4092
+ "sensitivity": "public"
3981
4093
  }
3982
4094
  ],
3983
4095
  "mount_exchange_accounts": [
@@ -4518,6 +4630,32 @@ export const FIELD_SPECS = {
4518
4630
  "sensitivity": "public"
4519
4631
  }
4520
4632
  ],
4633
+ "trading_seats": [
4634
+ {
4635
+ "key": "trading_node_id",
4636
+ "title": "交易节点ID",
4637
+ "widget": "text",
4638
+ "enum": null,
4639
+ "required": true,
4640
+ "sensitivity": "public"
4641
+ },
4642
+ {
4643
+ "key": "seat_no",
4644
+ "title": "席位号",
4645
+ "widget": "text",
4646
+ "enum": null,
4647
+ "required": true,
4648
+ "sensitivity": "public"
4649
+ },
4650
+ {
4651
+ "key": "memo",
4652
+ "title": "备注",
4653
+ "widget": "text",
4654
+ "enum": null,
4655
+ "required": false,
4656
+ "sensitivity": "public"
4657
+ }
4658
+ ],
4521
4659
  "counter_suppliers": [
4522
4660
  {
4523
4661
  "key": "type",