🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

react-native-moengage-inbox

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-moengage-inbox - npm Package Compare versions

Comparing version

to
2.4.1

5

package.json
{
"name": "react-native-moengage-inbox",
"version": "2.4.0",
"version": "2.4.1",
"description": "Inbox Module for the MoEngage Platform",

@@ -32,2 +32,5 @@ "main": "src/index.ts",

},
"peerDependencies": {
"react-native-moengage": ">8.5.0"
},
"devDependencies": {

@@ -34,0 +37,0 @@ "@types/react-native": "^0.69.3"

6

src/model/MoEAction.ts

@@ -7,3 +7,3 @@ import { MoEActionType } from "./MoEActionType";

value: string;
kvPair?: Map<String, Object>;
kvPair?: Map<String, Object> | undefined;
constructor(actionType: MoEActionType, navigationType: string, value: string, kvPair: Map<String, Object> | undefined) {

@@ -13,4 +13,4 @@ this.actionType = actionType

this.value = value;
this.kvPair = kvPair;
this.kvPair = kvPair;
}
}
}

@@ -6,9 +6,9 @@ import MoETextContent from "./MoETextContent";

export default class MoEInboxMessage {
id?: number;
id?: number | undefined;
campaignId: string;
text: MoETextContent;
isClicked: boolean;
media?: MoEMedia;
action?: Array<MoEAction>;
tag?: string;
media?: MoEMedia | undefined;
action?: Array<MoEAction> | undefined;
tag?: string | undefined;
receivedTime: string;

@@ -15,0 +15,0 @@ expiry: string;

export default class MoENavigationAction {
navigationType: string;
value: string;
kvPair?: Map<String, Object>;
kvPair?: Map<String, Object> | undefined;
constructor(navigationType: string, value: string, kvPair: Map<String, Object> | undefined) {

@@ -6,0 +6,0 @@ this.navigationType = navigationType;

export default class MoETextContent {
title: string;
message: string;
summary?: string;
subtitle?: string;
summary?: string | undefined;
subtitle?: string | undefined;
constructor(title: string, message: string, summary: string | undefined, subtitle: string | undefined) {

@@ -7,0 +7,0 @@ this.title = title;

@@ -11,3 +11,2 @@ import { Platform } from "react-native";

import { MOE_DATA } from "../utils/MoEInboxConstants"
import { MoEMediaType } from "../model/MoEMediaType";
const PLATFORM = 'platform'

@@ -14,0 +13,0 @@ const UNCLICKED_COUNT = 'unClickedCount'