6.1.0 • Published 5 months ago

@sencrop/capacitor-intercom v6.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@sencrop/capacitor-intercom

Intercom Plugin for Capacitor

Install

npm install @sencrop/capacitor-intercom
npx cap sync

API

initialize(...)

initialize(config: IntercomSettings) => void
ParamType
configIntercomSettings

loginIdentifiedUser(...)

loginIdentifiedUser(identity: IntercomIdentity) => Promise<void>
ParamType
identityIntercomIdentity

loginUnidentifiedUser()

loginUnidentifiedUser() => Promise<void>

updateUser(...)

updateUser(user: IntercomUser) => Promise<void>
ParamType
userIntercomUser

logout()

logout() => Promise<void>

logEvent(...)

logEvent(event: IntercomEvent) => Promise<void>
ParamType
eventIntercomEvent

displayMessenger()

displayMessenger() => Promise<void>

displayMessageComposer(...)

displayMessageComposer(message: IntercomMessage) => Promise<void>
ParamType
messageIntercomMessage

displayHelpCenter()

displayHelpCenter() => Promise<void>

displayArticle(...)

displayArticle(article: IntercomArticle) => Promise<void>
ParamType
articleIntercomArticle

hideMessenger()

hideMessenger() => Promise<void>

displayLauncher()

displayLauncher() => Promise<void>

hideLauncher()

hideLauncher() => Promise<void>

setCustomAttributes(...)

setCustomAttributes(payload: IntercomCustomAttributes) => Promise<void>
ParamType
payloadIntercomCustomAttributes

displaySurvey(...)

displaySurvey(survey: IntercomSurvey) => Promise<void>
ParamType
surveyIntercomSurvey

Interfaces

IntercomSettings

PropType
app_idstring
api_basestring
alignmentstring
custom_launcher_selectorstring
hide_default_launcherboolean
horizontal_paddingnumber
session_durationnumber
vertical_paddingnumber
action_colorstring
background_colorstring
emailstring
phonestring
created_atnumber
namestring
user_idstring
user_hashstring
unsubscribed_from_emailsboolean
language_overridestring
utm_campaignstring
utm_contentstring
utm_mediumstring
utm_sourcestring
utm_termstring
companyIntercomCompany
companiesIntercomCompany[]
avatarIntercomAvatar

IntercomCompany

PropType
namestring
idstring | number
company_idstring | number
created_atnumber
remote_created_atnumber
planstring
monthly_spendnumber
user_countnumber
sizenumber
websitestring
industrystring

IntercomAvatar

PropType
type'avatar'
image_urlstring

IntercomIdentity

PropType
userIdstring
emailstring
userHashstring

IntercomUser

PropType
emailstring
phonestring
namestring
languagestring

IntercomEvent

PropType
namestring
dataany

IntercomMessage

PropType
contentstring

IntercomArticle

PropType
idnumber

IntercomCustomAttributes

PropType
attributesRecord<string, number | string | boolean>

IntercomSurvey

PropType
idnumber

Type Aliases

Record

Construct a type with a set of properties K of type T

{

}

5.3.1

7 months ago

5.3.0

7 months ago

6.1.0

5 months ago

6.0.1

7 months ago

6.0.0

7 months ago

6.0.2

6 months ago

5.1.1

1 year ago

5.2.3

1 year ago

5.2.2

1 year ago

5.2.1

1 year ago

5.1.0

2 years ago

5.2.0

1 year ago

5.0.1

2 years ago

5.0.0

2 years ago

4.3.8

2 years ago

4.3.7

2 years ago

4.3.6

2 years ago

4.3.5

2 years ago

4.3.4

2 years ago

4.3.3

2 years ago

4.3.2

2 years ago

4.3.1

2 years ago

4.3.0

2 years ago

4.2.5

2 years ago

4.2.4

3 years ago

4.2.3

3 years ago

4.2.2

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.1.10

3 years ago

3.1.9

3 years ago

3.1.8

3 years ago

3.1.7

3 years ago

3.1.6

3 years ago

3.1.5

3 years ago

3.1.4

3 years ago

3.1.3

3 years ago

3.1.2

3 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.1

3 years ago

2.2.0

3 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.3.1

4 years ago

1.2.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.0.0-beta.2

5 years ago

1.0.0-beta.1

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago