From e8c7f445bd53e5c6d4eb44309cf8d9c6de61b80d Mon Sep 17 00:00:00 2001 From: phr3nzy Date: Mon, 3 Feb 2025 10:50:44 +0400 Subject: [PATCH] feat: export missing types and classes from attributes module --- package.json | 2 +- src/index.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7aa4986..cb5865c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@phr3nzy/rulekit", - "version": "1.0.2", + "version": "1.0.3", "description": "A powerful and flexible toolkit for building rule-based product recommendations and dynamic filtering", "main": "dist/index.js", "module": "dist/index.mjs", diff --git a/src/index.ts b/src/index.ts index f5e8f95..2c392c3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,6 +10,19 @@ export type { } from './core/models/types'; export { ComparisonOperators } from './core/models/types'; +// Attribute types and validation +export { AttributeType } from './core/attributes/types'; +export type { + AttributeTypeValue, + ValidationRule, + AttributeDefinition, + AttributeRegistry, + AttributeValue, + DynamicAttributes, +} from './core/attributes/types'; +export { ProductAttributeRegistry } from './core/attributes/registry'; +export { validateAttribute, AttributeValidationError } from './core/attributes/validator'; + // Validation export { validateRule,