New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mandolyte/contacts

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mandolyte/contacts

  • v0.0.0-20240115104313-70dfe4e0d9e5
  • Source
  • Go
  • Socket score

Version published
Created
Source

Contact Processing for importing

Background

This project is designed to replace the former methods used to create a Google Contacts (GC) import file from a TouchPoint (TP) contact database.

2022-12-11

In this iteration, TP has been used to generate the data from its database with various filters applied to limit the data to that desired for importing into GC.

It may be that the existing two Go source will not be needed. The first attempt will be to simply take the TP export, map it into GC columns, and then import into GC.

Attempt #1 will be to see if GC will import existing TP export directly if the TP column headers are simply renamed to be the mapped GC columns.

Here the mapping for the columns:

TPGC
PeopleId
TitleName Prefix
FirstNameName
LastNameGiven Name
AddressAddress 1 - Street
Address2Address 1 - PO Box
CityAddress 1 - City
StateAddress 1 - Region
CountryAddress 1 - Country
ZipAddress 1 - Postal Code
EmailE-mail 1 - Value
BirthDateBirthday
BirthDay
JoinDate
HomePhonePhone 1 - Value
CellPhonePhone 2 - Value
WorkPhonePhone 3 - Value
MemberStatusGroup Membership
Age
Married
Wedding
FamilyId
FamilyPositionLocation
GenderGender
School
Grade
FellowshipLeaderDirectory Server
AttendPctBF
FellowshipClassBilling Information
AltName
Employer
OtherId
Campus
DecisionDate

Results

  1. Name and Given Name are not combined. Thus I need to make one column containing first and last names.
  2. Some of the columns came thru on their own and where shown as "information about" the person. These were: birthday, peopleId, age, married, familyId, attendPctBF.
  3. But others that I mapped explicitly did not make it. These were: FellowshipLeader, FellowshipClass, Gender, FamilyPosition
  4. "Group Membership" was mapped as a label - interesting!
  5. Phone, email, and address worked. But they are imported without the "home", "mobile", etc. type attribute. I need to add these values as new columns.

2012-12-12

Iteration 2 will simply redo some of the column headings in an attempt to improve the results.

  1. map first name to given name and last name to family name.
  2. map FellowshipLeader to
IndexTPGC
0PeopleId
1TitleName Prefix
2FirstNameGiven Name
3LastNameFamily Name
4AddressAddress 1 - Street
5Address2Address 1 - PO Box
6CityAddress 1 - City
7StateAddress 1 - Region
8CountryAddress 1 - Country
9ZipAddress 1 - Postal Code
10EmailE-mail 1 - Value
11BirthDate
12BirthDay
13JoinDate
14HomePhonePhone 1 - Value
15CellPhonePhone 2 - Value
16WorkPhonePhone 3 - Value
17MemberStatusGroup Membership
18Age
19Married
20Wedding
21FamilyId
22FamilyPositionOccupation
23GenderGender
24School
25Grade
26FellowshipLeaderHobby
27AttendPctBF
28FellowshipClassNotes
29AltName
30Employer
31OtherId
32Campus
33DecisionDate

Results

  1. Title is coming thru and doesn't seem worthwhile... change it back to Title (mapped to Name Prefix)
  2. FellowshipClass is coming thru with "Notes", but Leader isn't on "Subject". Try "Hobby" for latter.
  3. Looks like all numbers and dates are coming thru. These seem to be treated differently.
  4. Reverting to birthdate to see if both dates come thru.

Results This looks nearly perfect and no programming needed - Woot!

So I do need to do some programming to add labels to the phone numbers. So that and perhaps adding some things into the notes field is about it.

Appendix A

Here are all the columns used in the GC export.

Name Given Name Additional Name Family Name Yomi Name Given Name Yomi Additional Name Yomi Family Name Yomi Name Prefix Name Suffix Initials Nickname Short Name Maiden Name Birthday Gender Location Billing Information Directory Server Mileage Occupation Hobby Sensitivity Priority Subject Notes Language Photo Group Membership E-mail 1 - Type E-mail 1 - Value E-mail 2 - Type E-mail 2 - Value E-mail 3 - Type E-mail 3 - Value E-mail 4 - Type E-mail 4 - Value Phone 1 - Type Phone 1 - Value Phone 2 - Type Phone 2 - Value Phone 3 - Type Phone 3 - Value Phone 4 - Type Phone 4 - Value Address 1 - Type Address 1 - Formatted Address 1 - Street Address 1 - City Address 1 - PO Box Address 1 - Region Address 1 - Postal Code Address 1 - Country Address 1 - Extended Address Address 2 - Type Address 2 - Formatted Address 2 - Street Address 2 - City Address 2 - PO Box Address 2 - Region Address 2 - Postal Code Address 2 - Country Address 2 - Extended Address Organization 1 - Type Organization 1 - Name Organization 1 - Yomi Name Organization 1 - Title Organization 1 - Department Organization 1 - Symbol Organization 1 - Location Organization 1 - Job Description Website 1 - Type Website 1 - Value

FAQs

Package last updated on 15 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc