@ysgroup/contracts 0.1.39 → 0.1.40
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 +101 -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" | "org_units" | "workstations" | "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" | "org_units" | "workstations" | "owner_workstations" | "brokers" | "broker_branches" | "servers" | "trading_counters" | "trading_nodes" | "trading_seats" | "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 ExchangeBusinessPlatform = "1" | "2" | "3" | "4" | "5" | "6" | "MTP" | "ATP" | "DTP" | "XBTP" | "ITP" | "FISP" | "IITP";
|
|
@@ -416,6 +416,10 @@ export const ENUM_META = {
|
|
|
416
416
|
"label": "工位表",
|
|
417
417
|
"sort": 156
|
|
418
418
|
},
|
|
419
|
+
"owner_workstations": {
|
|
420
|
+
"label": "主体工位关系表",
|
|
421
|
+
"sort": 157
|
|
422
|
+
},
|
|
419
423
|
"brokers": {
|
|
420
424
|
"label": "开户公司表",
|
|
421
425
|
"sort": 160
|
|
@@ -880,6 +884,15 @@ export interface Workstation {
|
|
|
880
884
|
"memo"?: string; /** 备注 */
|
|
881
885
|
}
|
|
882
886
|
|
|
887
|
+
export interface OwnerWorkstation {
|
|
888
|
+
"_id"?: string; /** 主键 */
|
|
889
|
+
"created_at"?: number; /** 创建时间 */
|
|
890
|
+
"updated_at"?: number; /** 更新时间 */
|
|
891
|
+
"deleted_at"?: null | number; /** 软删除时间 */
|
|
892
|
+
"owner_id": string; /** 自然人主体ID */
|
|
893
|
+
"workstation_id": string; /** 工位ID */
|
|
894
|
+
}
|
|
895
|
+
|
|
883
896
|
export interface App {
|
|
884
897
|
"_id"?: string; /** 主键 */
|
|
885
898
|
"created_at"?: number; /** 创建时间 */
|
|
@@ -994,6 +1007,7 @@ export const TABLES = {
|
|
|
994
1007
|
"company_employees": "CompanyEmployee",
|
|
995
1008
|
"org_units": "OrgUnit",
|
|
996
1009
|
"workstations": "Workstation",
|
|
1010
|
+
"owner_workstations": "OwnerWorkstation",
|
|
997
1011
|
"apps": "App",
|
|
998
1012
|
"app_configs": "AppConfig",
|
|
999
1013
|
"file_metas": "FileMeta",
|
|
@@ -1110,6 +1124,12 @@ export const AUTHORIZATION_TABLE_META = {
|
|
|
1110
1124
|
"scope_mode": "global",
|
|
1111
1125
|
"description": "授权后提供全部存活记录"
|
|
1112
1126
|
},
|
|
1127
|
+
"owner_workstations": {
|
|
1128
|
+
"name": "主体工位关系表",
|
|
1129
|
+
"category": "组织",
|
|
1130
|
+
"scope_mode": "derived",
|
|
1131
|
+
"description": "自然人主体获授权且工位表已授权后下发"
|
|
1132
|
+
},
|
|
1113
1133
|
"brokers": {
|
|
1114
1134
|
"name": "开户公司表",
|
|
1115
1135
|
"category": "参考数据",
|
|
@@ -3106,6 +3126,68 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3106
3126
|
"blocked_reason": ""
|
|
3107
3127
|
}
|
|
3108
3128
|
],
|
|
3129
|
+
"owner_workstations": [
|
|
3130
|
+
{
|
|
3131
|
+
"key": "_id",
|
|
3132
|
+
"title": "主键",
|
|
3133
|
+
"kind": "original",
|
|
3134
|
+
"type": "<class 'str'>",
|
|
3135
|
+
"sensitivity": "public",
|
|
3136
|
+
"selectable": true,
|
|
3137
|
+
"system_required": true,
|
|
3138
|
+
"blocked_reason": ""
|
|
3139
|
+
},
|
|
3140
|
+
{
|
|
3141
|
+
"key": "created_at",
|
|
3142
|
+
"title": "创建时间",
|
|
3143
|
+
"kind": "original",
|
|
3144
|
+
"type": "<class 'float'>",
|
|
3145
|
+
"sensitivity": "public",
|
|
3146
|
+
"selectable": true,
|
|
3147
|
+
"system_required": false,
|
|
3148
|
+
"blocked_reason": ""
|
|
3149
|
+
},
|
|
3150
|
+
{
|
|
3151
|
+
"key": "updated_at",
|
|
3152
|
+
"title": "更新时间",
|
|
3153
|
+
"kind": "original",
|
|
3154
|
+
"type": "<class 'float'>",
|
|
3155
|
+
"sensitivity": "public",
|
|
3156
|
+
"selectable": true,
|
|
3157
|
+
"system_required": false,
|
|
3158
|
+
"blocked_reason": ""
|
|
3159
|
+
},
|
|
3160
|
+
{
|
|
3161
|
+
"key": "deleted_at",
|
|
3162
|
+
"title": "软删除时间",
|
|
3163
|
+
"kind": "original",
|
|
3164
|
+
"type": "float | None",
|
|
3165
|
+
"sensitivity": "public",
|
|
3166
|
+
"selectable": false,
|
|
3167
|
+
"system_required": false,
|
|
3168
|
+
"blocked_reason": "系统安全字段,禁止进入同步流"
|
|
3169
|
+
},
|
|
3170
|
+
{
|
|
3171
|
+
"key": "owner_id",
|
|
3172
|
+
"title": "自然人主体ID",
|
|
3173
|
+
"kind": "original",
|
|
3174
|
+
"type": "<class 'str'>",
|
|
3175
|
+
"sensitivity": "public",
|
|
3176
|
+
"selectable": true,
|
|
3177
|
+
"system_required": false,
|
|
3178
|
+
"blocked_reason": ""
|
|
3179
|
+
},
|
|
3180
|
+
{
|
|
3181
|
+
"key": "workstation_id",
|
|
3182
|
+
"title": "工位ID",
|
|
3183
|
+
"kind": "original",
|
|
3184
|
+
"type": "<class 'str'>",
|
|
3185
|
+
"sensitivity": "public",
|
|
3186
|
+
"selectable": true,
|
|
3187
|
+
"system_required": false,
|
|
3188
|
+
"blocked_reason": ""
|
|
3189
|
+
}
|
|
3190
|
+
],
|
|
3109
3191
|
"brokers": [
|
|
3110
3192
|
{
|
|
3111
3193
|
"key": "_id",
|
|
@@ -5255,6 +5337,24 @@ export const FIELD_SPECS = {
|
|
|
5255
5337
|
"sensitivity": "public"
|
|
5256
5338
|
}
|
|
5257
5339
|
],
|
|
5340
|
+
"owner_workstations": [
|
|
5341
|
+
{
|
|
5342
|
+
"key": "owner_id",
|
|
5343
|
+
"title": "自然人主体ID",
|
|
5344
|
+
"widget": "text",
|
|
5345
|
+
"enum": null,
|
|
5346
|
+
"required": true,
|
|
5347
|
+
"sensitivity": "public"
|
|
5348
|
+
},
|
|
5349
|
+
{
|
|
5350
|
+
"key": "workstation_id",
|
|
5351
|
+
"title": "工位ID",
|
|
5352
|
+
"widget": "text",
|
|
5353
|
+
"enum": null,
|
|
5354
|
+
"required": true,
|
|
5355
|
+
"sensitivity": "public"
|
|
5356
|
+
}
|
|
5357
|
+
],
|
|
5258
5358
|
"apps": [
|
|
5259
5359
|
{
|
|
5260
5360
|
"key": "name",
|