8.0.0 • Published 9 months ago

@sencrop/capacitor-intercom v8.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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

{

}

8.0.0

9 months ago

7.0.0

1 year ago

5.3.1

2 years ago

5.3.0

2 years ago

6.1.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.0.2

2 years ago

5.1.1

2 years ago

5.2.3

2 years ago

5.2.2

2 years ago

5.2.1

2 years ago

5.1.0

3 years ago

5.2.0

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.3.8

3 years ago

4.3.7

3 years ago

4.3.6

3 years ago

4.3.5

3 years ago

4.3.4

3 years ago

4.3.3

3 years ago

4.3.2

3 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.5

4 years ago

4.2.4

4 years ago

4.2.3

4 years ago

4.2.2

4 years ago

4.2.1

4 years ago

4.2.0

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

3.1.10

4 years ago

3.1.9

4 years ago

3.1.8

4 years ago

3.1.7

4 years ago

3.1.6

4 years ago

3.1.5

4 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

2.4.1

4 years ago

2.4.0

4 years ago

2.3.1

4 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.3.1

5 years ago

1.2.0

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-beta.2

6 years ago

1.0.0-beta.1

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago