@steedos/service-metadata-objects 2.7.1-beta.2 → 2.7.1-beta.20
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.
|
@@ -4,7 +4,7 @@ exports.MasterDetailActionHandler = exports.getRepeatObjectNameFromPaths = expor
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const metadata_registrar_1 = require("@steedos/metadata-registrar");
|
|
6
6
|
const _ = require("lodash");
|
|
7
|
-
exports.MAX_MASTER_DETAIL_LEAVE =
|
|
7
|
+
exports.MAX_MASTER_DETAIL_LEAVE = 6;
|
|
8
8
|
const getMaxPathLeave = (paths) => {
|
|
9
9
|
let maxLeave = 0;
|
|
10
10
|
_.each(paths, (n) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-metadata-objects",
|
|
3
|
-
"version": "2.7.1-beta.
|
|
3
|
+
"version": "2.7.1-beta.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/objects.service.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@salesforce/ts-types": "1.1.2",
|
|
23
|
-
"@steedos/formula": "2.7.1-beta.
|
|
24
|
-
"@steedos/i18n": "2.7.1-beta.
|
|
25
|
-
"@steedos/metadata-registrar": "2.7.1-beta.
|
|
23
|
+
"@steedos/formula": "2.7.1-beta.20",
|
|
24
|
+
"@steedos/i18n": "2.7.1-beta.20",
|
|
25
|
+
"@steedos/metadata-registrar": "2.7.1-beta.20",
|
|
26
26
|
"dotenv-flow": "^3.1.0",
|
|
27
27
|
"ioredis": "^4.22.0",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "339152347c1bd6a71c01c225ea7d83eae90b086f"
|
|
41
41
|
}
|
|
@@ -5,7 +5,7 @@ import _ = require('lodash')
|
|
|
5
5
|
// 其3层指的是A-B-C-D,它们都有父子关系,A作为最顶层,该对象上不可以再创建主表子表关系字段,但是B、C、D上可以;
|
|
6
6
|
// 或者如果当前对象上创建的主表子表关系字段指向的对象是D,那么也会超过3层的层级限制;
|
|
7
7
|
// 又或者中间加一层M先连接B再连接C,形成A-B-M-C-D,也会超过3层的层级限制;
|
|
8
|
-
export const MAX_MASTER_DETAIL_LEAVE =
|
|
8
|
+
export const MAX_MASTER_DETAIL_LEAVE = 6;
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* 判断传入的paths中最大层级深度
|