@ysgroup/contracts 0.1.44 → 0.1.45

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 +213 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/contracts",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
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" | "workstations" | "owner_workstations" | "approval_roles" | "owner_approvals" | "brokers" | "broker_branches" | "servers" | "trading_counters" | "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" | "workstations" | "owner_workstations" | "approval_roles" | "owner_approvals" | "brokers" | "broker_branches" | "servers" | "trading_counters" | "trading_nodes" | "trading_seats" | "counter_suppliers" | "server_rooms" | "file_metas" | "app_configs" | "apps";
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 CountryCode = "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW";
@@ -485,6 +485,10 @@ export const ENUM_META = {
485
485
  "app_configs": {
486
486
  "label": "应用配置表",
487
487
  "sort": 220
488
+ },
489
+ "apps": {
490
+ "label": "应用表",
491
+ "sort": 230
488
492
  }
489
493
  },
490
494
  "GatewayMode": {
@@ -4461,6 +4465,12 @@ export const AUTHORIZATION_TABLE_META = {
4461
4465
  "category": "配置",
4462
4466
  "scope_mode": "app_owned",
4463
4467
  "description": "仅下发当前应用自己的配置"
4468
+ },
4469
+ "apps": {
4470
+ "name": "应用表",
4471
+ "category": "配置",
4472
+ "scope_mode": "explicit",
4473
+ "description": "只下发选中的应用;应用密钥、授权版本、心跳和运行版本不下发"
4464
4474
  }
4465
4475
  } as const;
4466
4476
  export const DERIVED_FIELD_SPECS = {
@@ -7541,6 +7551,208 @@ export const AUTHORIZATION_FIELD_CATALOG = {
7541
7551
  "system_required": false,
7542
7552
  "blocked_reason": ""
7543
7553
  }
7554
+ ],
7555
+ "apps": [
7556
+ {
7557
+ "key": "_id",
7558
+ "title": "主键",
7559
+ "kind": "original",
7560
+ "type": "<class 'str'>",
7561
+ "sensitivity": "public",
7562
+ "selectable": true,
7563
+ "system_required": true,
7564
+ "blocked_reason": ""
7565
+ },
7566
+ {
7567
+ "key": "created_at",
7568
+ "title": "创建时间",
7569
+ "kind": "original",
7570
+ "type": "<class 'float'>",
7571
+ "sensitivity": "public",
7572
+ "selectable": true,
7573
+ "system_required": false,
7574
+ "blocked_reason": ""
7575
+ },
7576
+ {
7577
+ "key": "updated_at",
7578
+ "title": "更新时间",
7579
+ "kind": "original",
7580
+ "type": "<class 'float'>",
7581
+ "sensitivity": "public",
7582
+ "selectable": true,
7583
+ "system_required": false,
7584
+ "blocked_reason": ""
7585
+ },
7586
+ {
7587
+ "key": "deleted_at",
7588
+ "title": "软删除时间",
7589
+ "kind": "original",
7590
+ "type": "float | None",
7591
+ "sensitivity": "public",
7592
+ "selectable": false,
7593
+ "system_required": false,
7594
+ "blocked_reason": "系统安全字段,禁止进入同步流"
7595
+ },
7596
+ {
7597
+ "key": "name",
7598
+ "title": "应用标识",
7599
+ "kind": "original",
7600
+ "type": "<class 'str'>",
7601
+ "sensitivity": "public",
7602
+ "selectable": true,
7603
+ "system_required": true,
7604
+ "blocked_reason": ""
7605
+ },
7606
+ {
7607
+ "key": "title",
7608
+ "title": "应用名称",
7609
+ "kind": "original",
7610
+ "type": "<class 'str'>",
7611
+ "sensitivity": "public",
7612
+ "selectable": true,
7613
+ "system_required": false,
7614
+ "blocked_reason": ""
7615
+ },
7616
+ {
7617
+ "key": "kind",
7618
+ "title": "类型",
7619
+ "kind": "original",
7620
+ "type": "<enum 'AppKind'>",
7621
+ "sensitivity": "public",
7622
+ "selectable": true,
7623
+ "system_required": false,
7624
+ "blocked_reason": ""
7625
+ },
7626
+ {
7627
+ "key": "status",
7628
+ "title": "状态",
7629
+ "kind": "original",
7630
+ "type": "<enum 'AppStatus'>",
7631
+ "sensitivity": "public",
7632
+ "selectable": true,
7633
+ "system_required": false,
7634
+ "blocked_reason": ""
7635
+ },
7636
+ {
7637
+ "key": "has_logo",
7638
+ "title": "应用Logo",
7639
+ "kind": "original",
7640
+ "type": "<class 'bool'>",
7641
+ "sensitivity": "public",
7642
+ "selectable": true,
7643
+ "system_required": false,
7644
+ "blocked_reason": ""
7645
+ },
7646
+ {
7647
+ "key": "website_url",
7648
+ "title": "访问链接",
7649
+ "kind": "original",
7650
+ "type": "<class 'str'>",
7651
+ "sensitivity": "public",
7652
+ "selectable": true,
7653
+ "system_required": false,
7654
+ "blocked_reason": ""
7655
+ },
7656
+ {
7657
+ "key": "memo",
7658
+ "title": "备注",
7659
+ "kind": "original",
7660
+ "type": "<class 'str'>",
7661
+ "sensitivity": "public",
7662
+ "selectable": true,
7663
+ "system_required": false,
7664
+ "blocked_reason": ""
7665
+ },
7666
+ {
7667
+ "key": "weight",
7668
+ "title": "门户排序权重",
7669
+ "kind": "original",
7670
+ "type": "<class 'int'>",
7671
+ "sensitivity": "public",
7672
+ "selectable": false,
7673
+ "system_required": false,
7674
+ "blocked_reason": "系统安全字段,禁止进入同步流"
7675
+ },
7676
+ {
7677
+ "key": "max_connects",
7678
+ "title": "最大连接数",
7679
+ "kind": "original",
7680
+ "type": "<class 'int'>",
7681
+ "sensitivity": "public",
7682
+ "selectable": true,
7683
+ "system_required": false,
7684
+ "blocked_reason": ""
7685
+ },
7686
+ {
7687
+ "key": "host",
7688
+ "title": "部署主机",
7689
+ "kind": "original",
7690
+ "type": "<class 'str'>",
7691
+ "sensitivity": "public",
7692
+ "selectable": true,
7693
+ "system_required": false,
7694
+ "blocked_reason": ""
7695
+ },
7696
+ {
7697
+ "key": "template_type",
7698
+ "title": "模板类型",
7699
+ "kind": "original",
7700
+ "type": "<class 'str'>",
7701
+ "sensitivity": "public",
7702
+ "selectable": true,
7703
+ "system_required": false,
7704
+ "blocked_reason": ""
7705
+ },
7706
+ {
7707
+ "key": "owner_user_id",
7708
+ "title": "负责人用户ID",
7709
+ "kind": "original",
7710
+ "type": "<class 'str'>",
7711
+ "sensitivity": "public",
7712
+ "selectable": true,
7713
+ "system_required": false,
7714
+ "blocked_reason": ""
7715
+ },
7716
+ {
7717
+ "key": "secret",
7718
+ "title": "应用密钥",
7719
+ "kind": "original",
7720
+ "type": "<class 'str'>",
7721
+ "sensitivity": "credential",
7722
+ "selectable": false,
7723
+ "system_required": false,
7724
+ "blocked_reason": "系统安全字段,禁止进入同步流"
7725
+ },
7726
+ {
7727
+ "key": "authorization_version",
7728
+ "title": "数据授权版本",
7729
+ "kind": "original",
7730
+ "type": "<class 'int'>",
7731
+ "sensitivity": "public",
7732
+ "selectable": false,
7733
+ "system_required": false,
7734
+ "blocked_reason": "系统安全字段,禁止进入同步流"
7735
+ },
7736
+ {
7737
+ "key": "version",
7738
+ "title": "当前版本",
7739
+ "kind": "original",
7740
+ "type": "<class 'str'>",
7741
+ "sensitivity": "public",
7742
+ "selectable": false,
7743
+ "system_required": false,
7744
+ "blocked_reason": "系统安全字段,禁止进入同步流"
7745
+ },
7746
+ {
7747
+ "key": "last_heartbeat_at",
7748
+ "title": "最近心跳",
7749
+ "kind": "original",
7750
+ "type": "<class 'float'>",
7751
+ "sensitivity": "public",
7752
+ "selectable": false,
7753
+ "system_required": false,
7754
+ "blocked_reason": "系统安全字段,禁止进入同步流"
7755
+ }
7544
7756
  ]
7545
7757
  } as const;
7546
7758
  export type TableName = keyof typeof TABLES;