@ysgroup/contracts 0.1.45 → 0.1.46

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 +1 -158
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/contracts",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
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" | "apps";
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" | "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";
@@ -482,10 +482,6 @@ export const ENUM_META = {
482
482
  "label": "文件元数据表",
483
483
  "sort": 210
484
484
  },
485
- "app_configs": {
486
- "label": "应用配置表",
487
- "sort": 220
488
- },
489
485
  "apps": {
490
486
  "label": "应用表",
491
487
  "sort": 230
@@ -4185,18 +4181,6 @@ export interface App {
4185
4181
  "last_heartbeat_at"?: number; /** 最近心跳 */
4186
4182
  }
4187
4183
 
4188
- export interface AppConfig {
4189
- "_id"?: string; /** 主键 */
4190
- "created_at"?: number; /** 创建时间 */
4191
- "updated_at"?: number; /** 更新时间 */
4192
- "deleted_at"?: null | number; /** 软删除时间 */
4193
- "app_id": string; /** 应用ID */
4194
- "key": string; /** 配置键 */
4195
- "value"?: unknown; /** 配置值 */
4196
- "hot_reload"?: boolean; /** 可热更新 */
4197
- "memo"?: string; /** 备注 */
4198
- }
4199
-
4200
4184
  export interface FileMeta {
4201
4185
  "_id"?: string; /** 主键 */
4202
4186
  "created_at"?: number; /** 创建时间 */
@@ -4279,7 +4263,6 @@ export const TABLES = {
4279
4263
  "approval_roles": "ApprovalRole",
4280
4264
  "owner_approvals": "OwnerApproval",
4281
4265
  "apps": "App",
4282
- "app_configs": "AppConfig",
4283
4266
  "file_metas": "FileMeta",
4284
4267
  "field_groups": "FieldGroup",
4285
4268
  "app_table_grants": "AppTableGrant",
@@ -4460,12 +4443,6 @@ export const AUTHORIZATION_TABLE_META = {
4460
4443
  "scope_mode": "derived",
4461
4444
  "description": "按关联主体、账户或银行卡授权后下发"
4462
4445
  },
4463
- "app_configs": {
4464
- "name": "应用配置表",
4465
- "category": "配置",
4466
- "scope_mode": "app_owned",
4467
- "description": "仅下发当前应用自己的配置"
4468
- },
4469
4446
  "apps": {
4470
4447
  "name": "应用表",
4471
4448
  "category": "配置",
@@ -7460,98 +7437,6 @@ export const AUTHORIZATION_FIELD_CATALOG = {
7460
7437
  "blocked_reason": ""
7461
7438
  }
7462
7439
  ],
7463
- "app_configs": [
7464
- {
7465
- "key": "_id",
7466
- "title": "主键",
7467
- "kind": "original",
7468
- "type": "<class 'str'>",
7469
- "sensitivity": "public",
7470
- "selectable": true,
7471
- "system_required": true,
7472
- "blocked_reason": ""
7473
- },
7474
- {
7475
- "key": "created_at",
7476
- "title": "创建时间",
7477
- "kind": "original",
7478
- "type": "<class 'float'>",
7479
- "sensitivity": "public",
7480
- "selectable": true,
7481
- "system_required": false,
7482
- "blocked_reason": ""
7483
- },
7484
- {
7485
- "key": "updated_at",
7486
- "title": "更新时间",
7487
- "kind": "original",
7488
- "type": "<class 'float'>",
7489
- "sensitivity": "public",
7490
- "selectable": true,
7491
- "system_required": false,
7492
- "blocked_reason": ""
7493
- },
7494
- {
7495
- "key": "deleted_at",
7496
- "title": "软删除时间",
7497
- "kind": "original",
7498
- "type": "float | None",
7499
- "sensitivity": "public",
7500
- "selectable": false,
7501
- "system_required": false,
7502
- "blocked_reason": "系统安全字段,禁止进入同步流"
7503
- },
7504
- {
7505
- "key": "app_id",
7506
- "title": "应用ID",
7507
- "kind": "original",
7508
- "type": "<class 'str'>",
7509
- "sensitivity": "public",
7510
- "selectable": true,
7511
- "system_required": false,
7512
- "blocked_reason": ""
7513
- },
7514
- {
7515
- "key": "key",
7516
- "title": "配置键",
7517
- "kind": "original",
7518
- "type": "<class 'str'>",
7519
- "sensitivity": "public",
7520
- "selectable": true,
7521
- "system_required": false,
7522
- "blocked_reason": ""
7523
- },
7524
- {
7525
- "key": "value",
7526
- "title": "配置值",
7527
- "kind": "original",
7528
- "type": "typing.Any",
7529
- "sensitivity": "public",
7530
- "selectable": true,
7531
- "system_required": false,
7532
- "blocked_reason": ""
7533
- },
7534
- {
7535
- "key": "hot_reload",
7536
- "title": "可热更新",
7537
- "kind": "original",
7538
- "type": "<class 'bool'>",
7539
- "sensitivity": "public",
7540
- "selectable": true,
7541
- "system_required": false,
7542
- "blocked_reason": ""
7543
- },
7544
- {
7545
- "key": "memo",
7546
- "title": "备注",
7547
- "kind": "original",
7548
- "type": "<class 'str'>",
7549
- "sensitivity": "public",
7550
- "selectable": true,
7551
- "system_required": false,
7552
- "blocked_reason": ""
7553
- }
7554
- ],
7555
7440
  "apps": [
7556
7441
  {
7557
7442
  "key": "_id",
@@ -9211,48 +9096,6 @@ export const FIELD_SPECS = {
9211
9096
  "sensitivity": "public"
9212
9097
  }
9213
9098
  ],
9214
- "app_configs": [
9215
- {
9216
- "key": "app_id",
9217
- "title": "应用ID",
9218
- "widget": "text",
9219
- "enum": null,
9220
- "required": true,
9221
- "sensitivity": "public"
9222
- },
9223
- {
9224
- "key": "key",
9225
- "title": "配置键",
9226
- "widget": "text",
9227
- "enum": null,
9228
- "required": true,
9229
- "sensitivity": "public"
9230
- },
9231
- {
9232
- "key": "value",
9233
- "title": "配置值",
9234
- "widget": "json",
9235
- "enum": null,
9236
- "required": false,
9237
- "sensitivity": "public"
9238
- },
9239
- {
9240
- "key": "hot_reload",
9241
- "title": "可热更新",
9242
- "widget": "switch",
9243
- "enum": null,
9244
- "required": false,
9245
- "sensitivity": "public"
9246
- },
9247
- {
9248
- "key": "memo",
9249
- "title": "备注",
9250
- "widget": "text",
9251
- "enum": null,
9252
- "required": false,
9253
- "sensitivity": "public"
9254
- }
9255
- ],
9256
9099
  "file_metas": [
9257
9100
  {
9258
9101
  "key": "file_name",