11import { NativeModules , Platform } from 'react-native' ;
2- import type { OSNotificationPermission } from './constants/Subscription2' ;
3- import EventManager from './events/EventManager' ;
42import {
53 IN_APP_MESSAGE_CLICKED ,
64 IN_APP_MESSAGE_DID_DISMISS ,
@@ -12,7 +10,9 @@ import {
1210 PERMISSION_CHANGED ,
1311 SUBSCRIPTION_CHANGED ,
1412 USER_STATE_CHANGED ,
15- } from './events/events' ;
13+ } from './constants/events' ;
14+ import type { OSNotificationPermission } from './constants/subscription' ;
15+ import EventManager from './events/EventManager' ;
1616import NotificationWillDisplayEvent from './events/NotificationWillDisplayEvent' ;
1717import { isNativeModuleLoaded , isValidCallback } from './helpers' ;
1818import type {
@@ -24,18 +24,18 @@ import type {
2424 InAppMessageEventTypeMap ,
2525 InAppMessageWillDismissEvent ,
2626 InAppMessageWillDisplayEvent ,
27- } from './types/InAppMessage ' ;
28- import type { LiveActivitySetupOptions } from './types/LiveActivities ' ;
27+ } from './types/inAppMessage ' ;
28+ import type { LiveActivitySetupOptions } from './types/liveActivities ' ;
2929import type {
3030 NotificationClickEvent ,
3131 NotificationEventName ,
3232 NotificationEventTypeMap ,
33- } from './types/NotificationEvents ' ;
33+ } from './types/notificationEvents ' ;
3434import type {
3535 PushSubscriptionChangedState ,
3636 PushSubscriptionState ,
37- } from './types/Subscription ' ;
38- import type { UserChangedState , UserState } from './types/User ' ;
37+ } from './types/subscription ' ;
38+ import type { UserChangedState , UserState } from './types/user ' ;
3939
4040const RNOneSignal = NativeModules . OneSignal ;
4141const eventManager = new EventManager ( RNOneSignal ) ;
@@ -998,7 +998,7 @@ export namespace OneSignal {
998998 }
999999}
10001000
1001- export { OSNotificationPermission } from './constants/Subscription2 ' ;
1001+ export { OSNotificationPermission } from './constants/subscription ' ;
10021002export {
10031003 NotificationWillDisplayEvent ,
10041004 type InAppMessage ,
@@ -1015,5 +1015,5 @@ export {
10151015} ;
10161016
10171017export { default as OSNotification } from './OSNotification' ;
1018- export type { InAppMessageClickResult } from './types/InAppMessage ' ;
1019- export type { NotificationClickResult } from './types/NotificationEvents ' ;
1018+ export type { InAppMessageClickResult } from './types/inAppMessage ' ;
1019+ export type { NotificationClickResult } from './types/notificationEvents ' ;
0 commit comments