feat: add template descriptor and index — WorkflowDefinition export
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { buildDescriptor } from "@uncaged/workflow-register";
|
||||
import { documentEditorTable } from "./moderator.js";
|
||||
import { DOCUMENT_EDITOR_DESCRIPTION, documentEditorRoles } from "./roles.js";
|
||||
|
||||
export function buildDocumentEditorDescriptor() {
|
||||
return buildDescriptor({
|
||||
description: DOCUMENT_EDITOR_DESCRIPTION,
|
||||
roles: documentEditorRoles,
|
||||
table: documentEditorTable,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { WorkflowDefinition } from "@uncaged/workflow-runtime";
|
||||
import { documentEditorTable } from "./moderator.js";
|
||||
import {
|
||||
DOCUMENT_EDITOR_DESCRIPTION,
|
||||
type DocumentEditorMeta,
|
||||
documentEditorRoles,
|
||||
} from "./roles.js";
|
||||
|
||||
export { buildDocumentEditorDescriptor } from "./descriptor.js";
|
||||
export { documentEditorTable } from "./moderator.js";
|
||||
export {
|
||||
type DifferMeta,
|
||||
differMetaSchema,
|
||||
differRole,
|
||||
DOCUMENT_EDITOR_DESCRIPTION,
|
||||
type DocumentEditorMeta,
|
||||
documentEditorRoles,
|
||||
type OfficeMeta,
|
||||
officeMetaSchema,
|
||||
officeRole,
|
||||
} from "./roles.js";
|
||||
|
||||
export const documentEditorDefinition: WorkflowDefinition<DocumentEditorMeta> = {
|
||||
description: DOCUMENT_EDITOR_DESCRIPTION,
|
||||
roles: documentEditorRoles,
|
||||
table: documentEditorTable,
|
||||
};
|
||||
Reference in New Issue
Block a user