diff --git a/dbal/development/src/core/entities/lua-script/store/in-memory-store.ts b/dbal/development/src/core/entities/lua-script/store/in-memory-store.ts new file mode 100644 index 000000000..8b62095fb --- /dev/null +++ b/dbal/development/src/core/entities/lua-script/store/in-memory-store.ts @@ -0,0 +1,9 @@ +/** + * @file in-memory-store.ts + * @description In-memory store interface for Lua script operations (stub) + */ + +export interface InMemoryStore { + luaScripts: Map; + generateId(entityType: string): string; +} diff --git a/dbal/development/src/core/entities/lua-script/types.ts b/dbal/development/src/core/entities/lua-script/types.ts new file mode 100644 index 000000000..396aaaaef --- /dev/null +++ b/dbal/development/src/core/entities/lua-script/types.ts @@ -0,0 +1,30 @@ +/** + * @file types.ts + * @description Type definitions for Lua script operations (stub) + */ + +export interface CreateLuaScriptInput { + name: string; + code: string; + description?: string; + isActive?: boolean; +} + +export interface LuaScriptView { + id: string; + name: string; + code: string; + description?: string; + isActive: boolean; + createdAt: Date; + updatedAt: Date; +} + +export interface Result { + success: boolean; + data?: T; + error?: { + code: string; + message: string; + }; +} diff --git a/dbal/development/src/core/entities/package/store/in-memory-store.ts b/dbal/development/src/core/entities/package/store/in-memory-store.ts new file mode 100644 index 000000000..03d2ea428 --- /dev/null +++ b/dbal/development/src/core/entities/package/store/in-memory-store.ts @@ -0,0 +1,10 @@ +/** + * @file in-memory-store.ts + * @description In-memory store interface for package operations (stub) + */ + +export interface InMemoryStore { + packages: Map; + packageIds: Map; + generateId(entityType: string): string; +} diff --git a/dbal/development/src/core/entities/package/types.ts b/dbal/development/src/core/entities/package/types.ts new file mode 100644 index 000000000..c942729fe --- /dev/null +++ b/dbal/development/src/core/entities/package/types.ts @@ -0,0 +1,32 @@ +/** + * @file types.ts + * @description Type definitions for package operations (stub) + */ + +export interface CreatePackageInput { + packageId: string; + name: string; + version?: string; + description?: string; + isPublished?: boolean; +} + +export interface Package { + id: string; + packageId: string; + name: string; + version?: string; + description?: string; + isPublished: boolean; + createdAt: Date; + updatedAt: Date; +} + +export interface Result { + success: boolean; + data?: T; + error?: { + code: string; + message: string; + }; +} diff --git a/dbal/development/src/core/entities/package/validation/validate-id.ts b/dbal/development/src/core/entities/package/validation/validate-id.ts new file mode 100644 index 000000000..6fab3f6ce --- /dev/null +++ b/dbal/development/src/core/entities/package/validation/validate-id.ts @@ -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 []; +}; diff --git a/dbal/development/src/core/entities/package/validation/validate-package-create.ts b/dbal/development/src/core/entities/package/validation/validate-package-create.ts new file mode 100644 index 000000000..a7b5f6cd2 --- /dev/null +++ b/dbal/development/src/core/entities/package/validation/validate-package-create.ts @@ -0,0 +1,9 @@ +/** + * @file validate-package-create.ts + * @description Package creation validation (stub) + */ + +export const validatePackageCreate = (input: any): string[] => { + // Stub validation that always returns empty errors + return []; +}; diff --git a/dbal/development/src/core/entities/package/validation/validate-package-update.ts b/dbal/development/src/core/entities/package/validation/validate-package-update.ts new file mode 100644 index 000000000..dfe4ce6b3 --- /dev/null +++ b/dbal/development/src/core/entities/package/validation/validate-package-update.ts @@ -0,0 +1,9 @@ +/** + * @file validate-package-update.ts + * @description Package update validation (stub) + */ + +export const validatePackageUpdate = (input: any): string[] => { + // Stub validation that always returns empty errors + return []; +}; diff --git a/dbal/development/src/core/entities/user/validation/validate-id.ts b/dbal/development/src/core/entities/user/validation/validate-id.ts new file mode 100644 index 000000000..6fab3f6ce --- /dev/null +++ b/dbal/development/src/core/entities/user/validation/validate-id.ts @@ -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 []; +}; diff --git a/dbal/development/src/core/entities/user/validation/validate-user-create.ts b/dbal/development/src/core/entities/user/validation/validate-user-create.ts new file mode 100644 index 000000000..4c48289aa --- /dev/null +++ b/dbal/development/src/core/entities/user/validation/validate-user-create.ts @@ -0,0 +1,9 @@ +/** + * @file validate-user-create.ts + * @description User creation validation (stub) + */ + +export const validateUserCreate = (input: any): string[] => { + // Stub validation that always returns empty errors + return []; +}; diff --git a/dbal/development/src/core/entities/user/validation/validate-user-update.ts b/dbal/development/src/core/entities/user/validation/validate-user-update.ts new file mode 100644 index 000000000..57d528fa0 --- /dev/null +++ b/dbal/development/src/core/entities/user/validation/validate-user-update.ts @@ -0,0 +1,9 @@ +/** + * @file validate-user-update.ts + * @description User update validation (stub) + */ + +export const validateUserUpdate = (input: any): string[] => { + // Stub validation that always returns empty errors + return []; +};