@ysgroup/contracts 0.1.26 → 0.1.28
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/package.json +1 -1
- package/src/index.ts +258 -1
package/package.json
CHANGED
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" | "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";
|
|
@@ -294,6 +294,14 @@ export const ENUM_META = {
|
|
|
294
294
|
"label": "交易节点表",
|
|
295
295
|
"sort": 185
|
|
296
296
|
},
|
|
297
|
+
"trading_seats": {
|
|
298
|
+
"label": "交易席位表",
|
|
299
|
+
"sort": 186
|
|
300
|
+
},
|
|
301
|
+
"trading_gateways": {
|
|
302
|
+
"label": "交易网关表",
|
|
303
|
+
"sort": 187
|
|
304
|
+
},
|
|
297
305
|
"counter_suppliers": {
|
|
298
306
|
"label": "柜台供应商表",
|
|
299
307
|
"sort": 190
|
|
@@ -471,6 +479,7 @@ export interface ExchangeAccount {
|
|
|
471
479
|
"type": string; /** 股卡类型 */
|
|
472
480
|
"exchange_id": ExchangeType; /** 交易所 */
|
|
473
481
|
"exchange_account": string; /** 交易编码 */
|
|
482
|
+
"trading_seat_id"?: string; /** 交易席位ID */
|
|
474
483
|
}
|
|
475
484
|
|
|
476
485
|
export interface MountExchangeAccount {
|
|
@@ -628,6 +637,26 @@ export interface TradingNode {
|
|
|
628
637
|
"memo"?: string; /** 备注 */
|
|
629
638
|
}
|
|
630
639
|
|
|
640
|
+
export interface TradingSeat {
|
|
641
|
+
"_id"?: string; /** 主键 */
|
|
642
|
+
"created_at"?: number; /** 创建时间 */
|
|
643
|
+
"updated_at"?: number; /** 更新时间 */
|
|
644
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
645
|
+
"trading_node_id": string; /** 交易节点ID */
|
|
646
|
+
"seat_no": string; /** 席位号 */
|
|
647
|
+
"memo"?: string; /** 备注 */
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
export interface TradingGateway {
|
|
651
|
+
"_id"?: string; /** 主键 */
|
|
652
|
+
"created_at"?: number; /** 创建时间 */
|
|
653
|
+
"updated_at"?: number; /** 更新时间 */
|
|
654
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
655
|
+
"trading_seat_id": string; /** 交易席位ID */
|
|
656
|
+
"gateway_no": string; /** 网关号 */
|
|
657
|
+
"memo"?: string; /** 备注 */
|
|
658
|
+
}
|
|
659
|
+
|
|
631
660
|
export interface CounterSupplier {
|
|
632
661
|
"_id"?: string; /** 主键 */
|
|
633
662
|
"created_at"?: number; /** 创建时间 */
|
|
@@ -800,6 +829,8 @@ export const TABLES = {
|
|
|
800
829
|
"servers": "Server",
|
|
801
830
|
"trading_platforms": "TradingPlatform",
|
|
802
831
|
"trading_nodes": "TradingNode",
|
|
832
|
+
"trading_seats": "TradingSeat",
|
|
833
|
+
"trading_gateways": "TradingGateway",
|
|
803
834
|
"counter_suppliers": "CounterSupplier",
|
|
804
835
|
"server_rooms": "ServerRoom",
|
|
805
836
|
"user_app": "UserApp",
|
|
@@ -941,6 +972,18 @@ export const AUTHORIZATION_TABLE_META = {
|
|
|
941
972
|
"scope_mode": "global",
|
|
942
973
|
"description": "授权后提供全部存活记录"
|
|
943
974
|
},
|
|
975
|
+
"trading_seats": {
|
|
976
|
+
"name": "交易席位表",
|
|
977
|
+
"category": "参考数据",
|
|
978
|
+
"scope_mode": "global",
|
|
979
|
+
"description": "授权后提供全部存活记录"
|
|
980
|
+
},
|
|
981
|
+
"trading_gateways": {
|
|
982
|
+
"name": "交易网关表",
|
|
983
|
+
"category": "参考数据",
|
|
984
|
+
"scope_mode": "global",
|
|
985
|
+
"description": "授权后提供全部存活记录"
|
|
986
|
+
},
|
|
944
987
|
"counter_suppliers": {
|
|
945
988
|
"name": "柜台供应商表",
|
|
946
989
|
"category": "参考数据",
|
|
@@ -1903,6 +1946,16 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
1903
1946
|
"selectable": true,
|
|
1904
1947
|
"system_required": false,
|
|
1905
1948
|
"blocked_reason": ""
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
"key": "trading_seat_id",
|
|
1952
|
+
"title": "交易席位ID",
|
|
1953
|
+
"kind": "original",
|
|
1954
|
+
"type": "<class 'str'>",
|
|
1955
|
+
"sensitivity": "public",
|
|
1956
|
+
"selectable": true,
|
|
1957
|
+
"system_required": false,
|
|
1958
|
+
"blocked_reason": ""
|
|
1906
1959
|
}
|
|
1907
1960
|
],
|
|
1908
1961
|
"mount_exchange_accounts": [
|
|
@@ -3207,6 +3260,150 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3207
3260
|
"blocked_reason": ""
|
|
3208
3261
|
}
|
|
3209
3262
|
],
|
|
3263
|
+
"trading_seats": [
|
|
3264
|
+
{
|
|
3265
|
+
"key": "_id",
|
|
3266
|
+
"title": "主键",
|
|
3267
|
+
"kind": "original",
|
|
3268
|
+
"type": "<class 'str'>",
|
|
3269
|
+
"sensitivity": "public",
|
|
3270
|
+
"selectable": true,
|
|
3271
|
+
"system_required": true,
|
|
3272
|
+
"blocked_reason": ""
|
|
3273
|
+
},
|
|
3274
|
+
{
|
|
3275
|
+
"key": "created_at",
|
|
3276
|
+
"title": "创建时间",
|
|
3277
|
+
"kind": "original",
|
|
3278
|
+
"type": "<class 'float'>",
|
|
3279
|
+
"sensitivity": "public",
|
|
3280
|
+
"selectable": true,
|
|
3281
|
+
"system_required": false,
|
|
3282
|
+
"blocked_reason": ""
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
"key": "updated_at",
|
|
3286
|
+
"title": "更新时间",
|
|
3287
|
+
"kind": "original",
|
|
3288
|
+
"type": "<class 'float'>",
|
|
3289
|
+
"sensitivity": "public",
|
|
3290
|
+
"selectable": true,
|
|
3291
|
+
"system_required": false,
|
|
3292
|
+
"blocked_reason": ""
|
|
3293
|
+
},
|
|
3294
|
+
{
|
|
3295
|
+
"key": "deleted_at",
|
|
3296
|
+
"title": "软删除时间",
|
|
3297
|
+
"kind": "original",
|
|
3298
|
+
"type": "float | None",
|
|
3299
|
+
"sensitivity": "public",
|
|
3300
|
+
"selectable": false,
|
|
3301
|
+
"system_required": false,
|
|
3302
|
+
"blocked_reason": "系统安全字段,禁止进入同步流"
|
|
3303
|
+
},
|
|
3304
|
+
{
|
|
3305
|
+
"key": "trading_node_id",
|
|
3306
|
+
"title": "交易节点ID",
|
|
3307
|
+
"kind": "original",
|
|
3308
|
+
"type": "<class 'str'>",
|
|
3309
|
+
"sensitivity": "public",
|
|
3310
|
+
"selectable": true,
|
|
3311
|
+
"system_required": false,
|
|
3312
|
+
"blocked_reason": ""
|
|
3313
|
+
},
|
|
3314
|
+
{
|
|
3315
|
+
"key": "seat_no",
|
|
3316
|
+
"title": "席位号",
|
|
3317
|
+
"kind": "original",
|
|
3318
|
+
"type": "<class 'str'>",
|
|
3319
|
+
"sensitivity": "public",
|
|
3320
|
+
"selectable": true,
|
|
3321
|
+
"system_required": false,
|
|
3322
|
+
"blocked_reason": ""
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
"key": "memo",
|
|
3326
|
+
"title": "备注",
|
|
3327
|
+
"kind": "original",
|
|
3328
|
+
"type": "<class 'str'>",
|
|
3329
|
+
"sensitivity": "public",
|
|
3330
|
+
"selectable": true,
|
|
3331
|
+
"system_required": false,
|
|
3332
|
+
"blocked_reason": ""
|
|
3333
|
+
}
|
|
3334
|
+
],
|
|
3335
|
+
"trading_gateways": [
|
|
3336
|
+
{
|
|
3337
|
+
"key": "_id",
|
|
3338
|
+
"title": "主键",
|
|
3339
|
+
"kind": "original",
|
|
3340
|
+
"type": "<class 'str'>",
|
|
3341
|
+
"sensitivity": "public",
|
|
3342
|
+
"selectable": true,
|
|
3343
|
+
"system_required": true,
|
|
3344
|
+
"blocked_reason": ""
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
"key": "created_at",
|
|
3348
|
+
"title": "创建时间",
|
|
3349
|
+
"kind": "original",
|
|
3350
|
+
"type": "<class 'float'>",
|
|
3351
|
+
"sensitivity": "public",
|
|
3352
|
+
"selectable": true,
|
|
3353
|
+
"system_required": false,
|
|
3354
|
+
"blocked_reason": ""
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"key": "updated_at",
|
|
3358
|
+
"title": "更新时间",
|
|
3359
|
+
"kind": "original",
|
|
3360
|
+
"type": "<class 'float'>",
|
|
3361
|
+
"sensitivity": "public",
|
|
3362
|
+
"selectable": true,
|
|
3363
|
+
"system_required": false,
|
|
3364
|
+
"blocked_reason": ""
|
|
3365
|
+
},
|
|
3366
|
+
{
|
|
3367
|
+
"key": "deleted_at",
|
|
3368
|
+
"title": "软删除时间",
|
|
3369
|
+
"kind": "original",
|
|
3370
|
+
"type": "float | None",
|
|
3371
|
+
"sensitivity": "public",
|
|
3372
|
+
"selectable": false,
|
|
3373
|
+
"system_required": false,
|
|
3374
|
+
"blocked_reason": "系统安全字段,禁止进入同步流"
|
|
3375
|
+
},
|
|
3376
|
+
{
|
|
3377
|
+
"key": "trading_seat_id",
|
|
3378
|
+
"title": "交易席位ID",
|
|
3379
|
+
"kind": "original",
|
|
3380
|
+
"type": "<class 'str'>",
|
|
3381
|
+
"sensitivity": "public",
|
|
3382
|
+
"selectable": true,
|
|
3383
|
+
"system_required": false,
|
|
3384
|
+
"blocked_reason": ""
|
|
3385
|
+
},
|
|
3386
|
+
{
|
|
3387
|
+
"key": "gateway_no",
|
|
3388
|
+
"title": "网关号",
|
|
3389
|
+
"kind": "original",
|
|
3390
|
+
"type": "<class 'str'>",
|
|
3391
|
+
"sensitivity": "public",
|
|
3392
|
+
"selectable": true,
|
|
3393
|
+
"system_required": false,
|
|
3394
|
+
"blocked_reason": ""
|
|
3395
|
+
},
|
|
3396
|
+
{
|
|
3397
|
+
"key": "memo",
|
|
3398
|
+
"title": "备注",
|
|
3399
|
+
"kind": "original",
|
|
3400
|
+
"type": "<class 'str'>",
|
|
3401
|
+
"sensitivity": "public",
|
|
3402
|
+
"selectable": true,
|
|
3403
|
+
"system_required": false,
|
|
3404
|
+
"blocked_reason": ""
|
|
3405
|
+
}
|
|
3406
|
+
],
|
|
3210
3407
|
"counter_suppliers": [
|
|
3211
3408
|
{
|
|
3212
3409
|
"key": "_id",
|
|
@@ -3978,6 +4175,14 @@ export const FIELD_SPECS = {
|
|
|
3978
4175
|
"enum": null,
|
|
3979
4176
|
"required": true,
|
|
3980
4177
|
"sensitivity": "public"
|
|
4178
|
+
},
|
|
4179
|
+
{
|
|
4180
|
+
"key": "trading_seat_id",
|
|
4181
|
+
"title": "交易席位ID",
|
|
4182
|
+
"widget": "text",
|
|
4183
|
+
"enum": null,
|
|
4184
|
+
"required": false,
|
|
4185
|
+
"sensitivity": "public"
|
|
3981
4186
|
}
|
|
3982
4187
|
],
|
|
3983
4188
|
"mount_exchange_accounts": [
|
|
@@ -4518,6 +4723,58 @@ export const FIELD_SPECS = {
|
|
|
4518
4723
|
"sensitivity": "public"
|
|
4519
4724
|
}
|
|
4520
4725
|
],
|
|
4726
|
+
"trading_seats": [
|
|
4727
|
+
{
|
|
4728
|
+
"key": "trading_node_id",
|
|
4729
|
+
"title": "交易节点ID",
|
|
4730
|
+
"widget": "text",
|
|
4731
|
+
"enum": null,
|
|
4732
|
+
"required": true,
|
|
4733
|
+
"sensitivity": "public"
|
|
4734
|
+
},
|
|
4735
|
+
{
|
|
4736
|
+
"key": "seat_no",
|
|
4737
|
+
"title": "席位号",
|
|
4738
|
+
"widget": "text",
|
|
4739
|
+
"enum": null,
|
|
4740
|
+
"required": true,
|
|
4741
|
+
"sensitivity": "public"
|
|
4742
|
+
},
|
|
4743
|
+
{
|
|
4744
|
+
"key": "memo",
|
|
4745
|
+
"title": "备注",
|
|
4746
|
+
"widget": "text",
|
|
4747
|
+
"enum": null,
|
|
4748
|
+
"required": false,
|
|
4749
|
+
"sensitivity": "public"
|
|
4750
|
+
}
|
|
4751
|
+
],
|
|
4752
|
+
"trading_gateways": [
|
|
4753
|
+
{
|
|
4754
|
+
"key": "trading_seat_id",
|
|
4755
|
+
"title": "交易席位ID",
|
|
4756
|
+
"widget": "text",
|
|
4757
|
+
"enum": null,
|
|
4758
|
+
"required": true,
|
|
4759
|
+
"sensitivity": "public"
|
|
4760
|
+
},
|
|
4761
|
+
{
|
|
4762
|
+
"key": "gateway_no",
|
|
4763
|
+
"title": "网关号",
|
|
4764
|
+
"widget": "text",
|
|
4765
|
+
"enum": null,
|
|
4766
|
+
"required": true,
|
|
4767
|
+
"sensitivity": "public"
|
|
4768
|
+
},
|
|
4769
|
+
{
|
|
4770
|
+
"key": "memo",
|
|
4771
|
+
"title": "备注",
|
|
4772
|
+
"widget": "text",
|
|
4773
|
+
"enum": null,
|
|
4774
|
+
"required": false,
|
|
4775
|
+
"sensitivity": "public"
|
|
4776
|
+
}
|
|
4777
|
+
],
|
|
4521
4778
|
"counter_suppliers": [
|
|
4522
4779
|
{
|
|
4523
4780
|
"key": "type",
|