@ysgroup/contracts 0.1.5 → 0.1.6

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 +8 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ysgroup/contracts",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/index.ts CHANGED
@@ -14,7 +14,7 @@ export type Sensitivity = "public" | "restricted" | "credential";
14
14
  export type ServerType = "td" | "md";
15
15
  export type TeamType = "Manager" | "Commoner";
16
16
  export type TradeEnvType = "LIVE" | "TEST";
17
- export type UserRole = "Root" | "Admin" | "Manager" | "Member" | "Viewer";
17
+ export type UserRole = "Root" | "Admin" | "Manager" | "Editor" | "Viewer" | "Initiate";
18
18
 
19
19
  // ---------- 枚举展示元数据 ----------
20
20
  export const ENUM_META = {
@@ -28,16 +28,20 @@ export const ENUM_META = {
28
28
  "sort": 80
29
29
  },
30
30
  "Manager": {
31
- "label": "业务管理员",
31
+ "label": "业务主管",
32
32
  "sort": 60
33
33
  },
34
- "Member": {
35
- "label": "普通成员",
34
+ "Editor": {
35
+ "label": "编辑成员",
36
36
  "sort": 40
37
37
  },
38
38
  "Viewer": {
39
39
  "label": "只读成员",
40
40
  "sort": 20
41
+ },
42
+ "Initiate": {
43
+ "label": "初始成员",
44
+ "sort": 0
41
45
  }
42
46
  },
43
47
  "TeamType": {