react-native-moengage-inbox 2.4.0 → 2.4.2

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.
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
17
 
18
18
  s.dependency "React-Core"
19
- s.dependency "MoEngagePluginInbox",'>= 2.2.0','< 2.3.0'
19
+ s.dependency "MoEngagePluginInbox",'>= 2.4.0','< 2.5.0'
20
20
 
21
21
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-moengage-inbox",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "Inbox Module for the MoEngage Platform",
5
5
  "main": "src/index.ts",
6
6
  "files": [
@@ -29,6 +29,9 @@
29
29
  "publishConfig": {
30
30
  "registry": "https://registry.npmjs.org/"
31
31
  },
32
+ "peerDependencies": {
33
+ "react-native-moengage": ">8.5.3"
34
+ },
32
35
  "devDependencies": {
33
36
  "@types/react-native": "^0.69.3"
34
37
  }
@@ -4,11 +4,11 @@ export default class MoEAction {
4
4
  actionType: MoEActionType;
5
5
  navigationType: string;
6
6
  value: string;
7
- kvPair?: Map<String, Object>;
7
+ kvPair?: Map<String, Object> | undefined;
8
8
  constructor(actionType: MoEActionType, navigationType: string, value: string, kvPair: Map<String, Object> | undefined) {
9
9
  this.actionType = actionType
10
10
  this.navigationType = navigationType;
11
11
  this.value = value;
12
- this.kvPair = kvPair;
12
+ this.kvPair = kvPair;
13
13
  }
14
- }
14
+ }
@@ -3,13 +3,13 @@ import MoEMedia from "./MoEMedia"
3
3
  import MoEAction from "./MoEAction"
4
4
 
5
5
  export default class MoEInboxMessage {
6
- id?: number;
6
+ id?: number | undefined;
7
7
  campaignId: string;
8
8
  text: MoETextContent;
9
9
  isClicked: boolean;
10
- media?: MoEMedia;
11
- action?: Array<MoEAction>;
12
- tag?: string;
10
+ media?: MoEMedia | undefined;
11
+ action?: Array<MoEAction> | undefined;
12
+ tag?: string | undefined;
13
13
  receivedTime: string;
14
14
  expiry: string;
15
15
  payload: Map<String, Object>;
@@ -1,7 +1,7 @@
1
1
  export default class MoENavigationAction {
2
2
  navigationType: string;
3
3
  value: string;
4
- kvPair?: Map<String, Object>;
4
+ kvPair?: Map<String, Object> | undefined;
5
5
  constructor(navigationType: string, value: string, kvPair: Map<String, Object> | undefined) {
6
6
  this.navigationType = navigationType;
7
7
  this.value = value;
@@ -1,8 +1,8 @@
1
1
  export default class MoETextContent {
2
2
  title: string;
3
3
  message: string;
4
- summary?: string;
5
- subtitle?: string;
4
+ summary?: string | undefined;
5
+ subtitle?: string | undefined;
6
6
  constructor(title: string, message: string, summary: string | undefined, subtitle: string | undefined) {
7
7
  this.title = title;
8
8
  this.message = message;
@@ -8,7 +8,6 @@ import * as InboxConstants from "../utils/MoEInboxConstants"
8
8
  import { isValidObject, isValidString, isValidNumber } from "../utils/MoEInboxHelper";
9
9
  import { MoEPlatform } from "../model/MoEPlatform";
10
10
  import { MOE_DATA } from "../utils/MoEInboxConstants"
11
- import { MoEMediaType } from "../model/MoEMediaType";
12
11
  const PLATFORM = 'platform'
13
12
  const UNCLICKED_COUNT = 'unClickedCount'
14
13