|
1 | 1 | /** |
2 | | - * Type Definitions for SendBird SDK v3.0.97 |
| 2 | + * Type Definitions for SendBird SDK v3.0.98 |
3 | 3 | * homepage: https://sendbird.com/ |
4 | 4 | * git: https://github.com/smilefam/SendBird-SDK-JavaScript |
5 | 5 | */ |
@@ -40,6 +40,14 @@ declare namespace SendBird { |
40 | 40 | }; |
41 | 41 | type getGroupChannelChangeLogsHandler = (data: groupChannelChangeLogs, error: SendBirdError) => void; |
42 | 42 |
|
| 43 | + type pushTokens = { |
| 44 | + deviceTokens: Array<string>; |
| 45 | + type: 'gcm' | 'apns' | 'apns_voip'; |
| 46 | + hasMore: boolean; |
| 47 | + token: string; |
| 48 | + }; |
| 49 | + type getMyPushTokensHandler = (data: pushTokens, error: SendBirdError) => void; |
| 50 | + |
43 | 51 | interface DiscoveryObject { |
44 | 52 | friendDiscoveryKey: string; |
45 | 53 | friendName?: string; |
@@ -120,8 +128,9 @@ declare namespace SendBird { |
120 | 128 | registerAPNSPushTokenForCurrentUser(apnsRegToken: string, callback?: pushSettingCallback): void; |
121 | 129 | unregisterAPNSPushTokenForCurrentUser(apnsRegToken: string, callback?: commonCallback): void; |
122 | 130 | unregisterAPNSPushTokenAllForCurrentUser(callback?: commonCallback): void; |
123 | | - |
124 | | - unregisterPushTokenAllForCurrentUser(callback?: commonCallback): void; // This removes both All APNS/GCM tokens |
| 131 | + |
| 132 | + unregisterPushTokenAllForCurrentUser(callback?: commonCallback): void; // This removes all push tokens including APNS/GCM |
| 133 | + getMyPushTokensByToken(token: string, type: 'gcm' | 'apns' | 'apns_voip', callback:getMyPushTokensHandler): void; |
125 | 134 |
|
126 | 135 | setPushTemplate(templateName: string, callback?: pushSettingCallback): void; |
127 | 136 | getPushTemplate(callback?: pushSettingCallback): void; |
|
0 commit comments