@anov/cic-standard-sdk 0.0.5 → 0.0.6
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/sdk/CICSDK.d.ts +12 -12
- package/package.json +1 -1
package/dist/sdk/CICSDK.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CICConfig, ComponentInstance,
|
|
1
|
+
import type { CICConfig, ComponentInstance, CICPage } from '../types';
|
|
2
2
|
import type { ICICSDK } from './ICICSDK';
|
|
3
|
-
export
|
|
3
|
+
export * from '../types';
|
|
4
4
|
/**
|
|
5
5
|
* CIC SDK 类
|
|
6
6
|
* 提供对 CIC 配置的封装访问与操作
|
|
@@ -37,9 +37,9 @@ export declare class CICSDK implements ICICSDK {
|
|
|
37
37
|
*/
|
|
38
38
|
static traverseTree(root: ComponentInstance | ComponentInstance[], callback: (component: ComponentInstance, parent?: ComponentInstance) => void | boolean, parent?: ComponentInstance): void;
|
|
39
39
|
/** 创建 DataSource */
|
|
40
|
-
static createDataSource: (input: unknown, options?: import("./generators/common").CreateOptions) => import("./generators/common").Result<DataSourceItem>;
|
|
40
|
+
static createDataSource: (input: unknown, options?: import("./generators/common").CreateOptions) => import("./generators/common").Result<import("../types").DataSourceItem>;
|
|
41
41
|
static validateDataSource: (input: unknown) => import("./generators/common").Result<null>;
|
|
42
|
-
static normalizeDataSource: (input: unknown, options?: import("./generators/common").CreateOptions) => DataSourceItem;
|
|
42
|
+
static normalizeDataSource: (input: unknown, options?: import("./generators/common").CreateOptions) => import("../types").DataSourceItem;
|
|
43
43
|
/** 创建 Component */
|
|
44
44
|
static createComponent: (input: unknown, options?: import("./generators/common").CreateOptions) => import("./generators/common").Result<ComponentInstance>;
|
|
45
45
|
static validateComponent: (input: unknown) => import("./generators/common").Result<null>;
|
|
@@ -49,20 +49,20 @@ export declare class CICSDK implements ICICSDK {
|
|
|
49
49
|
static validatePage: (input: unknown) => import("./generators/common").Result<null>;
|
|
50
50
|
static normalizePage: (input: unknown, options?: import("./generators/common").CreateOptions) => CICPage;
|
|
51
51
|
/** 创建 Meta/Layout */
|
|
52
|
-
static createMeta: (input: unknown) => import("./generators/common").Result<Meta>;
|
|
53
|
-
static createLayout: (input: unknown) => import("./generators/common").Result<Layout>;
|
|
52
|
+
static createMeta: (input: unknown) => import("./generators/common").Result<import("../types").Meta>;
|
|
53
|
+
static createLayout: (input: unknown) => import("./generators/common").Result<import("../types").Layout>;
|
|
54
54
|
static validateMeta: (input: unknown) => import("./generators/common").Result<null>;
|
|
55
55
|
static validateLayout: (input: unknown) => import("./generators/common").Result<null>;
|
|
56
|
-
static normalizeMeta: (input: unknown) => Meta;
|
|
57
|
-
static normalizeLayout: (input: unknown) => Layout;
|
|
56
|
+
static normalizeMeta: (input: unknown) => import("../types").Meta;
|
|
57
|
+
static normalizeLayout: (input: unknown) => import("../types").Layout;
|
|
58
58
|
/** 创建 Variables */
|
|
59
|
-
static createVariables: (input: unknown) => import("./generators/common").Result<Variables>;
|
|
59
|
+
static createVariables: (input: unknown) => import("./generators/common").Result<import("../types").Variables>;
|
|
60
60
|
static validateVariables: (input: unknown) => import("./generators/common").Result<null>;
|
|
61
|
-
static normalizeVariables: (input: unknown) => Variables;
|
|
61
|
+
static normalizeVariables: (input: unknown) => import("../types").Variables;
|
|
62
62
|
/** 创建 Dependency */
|
|
63
|
-
static createDependency: (input: unknown) => import("./generators/common").Result<Dependency>;
|
|
63
|
+
static createDependency: (input: unknown) => import("./generators/common").Result<import("../types").Dependency>;
|
|
64
64
|
static validateDependency: (input: unknown) => import("./generators/common").Result<null>;
|
|
65
|
-
static normalizeDependency: (input: unknown) => Dependency;
|
|
65
|
+
static normalizeDependency: (input: unknown) => import("../types").Dependency;
|
|
66
66
|
/** 创建 Registry 组件项 */
|
|
67
67
|
static createRegistryComponent: (input: unknown) => import("./generators/common").Result<import("../types").RegistryComponents>;
|
|
68
68
|
static validateRegistryComponent: (input: unknown) => import("./generators/common").Result<null>;
|