import type { Database } from "@prodobit/database"; export interface CreateItemRequest { tenantId: string; name: string; code?: string; itemType: "product" | "service" | "raw_material" | "component" | "spare_part" | "consumable"; status?: string; isInventoryItem?: boolean; isStockItem?: boolean; isVariant?: boolean; isAbstract?: boolean; referenceItemId?: string; specificData?: ProductData | ServiceData | RawMaterialData | ComponentData | SparePartData | ConsumableData; categoryId?: string; prices?: ItemPriceData[]; variantAttributes?: Record; } export interface ProductData { unit?: string; productType?: "manufactured" | "trading"; } export interface ServiceData { description?: string; unit: string; } export interface RawMaterialData { unit?: string; } export interface ComponentData { unit?: string; } export interface SparePartData { unit?: string; partNumber?: string; manufacturer?: string; warrantyPeriodDays?: number; isCritical?: boolean; leadTimeDays?: number; } export interface ConsumableData { unit?: string; shelfLifeDays?: number; storageConditions?: string; hazardClass?: string; isHazardous?: boolean; } export interface ItemPriceData { priceType: "buy_price" | "sale_price" | "list_price" | "cost_price"; price: number; currency?: string; validFrom?: Date; validTo?: Date; } export interface CreateCategoryRequest { tenantId: string; name: string; code?: string; description?: string; itemType: "product" | "service" | "raw_material" | "component" | "spare_part" | "consumable"; parentCategoryId?: string; } export declare class ItemService { private db; constructor(db: Database); createItem(data: CreateItemRequest): Promise; createCategory(data: CreateCategoryRequest): Promise; getItems(tenantId: string, filters?: { itemType?: string; categoryId?: string; status?: string; search?: string; }): Promise; getItemWithDetails(itemId: string, tenantId: string): Promise; getCategories(tenantId: string, itemType?: string): Promise; searchItems(searchTerm: string, tenantId: string, itemType?: string): Promise; private createProductRecord; private createServiceRecord; private createRawMaterialRecord; private createComponentRecord; private createSparePartRecord; private createConsumableRecord; private addItemPricing; private createVariant; private generateCode; private getItemPrefix; getItemVariants(parentItemId: string, tenantId: string): Promise; createItemVariant(data: { tenantId: string; parentItemId: string; name: string; code?: string; variantAttributes?: Record; specificData?: Record; prices?: Array<{ priceType: "buy_price" | "sale_price" | "list_price" | "cost_price"; price: number; currency: string; }>; }): Promise; getItemCategories(filters: { tenantId: string; itemType?: string; parentId?: string; }): Promise; createItemCategory(data: { tenantId: string; name: string; code?: string; description?: string; itemType: string; parentCategoryId?: string; }): Promise; deleteItem(itemId: string, tenantId: string): Promise; } //# sourceMappingURL=ItemService.d.ts.map