@ldsg/object 0.3.25 → 0.3.27

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-present Sebastian McKenzie and other contributors
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
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,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,0CAG5D,CAAC"}
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;CACzB;AAED,UAAU,eAAe;IACvB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,CAAC,EAAE,eAAe,KAAK,eAAe,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 { SpecificResourceSettings } from '@ldsg/types';
2
- export interface ObjectSpecificResourceSettings extends SpecificResourceSettings {
3
- /**
4
- * Object Name
5
- */
6
- name: string;
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,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,8BAA+B,SAAQ,wBAAwB;IAC9E;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd"}
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.25",
3
+ "version": "0.3.27",
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
- "@ldsg/constants": "0.3.25",
16
- "@ldsg/handler": "0.3.25",
17
- "@ldsg/resource": "0.3.25",
18
- "@ldsg/resource-definition": "0.3.25"
15
+ "zod": "^4.1.11",
16
+ "@ldsg/constants": "0.3.27",
17
+ "@ldsg/resource": "0.3.27",
18
+ "@ldsg/handler": "0.3.27",
19
+ "@ldsg/resource-definition": "0.3.27"
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/types": "0.3.25",
29
- "@ldsg/field-type": "0.3.25"
29
+ "@ldsg/field-type": "0.3.27",
30
+ "@ldsg/types": "0.3.27"
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 --passWithNoTests"
38
+ "test": "jest"
38
39
  }
39
40
  }