@ysgroup/contracts 0.1.40 → 0.1.41

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 +4 -174
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/contracts",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/index.ts CHANGED
@@ -4,14 +4,13 @@
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" | "owner_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" | "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";
11
11
  export type ExchangeType = "SH" | "SZ" | "SHFE" | "CFFEX" | "CZCE" | "DCE" | "GFEX" | "INE" | "SGE";
12
12
  export type FieldGroupStatus = "draft" | "published" | "archived";
13
13
  export type GatewayMode = "db" | "flow";
14
- export type OrgUnitKind = "Department" | "Position";
15
14
  export type OwnerType = "Product" | "LegalPerson" | "NaturalPerson";
16
15
  export type RecordScopeMode = "user_app" | "global" | "explicit" | "derived" | "app_owned";
17
16
  export type Sensitivity = "public" | "restricted" | "credential";
@@ -75,18 +74,6 @@ export const ENUM_META = {
75
74
  "sort": 2
76
75
  }
77
76
  },
78
- "OrgUnitKind": {
79
- "Department": {
80
- "name": "部门",
81
- "parent_kind": "",
82
- "sort": 0
83
- },
84
- "Position": {
85
- "name": "岗位",
86
- "parent_kind": "Department",
87
- "sort": 1
88
- }
89
- },
90
77
  "ExchangeType": {
91
78
  "SH": {
92
79
  "name": "上交所",
@@ -408,10 +395,6 @@ export const ENUM_META = {
408
395
  "label": "任职关系表",
409
396
  "sort": 150
410
397
  },
411
- "org_units": {
412
- "label": "组织单元表",
413
- "sort": 155
414
- },
415
398
  "workstations": {
416
399
  "label": "工位表",
417
400
  "sort": 156
@@ -862,24 +845,12 @@ export interface CompanyEmployee {
862
845
  "employee_id": string; /** 自然人ID(owners) */
863
846
  }
864
847
 
865
- export interface OrgUnit {
866
- "_id"?: string; /** 主键 */
867
- "created_at"?: number; /** 创建时间 */
868
- "updated_at"?: number; /** 更新时间 */
869
- "deleted_at"?: null | number; /** 软删除时间 */
870
- "company_id": string; /** 所属公司ID */
871
- "parent_id"?: string; /** 上级单元ID */
872
- "kind": OrgUnitKind; /** 层级 */
873
- "name": string; /** 名称 */
874
- "memo"?: string; /** 备注 */
875
- }
876
-
877
848
  export interface Workstation {
878
849
  "_id"?: string; /** 主键 */
879
850
  "created_at"?: number; /** 创建时间 */
880
851
  "updated_at"?: number; /** 更新时间 */
881
852
  "deleted_at"?: null | number; /** 软删除时间 */
882
- "parent_id"?: string; /** 岗位ID */
853
+ "parent_id"?: string; /** 上级ID */
883
854
  "name": string; /** 名称 */
884
855
  "memo"?: string; /** 备注 */
885
856
  }
@@ -1005,7 +976,6 @@ export const TABLES = {
1005
976
  "owner_strategy": "OwnerStrategy",
1006
977
  "project_owner": "ProjectOwner",
1007
978
  "company_employees": "CompanyEmployee",
1008
- "org_units": "OrgUnit",
1009
979
  "workstations": "Workstation",
1010
980
  "owner_workstations": "OwnerWorkstation",
1011
981
  "apps": "App",
@@ -1112,12 +1082,6 @@ export const AUTHORIZATION_TABLE_META = {
1112
1082
  "scope_mode": "derived",
1113
1083
  "description": "法人和员工主体均获授权后下发"
1114
1084
  },
1115
- "org_units": {
1116
- "name": "组织单元表",
1117
- "category": "组织",
1118
- "scope_mode": "global",
1119
- "description": "授权后提供全部存活记录"
1120
- },
1121
1085
  "workstations": {
1122
1086
  "name": "工位表",
1123
1087
  "category": "组织",
@@ -2962,98 +2926,6 @@ export const AUTHORIZATION_FIELD_CATALOG = {
2962
2926
  "blocked_reason": ""
2963
2927
  }
2964
2928
  ],
2965
- "org_units": [
2966
- {
2967
- "key": "_id",
2968
- "title": "主键",
2969
- "kind": "original",
2970
- "type": "<class 'str'>",
2971
- "sensitivity": "public",
2972
- "selectable": true,
2973
- "system_required": true,
2974
- "blocked_reason": ""
2975
- },
2976
- {
2977
- "key": "created_at",
2978
- "title": "创建时间",
2979
- "kind": "original",
2980
- "type": "<class 'float'>",
2981
- "sensitivity": "public",
2982
- "selectable": true,
2983
- "system_required": false,
2984
- "blocked_reason": ""
2985
- },
2986
- {
2987
- "key": "updated_at",
2988
- "title": "更新时间",
2989
- "kind": "original",
2990
- "type": "<class 'float'>",
2991
- "sensitivity": "public",
2992
- "selectable": true,
2993
- "system_required": false,
2994
- "blocked_reason": ""
2995
- },
2996
- {
2997
- "key": "deleted_at",
2998
- "title": "软删除时间",
2999
- "kind": "original",
3000
- "type": "float | None",
3001
- "sensitivity": "public",
3002
- "selectable": false,
3003
- "system_required": false,
3004
- "blocked_reason": "系统安全字段,禁止进入同步流"
3005
- },
3006
- {
3007
- "key": "company_id",
3008
- "title": "所属公司ID",
3009
- "kind": "original",
3010
- "type": "<class 'str'>",
3011
- "sensitivity": "public",
3012
- "selectable": true,
3013
- "system_required": false,
3014
- "blocked_reason": ""
3015
- },
3016
- {
3017
- "key": "parent_id",
3018
- "title": "上级单元ID",
3019
- "kind": "original",
3020
- "type": "<class 'str'>",
3021
- "sensitivity": "public",
3022
- "selectable": true,
3023
- "system_required": false,
3024
- "blocked_reason": ""
3025
- },
3026
- {
3027
- "key": "kind",
3028
- "title": "层级",
3029
- "kind": "original",
3030
- "type": "<enum 'OrgUnitKind'>",
3031
- "sensitivity": "public",
3032
- "selectable": true,
3033
- "system_required": false,
3034
- "blocked_reason": ""
3035
- },
3036
- {
3037
- "key": "name",
3038
- "title": "名称",
3039
- "kind": "original",
3040
- "type": "<class 'str'>",
3041
- "sensitivity": "public",
3042
- "selectable": true,
3043
- "system_required": false,
3044
- "blocked_reason": ""
3045
- },
3046
- {
3047
- "key": "memo",
3048
- "title": "备注",
3049
- "kind": "original",
3050
- "type": "<class 'str'>",
3051
- "sensitivity": "public",
3052
- "selectable": true,
3053
- "system_required": false,
3054
- "blocked_reason": ""
3055
- }
3056
- ],
3057
2929
  "workstations": [
3058
2930
  {
3059
2931
  "key": "_id",
@@ -3097,7 +2969,7 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3097
2969
  },
3098
2970
  {
3099
2971
  "key": "parent_id",
3100
- "title": "岗位ID",
2972
+ "title": "上级ID",
3101
2973
  "kind": "original",
3102
2974
  "type": "<class 'str'>",
3103
2975
  "sensitivity": "public",
@@ -5269,52 +5141,10 @@ export const FIELD_SPECS = {
5269
5141
  "sensitivity": "public"
5270
5142
  }
5271
5143
  ],
5272
- "org_units": [
5273
- {
5274
- "key": "company_id",
5275
- "title": "所属公司ID",
5276
- "widget": "text",
5277
- "enum": null,
5278
- "required": true,
5279
- "sensitivity": "public"
5280
- },
5281
- {
5282
- "key": "parent_id",
5283
- "title": "上级单元ID",
5284
- "widget": "text",
5285
- "enum": null,
5286
- "required": false,
5287
- "sensitivity": "public"
5288
- },
5289
- {
5290
- "key": "kind",
5291
- "title": "层级",
5292
- "widget": "enum",
5293
- "enum": "OrgUnitKind",
5294
- "required": true,
5295
- "sensitivity": "public"
5296
- },
5297
- {
5298
- "key": "name",
5299
- "title": "名称",
5300
- "widget": "text",
5301
- "enum": null,
5302
- "required": true,
5303
- "sensitivity": "public"
5304
- },
5305
- {
5306
- "key": "memo",
5307
- "title": "备注",
5308
- "widget": "text",
5309
- "enum": null,
5310
- "required": false,
5311
- "sensitivity": "public"
5312
- }
5313
- ],
5314
5144
  "workstations": [
5315
5145
  {
5316
5146
  "key": "parent_id",
5317
- "title": "岗位ID",
5147
+ "title": "上级ID",
5318
5148
  "widget": "text",
5319
5149
  "enum": null,
5320
5150
  "required": false,