@ysgroup/contracts 0.1.9 → 0.1.10

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 +25 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/contracts",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/index.ts CHANGED
@@ -946,7 +946,7 @@ export const DERIVED_FIELD_SPECS = {
946
946
  "dependency_policy": "same_record"
947
947
  },
948
948
  {
949
- "key": "admin",
949
+ "key": "is_admin",
950
950
  "title": "应用管理员",
951
951
  "source_table": "user_app",
952
952
  "source_field": "admin",
@@ -960,6 +960,13 @@ export const DERIVED_FIELD_SPECS = {
960
960
  "source_table": "owners",
961
961
  "source_field": "name",
962
962
  "dependency_policy": "same_record"
963
+ },
964
+ {
965
+ "key": "broker_name",
966
+ "title": "开户公司名称",
967
+ "source_table": "brokers",
968
+ "source_field": "broker_name",
969
+ "dependency_policy": "same_record"
963
970
  }
964
971
  ]
965
972
  } as const;
@@ -1011,9 +1018,9 @@ export const AUTHORIZATION_FIELD_CATALOG = {
1011
1018
  "kind": "original",
1012
1019
  "type": "<class 'bool'>",
1013
1020
  "sensitivity": "public",
1014
- "selectable": true,
1015
- "system_required": true,
1016
- "blocked_reason": ""
1021
+ "selectable": false,
1022
+ "system_required": false,
1023
+ "blocked_reason": "系统安全字段,禁止进入同步流"
1017
1024
  },
1018
1025
  {
1019
1026
  "key": "username",
@@ -1109,7 +1116,7 @@ export const AUTHORIZATION_FIELD_CATALOG = {
1109
1116
  "blocked_reason": ""
1110
1117
  },
1111
1118
  {
1112
- "key": "admin",
1119
+ "key": "is_admin",
1113
1120
  "title": "应用管理员",
1114
1121
  "source_table": "user_app",
1115
1122
  "source_field": "admin",
@@ -1789,6 +1796,19 @@ export const AUTHORIZATION_FIELD_CATALOG = {
1789
1796
  "selectable": true,
1790
1797
  "system_required": false,
1791
1798
  "blocked_reason": ""
1799
+ },
1800
+ {
1801
+ "key": "broker_name",
1802
+ "title": "开户公司名称",
1803
+ "source_table": "brokers",
1804
+ "source_field": "broker_name",
1805
+ "dependency_policy": "same_record",
1806
+ "kind": "derived",
1807
+ "type": "derived",
1808
+ "sensitivity": "public",
1809
+ "selectable": true,
1810
+ "system_required": false,
1811
+ "blocked_reason": ""
1792
1812
  }
1793
1813
  ],
1794
1814
  "exchange_accounts": [