LuchoBazz/nestjs-rest-pg-starter-kit

Add Standard for Phone Number and validation

Closed this issue · 0 comments

Graphql Query

phoneNumber {
  format {
      E164 # +12024561414
      NATIONAL # (202) 456-1414
      INTERNATIONAL # +1 202-456-1414
  }
  regionCode # US
  countryCode # 1
  # i18n.phonenumbers.PhoneNumberType
  phoneNumberType # FIXED_LINE | MOBILE | FIXED_LINE_OR_MOBILE | TOLL_FREE | PREMIUM_RATE | SHARED_COST | VOIP | PERSONAL_NUMBER | PAGER | UAN | VOICEMAIL | UNKNOWN
}

https://github.com/ruimarinho/google-libphonenumber