Constructors

Properties

LETTER_SET: string = ...
SEPARATOR_SET: string = "(?:'?\\s{0,4})"
belfioreConnector: IBelfioreConnector
parser: Parser

Methods

  • Validation regexp for the given year or generic

    Parameters

    • Optional date: null | MultiFormatDate

      Optional date to generate validation regexp

    • Optional gender: null | Genders

    Returns RegExp

    CF date and gender matcher

    See

    Genders

  • Validation regexp for the given day or generic

    Parameters

    • Optional day: DateDay

      Optional day to generate validation regexp

    Returns RegExp

    CF day matcher

  • Validation regexp for the given year or generic

    Parameters

    • Optional day: DateDay

      Optional day to generate validation regexp

    • Optional gender: Genders

      Gender

    Returns RegExp

    CF day and gender matcher

    See

    Genders

  • Validation regexp for the given name or generic

    Parameters

    • Optional name: string

      Optional name to generate validation regexp

    Returns RegExp

    CF name matcher

    Throw

    INVALID_NAME

  • Validation regexp for the given lastName or generic

    Parameters

    • Optional lastName: string

      Optional lastName to generate validation regexp

    Returns RegExp

    CF Surname matcher

    Throw

    INVALID_SURNAME

  • Validation regexp for the given month or generic

    Parameters

    • Optional month: DateMonth

      Optional month to generate validation regexp

    Returns RegExp

    CF month matcher

  • Parameters

    • Optional placeName: null | string

      Optional place name to generate validation regexp

    Returns Promise<RegExp>

    CF place matcher

  • Parameters

    • Optional birthDate: null | MultiFormatDate
    • Optional placeName: null | string

    Returns Promise<RegExp>

  • Validation regexp for the given year or generic

    Parameters

    • Optional year: number

      Optional year to generate validation regexp

    Returns RegExp

    CF year matcher

  • Generates full CF validator based on given optional input or generic

    Parameters

    • Optional personalInfo: Omit<default, "place"> & {
          place?: string | BelfiorePlace;
      }

      Input Object

    Returns Promise<RegExp>

    CodiceFiscale matcher

  • Returns iso8601 date validator based on given cf or generic

    Parameters

    • Optional codiceFiscale: string

      Partial or complete CF to parse

    Returns RegExp

    Generic or specific regular expression

  • Returns name validator based on given cf or generic

    Parameters

    • Optional codiceFiscale: string

      Partial or complete CF to parse

    Returns RegExp

    Generic or specific regular expression

  • Returns gender validator based on given cf or generic

    Parameters

    • Optional codiceFiscale: string

      Partial or complete CF to parse

    Returns RegExp

    Generic or specific regular expression

  • Returns lastName validator based on given cf or generic

    Parameters

    • Optional codiceFiscale: string

      Partial or complete CF to parse

    Returns RegExp

    Generic or specific regular expression

  • Returns place validator based on given cf or generic

    Parameters

    • Optional codiceFiscale: string

      Partial or complete CF to parse

    Returns Promise<RegExp>

    Generic or specific regular expression