Spaces:
Runtime error
Runtime error
File size: 4,251 Bytes
919f56a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
const mailRegexPattern=/^[\w\.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{2,})$/;
const linkedinProfileURLRegexPattern=/^(https?:\/\/)?(www\.)?linkedin\.com\/(in|pub|company|groups|edu|feed)\/[a-zA-Z0-9\-]+\/?$/;
const phoneNumberRegexPattern= /^\+\d{1,3}\s\d{4,}$/;
const docxPaths = {
"1": "./Templates/Template1/BasicTemplate.docx",
"2": "./Templates/Template2/LinkTemplate.docx",
"3": "./Templates/Template3/ImageTemplate.docx"
};
const resumeSuccessData= {
"template_id": "1",
"personal_information": {
"name": "Lorem",
"last_name": "ipsum",
"email_address": "ipsum@adobe.com",
"phone_number": "+91 991478199",
"linkedin_url": "https://www.linkedin.com/in/posa-mokshith-99416825b/"
},
"job_title": "Software Development Engineer",
"career_objective": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper.",
"skills": [
"Strong interpersonal",
"communication skills",
"Leadership",
"Poised under pressure"
],
"education": [
{
"school_name": "School",
"passing_year": "2010-2010",
"description": "There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable."
},
{
"school_name": "College",
"passing_year": "2038-2039",
"description": "All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc"
}
],
"experience": [
{
"company_name": "Adobe",
"passing_year": "2019-2018",
"responsibilities": "It is a long established fact that a reader will be distracted by the readable content. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod"
}
],
"achievements": [
{
"field": "Academics",
"awards": "Lorem ipsum dolor sit amet"
},
{
"field": "Sports",
"awards": "consectetuer adipiscing elit"
}
]
};
const resumeFieldTypes={
template_id: "string",
personal_information: "object",
job_title: "string",
career_objective: "string",
skills: "array",
education: "array",
experience: "array",
achievements: "array"
}
const personalInformationFieldTypes={
name:"string",
last_name:"string",
email_address:"string",
phone_number:"string",
linkedin_url:"string"
}
const educationFieldTypes={
school_name:"string",
passing_year:"string",
description:"string"
}
const experienceFieldTypes={
company_name:"string",
passing_year:"string",
responsibilities:"string"
}
const achievementFieldTypes={
field:"string",
awards:"string"
}
const notMatchingLinkedInURLs = [
'https://linkedin.com',
'http://www.linkedin.com',
'https://www.linkedin.com/',
'https://linkedin.com/in/',
'https://www.linkedin.com/in/john-doe/',
'https://linkedin.com/pub/',
'https://www.linkedin.com/pub/john-doe/',
'https://linkedin.com/company/',
'https://www.linkedin.com/company/example-company/',
'https://www.linked.com/company/example-company/',
'https://linkedin.com/groups/',
'https://www.linkedin.com/groups/example-group/',
'https://linkedin.com/edu/',
'https://www.linkedin.com/edu/school-name/',
'https://linkedin.com/feed/',
'https://www.linkedin.com/feed/news/',
'https://www.google.com/'
];
const notMatchingPhoneNumbers=[
"+1 123",
"1233455",
"123",
"+12 89",
"+1 "];
const notMatchingEmails=[
"23823",
"absdwqd",
"asa@HSDUIFH",
"MOSHIT_HH@FH.com",
"88787@21r3f.c",
]
module.exports = {
mailRegexPattern,
linkedinProfileURLRegexPattern,
phoneNumberRegexPattern,
docxPaths,
resumeSuccessData,
resumeFieldTypes,
personalInformationFieldTypes,
educationFieldTypes,
experienceFieldTypes,
achievementFieldTypes,
notMatchingLinkedInURLs,
notMatchingPhoneNumbers,
notMatchingEmails
};
|