@ldsg/field-type 0.3.37 → 0.3.40
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/constants.d.ts.map +1 -1
- package/dist/constants.js +3 -0
- package/dist/resource-records/array.d.ts.map +1 -1
- package/dist/resource-records/array.js +6 -5
- package/dist/resource-records/boolean.d.ts.map +1 -1
- package/dist/resource-records/boolean.js +6 -5
- package/dist/resource-records/mongo-id.d.ts.map +1 -1
- package/dist/resource-records/mongo-id.js +6 -5
- package/dist/resource-records/number.d.ts.map +1 -1
- package/dist/resource-records/number.js +6 -5
- package/dist/resource-records/object.d.ts.map +1 -1
- package/dist/resource-records/object.js +6 -5
- package/dist/resource-records/string.d.ts.map +1 -1
- package/dist/resource-records/string.js +6 -5
- package/package.json +6 -6
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,0CAA0C,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,sDAAsD,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,0CAA0C,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,sDAAsD,EAAE,uBAIpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uDAAuD,EAAE,+BAQnE,CAAC;AAEJ,eAAO,MAAM,6CAA6C,EAAE,uBAI3D,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,0CAG1D,CAAC;AAEJ,eAAO,MAAM,yBAAyB,yBAKrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kDAAkD,EAAE,uBAIhE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mDAAmD,EAAE,+BAyC/D,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -7,6 +7,7 @@ const field_type_info_1 = require("./types/field-type-info");
|
|
|
7
7
|
* 实例化资源处理程序普通资源配置
|
|
8
8
|
*/
|
|
9
9
|
exports.INSTANTIATE_RESOURCE_HANDLER_GENERAL_RESOURCE_SETTINGS = {
|
|
10
|
+
slug: "field-type-instantiate-resource-handler",
|
|
10
11
|
title: "字段类型实例化资源处理程序",
|
|
11
12
|
description: "",
|
|
12
13
|
};
|
|
@@ -24,6 +25,7 @@ exports.INSTANTIATE_RESOURCE_HANDLER_SPECIFIC_RESOURCE_SETTINGS = {
|
|
|
24
25
|
],
|
|
25
26
|
};
|
|
26
27
|
exports.RESOURCE_DEFINITION_GENERAL_RESOURCE_SETTINGS = {
|
|
28
|
+
slug: "field-type-resource-definition",
|
|
27
29
|
title: "字段类型资源定义",
|
|
28
30
|
description: "",
|
|
29
31
|
};
|
|
@@ -41,6 +43,7 @@ exports.FieldTypeBasePlatformList = [
|
|
|
41
43
|
* 默认扩展处理程序普通资源配置
|
|
42
44
|
*/
|
|
43
45
|
exports.DEFAULT_EXTENDED_HANDLER_GENERAL_RESOURCE_SETTINGS = {
|
|
46
|
+
slug: "field-type-default-extended-handler",
|
|
44
47
|
title: "字段类型默认扩展处理程序",
|
|
45
48
|
description: "",
|
|
46
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../src/resource-records/array.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../src/resource-records/array.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAGL,iCAAiC,EAClC,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,4BAA4B,EAAE,cAAc,CACvD,+BAA+B,CAAC,iCAAiC,CAAC,CAenE,CAAC;AAyBF,eAAO,MAAM,mCAAmC,EAAE,cAAc,CAAC,+BAA+B,CAa7F,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.arrayFieldTypeHandlerResourceRecord = exports.arrayFieldTypeResourceRecord = void 0;
|
|
4
|
-
const constants_1 = require("
|
|
5
|
-
const constants_2 = require("../constants");
|
|
4
|
+
const constants_1 = require("../constants");
|
|
6
5
|
const types_1 = require("../types");
|
|
7
6
|
exports.arrayFieldTypeResourceRecord = {
|
|
8
7
|
id: "array-field-type",
|
|
9
|
-
kind:
|
|
10
|
-
parentId:
|
|
8
|
+
kind: constants_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
9
|
+
parentId: null,
|
|
11
10
|
settings: {
|
|
11
|
+
slug: "array-field-type",
|
|
12
12
|
title: "数组字段类型",
|
|
13
13
|
description: "",
|
|
14
14
|
fieldPropertiesSchema: {
|
|
@@ -38,8 +38,9 @@ const handler = (params) => {
|
|
|
38
38
|
exports.arrayFieldTypeHandlerResourceRecord = {
|
|
39
39
|
id: "array-field-type-handler",
|
|
40
40
|
kind: "handler",
|
|
41
|
-
parentId:
|
|
41
|
+
parentId: null,
|
|
42
42
|
settings: {
|
|
43
|
+
slug: "array-field-type-handler",
|
|
43
44
|
title: "数组字段类型处理程序",
|
|
44
45
|
description: "",
|
|
45
46
|
code: "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../src/resource-records/boolean.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../src/resource-records/boolean.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAGL,iCAAiC,EAClC,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,8BAA8B,EAAE,cAAc,CACzD,+BAA+B,CAAC,iCAAiC,CAAC,CAenE,CAAC;AA+BF,eAAO,MAAM,qCAAqC,EAAE,cAAc,CAAC,+BAA+B,CAa/F,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.booleanFieldTypeHandlerResourceRecord = exports.booleanFieldTypeResourceRecord = void 0;
|
|
4
|
-
const constants_1 = require("
|
|
5
|
-
const constants_2 = require("../constants");
|
|
4
|
+
const constants_1 = require("../constants");
|
|
6
5
|
const types_1 = require("../types");
|
|
7
6
|
exports.booleanFieldTypeResourceRecord = {
|
|
8
7
|
id: "boolean-field-type",
|
|
9
|
-
kind:
|
|
10
|
-
parentId:
|
|
8
|
+
kind: constants_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
9
|
+
parentId: null,
|
|
11
10
|
settings: {
|
|
11
|
+
slug: "boolean-field-type",
|
|
12
12
|
title: "布尔字段类型",
|
|
13
13
|
description: "",
|
|
14
14
|
fieldPropertiesSchema: {
|
|
@@ -42,8 +42,9 @@ const handler = (params) => {
|
|
|
42
42
|
exports.booleanFieldTypeHandlerResourceRecord = {
|
|
43
43
|
id: "boolean-field-type-handler",
|
|
44
44
|
kind: "handler",
|
|
45
|
-
parentId:
|
|
45
|
+
parentId: null,
|
|
46
46
|
settings: {
|
|
47
|
+
slug: "boolean-field-type-handler",
|
|
47
48
|
title: "布尔字段类型处理程序",
|
|
48
49
|
description: "",
|
|
49
50
|
code: "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongo-id.d.ts","sourceRoot":"","sources":["../../src/resource-records/mongo-id.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mongo-id.d.ts","sourceRoot":"","sources":["../../src/resource-records/mongo-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,EAGL,iCAAiC,EAClC,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,8BAA8B,EAAE,cAAc,CACzD,+BAA+B,CAAC,iCAAiC,CAAC,CAenE,CAAC;AAuCF,eAAO,MAAM,qCAAqC,EAAE,cAAc,CAAC,+BAA+B,CAa/F,CAAC"}
|
|
@@ -34,15 +34,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.mongoIdFieldTypeHandlerResourceRecord = exports.mongoIdFieldTypeResourceRecord = void 0;
|
|
37
|
-
const constants_1 = require("@ldsg/constants");
|
|
38
37
|
const mongodb = __importStar(require("mongodb"));
|
|
39
|
-
const
|
|
38
|
+
const constants_1 = require("../constants");
|
|
40
39
|
const types_1 = require("../types");
|
|
41
40
|
exports.mongoIdFieldTypeResourceRecord = {
|
|
42
41
|
id: "mongo-id-field-type",
|
|
43
|
-
kind:
|
|
44
|
-
parentId:
|
|
42
|
+
kind: constants_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
43
|
+
parentId: null,
|
|
45
44
|
settings: {
|
|
45
|
+
slug: "mongo-id-field-type",
|
|
46
46
|
title: "MongoID字段类型",
|
|
47
47
|
description: "",
|
|
48
48
|
fieldPropertiesSchema: {
|
|
@@ -82,8 +82,9 @@ const handler = (params) => {
|
|
|
82
82
|
exports.mongoIdFieldTypeHandlerResourceRecord = {
|
|
83
83
|
id: "mongo-id-field-type-handler",
|
|
84
84
|
kind: "handler",
|
|
85
|
-
parentId:
|
|
85
|
+
parentId: null,
|
|
86
86
|
settings: {
|
|
87
|
+
slug: "mongo-id-field-type-handler",
|
|
87
88
|
title: "MongoID字段类型处理程序",
|
|
88
89
|
description: "",
|
|
89
90
|
code: "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/resource-records/number.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/resource-records/number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAGL,iCAAiC,EAClC,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,6BAA6B,EAAE,cAAc,CACxD,+BAA+B,CAAC,iCAAiC,CAAC,CA0BnE,CAAC;AA+BF,eAAO,MAAM,oCAAoC,EAAE,cAAc,CAAC,+BAA+B,CAa9F,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.numberFieldTypeHandlerResourceRecord = exports.numberFieldTypeResourceRecord = void 0;
|
|
4
|
-
const constants_1 = require("
|
|
5
|
-
const constants_2 = require("../constants");
|
|
4
|
+
const constants_1 = require("../constants");
|
|
6
5
|
const types_1 = require("../types");
|
|
7
6
|
exports.numberFieldTypeResourceRecord = {
|
|
8
7
|
id: "number-field-type",
|
|
9
|
-
kind:
|
|
10
|
-
parentId:
|
|
8
|
+
kind: constants_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
9
|
+
parentId: null,
|
|
11
10
|
settings: {
|
|
11
|
+
slug: "number-field-type",
|
|
12
12
|
title: "数字字段类型",
|
|
13
13
|
description: "可用来存储各种数字",
|
|
14
14
|
fieldPropertiesSchema: {
|
|
@@ -53,8 +53,9 @@ const handler = (params) => {
|
|
|
53
53
|
exports.numberFieldTypeHandlerResourceRecord = {
|
|
54
54
|
id: "number-field-type-handler",
|
|
55
55
|
kind: "handler",
|
|
56
|
-
parentId:
|
|
56
|
+
parentId: null,
|
|
57
57
|
settings: {
|
|
58
|
+
slug: "number-field-type-handler",
|
|
58
59
|
title: "数字字段类型处理程序",
|
|
59
60
|
description: "",
|
|
60
61
|
code: "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../src/resource-records/object.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../src/resource-records/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAGL,iCAAiC,EAClC,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,6BAA6B,EAAE,cAAc,CACxD,+BAA+B,CAAC,iCAAiC,CAAC,CAenE,CAAC;AAyBF,eAAO,MAAM,oCAAoC,EAAE,cAAc,CAAC,+BAA+B,CAa9F,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.objectFieldTypeHandlerResourceRecord = exports.objectFieldTypeResourceRecord = void 0;
|
|
4
|
-
const constants_1 = require("
|
|
5
|
-
const constants_2 = require("../constants");
|
|
4
|
+
const constants_1 = require("../constants");
|
|
6
5
|
const types_1 = require("../types");
|
|
7
6
|
exports.objectFieldTypeResourceRecord = {
|
|
8
7
|
id: "object-field-type",
|
|
9
|
-
kind:
|
|
10
|
-
parentId:
|
|
8
|
+
kind: constants_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
9
|
+
parentId: null,
|
|
11
10
|
settings: {
|
|
11
|
+
slug: "object-field-type",
|
|
12
12
|
title: "对象字段类型",
|
|
13
13
|
description: "",
|
|
14
14
|
fieldPropertiesSchema: {
|
|
@@ -38,8 +38,9 @@ const handler = (params) => {
|
|
|
38
38
|
exports.objectFieldTypeHandlerResourceRecord = {
|
|
39
39
|
id: "object-field-type-handler",
|
|
40
40
|
kind: "handler",
|
|
41
|
-
parentId:
|
|
41
|
+
parentId: null,
|
|
42
42
|
settings: {
|
|
43
|
+
slug: "object-field-type-handler",
|
|
43
44
|
title: "对象字段类型处理程序",
|
|
44
45
|
description: "",
|
|
45
46
|
code: "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/resource-records/string.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/resource-records/string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAGL,iCAAiC,EAClC,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,6BAA6B,EAAE,cAAc,CACxD,+BAA+B,CAAC,iCAAiC,CAAC,CAenE,CAAC;AA+BF,eAAO,MAAM,oCAAoC,EAAE,cAAc,CAAC,+BAA+B,CAa9F,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stringFieldTypeHandlerResourceRecord = exports.stringFieldTypeResourceRecord = void 0;
|
|
4
|
-
const constants_1 = require("
|
|
5
|
-
const constants_2 = require("../constants");
|
|
4
|
+
const constants_1 = require("../constants");
|
|
6
5
|
const types_1 = require("../types");
|
|
7
6
|
exports.stringFieldTypeResourceRecord = {
|
|
8
7
|
id: "string-field-type",
|
|
9
|
-
kind:
|
|
10
|
-
parentId:
|
|
8
|
+
kind: constants_1.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS.kind,
|
|
9
|
+
parentId: null,
|
|
11
10
|
settings: {
|
|
11
|
+
slug: "string-field-type",
|
|
12
12
|
title: "字符串字段类型",
|
|
13
13
|
description: "",
|
|
14
14
|
fieldPropertiesSchema: {
|
|
@@ -42,8 +42,9 @@ const handler = (params) => {
|
|
|
42
42
|
exports.stringFieldTypeHandlerResourceRecord = {
|
|
43
43
|
id: "string-field-type-handler",
|
|
44
44
|
kind: "handler",
|
|
45
|
-
parentId:
|
|
45
|
+
parentId: null,
|
|
46
46
|
settings: {
|
|
47
|
+
slug: "string-field-type-handler",
|
|
47
48
|
title: "字符串字段类型处理程序",
|
|
48
49
|
description: "",
|
|
49
50
|
code: "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldsg/field-type",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.40",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"json-schema": "0.4.0",
|
|
18
18
|
"mongodb": "^6.16.0",
|
|
19
19
|
"zod": "^4.1.11",
|
|
20
|
-
"@ldsg/constants": "0.3.
|
|
21
|
-
"@ldsg/resource": "0.3.
|
|
22
|
-
"@ldsg/resource
|
|
23
|
-
"@ldsg/
|
|
24
|
-
"@ldsg/
|
|
20
|
+
"@ldsg/constants": "0.3.40",
|
|
21
|
+
"@ldsg/resource-definition": "0.3.40",
|
|
22
|
+
"@ldsg/resource": "0.3.40",
|
|
23
|
+
"@ldsg/types": "0.3.40",
|
|
24
|
+
"@ldsg/handler": "0.3.40"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/jest": "^29.5.2",
|