forked from narusevic/nativescript-intercom-bridge
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathintercom-bridge.common.d.ts
More file actions
72 lines (72 loc) · 2.41 KB
/
intercom-bridge.common.d.ts
File metadata and controls
72 lines (72 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
export declare class IntercomBridge {
static init(apiKey: string, appId: string): void;
static registerIdentifiedUser(options: {
userId?: string | number;
email?: string;
}): void;
static registerUnidentifiedUser(): void;
/**
*
* **Deprecate** [Intercom reset] in favour of [Intercom logout]
* https://github.com/intercom/intercom-ios/blob/master/CHANGELOG.md#410-2017-10-06
* https://github.com/intercom/intercom-android/blob/master/CHANGELOG.md#version-410
*
* @static
* @memberof IntercomBridge
*/
static reset(): void;
static logout(): void;
static setUserHash(hmac: string): void;
/**
*
* Update user's information after registering, the naming rule of key of the customAttributes is 'custom_key'.
* @static
* @param {({
* name?: string,
* languageOverride?: string,
* customAttributes?: {
* kyc_level?: string
* [key: string]: string | number;
* }
* })} attributes
* @memberof IntercomBridge
*/
static updateUser(attributes: {
name?: string,
languageOverride?: string,
customAttributes?: {
kyc_level?: string
[key: string]: string | number;
}
}): void;
static logEvent(eventName: string, metaData?: any): void;
static displayMessenger(): void;
static displayMessageComposer(initialMessage?: string): void;
/**
*
* **Deprecate** Should use displayMessenger instead.
*
* To be noticed, displayConversationsList is still the only method to open the convensation list, directly. And it still can be used for now.
*
* https://github.com/intercom/intercom-ios/blob/master/CHANGELOG.md#510
* https://github.com/intercom/intercom-android/blob/master/CHANGELOG.md#version-510
*
* @static
* @memberof IntercomBridge
*/
static displayConversationsList(): void;
static unreadConversationCount(): any;
static setLauncherVisibility(visible: boolean): void;
static setInAppMessageVisibility(visible: boolean): void;
static hideMessenger(): void;
static enableLogging(): void;
static setDeviceToken(token: string): void;
/**
* Android only intercom push notification option object
*
* @static
* @returns {*}
* @memberof IntercomBridge
*/
static intercomPushClient: any;
}