Add optional activity experience on leads and people with form mapping and filters.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -129,6 +129,12 @@ export function isBirthDateAnswer(label: string): boolean {
|
||||
return label.trim() === 'تاریخ تولد';
|
||||
}
|
||||
|
||||
/** فیلد سابقه فعالیت روی خود لید/مشتری هست؛ جواب فرم نباید دوباره ردیف بسازد. */
|
||||
export function isActivityExperienceAnswer(label: string): boolean {
|
||||
const text = label.trim().replace(/ي/g, 'ی').replace(/ك/g, 'ک');
|
||||
return /سابقه\s*فعالیت/.test(text);
|
||||
}
|
||||
|
||||
function parseAnswerLine(line: string): LeadNoteRow | null {
|
||||
const splitAt = line.indexOf(':');
|
||||
if (splitAt <= 0 || splitAt > 200) return null;
|
||||
|
||||
Reference in New Issue
Block a user