Skip to content

Commit 7f0b307

Browse files
committed
Refactor Zod schemas and constants for ObjectStack
- Moved Zod schemas related to objects, permissions, validation, views, and workflows from `packages/spec/src/zod/meta` to `packages/spec/src/data`. - Introduced new Zod schemas for field definitions and constants for package structure in `packages/spec/src/system/constants`. - Added manifest schema for ObjectStack packages and defined plugin runtime interfaces. - Created UI schemas for actions, applications, dashboards, and views. - Ensured all schemas are properly typed and documented for better maintainability and clarity.
1 parent 9f84ff1 commit 7f0b307

File tree

15 files changed

+15
-17
lines changed

15 files changed

+15
-17
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/spec/src/index.ts

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,21 @@
77
* All types and schemas are centralized here.
88
*/
99

10-
// Zod Schemas & Inferred Types (Meta)
11-
export * from './zod/meta/field.zod';
12-
export * from './zod/meta/object.zod';
13-
export * from './zod/meta/view.zod';
14-
export * from './zod/meta/action.zod';
15-
export * from './zod/meta/validation.zod';
16-
export * from './zod/meta/permission.zod';
17-
export * from './zod/meta/workflow.zod';
18-
export * from './zod/meta/app.zod';
19-
export * from './zod/meta/dashboard.zod';
10+
// Data Protocol (Schema, Validation, Logic)
11+
export * from './data/field.zod';
12+
export * from './data/object.zod';
13+
export * from './data/validation.zod';
14+
export * from './data/permission.zod';
15+
export * from './data/workflow.zod';
2016

21-
// Zod Schemas & Inferred Types (Bundle)
22-
export * from './zod/bundle/manifest.zod';
17+
// UI Protocol (Layout, Navigation, Interaction)
18+
export * from './ui/app.zod';
19+
export * from './ui/view.zod';
20+
export * from './ui/dashboard.zod';
21+
export * from './ui/action.zod';
2322

24-
// Runtime Constants
25-
export * from './constants';
26-
27-
// Runtime Types (Interfaces only, no Zod)
28-
export * from './types/runtime';
23+
// System Protocol (Manifest, Runtime, Constants)
24+
export * from './system/manifest.zod';
25+
export * from './system/constants';
26+
export * from './system/types';
2927

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)