feat(cv): rebuild professional resume studio
This commit is contained in:
@@ -29,6 +29,8 @@ export type StructuredCvContact = {
|
||||
location?: string;
|
||||
website?: string;
|
||||
linkedIn?: string;
|
||||
gitHub?: string;
|
||||
links?: { label?: string; url?: string }[];
|
||||
};
|
||||
|
||||
export type StructuredCvJob = {
|
||||
@@ -116,7 +118,7 @@ export function emptyStructuredCv(): StructuredCvProfile {
|
||||
return {
|
||||
version: "1",
|
||||
metadata: { fields: {} },
|
||||
contact: {},
|
||||
contact: { links: [] },
|
||||
summary: [],
|
||||
jobs: [],
|
||||
education: [],
|
||||
@@ -232,6 +234,8 @@ export function normalizeStructuredCv(value: unknown): StructuredCvProfile {
|
||||
location: normalizeString(source.contact?.location),
|
||||
website: normalizeString(source.contact?.website),
|
||||
linkedIn: normalizeString(source.contact?.linkedIn),
|
||||
gitHub: normalizeString(source.contact?.gitHub),
|
||||
links: Array.isArray(source.contact?.links) ? source.contact.links.map((link: any) => ({ label: normalizeString(link?.label), url: normalizeString(link?.url) })).filter((link: any) => link.url) : [],
|
||||
},
|
||||
summary: normalizeList(source.summary),
|
||||
jobs: Array.isArray(source.jobs)
|
||||
|
||||
Reference in New Issue
Block a user