File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ import {
17
17
SLIDEDOWN_EVENT_NAME ,
18
18
SLIDEDOWN_OPTIONS ,
19
19
SUBSCRIPTION_CHANGE_EVENT ,
20
- TAG_CATEGORY } from "../snippets/types" ;
20
+ TAG_CATEGORY ,
21
+ USER_CHANGE_EVENT ,
22
+ USER_NAMESPACE_PROPERTIES } from "../snippets/types" ;
21
23
import { INTERFACE_PREFIX } from "../support/constants" ;
22
24
import { ReaderManager } from "./ReaderManager" ;
23
25
@@ -96,6 +98,8 @@ export class TypingsWriterManager extends CodeWriter {
96
98
this . writeLine ( prefix + NOTIFICATION_FOREGROUND_WILL_DISPLAY_EVENT ) ;
97
99
this . writeLine ( prefix + NOTIFICATION_DISMISS_EVENT ) ;
98
100
this . writeLine ( prefix + NOTIFICATION_CLICK_EVENT ) ;
101
+ this . writeLine ( prefix + USER_CHANGE_EVENT ) ;
102
+ this . writeLine ( prefix + USER_NAMESPACE_PROPERTIES ) ;
99
103
this . writeLine ( ) ;
100
104
this . writeLine ( initObjectInterfaceContents ) ;
101
105
}
Original file line number Diff line number Diff line change @@ -117,3 +117,10 @@ export const NOTIFICATION_CLICK_EVENT = `interface NotificationClickEvent {
117
117
readonly result: NotificationClickResult;
118
118
}
119
119
` ;
120
+ export const USER_CHANGE_EVENT = `type UserChangeEvent = {
121
+ current: UserNamespaceProperties;
122
+ };` ;
123
+ export const USER_NAMESPACE_PROPERTIES = `type UserNamespaceProperties = {
124
+ onesignalId: string | undefined;
125
+ externalId: string | undefined;
126
+ };` ;
You can’t perform that action at this time.
0 commit comments