@ldsg/field-type 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/resource-records/index.d.ts +12 -1
- package/dist/resource-records/index.d.ts.map +1 -1
- package/dist/types/specific-resource-settings.d.ts +4 -8
- package/dist/types/specific-resource-settings.d.ts.map +1 -1
- package/dist/types/specific-resource-settings.js +4 -0
- package/package.json +8 -7
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;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;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;AAEF,eAAO,MAAM,yBAAyB,yBAKrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kDAAkD,EAAE,uBAGhE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mDAAmD,EAAE,+BAwCjE,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.DEFAULT_EXTENDED_HANDLER_SPECIFIC_RESOURCE_SETTINGS = exports.DEFAULT_EXTENDED_HANDLER_GENERAL_RESOURCE_SETTINGS = exports.FieldTypeBasePlatformList = 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
|
const field_type_info_1 = require("./types/field-type-info");
|
|
6
5
|
/**
|
|
7
6
|
* Instantiate Resource Handler General Resource Settings
|
|
@@ -29,8 +28,7 @@ exports.RESOURCE_DEFINITION_GENERAL_RESOURCE_SETTINGS = {
|
|
|
29
28
|
description: ''
|
|
30
29
|
};
|
|
31
30
|
exports.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS = {
|
|
32
|
-
kind: 'field_type'
|
|
33
|
-
parentKind: constants_1.ROOT_RESOURCE_KIND
|
|
31
|
+
kind: 'field_type'
|
|
34
32
|
};
|
|
35
33
|
exports.FieldTypeBasePlatformList = [
|
|
36
34
|
field_type_info_1.FieldTypeBasePlatform.COMMON,
|
|
@@ -4,5 +4,16 @@ export * from './mongo-id';
|
|
|
4
4
|
export * from './number';
|
|
5
5
|
export * from './object';
|
|
6
6
|
export * from './string';
|
|
7
|
-
export declare const FIELD_TYPE_RELATED_RESOURCE_RECORD: (import("@ldsg/types").ResourceRecord<import("@ldsg/handler").HandlerExtendedResourceSettings<
|
|
7
|
+
export declare const FIELD_TYPE_RELATED_RESOURCE_RECORD: (import("@ldsg/types").ResourceRecord<import("@ldsg/handler").HandlerExtendedResourceSettings<{
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}>> | import("@ldsg/types").ResourceRecord<{
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
code: string;
|
|
12
|
+
dependencies: {
|
|
13
|
+
name: string;
|
|
14
|
+
version?: string | undefined;
|
|
15
|
+
uri?: string | undefined;
|
|
16
|
+
}[];
|
|
17
|
+
handler?: import("@ldsg/handler").Handler | undefined;
|
|
18
|
+
}>)[];
|
|
8
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resource-records/index.ts"],"names":[],"mappings":"AAOA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAEzB,eAAO,MAAM,kCAAkC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resource-records/index.ts"],"names":[],"mappings":"AAOA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AAEzB,eAAO,MAAM,kCAAkC;;;;;;;;;;;KAa9C,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
* Field Properties Schema
|
|
6
|
-
*/
|
|
7
|
-
fieldPropertiesSchema?: JSONSchema7;
|
|
8
|
-
}
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FieldTypeSpecificResourceSettingsSchema: z.ZodObject<{}, z.core.$catchall<z.ZodAny>>;
|
|
3
|
+
export declare const SpecificResourceSettingsSchema: z.ZodObject<{}, z.core.$catchall<z.ZodAny>>;
|
|
4
|
+
export type FieldTypeSpecificResourceSettings = z.infer<typeof FieldTypeSpecificResourceSettingsSchema>;
|
|
9
5
|
//# 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,uCAAuC,6CAAiC,CAAC;AAEtF,eAAO,MAAM,8BAA8B,6CAA0C,CAAC;AACtF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC"}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpecificResourceSettingsSchema = exports.FieldTypeSpecificResourceSettingsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.FieldTypeSpecificResourceSettingsSchema = zod_1.z.object({}).catchall(zod_1.z.any());
|
|
6
|
+
exports.SpecificResourceSettingsSchema = exports.FieldTypeSpecificResourceSettingsSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldsg/field-type",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"json-schema": "0.4.0",
|
|
15
15
|
"mongodb": "^6.16.0",
|
|
16
|
-
"
|
|
17
|
-
"@ldsg/
|
|
18
|
-
"@ldsg/
|
|
19
|
-
"@ldsg/resource
|
|
16
|
+
"zod": "^4.1.11",
|
|
17
|
+
"@ldsg/constants": "0.3.26",
|
|
18
|
+
"@ldsg/handler": "0.3.26",
|
|
19
|
+
"@ldsg/resource": "0.3.26",
|
|
20
|
+
"@ldsg/resource-definition": "0.3.26"
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
23
|
"@types/jest": "^29.5.2",
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
"ts-jest": "^29.1.5",
|
|
27
28
|
"ts-node": "^10.9.2",
|
|
28
29
|
"typescript": "^5.8.3",
|
|
29
|
-
"@ldsg/types": "0.3.
|
|
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
|
}
|