@yamlresume/core 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -177,6 +177,6 @@ ${e.volunteer.map(({position:n,organization:i,url:r,computed:{startDate:l,dateRa
|
|
|
177
177
|
\\maketitle
|
|
178
178
|
|
|
179
179
|
${this.renderOrderedSections()}
|
|
180
|
-
\\end{document}`}},O=class extends U{constructor(e,n){super(e,"banking",n);}},V=class extends U{constructor(e,n){super(e,"casual",n);}},_=class extends U{constructor(e,n){super(e,"classic",n);}};var An={"moderncv-banking":O,"moderncv-classic":_,"moderncv-casual":V};function Mn(a,e=new G){let n=a.layout?.template;return n?new(get(An,n,O))(a,e):new O(a,e)}function Nn(a,e){return o([`${e} option is invalid,`,"it must be one of the following:",`[${a.map(n=>`"${n}"`).join(", ")}].`]," ")}function T(a,e){return z.enum(a,{error:n=>n.input===void 0?{message:`${e} option is required.`}:{message:Nn(a,e)}}).meta({title:`${startCase(e)} Option`,description:`A predefined option from the available ${e} choices.`})}var u=(a,e,n)=>z.string({message:`${a} is required.`}).min(e,{message:`${a} should be ${e} characters or more.`}).max(n,{message:`${a} should be ${n} characters or less.`}),Za=T(Na,"country");function h(a){return u(a,4,32).check(e=>{if(e.value.length<4){e.issues=[{code:"too_small",input:e.value,minimum:4,message:`${a} should be 4 characters or more.`,origin:"string"}];return}if(e.value.length>32){e.issues=[{code:"too_big",input:e.value,maximum:32,message:`${a} should be 32 characters or less.`,origin:"string"}];return}Date.parse(e.value)||(e.issues=[{code:"invalid_value",input:e.value,message:`${a} is invalid.`,origin:"string",values:[e.value]}]);}).meta({title:startCase(a),description:"A valid date string that can be parsed by `Date.parse`.",examples:["2025-01-01","Jul 2025","July 3, 2025","2025-02-02T00:00:03.123Z"]})}var Xa=T(Ra,"degree"),W=z.email({message:"email is invalid."}).meta({id:"email",title:"Email",description:"A valid email address.",examples:["hi@ppresume.com","first.last@company.org","test+tag@domain.co.uk"]}),Qa=T(xa,"fluency"),ae=T(Ga,"fontspec numbers"),ee=T(ia,"font size"),N=z.array(u("keyword",1,32)).meta({id:"keywords",title:"Keywords",description:"An array of keyword, each between 1 and 32 characters.",examples:[["Javascript","React","Typescript"],["Design","UI","UX"],["Python","Data Science"]]}),ne=T(Oa,"language"),ie=T(Da,"locale language"),te=T(za,"level"),S=a=>u(a,2,128).meta({title:startCase(a),description:`A ${a} between 2 and 128 characters.`,examples:["Andy Dufresne","Xiao Hanyu","Jane Smith","Dr. Robert John"]}),re=T(ja,"network"),En=/^[+]?[(]?[0-9\s-]{1,15}[)]?[0-9\s-]{1,15}$/im,Y=z.string().regex(En,{message:"phone number may be invalid."}).meta({id:"phone",title:"Phone",description:o(["A valid phone number that may include","country code, parentheses, spaces, and hyphens."]," "),examples:["555-123-4567","+44 20 7946 0958","(555) 123-4567"]}),f=u("summary",16,1024).meta({id:"summary",title:"Summary",description:"A summary text between 16 and 1024 characters.",examples:["Experienced software engineer with 5+ years in full-stack development.",o(["Creative designer passionate about","user experience and modern design principles."]," "),o(["Dedicated project manager with proven track record of","delivering complex projects on time and budget."]," ")]}),I=a=>u(a,2,128).meta({title:startCase(a),description:"An organization name between 2 and 128 characters.",examples:["Google Inc.","Microsoft Corporation","Startup XYZ","Non-Profit Organization"]}),oe=T($a,"template"),y=z.url({message:"URL is invalid."}).max(256,{message:"URL should be 256 characters or less."}).meta({id:"url",title:"URL",description:"A valid URL with maximum length of 256 characters.",examples:["https://yamlresume.dev","https://ppresume.com","https://github.com/yamlresume/yamlresume","https://linkedin.com/in/xiaohanyu1988","https://www.example.com"]});function t(a){let e={title:`[optional] ${a.meta().title}`,description:`${a.meta().description.replace(/\.$/,"")} or \`null\`.`,examples:a.meta().examples};return a.meta(e).nullish().meta(e)}var Pn=I("awarder").meta({title:"Awarder",description:"The organization or institution that presented the award.",examples:["Academy Awards","Tech Conference","Microsoft Scholarship"]}),wn=S("title").meta({title:"Title",description:"The title of the award.",examples:["Dean's List","Outstanding Student","Best Supporting Engineer"]}),vn=z.object({awarder:Pn,title:wn,date:t(h("date")),summary:t(f)}),se=z.object({awards:z.array(vn).nullish().meta({title:"Awards",description:o(["The awards section contains your achievements and recognitions,","including awards, honors, and special acknowledgments."]," ")})});var Ln=u("headline",8,128).meta({title:"Headline",description:"A short and catchy headline for your resume.",examples:["Full-stack software engineer","Data Scientist with a passion for Machine Learning","Product Manager driving innovation"]}),Bn=z.object({name:S("name").describe("Your personal name."),email:t(W),headline:t(Ln),phone:t(Y),summary:t(f),url:t(y)},{error:a=>a.input===void 0?{message:"basics is required."}:{message:a.message}}),ce=z.object({basics:Bn.meta({title:"Basics",description:o(["The basics section contains your personal information,","such as your name, email, phone number, and a brief summary."]," ")})});var Rn=I("issuer").meta({title:"Issuer",description:"The organization that issued the certificate.",examples:["AWS","Microsoft","Coursera","Google Cloud"]}),xn=z.object({issuer:Rn,name:S("name").describe("The name of the certificate."),date:t(h("date")),url:t(y)}),ue=z.object({certificates:z.array(xn).nullish().meta({title:"Certificates",description:o(["The certificates section contains your professional certifications,","including training programs and industry-recognized credentials."]," ")})});var Gn=u("area",2,64).meta({title:"Area",description:"Your field of study or major.",examples:["Computer Science","Business Administration","Engineering","Arts"]}),On=z.array(u("courses",2,128)).meta({title:"Courses",description:"A list of relevant courses you have taken.",examples:[["Data Structures","Algorithms","Database Systems"],["Marketing","Finance","Operations Management"],["Calculus","Physics","Chemistry"]]}),zn=I("institution").meta({title:"Institution",description:"The institution that awarded the degree.",examples:["University of California, Los Angeles","Harvard University","Zhejiang University"]}),Dn=u("score",2,32).meta({title:"Score",description:"Your GPA, grade, or other academic score.",examples:["3.8","3.8/4.0","A+","95%","First Class Honours"]}),jn=z.object({area:Gn,institution:zn,degree:Xa,startDate:h("startDate"),courses:t(On),endDate:t(h("endDate")),summary:t(f),score:t(Dn),url:t(y)}),me=z.object({education:z.array(jn,{error:a=>a.input===void 0?{message:"education is required."}:{message:a.message}}).meta({title:"Education",description:o(["The education section contains your academic background,","including degrees, institutions, and relevant coursework."]," ")})});var Fn=S("name").describe("The name of the interest."),Un=z.object({name:Fn,keywords:t(N)}),de=z.object({interests:z.array(Un).nullish().meta({title:"Interests",description:o(["The interests section contains your personal interests and hobbies,","including activities and topics you are passionate about."]," ")})});var $n=z.object({fluency:Qa,language:ne,keywords:t(N)}),pe=z.object({languages:z.array($n).nullish().meta({title:"Languages",description:o(["The languages section contains your language proficiencies,","including fluency levels and related skills."]," ")})});var Kn=u("city",2,64).meta({title:"City",description:"The city where you are located.",examples:["San Francisco","New York","London","Tokyo"]}),Hn=u("address",4,256).meta({title:"Address",description:"Your full address including street, apartment, etc.",examples:["123 Main Street, Apt 4B","456 Oak Avenue","789 Pine Road, Suite 100"]}),Vn=u("postalCode",2,16).meta({title:"Postal Code",description:"Your postal or ZIP code.",examples:["94102","10001","SW1A 1AA","100-0001"]}),_n=u("region",2,64).meta({title:"Region",description:"Your state, province, or region.",examples:["California","New York","England","Tokyo"]}),Jn=z.object({city:Kn,address:t(Hn),country:t(Za),postalCode:t(Vn),region:t(_n)}),ge=z.object({location:Jn.nullish().meta({title:"Location",description:o(["The location section contains your geographical information,","such as city, address, country, and postal code."]," ")})});var Wn=u("username",2,64).meta({title:"Username",description:"Your username or handle on the social network.",examples:["john_doe","jane.smith","dev_engineer","designer_123"]}),Yn=z.object({network:re,username:Wn,url:t(y)}),Se=z.object({profiles:z.array(Yn).nullish().meta({title:"Profiles",description:o(["The profiles section contains your online presence,","including social media and professional network profiles."]," ")})});var qn=S("name").describe("The name of the project."),Zn=u("description",4,128).meta({title:"Description",description:"A detailed description of the project and your role.",examples:["Led development of a full-stack web application","Designed and implemented REST API endpoints","Managed team of 5 developers for mobile app development"]}),Xn=z.object({name:qn,startDate:h("startDate"),summary:f,description:t(Zn),endDate:t(h("endDate")),keywords:t(N),url:t(y)}),fe=z.object({projects:z.array(Xn).nullish().meta({title:"Projects",description:o(["The projects section contains your personal and professional projects,","including technical details, timelines, and outcomes."]," ")})});var Qn=S("name").describe("The name of the publication."),ai=I("publisher").meta({title:"Publisher",description:"The organization that published the work.",examples:["ACM","IEEE","Springer","Nature Publishing Group"]}),ei=z.object({name:Qn,publisher:ai,releaseDate:t(h("Release date")),summary:t(f),url:t(y)}),ye=z.object({publications:z.array(ei).nullish().meta({title:"Publications",description:o(["The publications section contains your academic and professional publications,","including papers, articles, and research works."]," ")})});var ni=S("name").describe("The name of the reference."),ii=u("relationship",2,128).meta({title:"Relationship",description:"Your professional relationship with the reference.",examples:["Former Manager","Colleague","Professor","Client"]}),ti=z.object({name:ni,summary:f,email:t(W),phone:t(Y),relationship:t(ii)}),be=z.object({references:z.array(ti).nullish().meta({title:"References",description:o(["The references section contains your professional references,","including contact information and relationships."]," ")})});var ri=S("name").describe("The name of the skill."),oi=z.object({level:te,name:ri,keywords:t(N)}),ke=z.object({skills:z.array(oi).nullish().meta({title:"Skills",description:o(["The skills section contains your technical and professional skills,","including proficiency levels and related keywords."]," ")})});var si=I("organization").meta({title:"Organization",description:"The organization where you volunteered.",examples:["Red Cross","Habitat for Humanity","Local Food Bank","Animal Shelter"]}),li=u("position",2,64).meta({title:"Position",description:"Your role or position in the volunteer organization.",examples:["Event Coordinator","Tutor","Fundraiser","Board Member"]}),ci=z.object({organization:si,position:li,startDate:h("startDate"),summary:f,endDate:t(h("endDate")),url:t(y)}),Te=z.object({volunteer:z.array(ci).nullish().meta({title:"Volunteer",description:o(["The volunteer section contains your community service and volunteer work,","including organizations, roles, and contributions."]," ")})});var ui=I("name").meta({title:"Name",description:"The name of the company or organization you worked for.",examples:["Google","Microsoft","Apple","Amazon"]}),mi=u("position",2,64).meta({title:"Position",description:"Your job title or position at the company.",examples:["Software Engineer","Product Manager","Data Scientist","UX Designer"]}),di=z.object({name:ui,position:mi,startDate:h("startDate"),summary:f,endDate:t(h("endDate")),keywords:t(N),url:t(y)}),Ie=z.object({work:z.array(di).nullish().meta({title:"Work",description:o(["The work section contains your professional experience,","including job titles, companies, and responsibilities."]," ")})});var ya=z.object({content:z.object({...ce.shape,...me.shape,...se.shape,...ue.shape,...de.shape,...pe.shape,...ge.shape,...Se.shape,...fe.shape,...ye.shape,...be.shape,...ke.shape,...Te.shape,...Ie.shape},{error:a=>a.input===void 0?{message:"content is required."}:{message:a.message}})});var Ae=z.object({latex:z.object({fontspec:z.object({numbers:t(ae)}).nullish()}).nullish().meta({title:"LaTeX",description:o(["The LaTeX section contains LaTeX-specific settings,","including fontspec package configurations."]," ")})});var Ne=z.object({locale:z.object({language:t(ie)}).nullish().meta({title:"Locale",description:o(["The locale section contains locale language settings,","determining the language used for the resume."]," ")})});function hi(a){return o([`invalid ${a} margin size,`,`${a} margin must be a positive number followed by`,'"cm", "pt" or "in", eg: "2.5cm", "1in", "72pt"']," ")}function Z(a){return u(`${a} margin`,2,32).check(e=>{if(e.value.length<2){e.issues=[{code:"too_small",input:e.value,minimum:2,message:`${a} margin should be 2 characters or more.`,origin:"string"}];return}if(e.value.length>32){e.issues=[{code:"too_big",input:e.value,maximum:32,message:`${a} margin should be 32 characters or less.`,origin:"string"}];return}e.value.match(/^\d+(\.\d+)?(cm|pt|in)$/)||(e.issues=[{code:"invalid_value",input:e.value,message:hi(a),origin:"string",values:[e.value]}]);}).meta({title:startCase(`${a} margin size`),description:o(["A positive number followed by valid units: cm, pt, or in.",'Examples: "2.5cm", "1in", "72pt".']," "),examples:["2.5cm","1in","72pt","0.5cm","12pt"]})}var Pe=z.object({margins:z.object({top:t(Z("top")),bottom:t(Z("bottom")),left:t(Z("left")),right:t(Z("right"))}).nullish().meta({title:"Margins",description:o(["The margins section contains page margin settings,","including top, bottom, left, and right margins."]," ")})});var gi=z.boolean().meta({title:"Show Page Numbers",description:"Whether to show page numbers on the page."}),we=z.object({page:z.object({showPageNumbers:t(gi)}).nullish().meta({title:"Page",description:o(["The page section contains page display settings,","including whether to show page numbers."]," ")})});function C(a){return u(`${a} alias`,2,128).meta({title:a,description:`The name of the alias for ${a} section.`})}var Si=z.object({aliases:z.object({basics:t(C("basics")),education:t(C("education")),work:t(C("work")),volunteer:t(C("volunteer")),awards:t(C("awards")),certificates:t(C("certificates")),publications:t(C("publications")),skills:t(C("skills")),languages:t(C("languages")),interests:t(C("interests")),references:t(C("references")),projects:t(C("projects"))}).nullish().meta({title:"Aliases",description:"Section alias customization settings."})}),fi=z.object({order:z.array(T(Fa,"section")).nullish().meta({title:"Order",description:"Custom order for sections in the final output."})}),ve=z.object({sections:z.object({...Si.shape,...fi.shape}).nullish().meta({title:"Sections",description:"Section customization settings."})});var Le=z.object({template:t(oe).meta({title:"Template",description:o(["The template section contains the resume template selection,","determining the overall visual style and layout."]," ")})});var bi=z.object({links:z.object({underline:z.boolean().default(false).meta({title:"Underline Links",description:"Whether to underline links in the document.",examples:[false,true]})}).nullish().meta({title:"Typography Links",description:"Link styling settings for typography."})}),Be=z.object({typography:z.object({fontSize:t(ee),...bi.shape}).nullish().meta({title:"Typography",description:o(["The typography section contains font settings,","including font size options and link styling."]," ")})});var xe=z.object({layout:z.object({...Ae.shape,...Ne.shape,...Pe.shape,...we.shape,...ve.shape,...Le.shape,...Be.shape}).nullish().meta({title:"Layout",description:o(["The layout section contains all layout-related configurations,","including LaTeX, locale, margins, template, typography, etc."]," ")})});var Ti=z.object({...ya.shape,...xe.shape}).meta({$id:"https://yamlresume.dev/schema.json",title:"YAMLResume Schema",description:"JSON Schema for YAMLResume resume format.",version:"0.7.0",license:"MIT",keywords:["Resume","CV","YAML","LaTeX","PDF","YAMLResume"]});
|
|
180
|
+
\\end{document}`}},O=class extends U{constructor(e,n){super(e,"banking",n);}},V=class extends U{constructor(e,n){super(e,"casual",n);}},_=class extends U{constructor(e,n){super(e,"classic",n);}};var An={"moderncv-banking":O,"moderncv-classic":_,"moderncv-casual":V};function Mn(a,e=new G){let n=a.layout?.template;return n?new(get(An,n,O))(a,e):new O(a,e)}function Nn(a,e){return o([`${e} option is invalid,`,"it must be one of the following:",`[${a.map(n=>`"${n}"`).join(", ")}].`]," ")}function T(a,e){return z.enum(a,{error:n=>n.input===void 0?{message:`${e} option is required.`}:{message:Nn(a,e)}}).meta({title:`${startCase(e)} Option`,description:`A predefined option from the available ${e} choices.`})}var u=(a,e,n)=>z.string({message:`${a} is required.`}).min(e,{message:`${a} should be ${e} characters or more.`}).max(n,{message:`${a} should be ${n} characters or less.`}),Za=T(Na,"country");function h(a){return u(a,4,32).check(e=>{if(e.value.length<4){e.issues=[{code:"too_small",input:e.value,minimum:4,message:`${a} should be 4 characters or more.`,origin:"string"}];return}if(e.value.length>32){e.issues=[{code:"too_big",input:e.value,maximum:32,message:`${a} should be 32 characters or less.`,origin:"string"}];return}Date.parse(e.value)||(e.issues=[{code:"invalid_value",input:e.value,message:`${a} is invalid.`,origin:"string",values:[e.value]}]);}).meta({title:startCase(a),description:"A valid date string that can be parsed by `Date.parse`.",examples:["2025-01-01","Jul 2025","July 3, 2025","2025-02-02T00:00:03.123Z"]})}var Xa=T(Ra,"degree"),W=z.email({message:"email is invalid."}).meta({id:"email",title:"Email",description:"A valid email address.",examples:["hi@ppresume.com","first.last@company.org","test+tag@domain.co.uk"]}),Qa=T(xa,"fluency"),ae=T(Ga,"fontspec numbers"),ee=T(ia,"font size"),N=z.array(u("keyword",1,32)).meta({id:"keywords",title:"Keywords",description:"An array of keyword, each between 1 and 32 characters.",examples:[["Javascript","React","Typescript"],["Design","UI","UX"],["Python","Data Science"]]}),ne=T(Oa,"language"),ie=T(Da,"locale language"),te=T(za,"level"),S=a=>u(a,2,128).meta({title:startCase(a),description:`A ${a} between 2 and 128 characters.`,examples:["Andy Dufresne","Xiao Hanyu","Jane Smith","Dr. Robert John"]}),re=T(ja,"network"),En=/^[+]?[(]?[0-9\s-]{1,15}[)]?[0-9\s-]{1,15}$/im,Y=z.string().regex(En,{message:"phone number may be invalid."}).meta({id:"phone",title:"Phone",description:o(["A valid phone number that may include","country code, parentheses, spaces, and hyphens."]," "),examples:["555-123-4567","+44 20 7946 0958","(555) 123-4567"]}),f=u("summary",16,1024).meta({id:"summary",title:"Summary",description:"A summary text between 16 and 1024 characters.",examples:["Experienced software engineer with 5+ years in full-stack development.",o(["Creative designer passionate about","user experience and modern design principles."]," "),o(["Dedicated project manager with proven track record of","delivering complex projects on time and budget."]," ")]}),I=a=>u(a,2,128).meta({title:startCase(a),description:"An organization name between 2 and 128 characters.",examples:["Google Inc.","Microsoft Corporation","Startup XYZ","Non-Profit Organization"]}),oe=T($a,"template"),y=z.url({message:"URL is invalid."}).max(256,{message:"URL should be 256 characters or less."}).meta({id:"url",title:"URL",description:"A valid URL with maximum length of 256 characters.",examples:["https://yamlresume.dev","https://ppresume.com","https://github.com/yamlresume/yamlresume","https://linkedin.com/in/xiaohanyu1988","https://www.example.com"]});function t(a){let e={title:`[optional] ${a.meta().title}`,description:`${a.meta().description.replace(/\.$/,"")} or \`null\`.`,examples:a.meta().examples};return a.meta(e).nullish().meta(e)}var Pn=I("awarder").meta({title:"Awarder",description:"The organization or institution that presented the award.",examples:["Academy Awards","Tech Conference","Microsoft Scholarship"]}),wn=S("title").meta({title:"Title",description:"The title of the award.",examples:["Dean's List","Outstanding Student","Best Supporting Engineer"]}),vn=z.object({awarder:Pn,title:wn,date:t(h("date")),summary:t(f)}),se=z.object({awards:z.array(vn).nullish().meta({title:"Awards",description:o(["The awards section contains your achievements and recognitions,","including awards, honors, and special acknowledgments."]," ")})});var Ln=u("headline",2,128).meta({title:"Headline",description:"A short and catchy headline for your resume.",examples:["Full-stack software engineer","Data Scientist with a passion for Machine Learning","Product Manager driving innovation"]}),Bn=z.object({name:S("name").describe("Your personal name."),email:t(W),headline:t(Ln),phone:t(Y),summary:t(f),url:t(y)},{error:a=>a.input===void 0?{message:"basics is required."}:{message:a.message}}),ce=z.object({basics:Bn.meta({title:"Basics",description:o(["The basics section contains your personal information,","such as your name, email, phone number, and a brief summary."]," ")})});var Rn=I("issuer").meta({title:"Issuer",description:"The organization that issued the certificate.",examples:["AWS","Microsoft","Coursera","Google Cloud"]}),xn=z.object({issuer:Rn,name:S("name").describe("The name of the certificate."),date:t(h("date")),url:t(y)}),ue=z.object({certificates:z.array(xn).nullish().meta({title:"Certificates",description:o(["The certificates section contains your professional certifications,","including training programs and industry-recognized credentials."]," ")})});var Gn=u("area",2,64).meta({title:"Area",description:"Your field of study or major.",examples:["Computer Science","Business Administration","Engineering","Arts"]}),On=z.array(u("courses",2,128)).meta({title:"Courses",description:"A list of relevant courses you have taken.",examples:[["Data Structures","Algorithms","Database Systems"],["Marketing","Finance","Operations Management"],["Calculus","Physics","Chemistry"]]}),zn=I("institution").meta({title:"Institution",description:"The institution that awarded the degree.",examples:["University of California, Los Angeles","Harvard University","Zhejiang University"]}),Dn=u("score",2,32).meta({title:"Score",description:"Your GPA, grade, or other academic score.",examples:["3.8","3.8/4.0","A+","95%","First Class Honours"]}),jn=z.object({area:Gn,institution:zn,degree:Xa,startDate:h("startDate"),courses:t(On),endDate:t(h("endDate")),summary:t(f),score:t(Dn),url:t(y)}),me=z.object({education:z.array(jn,{error:a=>a.input===void 0?{message:"education is required."}:{message:a.message}}).meta({title:"Education",description:o(["The education section contains your academic background,","including degrees, institutions, and relevant coursework."]," ")})});var Fn=S("name").describe("The name of the interest."),Un=z.object({name:Fn,keywords:t(N)}),de=z.object({interests:z.array(Un).nullish().meta({title:"Interests",description:o(["The interests section contains your personal interests and hobbies,","including activities and topics you are passionate about."]," ")})});var $n=z.object({fluency:Qa,language:ne,keywords:t(N)}),pe=z.object({languages:z.array($n).nullish().meta({title:"Languages",description:o(["The languages section contains your language proficiencies,","including fluency levels and related skills."]," ")})});var Kn=u("city",2,64).meta({title:"City",description:"The city where you are located.",examples:["San Francisco","New York","London","Tokyo"]}),Hn=u("address",4,256).meta({title:"Address",description:"Your full address including street, apartment, etc.",examples:["123 Main Street, Apt 4B","456 Oak Avenue","789 Pine Road, Suite 100"]}),Vn=u("postalCode",2,16).meta({title:"Postal Code",description:"Your postal or ZIP code.",examples:["94102","10001","SW1A 1AA","100-0001"]}),_n=u("region",2,64).meta({title:"Region",description:"Your state, province, or region.",examples:["California","New York","England","Tokyo"]}),Jn=z.object({city:Kn,address:t(Hn),country:t(Za),postalCode:t(Vn),region:t(_n)}),ge=z.object({location:Jn.nullish().meta({title:"Location",description:o(["The location section contains your geographical information,","such as city, address, country, and postal code."]," ")})});var Wn=u("username",2,64).meta({title:"Username",description:"Your username or handle on the social network.",examples:["john_doe","jane.smith","dev_engineer","designer_123"]}),Yn=z.object({network:re,username:Wn,url:t(y)}),Se=z.object({profiles:z.array(Yn).nullish().meta({title:"Profiles",description:o(["The profiles section contains your online presence,","including social media and professional network profiles."]," ")})});var qn=S("name").describe("The name of the project."),Zn=u("description",4,128).meta({title:"Description",description:"A detailed description of the project and your role.",examples:["Led development of a full-stack web application","Designed and implemented REST API endpoints","Managed team of 5 developers for mobile app development"]}),Xn=z.object({name:qn,startDate:h("startDate"),summary:f,description:t(Zn),endDate:t(h("endDate")),keywords:t(N),url:t(y)}),fe=z.object({projects:z.array(Xn).nullish().meta({title:"Projects",description:o(["The projects section contains your personal and professional projects,","including technical details, timelines, and outcomes."]," ")})});var Qn=S("name").describe("The name of the publication."),ai=I("publisher").meta({title:"Publisher",description:"The organization that published the work.",examples:["ACM","IEEE","Springer","Nature Publishing Group"]}),ei=z.object({name:Qn,publisher:ai,releaseDate:t(h("Release date")),summary:t(f),url:t(y)}),ye=z.object({publications:z.array(ei).nullish().meta({title:"Publications",description:o(["The publications section contains your academic and professional publications,","including papers, articles, and research works."]," ")})});var ni=S("name").describe("The name of the reference."),ii=u("relationship",2,128).meta({title:"Relationship",description:"Your professional relationship with the reference.",examples:["Former Manager","Colleague","Professor","Client"]}),ti=z.object({name:ni,summary:f,email:t(W),phone:t(Y),relationship:t(ii)}),be=z.object({references:z.array(ti).nullish().meta({title:"References",description:o(["The references section contains your professional references,","including contact information and relationships."]," ")})});var ri=S("name").describe("The name of the skill."),oi=z.object({level:te,name:ri,keywords:t(N)}),ke=z.object({skills:z.array(oi).nullish().meta({title:"Skills",description:o(["The skills section contains your technical and professional skills,","including proficiency levels and related keywords."]," ")})});var si=I("organization").meta({title:"Organization",description:"The organization where you volunteered.",examples:["Red Cross","Habitat for Humanity","Local Food Bank","Animal Shelter"]}),li=u("position",2,64).meta({title:"Position",description:"Your role or position in the volunteer organization.",examples:["Event Coordinator","Tutor","Fundraiser","Board Member"]}),ci=z.object({organization:si,position:li,startDate:h("startDate"),summary:f,endDate:t(h("endDate")),url:t(y)}),Te=z.object({volunteer:z.array(ci).nullish().meta({title:"Volunteer",description:o(["The volunteer section contains your community service and volunteer work,","including organizations, roles, and contributions."]," ")})});var ui=I("name").meta({title:"Name",description:"The name of the company or organization you worked for.",examples:["Google","Microsoft","Apple","Amazon"]}),mi=u("position",2,64).meta({title:"Position",description:"Your job title or position at the company.",examples:["Software Engineer","Product Manager","Data Scientist","UX Designer"]}),di=z.object({name:ui,position:mi,startDate:h("startDate"),summary:f,endDate:t(h("endDate")),keywords:t(N),url:t(y)}),Ie=z.object({work:z.array(di).nullish().meta({title:"Work",description:o(["The work section contains your professional experience,","including job titles, companies, and responsibilities."]," ")})});var ya=z.object({content:z.object({...ce.shape,...me.shape,...se.shape,...ue.shape,...de.shape,...pe.shape,...ge.shape,...Se.shape,...fe.shape,...ye.shape,...be.shape,...ke.shape,...Te.shape,...Ie.shape},{error:a=>a.input===void 0?{message:"content is required."}:{message:a.message}})});var Ae=z.object({latex:z.object({fontspec:z.object({numbers:t(ae)}).nullish()}).nullish().meta({title:"LaTeX",description:o(["The LaTeX section contains LaTeX-specific settings,","including fontspec package configurations."]," ")})});var Ne=z.object({locale:z.object({language:t(ie)}).nullish().meta({title:"Locale",description:o(["The locale section contains locale language settings,","determining the language used for the resume."]," ")})});function hi(a){return o([`invalid ${a} margin size,`,`${a} margin must be a positive number followed by`,'"cm", "pt" or "in", eg: "2.5cm", "1in", "72pt"']," ")}function Z(a){return u(`${a} margin`,2,32).check(e=>{if(e.value.length<2){e.issues=[{code:"too_small",input:e.value,minimum:2,message:`${a} margin should be 2 characters or more.`,origin:"string"}];return}if(e.value.length>32){e.issues=[{code:"too_big",input:e.value,maximum:32,message:`${a} margin should be 32 characters or less.`,origin:"string"}];return}e.value.match(/^\d+(\.\d+)?(cm|pt|in)$/)||(e.issues=[{code:"invalid_value",input:e.value,message:hi(a),origin:"string",values:[e.value]}]);}).meta({title:startCase(`${a} margin size`),description:o(["A positive number followed by valid units: cm, pt, or in.",'Examples: "2.5cm", "1in", "72pt".']," "),examples:["2.5cm","1in","72pt","0.5cm","12pt"]})}var Pe=z.object({margins:z.object({top:t(Z("top")),bottom:t(Z("bottom")),left:t(Z("left")),right:t(Z("right"))}).nullish().meta({title:"Margins",description:o(["The margins section contains page margin settings,","including top, bottom, left, and right margins."]," ")})});var gi=z.boolean().meta({title:"Show Page Numbers",description:"Whether to show page numbers on the page."}),we=z.object({page:z.object({showPageNumbers:t(gi)}).nullish().meta({title:"Page",description:o(["The page section contains page display settings,","including whether to show page numbers."]," ")})});function C(a){return u(`${a} alias`,2,128).meta({title:a,description:`The name of the alias for ${a} section.`})}var Si=z.object({aliases:z.object({basics:t(C("basics")),education:t(C("education")),work:t(C("work")),volunteer:t(C("volunteer")),awards:t(C("awards")),certificates:t(C("certificates")),publications:t(C("publications")),skills:t(C("skills")),languages:t(C("languages")),interests:t(C("interests")),references:t(C("references")),projects:t(C("projects"))}).nullish().meta({title:"Aliases",description:"Section alias customization settings."})}),fi=z.object({order:z.array(T(Fa,"section")).nullish().meta({title:"Order",description:"Custom order for sections in the final output."})}),ve=z.object({sections:z.object({...Si.shape,...fi.shape}).nullish().meta({title:"Sections",description:"Section customization settings."})});var Le=z.object({template:t(oe).meta({title:"Template",description:o(["The template section contains the resume template selection,","determining the overall visual style and layout."]," ")})});var bi=z.object({links:z.object({underline:z.boolean().default(false).meta({title:"Underline Links",description:"Whether to underline links in the document.",examples:[false,true]})}).nullish().meta({title:"Typography Links",description:"Link styling settings for typography."})}),Be=z.object({typography:z.object({fontSize:t(ee),...bi.shape}).nullish().meta({title:"Typography",description:o(["The typography section contains font settings,","including font size options and link styling."]," ")})});var xe=z.object({layout:z.object({...Ae.shape,...Ne.shape,...Pe.shape,...we.shape,...ve.shape,...Le.shape,...Be.shape}).nullish().meta({title:"Layout",description:o(["The layout section contains all layout-related configurations,","including LaTeX, locale, margins, template, typography, etc."]," ")})});var Ti=z.object({...ya.shape,...xe.shape}).meta({$id:"https://yamlresume.dev/schema.json",title:"YAMLResume Schema",description:"JSON Schema for YAMLResume resume format.",version:"0.7.5",license:"MIT",keywords:["Resume","CV","YAML","LaTeX","PDF","YAMLResume"]});
|
|
181
181
|
export{Na as COUNTRY_OPTIONS,mt as DEFAULT_RESUME,Ye as DEFAULT_RESUME_CONTENT,K as DEFAULT_RESUME_LAYOUT,Ua as DEFAULT_SECTIONS_ORDER,Ra as DEGREE_OPTIONS,Ea as EnglishCountryNames,Ma as ErrorType,dt as FILLED_RESUME,L as FILLED_RESUME_CONTENT,xa as FLUENCY_OPTIONS,Ga as FONTSPEC_NUMBERS_OPTIONS,ia as FONT_SIZE_OPTIONS,Oa as LANGUAGE_OPTIONS,za as LEVEL_OPTIONS,Da as LOCALE_LANGUAGE_OPTIONS,v as LatexCodeGenerator,ct as MARGIN_OPTIONS,G as MarkdownParser,ja as NETWORK_OPTIONS,Ba as NorwegianCountryNames,Ei as ONE_DAY,Fa as ORDERABLE_SECTION_IDS,It as PUNCTUATIONS,p as RESUME_SECTION_ITEMS,Ti as ResumeSchema,st as SECTION_IDS,Pa as SimplifiedChineseCountryNames,La as SpanishCountryNames,$a as TEMPLATE_OPTIONS,Ct as TERMS,wa as TraditionalChineseCountryHKNames,va as TraditionalChineseCountryTWNames,aa as YAMLResumeError,Ia as collectAllKeys,wi as epochSecondsToLocaleDateString,R as escapeLatex,Ca as getDateRange,ut as getLocaleLanguageDetail,B as getOptionTranslation,Mn as getResumeRenderer,lt as getTemplateDetail,k as getTemplateTranslations,je as isEmptyString,c as isEmptyValue,o as joinNonEmptyString,M as localizeDate,Ta as mergeArrayWithOrder,vi as milliSecondsToSeconds,Pi as nowInUTCSeconds,Ni as parseDate,ze as removeKeysFromObject,b as showIf,d as showIfNotEmpty,Oi as toCodeBlock,ra as transformResume};//# sourceMappingURL=index.js.map
|
|
182
182
|
//# sourceMappingURL=index.js.map
|