zentao-api 0.4.1 → 0.5.0
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/browser/zentao-api.global.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/object-props.d.ts +1 -0
- package/dist/modules/object-props.js +951 -0
- package/dist/modules/query.d.ts +7 -0
- package/dist/modules/query.js +10 -0
- package/dist/modules/registry.d.ts +1 -1
- package/dist/modules/registry.js +1 -1
- package/dist/version.js +2 -2
- package/package.json +1 -1
package/dist/modules/query.d.ts
CHANGED
|
@@ -52,3 +52,10 @@ export declare function getModuleNames(): string[];
|
|
|
52
52
|
* @returns 已注册返回 `true`,否则 `false`。
|
|
53
53
|
*/
|
|
54
54
|
export declare function isModuleName(moduleName: string): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* 获取对象属性。
|
|
57
|
+
*
|
|
58
|
+
* @param objectType - 对象类型。
|
|
59
|
+
* @returns 对象属性。
|
|
60
|
+
*/
|
|
61
|
+
export declare function getObjectProps(objectType: string): Record<string, string>;
|
package/dist/modules/query.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { objectProps } from './object-props.js';
|
|
1
2
|
import { getModuleMapState, getModulesState } from './registry-store.js';
|
|
2
3
|
/**
|
|
3
4
|
* 获取模块定义。
|
|
@@ -120,3 +121,12 @@ export function getModuleNames() {
|
|
|
120
121
|
export function isModuleName(moduleName) {
|
|
121
122
|
return getModuleMapState().has(moduleName.toLowerCase());
|
|
122
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* 获取对象属性。
|
|
126
|
+
*
|
|
127
|
+
* @param objectType - 对象类型。
|
|
128
|
+
* @returns 对象属性。
|
|
129
|
+
*/
|
|
130
|
+
export function getObjectProps(objectType) {
|
|
131
|
+
return objectProps[objectType];
|
|
132
|
+
}
|
|
@@ -4238,4 +4238,4 @@ export declare const MODULES: readonly [{
|
|
|
4238
4238
|
}];
|
|
4239
4239
|
export { type DefineModulesOptions, defineModules, defineModuleActions, extendModuleAction, resetModuleDefinitions, } from './define.js';
|
|
4240
4240
|
export { applyBuiltinOverrides };
|
|
4241
|
-
export { getModule, getModuleAction, getModuleActionParams, getModuleNames, isModuleName, } from './query.js';
|
|
4241
|
+
export { getModule, getModuleAction, getModuleActionParams, getModuleNames, isModuleName, getObjectProps, } from './query.js';
|
package/dist/modules/registry.js
CHANGED
|
@@ -16,4 +16,4 @@ export { applyBuiltinOverrides };
|
|
|
16
16
|
// - 注册为 store 的「重置后钩子」,使 resetModuleDefinitions 还原内置基线后自动重新应用。
|
|
17
17
|
setPostResetHook(applyBuiltinOverrides);
|
|
18
18
|
applyBuiltinOverrides();
|
|
19
|
-
export { getModule, getModuleAction, getModuleActionParams, getModuleNames, isModuleName, } from './query.js';
|
|
19
|
+
export { getModule, getModuleAction, getModuleActionParams, getModuleNames, isModuleName, getObjectProps, } from './query.js';
|
package/dist/version.js
CHANGED