@nocobase/plugin-user-data-sync 1.4.0-alpha.20240828033319 → 1.4.0-alpha.20240902021325

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.
@@ -10,15 +10,15 @@
10
10
  module.exports = {
11
11
  "react": "18.2.0",
12
12
  "@formily/react": "2.3.0",
13
- "@nocobase/client": "1.4.0-alpha.20240828033319",
13
+ "@nocobase/client": "1.4.0-alpha.20240902021325",
14
14
  "antd": "5.12.8",
15
15
  "@ant-design/icons": "5.2.6",
16
16
  "@formily/core": "2.3.0",
17
- "@nocobase/utils": "1.4.0-alpha.20240828033319",
18
- "@nocobase/server": "1.4.0-alpha.20240828033319",
19
- "@nocobase/logger": "1.4.0-alpha.20240828033319",
20
- "@nocobase/actions": "1.4.0-alpha.20240828033319",
17
+ "@nocobase/utils": "1.4.0-alpha.20240902021325",
18
+ "@nocobase/server": "1.4.0-alpha.20240902021325",
19
+ "@nocobase/logger": "1.4.0-alpha.20240902021325",
20
+ "@nocobase/actions": "1.4.0-alpha.20240902021325",
21
21
  "dayjs": "1.11.10",
22
- "@nocobase/database": "1.4.0-alpha.20240828033319",
22
+ "@nocobase/database": "1.4.0-alpha.20240902021325",
23
23
  "react-i18next": "11.18.6"
24
24
  };
@@ -15,7 +15,7 @@ export type FormatUser = {
15
15
  email?: string;
16
16
  nickname?: string;
17
17
  phone?: string;
18
- departments?: string[];
18
+ departments?: (string | FormatUserDepartment)[];
19
19
  isDeleted?: boolean;
20
20
  [key: string]: any;
21
21
  };
@@ -26,6 +26,10 @@ export type FormatDepartment = {
26
26
  isDeleted?: boolean;
27
27
  [key: string]: any;
28
28
  };
29
+ export type FormatUserDepartment = {
30
+ uid: string;
31
+ isOwner?: boolean;
32
+ };
29
33
  export type UserDataRecord = FormatUser | FormatDepartment;
30
34
  export type SyncDataType = 'user' | 'department';
31
35
  export type SyncAccept = SyncDataType;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "用户数据同步",
5
5
  "description": "Provide user data source management and user data synchronization interface. The data source can be DingTalk, WeCom, etc., and can be expanded.",
6
6
  "description.zh-CN": "提供用户数据源管理,用户数据同步接口,数据源可为钉钉、企业微信等,可扩展。",
7
- "version": "1.4.0-alpha.20240828033319",
7
+ "version": "1.4.0-alpha.20240902021325",
8
8
  "main": "dist/server/index.js",
9
9
  "peerDependencies": {
10
10
  "@nocobase/client": "1.x",
@@ -14,5 +14,5 @@
14
14
  "keywords": [
15
15
  "Users & permissions"
16
16
  ],
17
- "gitHead": "5d94dbfbb478e9fd43179fdc3b3915b4104edd08"
17
+ "gitHead": "2ccf0ea37b011a79b8983b96f5bd85d174936530"
18
18
  }