@ysgroup/contracts 0.1.37 → 0.1.39
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 +12 -82
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" | "
|
|
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";
|
|
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";
|
|
@@ -13,7 +13,6 @@ export type FieldGroupStatus = "draft" | "published" | "archived";
|
|
|
13
13
|
export type GatewayMode = "db" | "flow";
|
|
14
14
|
export type OrgUnitKind = "Department" | "Position";
|
|
15
15
|
export type OwnerType = "Product" | "LegalPerson" | "NaturalPerson";
|
|
16
|
-
export type PositionTemplateKind = "Position" | "Workstation";
|
|
17
16
|
export type RecordScopeMode = "user_app" | "global" | "explicit" | "derived" | "app_owned";
|
|
18
17
|
export type Sensitivity = "public" | "restricted" | "credential";
|
|
19
18
|
export type ServerType = "td" | "md";
|
|
@@ -88,18 +87,6 @@ export const ENUM_META = {
|
|
|
88
87
|
"sort": 1
|
|
89
88
|
}
|
|
90
89
|
},
|
|
91
|
-
"PositionTemplateKind": {
|
|
92
|
-
"Position": {
|
|
93
|
-
"name": "标准岗位",
|
|
94
|
-
"parent_kind": "",
|
|
95
|
-
"sort": 0
|
|
96
|
-
},
|
|
97
|
-
"Workstation": {
|
|
98
|
-
"name": "工位",
|
|
99
|
-
"parent_kind": "Position",
|
|
100
|
-
"sort": 1
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
90
|
"ExchangeType": {
|
|
104
91
|
"SH": {
|
|
105
92
|
"name": "上交所",
|
|
@@ -425,8 +412,8 @@ export const ENUM_META = {
|
|
|
425
412
|
"label": "组织单元表",
|
|
426
413
|
"sort": 155
|
|
427
414
|
},
|
|
428
|
-
"
|
|
429
|
-
"label": "
|
|
415
|
+
"workstations": {
|
|
416
|
+
"label": "工位表",
|
|
430
417
|
"sort": 156
|
|
431
418
|
},
|
|
432
419
|
"brokers": {
|
|
@@ -880,19 +867,16 @@ export interface OrgUnit {
|
|
|
880
867
|
"parent_id"?: string; /** 上级单元ID */
|
|
881
868
|
"kind": OrgUnitKind; /** 层级 */
|
|
882
869
|
"name": string; /** 名称 */
|
|
883
|
-
"sort"?: number; /** 排序 */
|
|
884
870
|
"memo"?: string; /** 备注 */
|
|
885
871
|
}
|
|
886
872
|
|
|
887
|
-
export interface
|
|
873
|
+
export interface Workstation {
|
|
888
874
|
"_id"?: string; /** 主键 */
|
|
889
875
|
"created_at"?: number; /** 创建时间 */
|
|
890
876
|
"updated_at"?: number; /** 更新时间 */
|
|
891
877
|
"deleted_at"?: null | number; /** 软删除时间 */
|
|
892
|
-
"parent_id"?: string; /**
|
|
893
|
-
"kind": PositionTemplateKind; /** 层级 */
|
|
878
|
+
"parent_id"?: string; /** 岗位ID */
|
|
894
879
|
"name": string; /** 名称 */
|
|
895
|
-
"sort"?: number; /** 排序 */
|
|
896
880
|
"memo"?: string; /** 备注 */
|
|
897
881
|
}
|
|
898
882
|
|
|
@@ -1009,7 +993,7 @@ export const TABLES = {
|
|
|
1009
993
|
"project_owner": "ProjectOwner",
|
|
1010
994
|
"company_employees": "CompanyEmployee",
|
|
1011
995
|
"org_units": "OrgUnit",
|
|
1012
|
-
"
|
|
996
|
+
"workstations": "Workstation",
|
|
1013
997
|
"apps": "App",
|
|
1014
998
|
"app_configs": "AppConfig",
|
|
1015
999
|
"file_metas": "FileMeta",
|
|
@@ -1120,8 +1104,8 @@ export const AUTHORIZATION_TABLE_META = {
|
|
|
1120
1104
|
"scope_mode": "global",
|
|
1121
1105
|
"description": "授权后提供全部存活记录"
|
|
1122
1106
|
},
|
|
1123
|
-
"
|
|
1124
|
-
"name": "
|
|
1107
|
+
"workstations": {
|
|
1108
|
+
"name": "工位表",
|
|
1125
1109
|
"category": "组织",
|
|
1126
1110
|
"scope_mode": "global",
|
|
1127
1111
|
"description": "授权后提供全部存活记录"
|
|
@@ -3039,16 +3023,6 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3039
3023
|
"system_required": false,
|
|
3040
3024
|
"blocked_reason": ""
|
|
3041
3025
|
},
|
|
3042
|
-
{
|
|
3043
|
-
"key": "sort",
|
|
3044
|
-
"title": "排序",
|
|
3045
|
-
"kind": "original",
|
|
3046
|
-
"type": "<class 'int'>",
|
|
3047
|
-
"sensitivity": "public",
|
|
3048
|
-
"selectable": true,
|
|
3049
|
-
"system_required": false,
|
|
3050
|
-
"blocked_reason": ""
|
|
3051
|
-
},
|
|
3052
3026
|
{
|
|
3053
3027
|
"key": "memo",
|
|
3054
3028
|
"title": "备注",
|
|
@@ -3060,7 +3034,7 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3060
3034
|
"blocked_reason": ""
|
|
3061
3035
|
}
|
|
3062
3036
|
],
|
|
3063
|
-
"
|
|
3037
|
+
"workstations": [
|
|
3064
3038
|
{
|
|
3065
3039
|
"key": "_id",
|
|
3066
3040
|
"title": "主键",
|
|
@@ -3103,7 +3077,7 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3103
3077
|
},
|
|
3104
3078
|
{
|
|
3105
3079
|
"key": "parent_id",
|
|
3106
|
-
"title": "
|
|
3080
|
+
"title": "岗位ID",
|
|
3107
3081
|
"kind": "original",
|
|
3108
3082
|
"type": "<class 'str'>",
|
|
3109
3083
|
"sensitivity": "public",
|
|
@@ -3111,16 +3085,6 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3111
3085
|
"system_required": false,
|
|
3112
3086
|
"blocked_reason": ""
|
|
3113
3087
|
},
|
|
3114
|
-
{
|
|
3115
|
-
"key": "kind",
|
|
3116
|
-
"title": "层级",
|
|
3117
|
-
"kind": "original",
|
|
3118
|
-
"type": "<enum 'PositionTemplateKind'>",
|
|
3119
|
-
"sensitivity": "public",
|
|
3120
|
-
"selectable": true,
|
|
3121
|
-
"system_required": false,
|
|
3122
|
-
"blocked_reason": ""
|
|
3123
|
-
},
|
|
3124
3088
|
{
|
|
3125
3089
|
"key": "name",
|
|
3126
3090
|
"title": "名称",
|
|
@@ -3131,16 +3095,6 @@ export const AUTHORIZATION_FIELD_CATALOG = {
|
|
|
3131
3095
|
"system_required": false,
|
|
3132
3096
|
"blocked_reason": ""
|
|
3133
3097
|
},
|
|
3134
|
-
{
|
|
3135
|
-
"key": "sort",
|
|
3136
|
-
"title": "排序",
|
|
3137
|
-
"kind": "original",
|
|
3138
|
-
"type": "<class 'int'>",
|
|
3139
|
-
"sensitivity": "public",
|
|
3140
|
-
"selectable": true,
|
|
3141
|
-
"system_required": false,
|
|
3142
|
-
"blocked_reason": ""
|
|
3143
|
-
},
|
|
3144
3098
|
{
|
|
3145
3099
|
"key": "memo",
|
|
3146
3100
|
"title": "备注",
|
|
@@ -5266,14 +5220,6 @@ export const FIELD_SPECS = {
|
|
|
5266
5220
|
"required": true,
|
|
5267
5221
|
"sensitivity": "public"
|
|
5268
5222
|
},
|
|
5269
|
-
{
|
|
5270
|
-
"key": "sort",
|
|
5271
|
-
"title": "排序",
|
|
5272
|
-
"widget": "number",
|
|
5273
|
-
"enum": null,
|
|
5274
|
-
"required": false,
|
|
5275
|
-
"sensitivity": "public"
|
|
5276
|
-
},
|
|
5277
5223
|
{
|
|
5278
5224
|
"key": "memo",
|
|
5279
5225
|
"title": "备注",
|
|
@@ -5283,23 +5229,15 @@ export const FIELD_SPECS = {
|
|
|
5283
5229
|
"sensitivity": "public"
|
|
5284
5230
|
}
|
|
5285
5231
|
],
|
|
5286
|
-
"
|
|
5232
|
+
"workstations": [
|
|
5287
5233
|
{
|
|
5288
5234
|
"key": "parent_id",
|
|
5289
|
-
"title": "
|
|
5235
|
+
"title": "岗位ID",
|
|
5290
5236
|
"widget": "text",
|
|
5291
5237
|
"enum": null,
|
|
5292
5238
|
"required": false,
|
|
5293
5239
|
"sensitivity": "public"
|
|
5294
5240
|
},
|
|
5295
|
-
{
|
|
5296
|
-
"key": "kind",
|
|
5297
|
-
"title": "层级",
|
|
5298
|
-
"widget": "enum",
|
|
5299
|
-
"enum": "PositionTemplateKind",
|
|
5300
|
-
"required": true,
|
|
5301
|
-
"sensitivity": "public"
|
|
5302
|
-
},
|
|
5303
5241
|
{
|
|
5304
5242
|
"key": "name",
|
|
5305
5243
|
"title": "名称",
|
|
@@ -5308,14 +5246,6 @@ export const FIELD_SPECS = {
|
|
|
5308
5246
|
"required": true,
|
|
5309
5247
|
"sensitivity": "public"
|
|
5310
5248
|
},
|
|
5311
|
-
{
|
|
5312
|
-
"key": "sort",
|
|
5313
|
-
"title": "排序",
|
|
5314
|
-
"widget": "number",
|
|
5315
|
-
"enum": null,
|
|
5316
|
-
"required": false,
|
|
5317
|
-
"sensitivity": "public"
|
|
5318
|
-
},
|
|
5319
5249
|
{
|
|
5320
5250
|
"key": "memo",
|
|
5321
5251
|
"title": "备注",
|