@imatis/react-native-notifications 4.3.3-imatis.11 → 4.3.3-imatis.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsModule.java +1 -1
  2. package/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java +8 -3
  3. package/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/NotificationIntentAdapter.java +3 -11
  4. package/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotificationProps.java +8 -0
  5. package/lib/android/app/src/reactNative59/java/com/wix/reactnativenotifications/NotificationManagerCompatFacade.java +2 -2
  6. package/lib/dist/DTO/Notification.d.ts +11 -0
  7. package/lib/dist/DTO/Notification.js +30 -0
  8. package/lib/dist/DTO/Notification.test.d.ts +1 -0
  9. package/lib/dist/DTO/Notification.test.js +52 -0
  10. package/lib/dist/DTO/NotificationAndroid.d.ts +7 -0
  11. package/lib/dist/DTO/NotificationAndroid.js +20 -0
  12. package/lib/dist/DTO/NotificationAndroid.test.d.ts +1 -0
  13. package/lib/dist/DTO/NotificationAndroid.test.js +25 -0
  14. package/lib/dist/DTO/NotificationFactory.d.ts +4 -0
  15. package/lib/dist/DTO/NotificationFactory.js +18 -0
  16. package/lib/dist/DTO/NotificationIOS.d.ts +12 -0
  17. package/lib/dist/DTO/NotificationIOS.js +41 -0
  18. package/lib/dist/DTO/NotificationIOS.test.d.ts +1 -0
  19. package/lib/dist/DTO/NotificationIOS.test.js +58 -0
  20. package/lib/dist/Notifications.d.ts +65 -0
  21. package/lib/dist/Notifications.js +108 -0
  22. package/lib/dist/NotificationsAndroid.d.ts +14 -0
  23. package/lib/dist/NotificationsAndroid.js +33 -0
  24. package/lib/dist/NotificationsIOS.d.ts +51 -0
  25. package/lib/dist/NotificationsIOS.js +85 -0
  26. package/lib/dist/adapters/CompletionCallbackWrapper.d.ts +11 -0
  27. package/lib/dist/adapters/CompletionCallbackWrapper.js +45 -0
  28. package/lib/dist/adapters/NativeCommandsSender.d.ts +31 -0
  29. package/lib/dist/adapters/NativeCommandsSender.js +74 -0
  30. package/lib/dist/adapters/NativeEventsReceiver.d.ts +19 -0
  31. package/lib/dist/adapters/NativeEventsReceiver.js +49 -0
  32. package/lib/dist/adapters/UniqueIdProvider.d.ts +3 -0
  33. package/lib/dist/adapters/UniqueIdProvider.js +10 -0
  34. package/lib/dist/commands/Commands.d.ts +32 -0
  35. package/lib/dist/commands/Commands.js +82 -0
  36. package/lib/dist/commands/Commands.test.d.ts +1 -0
  37. package/lib/dist/commands/Commands.test.js +201 -0
  38. package/lib/dist/events/EventsRegistry.d.ts +18 -0
  39. package/lib/dist/events/EventsRegistry.js +30 -0
  40. package/lib/dist/events/EventsRegistry.test.d.ts +1 -0
  41. package/lib/dist/events/EventsRegistry.test.js +183 -0
  42. package/lib/dist/events/EventsRegistryIOS.d.ts +12 -0
  43. package/lib/dist/events/EventsRegistryIOS.js +21 -0
  44. package/lib/dist/events/EventsRegistryIOS.test.d.ts +1 -0
  45. package/lib/dist/events/EventsRegistryIOS.test.js +53 -0
  46. package/lib/dist/index.d.ts +7 -0
  47. package/lib/dist/index.js +12 -0
  48. package/lib/dist/interfaces/EventSubscription.d.ts +3 -0
  49. package/lib/dist/interfaces/EventSubscription.js +2 -0
  50. package/lib/dist/interfaces/NotificationActionResponse.d.ts +5 -0
  51. package/lib/dist/interfaces/NotificationActionResponse.js +12 -0
  52. package/lib/dist/interfaces/NotificationCategory.d.ts +18 -0
  53. package/lib/dist/interfaces/NotificationCategory.js +27 -0
  54. package/lib/dist/interfaces/NotificationChannel.d.ts +14 -0
  55. package/lib/dist/interfaces/NotificationChannel.js +2 -0
  56. package/lib/dist/interfaces/NotificationCompletion.d.ts +10 -0
  57. package/lib/dist/interfaces/NotificationCompletion.js +9 -0
  58. package/lib/dist/interfaces/NotificationEvents.d.ts +18 -0
  59. package/lib/dist/interfaces/NotificationEvents.js +2 -0
  60. package/lib/dist/interfaces/NotificationPermissions.d.ts +14 -0
  61. package/lib/dist/interfaces/NotificationPermissions.js +2 -0
  62. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ export interface NotificationCompletion {
2
+ badge?: boolean;
3
+ alert?: boolean;
4
+ sound?: boolean;
5
+ }
6
+ export declare enum NotificationBackgroundFetchResult {
7
+ NEW_DATA = "newData",
8
+ NO_DATA = "noData",
9
+ FAILED = "failed"
10
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationBackgroundFetchResult = void 0;
4
+ var NotificationBackgroundFetchResult;
5
+ (function (NotificationBackgroundFetchResult) {
6
+ NotificationBackgroundFetchResult["NEW_DATA"] = "newData";
7
+ NotificationBackgroundFetchResult["NO_DATA"] = "noData";
8
+ NotificationBackgroundFetchResult["FAILED"] = "failed";
9
+ })(NotificationBackgroundFetchResult = exports.NotificationBackgroundFetchResult || (exports.NotificationBackgroundFetchResult = {}));
@@ -0,0 +1,18 @@
1
+ import { Notification } from '../DTO/Notification';
2
+ import { NotificationActionResponse } from './NotificationActionResponse';
3
+ export interface Registered {
4
+ deviceToken: string;
5
+ }
6
+ export interface RegistrationError {
7
+ code: string;
8
+ domain: string;
9
+ localizedDescription: string;
10
+ }
11
+ export interface RegisteredPushKit {
12
+ pushKitToken: string;
13
+ }
14
+ export interface NotificationResponse {
15
+ identifier: string;
16
+ notification: Notification;
17
+ action?: NotificationActionResponse;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ export interface NotificationPermissionOptions {
2
+ carPlay?: boolean;
3
+ criticalAlert?: boolean;
4
+ providesAppNotificationSettings?: boolean;
5
+ provisional?: boolean;
6
+ announcement?: boolean;
7
+ }
8
+ export interface NotificationPermissions extends NotificationPermissionOptions {
9
+ badge: boolean;
10
+ alert: boolean;
11
+ sound: boolean;
12
+ notificationCenter: boolean;
13
+ lockScreen: boolean;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imatis/react-native-notifications",
3
- "version": "4.3.3-imatis.11",
3
+ "version": "4.3.3-imatis.13",
4
4
  "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android",
5
5
  "license": "MIT",
6
6
  "keywords": [