mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-28 15:54:56 +00:00
code: development,dbal,validate (9 files)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* @file in-memory-store.ts
|
||||
* @description In-memory store interface for page operations (stub)
|
||||
*/
|
||||
|
||||
export interface InMemoryStore {
|
||||
pages: Map<string, any>;
|
||||
pageSlugs: Map<string, string>;
|
||||
generateId(entityType: string): string;
|
||||
}
|
||||
34
dbal/development/src/core/entities/page/types.ts
Normal file
34
dbal/development/src/core/entities/page/types.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* @file types.ts
|
||||
* @description Type definitions for page operations (stub)
|
||||
*/
|
||||
|
||||
export interface CreatePageInput {
|
||||
slug: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
level?: string;
|
||||
layout?: string;
|
||||
isActive?: boolean;
|
||||
}
|
||||
|
||||
export interface PageView {
|
||||
id: string;
|
||||
slug: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
level?: string;
|
||||
layout?: string;
|
||||
isActive: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
export interface Result<T> {
|
||||
success: boolean;
|
||||
data?: T;
|
||||
error?: {
|
||||
code: string;
|
||||
message: string;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* @file validate-id.ts
|
||||
* @description ID validation (stub)
|
||||
*/
|
||||
|
||||
export const validateId = (input: any): string[] => {
|
||||
// Stub validation that always returns empty errors
|
||||
return [];
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* @file validate-page-create.ts
|
||||
* @description Page creation validation (stub)
|
||||
*/
|
||||
|
||||
export const validatePageCreate = (input: any): string[] => {
|
||||
// Stub validation that always returns empty errors
|
||||
return [];
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* @file validate-page-update.ts
|
||||
* @description Page update validation (stub)
|
||||
*/
|
||||
|
||||
export const validatePageUpdate = (input: any): string[] => {
|
||||
// Stub validation that always returns empty errors
|
||||
return [];
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* @file in-memory-store.ts
|
||||
* @description In-memory store interface for workflow operations (stub)
|
||||
*/
|
||||
|
||||
export interface InMemoryStore {
|
||||
workflows: Map<string, any>;
|
||||
generateId(entityType: string): string;
|
||||
}
|
||||
30
dbal/development/src/core/entities/workflow/types.ts
Normal file
30
dbal/development/src/core/entities/workflow/types.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* @file types.ts
|
||||
* @description Type definitions for workflow operations (stub)
|
||||
*/
|
||||
|
||||
export interface CreateWorkflowInput {
|
||||
name: string;
|
||||
description?: string;
|
||||
definition?: any;
|
||||
isActive?: boolean;
|
||||
}
|
||||
|
||||
export interface WorkflowView {
|
||||
id: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
definition?: any;
|
||||
isActive: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
||||
export interface Result<T> {
|
||||
success: boolean;
|
||||
data?: T;
|
||||
error?: {
|
||||
code: string;
|
||||
message: string;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* @file validate-workflow-create.ts
|
||||
* @description Workflow creation validation (stub)
|
||||
*/
|
||||
|
||||
export const validateWorkflowCreate = (input: any): string[] => {
|
||||
// Stub validation that always returns empty errors
|
||||
return [];
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* @file validate-workflow-update.ts
|
||||
* @description Workflow update validation (stub)
|
||||
*/
|
||||
|
||||
export const validateWorkflowUpdate = (input: any): string[] => {
|
||||
// Stub validation that always returns empty errors
|
||||
return [];
|
||||
};
|
||||
Reference in New Issue
Block a user