231 const std::string& propertyId);
233 const std::string& propertyId,
239 const std::string& contractId);
Draft statement model used by import finalization and core application flow.
Draft transaction model used by import finalization and core application flow.
Domain aggregate that stores catalog entities for one workspace.
bool setPropertySelected(TransactionDraft &draft, const std::string &propertyId, bool selected)
core::domain::catalog::WorkspaceCatalog mergeCatalogState(core::domain::catalog::WorkspaceCatalog primary, const core::domain::catalog::WorkspaceCatalog &secondary)
Merges two catalog states by keeping populated primary collections and filling gaps from a secondary ...
bool contractIsFullyAllocatable(const core::domain::catalog::WorkspaceCatalog &state, const std::string &contractId)
Checks whether all transactions assigned to a contract are allocatable.
bool applyDerivedSelections(TransactionDraft &draft, const DraftDerivedState &derived, DraftAutoSelectionMode mode)
bool matchesDraftText(const std::string &left, const std::string &right)
Compares two draft text fragments after normalization.
int insertTransactionAfter(StatementDraft &draft, int currentIndex)
DraftDerivedState buildDraftDerivedState(const core::domain::catalog::WorkspaceCatalog &state, const DraftLinkSelection &selection)
Derives UI-agnostic matching state for the currently edited draft link.
bool applyContractSelection(TransactionDraft &draft, const DraftChoiceRow &contract)
bool clearContractSelection(TransactionDraft &draft)
DraftTextSignals buildDraftTextSignals(const core::domain::catalog::WorkspaceCatalog &state, const TransactionDraft &transaction)
Derives text signals from a workspace transaction draft.
std::string resolveContractId(const core::domain::catalog::WorkspaceCatalog &state, const std::string &text)
Resolves the best matching contract identifier for the provided text.
std::vector< std::string > referenceAliasesFromMetadata(const std::string &metadata)
Extracts alias-like reference strings from draft metadata.
bool applyActorSelection(TransactionDraft &draft, const std::string &actorId)
bool renameStatementDraft(StatementDraft &draft, const std::string &name)
int removeTransactionAt(StatementDraft &draft, int index)
DraftImportSuggestions buildImportSuggestions(const core::domain::catalog::WorkspaceCatalog &state, const TransactionDraft &transaction)
Builds ranked import suggestions for the given workspace and transaction draft.
std::string resolveActorId(const core::domain::catalog::WorkspaceCatalog &state, const std::string &text)
Resolves the best matching actor identifier for the provided text.
std::string normalizeDraftText(const std::string &text)
Normalizes free-form draft text for fuzzy matching.
bool applyPropertySelection(TransactionDraft &draft, const std::string &propertyId)
bool clearActorSelection(TransactionDraft &draft)
bool applyTransactionPatch(TransactionDraft &draft, const TransactionDraftPatch &patch)
Represents a selectable catalog row for import-draft assignment UIs.
std::vector< std::string > propertyIds
std::vector< std::string > aliases
std::string allocatableMode
std::vector< std::string > actorIds
Contains all derived matching state needed to render the current transaction draft.
bool hasPropertyTopSuggestion
std::string propertySuggestionSummary
double allocatableSuggestionConfidence
std::string actorSeedText
double actorSuggestionConfidence
std::vector< std::string > autoPropertyIds
DraftSuggestionCandidate contractTopSuggestion
std::vector< DraftChoiceRow > propertyRows
bool hasContractTopSuggestion
std::vector< DraftChoiceRow > contractChoices
bool effectiveAllocatable
std::string contractSeedText
std::vector< DraftChoiceRow > actorChoices
DraftSuggestionCandidate actorTopSuggestion
DraftSuggestionCandidate propertyTopSuggestion
std::string actorSuggestionSummary
std::string allocatableSuggestionSummary
std::string contractSuggestionSummary
double contractSuggestionConfidence
bool hasActorTopSuggestion
std::string actorDisplayText
std::string contractDisplayText
double propertySuggestionConfidence
Holds core-native ranked suggestions for the import draft.
DraftSuggestionBucket property
DraftSuggestionBucket actor
DraftSuggestionBucket contract
Describes the editable transaction-draft link state independent of any UI toolkit.
DraftSuggestionBucket propertySuggestions
DraftSuggestionBucket contractSuggestions
std::vector< std::string > propertyIds
DraftSuggestionBucket actorSuggestions
Groups ranked candidates for one draft link target.
std::vector< DraftSuggestionCandidate > candidates
Carries the subset of suggestion data needed for current-draft matching decisions.
std::vector< std::string > matchedAliases
Carries the shared text signals extracted from one imported transaction.