@ldsg/field-type 0.3.10 → 0.3.17
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/types/field-type-info.d.ts +20 -0
- package/dist/types/field-type-info.d.ts.map +1 -1
- package/dist/types/field-type-info.js +20 -0
- package/package.json +8 -7
- package/dist/types/field-type-resource-handler.d.ts +0 -18
- package/dist/types/field-type-resource-handler.d.ts.map +0 -1
- package/dist/types/field-type-resource-handler.js +0 -2
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
export declare enum FieldTypeBasePlatform {
|
|
2
|
+
/**
|
|
3
|
+
* common
|
|
4
|
+
*/
|
|
2
5
|
COMMON = "COMMON",
|
|
6
|
+
/**
|
|
7
|
+
* GraphQL
|
|
8
|
+
*/
|
|
3
9
|
GRAPHQL = "GRAPHQL",
|
|
10
|
+
/**
|
|
11
|
+
* JSON
|
|
12
|
+
*/
|
|
4
13
|
JSON = "JSON",
|
|
14
|
+
/**
|
|
15
|
+
* JSON Schema
|
|
16
|
+
*/
|
|
17
|
+
JSON_SCHEMA = "JSON_SCHEMA",
|
|
18
|
+
/**
|
|
19
|
+
* Formily JSON Schema
|
|
20
|
+
*/
|
|
21
|
+
FORMILY_JSON_SCHEMA = "FORMILY_JSON_SCHEMA",
|
|
22
|
+
/**
|
|
23
|
+
* mongoose
|
|
24
|
+
*/
|
|
5
25
|
MONGOOSE = "MONGOOSE"
|
|
6
26
|
}
|
|
7
27
|
export type FieldTypePlatform = FieldTypeBasePlatform | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-type-info.d.ts","sourceRoot":"","sources":["../../src/types/field-type-info.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,MAAM,WAAW;
|
|
1
|
+
{"version":3,"file":"field-type-info.d.ts","sourceRoot":"","sources":["../../src/types/field-type-info.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,IAAI,SAAS;IAEb;;OAEG;IACH,WAAW,gBAAgB;IAE3B;;OAEG;IACH,mBAAmB,wBAAwB;IAE3C;;OAEG;IACH,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GAAG,MAAM,CAAC;AAE/D,MAAM,MAAM,SAAS,GAAG,GAAG,CAAC;AAE5B,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAC;AAErE,MAAM,WAAW,aAAa;IAC5B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC"}
|
|
@@ -3,8 +3,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FieldTypeBasePlatform = void 0;
|
|
4
4
|
var FieldTypeBasePlatform;
|
|
5
5
|
(function (FieldTypeBasePlatform) {
|
|
6
|
+
/**
|
|
7
|
+
* common
|
|
8
|
+
*/
|
|
6
9
|
FieldTypeBasePlatform["COMMON"] = "COMMON";
|
|
10
|
+
/**
|
|
11
|
+
* GraphQL
|
|
12
|
+
*/
|
|
7
13
|
FieldTypeBasePlatform["GRAPHQL"] = "GRAPHQL";
|
|
14
|
+
/**
|
|
15
|
+
* JSON
|
|
16
|
+
*/
|
|
8
17
|
FieldTypeBasePlatform["JSON"] = "JSON";
|
|
18
|
+
/**
|
|
19
|
+
* JSON Schema
|
|
20
|
+
*/
|
|
21
|
+
FieldTypeBasePlatform["JSON_SCHEMA"] = "JSON_SCHEMA";
|
|
22
|
+
/**
|
|
23
|
+
* Formily JSON Schema
|
|
24
|
+
*/
|
|
25
|
+
FieldTypeBasePlatform["FORMILY_JSON_SCHEMA"] = "FORMILY_JSON_SCHEMA";
|
|
26
|
+
/**
|
|
27
|
+
* mongoose
|
|
28
|
+
*/
|
|
9
29
|
FieldTypeBasePlatform["MONGOOSE"] = "MONGOOSE";
|
|
10
30
|
})(FieldTypeBasePlatform || (exports.FieldTypeBasePlatform = FieldTypeBasePlatform = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldsg/field-type",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"json-schema": "0.4.0",
|
|
15
15
|
"mongodb": "^6.16.0",
|
|
16
|
-
"@ldsg/
|
|
17
|
-
"@ldsg/
|
|
18
|
-
"@ldsg/resource
|
|
19
|
-
"@ldsg/
|
|
16
|
+
"@ldsg/constants": "0.3.17",
|
|
17
|
+
"@ldsg/handler": "0.3.17",
|
|
18
|
+
"@ldsg/resource": "0.3.17",
|
|
19
|
+
"@ldsg/resource-definition": "0.3.17"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/jest": "^29.5.2",
|
|
@@ -26,13 +26,14 @@
|
|
|
26
26
|
"ts-jest": "^29.1.5",
|
|
27
27
|
"ts-node": "^10.9.2",
|
|
28
28
|
"typescript": "^5.8.3",
|
|
29
|
-
"@ldsg/types": "0.3.
|
|
29
|
+
"@ldsg/types": "0.3.17"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsc --project tsconfig.build.json",
|
|
36
|
-
"clean": "rm -rf dist"
|
|
36
|
+
"clean": "rm -rf dist",
|
|
37
|
+
"test": "jest"
|
|
37
38
|
}
|
|
38
39
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { HandlerWithHandlerResourceInstance } from '@ldsg/handler';
|
|
2
|
-
import { FieldType, FieldTypePlatform } from './field-type-info';
|
|
3
|
-
export interface PlatformParams {
|
|
4
|
-
/**
|
|
5
|
-
* Platform
|
|
6
|
-
* Such as mongoose\formily.
|
|
7
|
-
*/
|
|
8
|
-
platform: FieldTypePlatform;
|
|
9
|
-
}
|
|
10
|
-
interface FieldTypeResourceExtendedHandlerParams extends PlatformParams {
|
|
11
|
-
/**
|
|
12
|
-
* Field Properties
|
|
13
|
-
*/
|
|
14
|
-
fieldProperties: any;
|
|
15
|
-
}
|
|
16
|
-
export type FieldTypeResourceExtendedHandler = HandlerWithHandlerResourceInstance<FieldTypeResourceExtendedHandlerParams, FieldType>;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=field-type-resource-handler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-type-resource-handler.d.ts","sourceRoot":"","sources":["../../src/types/field-type-resource-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEjE,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,QAAQ,EAAE,iBAAiB,CAAC;CAC7B;AAED,UAAU,sCAAuC,SAAQ,cAAc;IACrE;;OAEG;IACH,eAAe,EAAE,GAAG,CAAC;CACtB;AAED,MAAM,MAAM,gCAAgC,GAAG,kCAAkC,CAC/E,sCAAsC,EACtC,SAAS,CACV,CAAC"}
|