/** * Detail tab types for master-detail sub-entity relationships. * * @module types/detail.types * @see FMPV-MVWC-E005-S001 */ import type { MasterPatternViewEntity } from './service.types'; import type { MasterPatternViewFieldDefinition } from './definition.types'; export interface MasterDetailTabService { getAll: (masterId: string, companyId?: string) => Promise; create: (record: Partial, masterId: string, companyId?: string) => Promise; update: (id: string, record: Partial, masterId: string, companyId?: string) => Promise; delete: (id: string, masterId: string, companyId?: string) => Promise; } export interface MasterDetailTabConfig { key: string; label: string; entityName: string; fields: MasterPatternViewFieldDefinition[]; service: MasterDetailTabService; validate?: (values: Partial) => Record; } //# sourceMappingURL=detail.types.d.ts.map