Files
lincodex/frontend/src/entities/match/index.ts
T

68 lines
1.8 KiB
TypeScript

// Public API of the match entity: the search transport adapter, the card
// reads, the presentation of server-computed results, and the presentational
// parts of one result. The slice holds no search state; the page owns it.
export { matchCardQueryKeys, useMatchCandidateCard, useMatchCandidateEvidence } from "./api/card";
export { searchMatches } from "./api/search";
export {
matchSearchFromTransport,
matchSearchToTransport,
parseMatchSearchResponse,
} from "./model/adapter";
export type {
MatchCardModel,
MatchConfirmedCardModel,
MatchConfirmedComponentsModel,
MatchGroup,
MatchSearchModel,
MatchSearchSourceModel,
MatchUnconfirmedCardModel,
} from "./model/adapter";
export {
appliedFiltersOf,
describeAppliedFilters,
filtersFromRequest,
type AppliedFilterItem,
type AppliedFiltersModel,
} from "./model/applied-filters";
export { describeCardFailure, type CardFailure } from "./model/card-failure";
export {
presentCard,
presentEvidence,
type CardDetails,
type EvidenceFact,
} from "./model/card-presentation";
export {
componentRows,
evidenceRows,
formatScore,
otherUnknowns,
type ComponentRow,
type EvidenceRow,
} from "./model/explanation";
export {
gradeCodes,
gradeLabels,
groupDescriptions,
groupLabels,
matchGroupOrder,
specializationCodes,
specializationLabels,
stackCodes,
stackLabels,
workFormatCodes,
workFormatLabels,
} from "./model/labels";
export { formatRetryAfter } from "./model/retry-after";
export {
allSpecializationsView,
cardsForView,
matchCardKey,
shortHandle,
specializationsInResult,
type SpecializationView,
} from "./model/views";
export { CandidateCardDetails } from "./ui/candidate-card-details";
export { MatchCardView } from "./ui/match-card";
export { MatchExplanation } from "./ui/match-explanation";