feat: complete phase 3 career workspace
This commit is contained in:
@@ -93,6 +93,10 @@ export type StructuredCvProfile = {
|
||||
skills: string[];
|
||||
languages: StructuredCvLanguage[];
|
||||
interests: string[];
|
||||
awards: string[];
|
||||
publications: string[];
|
||||
organisations: string[];
|
||||
references: string[];
|
||||
otherSections: StructuredCvOtherSection[];
|
||||
sections: ParsedCvSection[];
|
||||
};
|
||||
@@ -121,6 +125,10 @@ export function emptyStructuredCv(): StructuredCvProfile {
|
||||
skills: [],
|
||||
languages: [],
|
||||
interests: [],
|
||||
awards: [],
|
||||
publications: [],
|
||||
organisations: [],
|
||||
references: [],
|
||||
otherSections: [],
|
||||
sections: [],
|
||||
};
|
||||
@@ -183,6 +191,10 @@ function buildLegacyStructuredCv(sections: ParsedCvSection[]): StructuredCvProfi
|
||||
skills,
|
||||
languages,
|
||||
interests,
|
||||
awards: linesFromSection(sections, ["awards", "honours", "honors"]),
|
||||
publications: linesFromSection(sections, ["publications"]),
|
||||
organisations: linesFromSection(sections, ["organisations", "organizations", "memberships"]),
|
||||
references: linesFromSection(sections, ["references"]),
|
||||
sections,
|
||||
};
|
||||
}
|
||||
@@ -274,6 +286,10 @@ export function normalizeStructuredCv(value: unknown): StructuredCvProfile {
|
||||
}))
|
||||
: [],
|
||||
interests: normalizeList(source.interests),
|
||||
awards: normalizeList(source.awards),
|
||||
publications: normalizeList(source.publications),
|
||||
organisations: normalizeList(source.organisations),
|
||||
references: normalizeList(source.references),
|
||||
otherSections: Array.isArray(source.otherSections)
|
||||
? source.otherSections.map((section: any) => ({
|
||||
title: normalizeString(section?.title),
|
||||
|
||||
Reference in New Issue
Block a user