@yamlresume/core 0.3.0 → 0.3.2

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.d.ts CHANGED
@@ -668,12 +668,11 @@ declare const spanishCountryNames: Record<Country, string>;
668
668
  * IN THE SOFTWARE.
669
669
  */
670
670
 
671
- /** Represents the valid identifiers for top-level sections within the resume
672
- * content.
673
- *
674
- * TODO: should we move this to TypeScript enum?
671
+ /**
672
+ * All valid top-level sections in the resume.
675
673
  * */
676
- type SectionID = 'basics' | 'location' | 'profiles' | 'work' | 'education' | 'volunteer' | 'awards' | 'certificates' | 'publications' | 'skills' | 'languages' | 'interests' | 'references' | 'projects';
674
+ declare const SECTION_IDS: readonly ["basics", "location", "profiles", "work", "education", "volunteer", "awards", "certificates", "publications", "skills", "languages", "interests", "references", "projects"];
675
+ type SectionID = (typeof SECTION_IDS)[number];
677
676
  /** Categorizes social networks for potential grouping or display purposes. */
678
677
  type SocialNetworkGroup = 'Chat' | 'Design' | 'Media' | 'Social' | 'Technical' | 'WWW';
679
678
  /** Defines supported social media and professional network identifiers.
@@ -710,7 +709,7 @@ type BasicsItem = {
710
709
  /** Email address. */
711
710
  email?: string;
712
711
  /** A brief professional headline or title (e.g., "Software Engineer"). */
713
- headline: string;
712
+ headline?: string;
714
713
  /** Full name. */
715
714
  name?: string;
716
715
  /** Phone number. */
@@ -1936,6 +1935,14 @@ declare function escapeLatex(value: string | null | undefined): any;
1936
1935
  * @see {@link https://stackoverflow.com/a/43233163}
1937
1936
  */
1938
1937
  declare function isEmptyValue(value: undefined | null | object | string): boolean;
1938
+ /**
1939
+ * Remove keys from an object by their names
1940
+ *
1941
+ * @param obj - The object to remove keys from
1942
+ * @param keysToRemove - The keys to remove
1943
+ * @returns The object with the specified keys removed
1944
+ */
1945
+ declare function removeKeysFromObject<T extends object>(obj: T, keysToRemove: (string | number | symbol)[]): T;
1939
1946
 
1940
1947
  /**
1941
1948
  * MIT License
@@ -1992,4 +1999,4 @@ declare function joinNonEmptyString(codes: string[], separator?: string): string
1992
1999
  */
1993
2000
  declare function toCodeBlock(code?: string, lang?: string): string;
1994
2001
 
1995
- export { type Awards, type Basics, type BulletListNode, type Certificates, Country, Degree, type DocNode, type Education, ErrorType, FontSpecNumbersStyle, type Interests, Language, LanguageFluency, type LanguageItem, type Languages, LatexCodeGenerator, LocaleLanguageOption, type Location, MarkdownParser, type Node, type OrderedListNode, type ParagraphNode, type Parser, type ProfileItem, type Profiles, type Projects, type Publications, Punctuation, type References, type Resume, type ResumeContent, type ResumeItem, type ResumeLayout, ResumeTerms, type SectionDefaultValues, type SectionID, SkillLevel, type Skills, type SocialNetwork, type SocialNetworkGroup, TemplateOption, TemplateTerms, type TextNode, TiptapParser, type Volunteer, type Work, YAMLResumeError, defaultResume, defaultResumeContent, defaultResumeLayout, degreeOptions, emptyParagraph, englishCountryNames, epochSecondsToLocaleDateString, escapeLatex, filledResume, filledResumeContent, fontSizeOptions, getDateRange, getLocaleLanguageOptionDetail, getResumeRenderer, getTemplateOptionDetail, getTemplateTranslations, getTermsTranslations, isEmptyString, isEmptyValue, joinNonEmptyString, languageFluenciesOptions, languagesOptions, localizeDate, marginOptions, milliSecondsToSeconds, nowInUTCSeconds, oneDay, parseDate, resumeItems, showIf, simplifiedChineseCountryNames, skillLevelOptions, spanishCountryNames, toCodeBlock, traditionalChineseCountryHKNames, traditionalChineseCountryTWNames, transformResume };
2002
+ export { type Awards, type Basics, type BulletListNode, type Certificates, Country, Degree, type DocNode, type Education, ErrorType, FontSpecNumbersStyle, type Interests, Language, LanguageFluency, type LanguageItem, type Languages, LatexCodeGenerator, LocaleLanguageOption, type Location, MarkdownParser, type Node, type OrderedListNode, type ParagraphNode, type Parser, type ProfileItem, type Profiles, type Projects, type Publications, Punctuation, type References, type Resume, type ResumeContent, type ResumeItem, type ResumeLayout, ResumeTerms, SECTION_IDS, type SectionDefaultValues, type SectionID, SkillLevel, type Skills, type SocialNetwork, type SocialNetworkGroup, TemplateOption, TemplateTerms, type TextNode, TiptapParser, type Volunteer, type Work, YAMLResumeError, defaultResume, defaultResumeContent, defaultResumeLayout, degreeOptions, emptyParagraph, englishCountryNames, epochSecondsToLocaleDateString, escapeLatex, filledResume, filledResumeContent, fontSizeOptions, getDateRange, getLocaleLanguageOptionDetail, getResumeRenderer, getTemplateOptionDetail, getTemplateTranslations, getTermsTranslations, isEmptyString, isEmptyValue, joinNonEmptyString, languageFluenciesOptions, languagesOptions, localizeDate, marginOptions, milliSecondsToSeconds, nowInUTCSeconds, oneDay, parseDate, removeKeysFromObject, resumeItems, showIf, simplifiedChineseCountryNames, skillLevelOptions, spanishCountryNames, toCodeBlock, traditionalChineseCountryHKNames, traditionalChineseCountryTWNames, transformResume };