mirror of
https://github.com/morten-olsen/plainidx.git
synced 2026-02-08 01:06:24 +01:00
prepare for client/server split
This commit is contained in:
36
packages/base/src/manifest/manifest.ts
Normal file
36
packages/base/src/manifest/manifest.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import { ZodSchema } from 'zod';
|
||||
|
||||
type ManifestBackendAction = {
|
||||
input: ZodSchema;
|
||||
output: ZodSchema;
|
||||
};
|
||||
|
||||
type ManifestBackendActions = Record<string, ManifestBackendAction>;
|
||||
|
||||
type ManifestBackend = {
|
||||
main: string;
|
||||
actions: ManifestBackendActions;
|
||||
};
|
||||
|
||||
type ManifestFrontend = {
|
||||
main: string;
|
||||
};
|
||||
|
||||
type Manifest = {
|
||||
id: string;
|
||||
name: string;
|
||||
version: string;
|
||||
description?: string;
|
||||
icon?: string;
|
||||
config: ZodSchema;
|
||||
frontend?: ManifestFrontend;
|
||||
backend?: ManifestBackend;
|
||||
};
|
||||
|
||||
export {
|
||||
type Manifest,
|
||||
type ManifestBackendAction,
|
||||
type ManifestBackendActions,
|
||||
type ManifestBackend,
|
||||
type ManifestFrontend,
|
||||
};
|
||||
Reference in New Issue
Block a user