@nocobase/plugin-data-source-main 2.1.0-alpha.15 → 2.1.0-alpha.16
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.
package/dist/externalVersion.js
CHANGED
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.1.0-alpha.
|
|
11
|
+
"@nocobase/client": "2.1.0-alpha.16",
|
|
12
12
|
"lodash": "4.17.21",
|
|
13
|
-
"@nocobase/ai": "2.1.0-alpha.
|
|
14
|
-
"@nocobase/database": "2.1.0-alpha.
|
|
15
|
-
"@nocobase/plugin-error-handler": "2.1.0-alpha.
|
|
16
|
-
"@nocobase/server": "2.1.0-alpha.
|
|
13
|
+
"@nocobase/ai": "2.1.0-alpha.16",
|
|
14
|
+
"@nocobase/database": "2.1.0-alpha.16",
|
|
15
|
+
"@nocobase/plugin-error-handler": "2.1.0-alpha.16",
|
|
16
|
+
"@nocobase/server": "2.1.0-alpha.16",
|
|
17
17
|
"sequelize": "6.35.2",
|
|
18
18
|
"@formily/json-schema": "2.3.7",
|
|
19
|
-
"@nocobase/test": "2.1.0-alpha.
|
|
20
|
-
"@nocobase/utils": "2.1.0-alpha.
|
|
21
|
-
"@nocobase/actions": "2.1.0-alpha.
|
|
19
|
+
"@nocobase/test": "2.1.0-alpha.16",
|
|
20
|
+
"@nocobase/utils": "2.1.0-alpha.16",
|
|
21
|
+
"@nocobase/actions": "2.1.0-alpha.16",
|
|
22
22
|
"dayjs": "1.11.13"
|
|
23
23
|
};
|
|
@@ -119,7 +119,7 @@ function inspectModeling(app, collectionName) {
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
function verifyCollectionDefinition(app, collectionName) {
|
|
122
|
-
var _a, _b, _c, _d
|
|
122
|
+
var _a, _b, _c, _d;
|
|
123
123
|
const collection = app.db.getCollection(collectionName);
|
|
124
124
|
if (!collection) {
|
|
125
125
|
throw new Error(`collection ${collectionName} not found`);
|
|
@@ -134,7 +134,7 @@ function verifyCollectionDefinition(app, collectionName) {
|
|
|
134
134
|
if (!((_a = collection.options) == null ? void 0 : _a.template)) {
|
|
135
135
|
issues.push("Collection template is missing.");
|
|
136
136
|
}
|
|
137
|
-
if (!fieldNames.has("id") && ((_b = collection.options) == null ? void 0 : _b.template) !== "
|
|
137
|
+
if (!fieldNames.has("id") && ((_b = collection.options) == null ? void 0 : _b.template) !== "view") {
|
|
138
138
|
issues.push("Primary key field `id` is missing.");
|
|
139
139
|
}
|
|
140
140
|
for (const field of fields) {
|
|
@@ -144,7 +144,7 @@ function verifyCollectionDefinition(app, collectionName) {
|
|
|
144
144
|
if (!field.type) {
|
|
145
145
|
issues.push(`Field ${field.name} is missing type.`);
|
|
146
146
|
}
|
|
147
|
-
if (!((
|
|
147
|
+
if (!((_c = field.uiSchema) == null ? void 0 : _c.title) && !shouldSkipPresentationChecks(field)) {
|
|
148
148
|
issues.push(`Field ${field.name} is missing uiSchema.title.`);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
@@ -153,7 +153,7 @@ function verifyCollectionDefinition(app, collectionName) {
|
|
|
153
153
|
issues,
|
|
154
154
|
data: {
|
|
155
155
|
name: collection.name,
|
|
156
|
-
template: (
|
|
156
|
+
template: (_d = collection.options) == null ? void 0 : _d.template,
|
|
157
157
|
fields: fields.map((field) => {
|
|
158
158
|
var _a2;
|
|
159
159
|
return {
|
|
@@ -199,6 +199,13 @@ function buildTemplateBaseline(input) {
|
|
|
199
199
|
interface: "json",
|
|
200
200
|
type: "json",
|
|
201
201
|
title: "Exclude"
|
|
202
|
+
}),
|
|
203
|
+
...buildPresetFields({
|
|
204
|
+
includeId: true,
|
|
205
|
+
includeCreatedAt: true,
|
|
206
|
+
includeCreatedBy: true,
|
|
207
|
+
includeUpdatedAt: true,
|
|
208
|
+
includeUpdatedBy: true
|
|
202
209
|
})
|
|
203
210
|
]
|
|
204
211
|
};
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"description": "NocoBase main database, supports relational databases such as PostgreSQL, MySQL, MariaDB and so on.",
|
|
7
7
|
"description.ru-RU": "Основная база данных NocoBase: поддерживает реляционные СУБД, включая PostgreSQL, MySQL, MariaDB и другие.",
|
|
8
8
|
"description.zh-CN": "NocoBase 主数据库,支持 PostgreSQL、MySQL、MariaDB 等关系型数据库。",
|
|
9
|
-
"version": "2.1.0-alpha.
|
|
9
|
+
"version": "2.1.0-alpha.16",
|
|
10
10
|
"main": "./dist/server/index.js",
|
|
11
11
|
"homepage": "https://docs.nocobase.com/handbook/data-source-main",
|
|
12
12
|
"homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/data-source-main",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@nocobase/test": "2.x",
|
|
26
26
|
"@nocobase/utils": "2.x"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "14cf3dbdb9f0a9669602de4ad21a9464fa27c105",
|
|
29
29
|
"keywords": [
|
|
30
30
|
"Data sources"
|
|
31
31
|
]
|