@ysgroup/contracts 0.1.27 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +120 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/contracts",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
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" | "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";
@@ -298,6 +298,10 @@ export const ENUM_META = {
298
298
  "label": "交易席位表",
299
299
  "sort": 186
300
300
  },
301
+ "trading_gateways": {
302
+ "label": "交易网关表",
303
+ "sort": 187
304
+ },
301
305
  "counter_suppliers": {
302
306
  "label": "柜台供应商表",
303
307
  "sort": 190
@@ -643,6 +647,16 @@ export interface TradingSeat {
643
647
  "memo"?: string; /** 备注 */
644
648
  }
645
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
+
646
660
  export interface CounterSupplier {
647
661
  "_id"?: string; /** 主键 */
648
662
  "created_at"?: number; /** 创建时间 */
@@ -816,6 +830,7 @@ export const TABLES = {
816
830
  "trading_platforms": "TradingPlatform",
817
831
  "trading_nodes": "TradingNode",
818
832
  "trading_seats": "TradingSeat",
833
+ "trading_gateways": "TradingGateway",
819
834
  "counter_suppliers": "CounterSupplier",
820
835
  "server_rooms": "ServerRoom",
821
836
  "user_app": "UserApp",
@@ -963,6 +978,12 @@ export const AUTHORIZATION_TABLE_META = {
963
978
  "scope_mode": "global",
964
979
  "description": "授权后提供全部存活记录"
965
980
  },
981
+ "trading_gateways": {
982
+ "name": "交易网关表",
983
+ "category": "参考数据",
984
+ "scope_mode": "global",
985
+ "description": "授权后提供全部存活记录"
986
+ },
966
987
  "counter_suppliers": {
967
988
  "name": "柜台供应商表",
968
989
  "category": "参考数据",
@@ -3311,6 +3332,78 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3311
3332
  "blocked_reason": ""
3312
3333
  }
3313
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
+ ],
3314
3407
  "counter_suppliers": [
3315
3408
  {
3316
3409
  "key": "_id",
@@ -4656,6 +4749,32 @@ export const FIELD_SPECS = {
4656
4749
  "sensitivity": "public"
4657
4750
  }
4658
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
+ ],
4659
4778
  "counter_suppliers": [
4660
4779
  {
4661
4780
  "key": "type",