@ldsg/object 0.3.25 → 0.3.26
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/LICENSE +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +1 -3
- package/dist/types/get-field-info.d.ts +4 -0
- package/dist/types/get-field-info.d.ts.map +1 -1
- package/dist/types/specific-resource-settings.d.ts +8 -7
- package/dist/types/specific-resource-settings.d.ts.map +1 -1
- package/dist/types/specific-resource-settings.js +11 -0
- package/package.json +9 -8
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014-present
|
|
3
|
+
Copyright (c) 2014-present Wanxger and other contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"
|
|
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;AAEtD;;;GAGG;AACH,eAAO,MAAM,sDAAsD,EAAE,uBAGpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uDAAuD,EAAE,+BAOrE,CAAC;AAEF,eAAO,MAAM,6CAA6C,EAAE,uBAG3D,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,0CAE5D,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS = exports.RESOURCE_DEFINITION_GENERAL_RESOURCE_SETTINGS = exports.INSTANTIATE_RESOURCE_HANDLER_SPECIFIC_RESOURCE_SETTINGS = exports.INSTANTIATE_RESOURCE_HANDLER_GENERAL_RESOURCE_SETTINGS = void 0;
|
|
4
|
-
const constants_1 = require("@ldsg/constants");
|
|
5
4
|
/**
|
|
6
5
|
* Instantiate Resource Handler General Resource Settings
|
|
7
6
|
* 实例化资源处理程序普通资源配置
|
|
@@ -28,6 +27,5 @@ exports.RESOURCE_DEFINITION_GENERAL_RESOURCE_SETTINGS = {
|
|
|
28
27
|
description: ''
|
|
29
28
|
};
|
|
30
29
|
exports.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS = {
|
|
31
|
-
kind: 'object'
|
|
32
|
-
parentKind: constants_1.ROOT_RESOURCE_KIND
|
|
30
|
+
kind: 'object'
|
|
33
31
|
};
|
|
@@ -13,6 +13,10 @@ export interface FieldInfo extends GeneralResourceSettings {
|
|
|
13
13
|
* Field Type Info
|
|
14
14
|
*/
|
|
15
15
|
typeInfo: FieldTypeInfo;
|
|
16
|
+
/**
|
|
17
|
+
* Nested Field Info List (for object/array type fields)
|
|
18
|
+
*/
|
|
19
|
+
fieldInfoList?: FieldInfo[];
|
|
16
20
|
}
|
|
17
21
|
interface GetFieldInfoRes {
|
|
18
22
|
fieldInfo: FieldInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-field-info.d.ts","sourceRoot":"","sources":["../../src/types/get-field-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,WAAW,SAAU,SAAQ,uBAAuB;IACxD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"get-field-info.d.ts","sourceRoot":"","sources":["../../src/types/get-field-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,WAAW,SAAU,SAAQ,uBAAuB;IACxD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAC;IAExB;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;CAC7B;AAED,UAAU,eAAe;IACvB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,CAAC,EAAE,eAAe,KAAK,eAAe,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
name:
|
|
7
|
-
}
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ObjectSpecificResourceSettingsSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
5
|
+
export declare const SpecificResourceSettingsSchema: z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
8
|
+
export type ObjectSpecificResourceSettings = z.infer<typeof ObjectSpecificResourceSettingsSchema>;
|
|
8
9
|
//# sourceMappingURL=specific-resource-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specific-resource-settings.d.ts","sourceRoot":"","sources":["../../src/types/specific-resource-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"specific-resource-settings.d.ts","sourceRoot":"","sources":["../../src/types/specific-resource-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oCAAoC;;8BAO7B,CAAC;AAErB,eAAO,MAAM,8BAA8B;;8BAAuC,CAAC;AACnF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpecificResourceSettingsSchema = exports.ObjectSpecificResourceSettingsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ObjectSpecificResourceSettingsSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
/**
|
|
8
|
+
* Object Name
|
|
9
|
+
*/
|
|
10
|
+
name: zod_1.z.string()
|
|
11
|
+
})
|
|
12
|
+
.catchall(zod_1.z.any());
|
|
13
|
+
exports.SpecificResourceSettingsSchema = exports.ObjectSpecificResourceSettingsSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldsg/object",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,10 +12,11 @@
|
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
|
-
"
|
|
16
|
-
"@ldsg/
|
|
17
|
-
"@ldsg/resource": "0.3.
|
|
18
|
-
"@ldsg/resource-definition": "0.3.
|
|
15
|
+
"zod": "^4.1.11",
|
|
16
|
+
"@ldsg/constants": "0.3.26",
|
|
17
|
+
"@ldsg/resource": "0.3.26",
|
|
18
|
+
"@ldsg/resource-definition": "0.3.26",
|
|
19
|
+
"@ldsg/handler": "0.3.26"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
22
|
"@types/jest": "^29.5.2",
|
|
@@ -25,8 +26,8 @@
|
|
|
25
26
|
"ts-jest": "^29.1.5",
|
|
26
27
|
"ts-node": "^10.9.2",
|
|
27
28
|
"typescript": "^5.8.3",
|
|
28
|
-
"@ldsg/
|
|
29
|
-
"@ldsg/
|
|
29
|
+
"@ldsg/field-type": "0.3.26",
|
|
30
|
+
"@ldsg/types": "0.3.26"
|
|
30
31
|
},
|
|
31
32
|
"publishConfig": {
|
|
32
33
|
"access": "public"
|
|
@@ -34,6 +35,6 @@
|
|
|
34
35
|
"scripts": {
|
|
35
36
|
"build": "tsc --project tsconfig.build.json",
|
|
36
37
|
"clean": "rm -rf dist",
|
|
37
|
-
"test": "jest
|
|
38
|
+
"test": "jest"
|
|
38
39
|
}
|
|
39
40
|
}
|