0.0.2 • Published 8 months ago

multi-contact-picker v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

multi-contact-picker

Contact picker for selecting multiple contacts on a device

Install

npm install multi-contact-picker
npx cap sync

API

checkPermissions()

checkPermissions() => Promise<PermissionStatus>

Returns: Promise<PermissionStatus>


requestPermissions()

requestPermissions() => Promise<PermissionStatus>

Returns: Promise<PermissionStatus>


getContact(...)

getContact(options: GetContactOptions) => Promise<GetContactResult>
ParamType
optionsGetContactOptions

Returns: Promise<GetContactResult>


getContacts(...)

getContacts(options: GetContactsOptions) => Promise<GetContactsResult>
ParamType
optionsGetContactsOptions

Returns: Promise<GetContactsResult>


createContact(...)

createContact(options: CreateContactOptions) => Promise<CreateContactResult>
ParamType
optionsCreateContactOptions

Returns: Promise<CreateContactResult>


deleteContact(...)

deleteContact(options: DeleteContactOptions) => Promise<void>
ParamType
optionsDeleteContactOptions

pickContacts(...)

pickContacts(options: pickContactsOptions) => Promise<GetContactsResult>
ParamType
optionspickContactsOptions

Returns: Promise<GetContactsResult>


Interfaces

PermissionStatus

PropType
contactsPermissionState

GetContactResult

PropType
contactContactPayload

ContactPayload

PropTypeDescription
contactIdstring
nameNamePayloadObject holding the name data
organizationOrganizationPayloadObject holding the organization data
birthdayBirthdayPayload | nullBirthday
notestring | nullNote
phonesPhonePayload[]Phones
emailsEmailPayload[]Emails
urls(string | null)[]URLs
postalAddressesPostalAddressPayload[]Postal Addresses
imageImagePayloadImage

NamePayload

PropType
displaystring | null
givenstring | null
middlestring | null
familystring | null
prefixstring | null
suffixstring | null

OrganizationPayload

PropType
companystring | null
jobTitlestring | null
departmentstring | null

BirthdayPayload

PropType
daynumber | null
monthnumber | null
yearnumber | null

PhonePayload

PropType
typePhoneType
labelstring | null
isPrimaryboolean | null
numberstring | null

EmailPayload

PropType
typeEmailType
labelstring | null
isPrimaryboolean | null
addressstring | null

PostalAddressPayload

PropType
typePostalAddressType
labelstring | null
isPrimaryboolean | null
streetstring | null
neighborhoodstring | null
citystring | null
regionstring | null
postcodestring | null
countrystring | null

ImagePayload

PropType
base64Stringstring | null

GetContactOptions

PropType
contactIdstring
projectionProjection

Projection

PropTypeDescriptionDefault
namebooleanfalse
organizationbooleanfalse
birthdaybooleanfalse
notebooleanfalse
phonesbooleanfalse
emailsbooleanfalse
urlsbooleanfalse
postalAddressesbooleanfalse
imagebooleanBe careful! This can potentially slow down your query by a large factor.false

GetContactsResult

PropType
messagestring
contactsContactPayload[]

GetContactsOptions

PropType
projectionProjection

CreateContactResult

PropType
contactIdstring

CreateContactOptions

PropType
contactContactInput

ContactInput

PropTypeDescription
nameNameInputObject holding the name data
organizationOrganizationInputObject holding the organization data
birthdayBirthdayInput | nullBirthday
notestring | nullNote
phonesPhoneInput[]Phones
emailsEmailInput[]Emails
urlsstring[]URLs
postalAddressesPostalAddressInput[]Postal Addresses

NameInput

PropType
givenstring | null
middlestring | null
familystring | null
prefixstring | null
suffixstring | null

OrganizationInput

PropType
companystring | null
jobTitlestring | null
departmentstring | null

BirthdayInput

PropType
daynumber
monthnumber
yearnumber

PhoneInput

PropType
typePhoneType
labelstring | null
isPrimaryboolean
numberstring | null

EmailInput

PropType
typeEmailType
labelstring | null
isPrimaryboolean
addressstring | null

PostalAddressInput

PropType
typePostalAddressType
labelstring | null
isPrimaryboolean
streetstring | null
neighborhoodstring | null
citystring | null
regionstring | null
postcodestring | null
countrystring | null

DeleteContactOptions

PropType
contactIdstring

pickContactsOptions

PropType
projectionProjection

Type Aliases

PermissionState

'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'

Enums

PhoneType

MembersValue
Home'home'
Work'work'
Other'other'
Custom'custom'
Mobile'mobile'
FaxWork'fax_work'
FaxHome'fax_home'
Pager'pager'
Callback'callback'
Car'car'
CompanyMain'company_main'
Isdn'isdn'
Main'main'
OtherFax'other_fax'
Radio'radio'
Telex'telex'
TtyTdd'tty_tdd'
WorkMobile'work_mobile'
WorkPager'work_pager'
Assistant'assistant'
Mms'mms'

EmailType

MembersValue
Home'home'
Work'work'
Other'other'
Custom'custom'
Mobile'mobile'

PostalAddressType

MembersValue
Home'home'
Work'work'
Other'other'
Custom'custom'
0.0.2

8 months ago

0.0.1

11 months ago