@nocobase/plugin-data-source-manager 2.1.0-alpha.9 → 2.1.0-beta.10

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.
@@ -88,6 +88,44 @@ const updatedAtField = {
88
88
  "x-read-pretty": true
89
89
  }
90
90
  };
91
+ const createdByField = {
92
+ type: "belongsTo",
93
+ name: "createdBy",
94
+ interface: "createdBy",
95
+ target: "users",
96
+ foreignKey: "createdById",
97
+ uiSchema: {
98
+ type: "object",
99
+ title: '{{t("Created by")}}',
100
+ "x-component": "AssociationField",
101
+ "x-component-props": {
102
+ fieldNames: {
103
+ value: "id",
104
+ label: "nickname"
105
+ }
106
+ },
107
+ "x-read-pretty": true
108
+ }
109
+ };
110
+ const updatedByField = {
111
+ type: "belongsTo",
112
+ name: "updatedBy",
113
+ interface: "updatedBy",
114
+ target: "users",
115
+ foreignKey: "updatedById",
116
+ uiSchema: {
117
+ type: "object",
118
+ title: '{{t("Last updated by")}}',
119
+ "x-component": "AssociationField",
120
+ "x-component-props": {
121
+ fieldNames: {
122
+ value: "id",
123
+ label: "nickname"
124
+ }
125
+ },
126
+ "x-read-pretty": true
127
+ }
128
+ };
91
129
  class IntentError extends Error {
92
130
  constructor(message) {
93
131
  super(message);
@@ -161,6 +199,14 @@ var defineCollections_default = (0, import_ai.defineTools)({
161
199
  systemFields.push(updatedAtField);
162
200
  options.updatedAt = true;
163
201
  }
202
+ if (options.createdBy) {
203
+ systemFields.push(createdByField);
204
+ options.createdBy = true;
205
+ }
206
+ if (options.updatedBy) {
207
+ systemFields.push(updatedByField);
208
+ options.updatedBy = true;
209
+ }
164
210
  const baseFields = [...systemFields, ...normalFields];
165
211
  const collection = await repo.findOne({ filter: { name: options.name }, transaction });
166
212
  if (!collection) {
@@ -8,27 +8,27 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.1.0-alpha.9",
11
+ "@nocobase/client": "2.1.0-beta.10",
12
12
  "react": "18.2.0",
13
- "@nocobase/plugin-acl": "2.1.0-alpha.9",
14
- "@nocobase/utils": "2.1.0-alpha.9",
15
- "@nocobase/server": "2.1.0-alpha.9",
16
- "@nocobase/data-source-manager": "2.1.0-alpha.9",
13
+ "@nocobase/plugin-acl": "2.1.0-beta.10",
14
+ "@nocobase/utils": "2.1.0-beta.10",
15
+ "@nocobase/server": "2.1.0-beta.10",
16
+ "@nocobase/data-source-manager": "2.1.0-beta.10",
17
17
  "lodash": "4.17.21",
18
- "@nocobase/acl": "2.1.0-alpha.9",
19
- "@nocobase/database": "2.1.0-alpha.9",
20
- "@nocobase/actions": "2.1.0-alpha.9",
21
- "@nocobase/ai": "2.1.0-alpha.9",
18
+ "@nocobase/acl": "2.1.0-beta.10",
19
+ "@nocobase/database": "2.1.0-beta.10",
20
+ "@nocobase/actions": "2.1.0-beta.10",
21
+ "@nocobase/ai": "2.1.0-beta.10",
22
22
  "@ant-design/icons": "5.6.1",
23
23
  "antd": "5.24.2",
24
24
  "react-router-dom": "6.30.1",
25
- "@nocobase/flow-engine": "2.1.0-alpha.9",
25
+ "@nocobase/flow-engine": "2.1.0-beta.10",
26
26
  "@formily/shared": "2.3.7",
27
27
  "@formily/react": "2.3.7",
28
28
  "react-i18next": "11.18.6",
29
29
  "@emotion/css": "11.13.0",
30
30
  "sequelize": "6.35.2",
31
- "@nocobase/test": "2.1.0-alpha.9",
31
+ "@nocobase/test": "2.1.0-beta.10",
32
32
  "@formily/antd-v5": "1.2.3",
33
33
  "@formily/core": "2.3.7",
34
34
  "@formily/reactive": "2.3.7",
@@ -1 +1 @@
1
- {"name":"zod","version":"4.3.5","type":"module","license":"MIT","author":"Colin McDonnell <zod@colinhacks.com>","description":"TypeScript-first schema declaration and validation library with static type inference","homepage":"https://zod.dev","llms":"https://zod.dev/llms.txt","llmsFull":"https://zod.dev/llms-full.txt","mcpServer":"https://mcp.inkeep.com/zod/mcp","funding":"https://github.com/sponsors/colinhacks","sideEffects":false,"files":["src","**/*.js","**/*.mjs","**/*.cjs","**/*.d.ts","**/*.d.mts","**/*.d.cts","**/package.json"],"keywords":["typescript","schema","validation","type","inference"],"main":"./index.cjs","types":"./index.d.cts","module":"./index.js","zshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts","./mini":"./src/mini/index.ts","./locales":"./src/locales/index.ts","./v3":"./src/v3/index.ts","./v4":"./src/v4/index.ts","./v4-mini":"./src/v4-mini/index.ts","./v4/mini":"./src/v4/mini/index.ts","./v4/core":"./src/v4/core/index.ts","./v4/locales":"./src/v4/locales/index.ts","./v4/locales/*":"./src/v4/locales/*"},"conditions":{"@zod/source":"src"}},"exports":{"./package.json":"./package.json",".":{"@zod/source":"./src/index.ts","types":"./index.d.cts","import":"./index.js","require":"./index.cjs"},"./mini":{"@zod/source":"./src/mini/index.ts","types":"./mini/index.d.cts","import":"./mini/index.js","require":"./mini/index.cjs"},"./locales":{"@zod/source":"./src/locales/index.ts","types":"./locales/index.d.cts","import":"./locales/index.js","require":"./locales/index.cjs"},"./v3":{"@zod/source":"./src/v3/index.ts","types":"./v3/index.d.cts","import":"./v3/index.js","require":"./v3/index.cjs"},"./v4":{"@zod/source":"./src/v4/index.ts","types":"./v4/index.d.cts","import":"./v4/index.js","require":"./v4/index.cjs"},"./v4-mini":{"@zod/source":"./src/v4-mini/index.ts","types":"./v4-mini/index.d.cts","import":"./v4-mini/index.js","require":"./v4-mini/index.cjs"},"./v4/mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./v4/mini/index.d.cts","import":"./v4/mini/index.js","require":"./v4/mini/index.cjs"},"./v4/core":{"@zod/source":"./src/v4/core/index.ts","types":"./v4/core/index.d.cts","import":"./v4/core/index.js","require":"./v4/core/index.cjs"},"./v4/locales":{"@zod/source":"./src/v4/locales/index.ts","types":"./v4/locales/index.d.cts","import":"./v4/locales/index.js","require":"./v4/locales/index.cjs"},"./v4/locales/*":{"@zod/source":"./src/v4/locales/*","types":"./v4/locales/*","import":"./v4/locales/*","require":"./v4/locales/*"}},"repository":{"type":"git","url":"git+https://github.com/colinhacks/zod.git"},"bugs":{"url":"https://github.com/colinhacks/zod/issues"},"support":{"backing":{"npm-funding":true}},"scripts":{"clean":"git clean -xdf . -e node_modules","build":"zshy --project tsconfig.build.json","postbuild":"tsx ../../scripts/write-stub-package-jsons.ts && pnpm biome check --write .","test:watch":"pnpm vitest","test":"pnpm vitest run","prepublishOnly":"tsx ../../scripts/check-versions.ts"},"_lastModified":"2026-03-14T11:46:59.429Z"}
1
+ {"name":"zod","version":"4.3.5","type":"module","license":"MIT","author":"Colin McDonnell <zod@colinhacks.com>","description":"TypeScript-first schema declaration and validation library with static type inference","homepage":"https://zod.dev","llms":"https://zod.dev/llms.txt","llmsFull":"https://zod.dev/llms-full.txt","mcpServer":"https://mcp.inkeep.com/zod/mcp","funding":"https://github.com/sponsors/colinhacks","sideEffects":false,"files":["src","**/*.js","**/*.mjs","**/*.cjs","**/*.d.ts","**/*.d.mts","**/*.d.cts","**/package.json"],"keywords":["typescript","schema","validation","type","inference"],"main":"./index.cjs","types":"./index.d.cts","module":"./index.js","zshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts","./mini":"./src/mini/index.ts","./locales":"./src/locales/index.ts","./v3":"./src/v3/index.ts","./v4":"./src/v4/index.ts","./v4-mini":"./src/v4-mini/index.ts","./v4/mini":"./src/v4/mini/index.ts","./v4/core":"./src/v4/core/index.ts","./v4/locales":"./src/v4/locales/index.ts","./v4/locales/*":"./src/v4/locales/*"},"conditions":{"@zod/source":"src"}},"exports":{"./package.json":"./package.json",".":{"@zod/source":"./src/index.ts","types":"./index.d.cts","import":"./index.js","require":"./index.cjs"},"./mini":{"@zod/source":"./src/mini/index.ts","types":"./mini/index.d.cts","import":"./mini/index.js","require":"./mini/index.cjs"},"./locales":{"@zod/source":"./src/locales/index.ts","types":"./locales/index.d.cts","import":"./locales/index.js","require":"./locales/index.cjs"},"./v3":{"@zod/source":"./src/v3/index.ts","types":"./v3/index.d.cts","import":"./v3/index.js","require":"./v3/index.cjs"},"./v4":{"@zod/source":"./src/v4/index.ts","types":"./v4/index.d.cts","import":"./v4/index.js","require":"./v4/index.cjs"},"./v4-mini":{"@zod/source":"./src/v4-mini/index.ts","types":"./v4-mini/index.d.cts","import":"./v4-mini/index.js","require":"./v4-mini/index.cjs"},"./v4/mini":{"@zod/source":"./src/v4/mini/index.ts","types":"./v4/mini/index.d.cts","import":"./v4/mini/index.js","require":"./v4/mini/index.cjs"},"./v4/core":{"@zod/source":"./src/v4/core/index.ts","types":"./v4/core/index.d.cts","import":"./v4/core/index.js","require":"./v4/core/index.cjs"},"./v4/locales":{"@zod/source":"./src/v4/locales/index.ts","types":"./v4/locales/index.d.cts","import":"./v4/locales/index.js","require":"./v4/locales/index.cjs"},"./v4/locales/*":{"@zod/source":"./src/v4/locales/*","types":"./v4/locales/*","import":"./v4/locales/*","require":"./v4/locales/*"}},"repository":{"type":"git","url":"git+https://github.com/colinhacks/zod.git"},"bugs":{"url":"https://github.com/colinhacks/zod/issues"},"support":{"backing":{"npm-funding":true}},"scripts":{"clean":"git clean -xdf . -e node_modules","build":"zshy --project tsconfig.build.json","postbuild":"tsx ../../scripts/write-stub-package-jsons.ts && pnpm biome check --write .","test:watch":"pnpm vitest","test":"pnpm vitest run","prepublishOnly":"tsx ../../scripts/check-versions.ts"},"_lastModified":"2026-03-19T03:11:59.724Z"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-data-source-manager",
3
- "version": "2.1.0-alpha.9",
3
+ "version": "2.1.0-beta.10",
4
4
  "main": "dist/server/index.js",
5
5
  "displayName": "Data source manager",
6
6
  "displayName.ru-RU": "Менеджер управления источниками данных",
@@ -20,6 +20,6 @@
20
20
  "keywords": [
21
21
  "Data model tools"
22
22
  ],
23
- "gitHead": "f9c6c53772bd5002fa419188d15ab227224f1962",
23
+ "gitHead": "f7e467710d4748f7089b779494b220025b39bc02",
24
24
  "license": "Apache-2.0"
25
25
  }