@ysgroup/contracts 0.1.38 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +12 -44
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/contracts",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
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" | "org_units" | "position_templates" | "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" | "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
- "position_templates": {
429
- "label": "标准岗位工位表",
415
+ "workstations": {
416
+ "label": "工位表",
430
417
  "sort": 156
431
418
  },
432
419
  "brokers": {
@@ -883,13 +870,12 @@ export interface OrgUnit {
883
870
  "memo"?: string; /** 备注 */
884
871
  }
885
872
 
886
- export interface PositionTemplate {
873
+ export interface Workstation {
887
874
  "_id"?: string; /** 主键 */
888
875
  "created_at"?: number; /** 创建时间 */
889
876
  "updated_at"?: number; /** 更新时间 */
890
877
  "deleted_at"?: null | number; /** 软删除时间 */
891
- "parent_id"?: string; /** 上级标准岗位ID */
892
- "kind": PositionTemplateKind; /** 层级 */
878
+ "parent_id"?: string; /** 岗位ID */
893
879
  "name": string; /** 名称 */
894
880
  "memo"?: string; /** 备注 */
895
881
  }
@@ -1007,7 +993,7 @@ export const TABLES = {
1007
993
  "project_owner": "ProjectOwner",
1008
994
  "company_employees": "CompanyEmployee",
1009
995
  "org_units": "OrgUnit",
1010
- "position_templates": "PositionTemplate",
996
+ "workstations": "Workstation",
1011
997
  "apps": "App",
1012
998
  "app_configs": "AppConfig",
1013
999
  "file_metas": "FileMeta",
@@ -1118,8 +1104,8 @@ export const AUTHORIZATION_TABLE_META = {
1118
1104
  "scope_mode": "global",
1119
1105
  "description": "授权后提供全部存活记录"
1120
1106
  },
1121
- "position_templates": {
1122
- "name": "标准岗位工位表",
1107
+ "workstations": {
1108
+ "name": "工位表",
1123
1109
  "category": "组织",
1124
1110
  "scope_mode": "global",
1125
1111
  "description": "授权后提供全部存活记录"
@@ -3048,7 +3034,7 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3048
3034
  "blocked_reason": ""
3049
3035
  }
3050
3036
  ],
3051
- "position_templates": [
3037
+ "workstations": [
3052
3038
  {
3053
3039
  "key": "_id",
3054
3040
  "title": "主键",
@@ -3091,7 +3077,7 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3091
3077
  },
3092
3078
  {
3093
3079
  "key": "parent_id",
3094
- "title": "上级标准岗位ID",
3080
+ "title": "岗位ID",
3095
3081
  "kind": "original",
3096
3082
  "type": "<class 'str'>",
3097
3083
  "sensitivity": "public",
@@ -3099,16 +3085,6 @@ export const AUTHORIZATION_FIELD_CATALOG = {
3099
3085
  "system_required": false,
3100
3086
  "blocked_reason": ""
3101
3087
  },
3102
- {
3103
- "key": "kind",
3104
- "title": "层级",
3105
- "kind": "original",
3106
- "type": "<enum 'PositionTemplateKind'>",
3107
- "sensitivity": "public",
3108
- "selectable": true,
3109
- "system_required": false,
3110
- "blocked_reason": ""
3111
- },
3112
3088
  {
3113
3089
  "key": "name",
3114
3090
  "title": "名称",
@@ -5253,23 +5229,15 @@ export const FIELD_SPECS = {
5253
5229
  "sensitivity": "public"
5254
5230
  }
5255
5231
  ],
5256
- "position_templates": [
5232
+ "workstations": [
5257
5233
  {
5258
5234
  "key": "parent_id",
5259
- "title": "上级标准岗位ID",
5235
+ "title": "岗位ID",
5260
5236
  "widget": "text",
5261
5237
  "enum": null,
5262
5238
  "required": false,
5263
5239
  "sensitivity": "public"
5264
5240
  },
5265
- {
5266
- "key": "kind",
5267
- "title": "层级",
5268
- "widget": "enum",
5269
- "enum": "PositionTemplateKind",
5270
- "required": true,
5271
- "sensitivity": "public"
5272
- },
5273
5241
  {
5274
5242
  "key": "name",
5275
5243
  "title": "名称",