qing-client 0.0.40 → 0.0.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/lib/types/org.d.ts +48 -0
  2. package/package.json +1 -1
@@ -5,6 +5,30 @@ export interface Organization {
5
5
  name: string;
6
6
  description?: string | null;
7
7
  enabled: boolean;
8
+ /**
9
+ * 组织类型
10
+ * - 0: 超级组织(根级别,系统级)
11
+ * - 1: 普通组织(业务级)
12
+ */
13
+ type?: 0 | 1;
14
+ /**
15
+ * 父组织ID(仅普通组织使用)
16
+ * - 超级组织固定为 null
17
+ * - 普通组织指向父组织的 orgCode
18
+ */
19
+ parentId?: string | null;
20
+ /**
21
+ * 组织层级(仅普通组织使用)
22
+ * - 超级组织固定为 0
23
+ * - 普通组织:0-5,表示从根组织开始的层级深度
24
+ */
25
+ level?: number;
26
+ /**
27
+ * 组织路径(仅普通组织使用)
28
+ * - 超级组织通常为 "super"
29
+ * - 普通组织:从根组织到当前组织的路径,如 "super/org1/org2"
30
+ */
31
+ path?: string | null;
8
32
  createdAt: string;
9
33
  updatedAt: string;
10
34
  }
@@ -32,6 +56,30 @@ export interface Project {
32
56
  wechatOfficialAccountId?: string | null;
33
57
  wechatMiniProgramId?: string | null;
34
58
  enabled: boolean;
59
+ /**
60
+ * 项目类型
61
+ * - 0: 超级项目(根级别,系统级)
62
+ * - 1: 普通项目(业务级)
63
+ */
64
+ type?: 0 | 1;
65
+ /**
66
+ * 父项目ID(仅普通项目使用)
67
+ * - 超级项目固定为 null
68
+ * - 普通项目指向父项目的 configId
69
+ */
70
+ parentId?: string | null;
71
+ /**
72
+ * 项目层级(仅普通项目使用)
73
+ * - 超级项目固定为 0
74
+ * - 普通项目:0-5,表示从根项目开始的层级深度
75
+ */
76
+ level?: number;
77
+ /**
78
+ * 项目路径(仅普通项目使用)
79
+ * - 超级项目通常为 "0"
80
+ * - 普通项目:从根项目到当前项目的路径,如 "0/east/shanghai"
81
+ */
82
+ path?: string | null;
35
83
  createdAt?: string;
36
84
  updatedAt: string;
37
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qing-client",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {