Skip to content

Commit bc91764

Browse files
committed
更新 meta.json 文件,移除 'auth' 页面;在系统和 UI 协议中添加 'root' 属性;修改钩子导入路径;更新 tsconfig.json 文件以排除 'node_modules' 和 'dist' 目录;调整 Hook 类型定义以包含解析类型。
1 parent e75a562 commit bc91764

File tree

7 files changed

+8
-5
lines changed

7 files changed

+8
-5
lines changed

content/docs/references/meta.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"pages": [
55
"data",
66
"ui",
7-
"auth",
87
"automation",
98
"system",
109
"permission",

content/docs/references/system/meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"title": "System Protocol",
3+
"root": true,
34
"pages": [
45
"audit",
56
"events",

content/docs/references/ui/meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"title": "UI Protocol",
3+
"root": true,
34
"pages": [
45
"action",
56
"app",

examples/crm/src/domains/crm/account.hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import { HookContext, Hook } from '@steedos/spec';
2+
import { HookContext, Hook } from '@objectstack/spec/data';
33

44
const accountHook: Hook = {
55
name: 'account_protection',

examples/crm/src/domains/crm/lead.hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import { HookContext, Hook } from '@steedos/spec';
2+
import { HookContext, Hook } from '@objectstack/spec/data';
33

44
const leadHook: Hook = {
55
name: 'lead_automation',

examples/plugin-bi/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
"module": "ES2020",
77
"moduleResolution": "bundler"
88
},
9-
"include": ["src/**/*", "objectstack.config.ts"]
9+
"include": ["src/**/*", "objectstack.config.ts"],
10+
"exclude": ["node_modules", "dist"]
1011
}

packages/spec/src/data/hook.zod.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ export const HookContextSchema = z.object({
160160
ql: z.any().describe('ObjectQL Engine Reference'),
161161
});
162162

163-
export type Hook = z.infer<typeof HookSchema>;
163+
export type Hook = z.input<typeof HookSchema>;
164+
export type ResolvedHook = z.output<typeof HookSchema>;
164165
export type HookEventType = z.infer<typeof HookEvent>;
165166
export type HookContext = z.infer<typeof HookContextSchema>;

0 commit comments

Comments
 (0)