New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@clevertap/clevertap-signed-call-react-native

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clevertap/clevertap-signed-call-react-native - npm Package Compare versions

Comparing version 0.0.5 to 0.5.5

lib/commonjs/models/SCCallState.js

3

lib/commonjs/Constants.js

@@ -8,3 +8,3 @@ "use strict";

var _reactNative = require("react-native");
const Constants = {
const Constants = exports.Constants = {
LINKING_ERROR: `The package 'clevertap-signed-call-react-native' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({

@@ -15,3 +15,2 @@ ios: "- You have run 'pod install'\n",

};
exports.Constants = Constants;
//# sourceMappingURL=Constants.js.map

@@ -40,2 +40,20 @@ 'use strict';

});
Object.defineProperty(exports, "SCCallState", {
enumerable: true,
get: function () {
return _SignedCall.SCCallState;
}
});
Object.defineProperty(exports, "SCSwipeOffBehaviour", {
enumerable: true,
get: function () {
return _SignedCall.SCSwipeOffBehaviour;
}
});
Object.defineProperty(exports, "SCSwipeOffBehaviourUtil", {
enumerable: true,
get: function () {
return _SignedCall.SCSwipeOffBehaviourUtil;
}
});
Object.defineProperty(exports, "SignedCall", {

@@ -42,0 +60,0 @@ enumerable: true,

@@ -19,2 +19,3 @@ "use strict";

const callDetails = new CallDetails(callerCuid, calleeCuid, callContext);
callDetails.callId = dict.callId;
callDetails.initiatorImage = dict.initiatorImage;

@@ -21,0 +22,0 @@ callDetails.receiverImage = dict.receiverImage;

@@ -11,5 +11,6 @@ "use strict";

*/
var CallEvent = /*#__PURE__*/function (CallEvent) {
var CallEvent = exports.CallEvent = /*#__PURE__*/function (CallEvent) {
CallEvent["CallIsPlaced"] = "CallIsPlaced";
CallEvent["Cancelled"] = "Cancelled";
CallEvent["CancelledDueToRingTimeout"] = "CancelledDueToRingTimeout";
CallEvent["Declined"] = "Declined";

@@ -21,2 +22,4 @@ CallEvent["Missed"] = "Missed";

CallEvent["ReceiverBusyOnAnotherCall"] = "ReceiverBusyOnAnotherCall";
CallEvent["DeclinedDueToBusyOnVoIP"] = "DeclinedDueToBusyOnVoIP";
CallEvent["DeclinedDueToBusyOnPSTN"] = "DeclinedDueToBusyOnPSTN";
CallEvent["DeclinedDueToLoggedOutCuid"] = "DeclinedDueToLoggedOutCuid";

@@ -27,3 +30,2 @@ CallEvent["DeclinedDueToNotificationsDisabled"] = "DeclinedDueToNotificationsDisabled";

}(CallEvent || {});
exports.CallEvent = CallEvent;
class CallEventUtil {

@@ -37,2 +39,4 @@ //Returns the enum value based on the passed event string

return CallEvent.Cancelled;
case 'CancelledDueToRingTimeout':
return CallEvent.CancelledDueToRingTimeout;
case 'Declined':

@@ -50,2 +54,6 @@ return CallEvent.Declined;

return CallEvent.ReceiverBusyOnAnotherCall;
case 'DeclinedDueToBusyOnVoIP':
return CallEvent.DeclinedDueToBusyOnVoIP;
case 'DeclinedDueToBusyOnPSTN':
return CallEvent.DeclinedDueToBusyOnPSTN;
case 'DeclinedDueToLoggedOutCuid':

@@ -62,3 +70,3 @@ return CallEvent.DeclinedDueToLoggedOutCuid;

});
throw new Error(errorMessage.replace('{event}', event));
return null;
}

@@ -65,0 +73,0 @@ }

@@ -26,3 +26,3 @@ "use strict";

exports.CallEventResult = CallEventResult;
var CallDirection = /*#__PURE__*/function (CallDirection) {
var CallDirection = exports.CallDirection = /*#__PURE__*/function (CallDirection) {
CallDirection["Incoming"] = "Incoming";

@@ -32,3 +32,2 @@ CallDirection["Outgoing"] = "Outgoing";

}(CallDirection || {});
exports.CallDirection = CallDirection;
//# sourceMappingURL=CallEventResult.js.map

@@ -10,3 +10,3 @@ "use strict";

*/
let LogLevel = /*#__PURE__*/function (LogLevel) {
let LogLevel = exports.LogLevel = /*#__PURE__*/function (LogLevel) {
LogLevel[LogLevel["Off"] = -1] = "Off";

@@ -18,3 +18,2 @@ LogLevel[LogLevel["Info"] = 0] = "Info";

}({});
exports.LogLevel = LogLevel;
//# sourceMappingURL=LogLevel.js.map

@@ -36,2 +36,20 @@ 'use strict';

});
Object.defineProperty(exports, "SCCallState", {
enumerable: true,
get: function () {
return _SCCallState.SCCallState;
}
});
Object.defineProperty(exports, "SCSwipeOffBehaviour", {
enumerable: true,
get: function () {
return _SCSwipeOffBehaviour.SCSwipeOffBehaviour;
}
});
Object.defineProperty(exports, "SCSwipeOffBehaviourUtil", {
enumerable: true,
get: function () {
return _SCSwipeOffBehaviour.SCSwipeOffBehaviourUtil;
}
});
exports.SignedCall = void 0;

@@ -52,2 +70,4 @@ Object.defineProperty(exports, "SignedCallResponse", {

var _CallEvent = require("./models/CallEvent");
var _SCCallState = require("./models/SCCallState");
var _SCSwipeOffBehaviour = require("./models/SCSwipeOffBehaviour");
const CleverTapSignedCall = _reactNative.NativeModules.CleverTapSignedCall ? _reactNative.NativeModules.CleverTapSignedCall : new Proxy({}, {

@@ -66,3 +86,3 @@ get() {

const sdkName = 'ctscsdkversion-react-native';
const sdkVersion = 5;
const sdkVersion = 55;
CleverTapSignedCall.trackSdkVersion(sdkName, sdkVersion);

@@ -104,2 +124,9 @@ class SignedCall {

}
static getBackToCall() {
return CleverTapSignedCall.getBackToCall();
}
static async getCallState() {
const callState = await CleverTapSignedCall.getCallState();
return _SCCallState.SCCallStateUtil.fromString(callState);
}

@@ -106,0 +133,0 @@ /**

@@ -7,4 +7,4 @@ 'use strict';

*/
import { SignedCall, SignedCallResponse, LogLevel, CallEvent, CallEventResult, CallDirection, MissedCallActionClickResult } from './SignedCall';
export { SignedCall, SignedCallResponse, LogLevel, CallEvent, CallEventResult, CallDirection, MissedCallActionClickResult };
import { SignedCall, SignedCallResponse, LogLevel, CallEvent, SCCallState, SCSwipeOffBehaviour, SCSwipeOffBehaviourUtil, CallEventResult, CallDirection, MissedCallActionClickResult } from './SignedCall';
export { SignedCall, SignedCallResponse, LogLevel, CallEvent, SCCallState, SCSwipeOffBehaviour, SCSwipeOffBehaviourUtil, CallEventResult, CallDirection, MissedCallActionClickResult };
//# sourceMappingURL=index.js.map

@@ -13,2 +13,3 @@ //Contains details about the missed call

const callDetails = new CallDetails(callerCuid, calleeCuid, callContext);
callDetails.callId = dict.callId;
callDetails.initiatorImage = dict.initiatorImage;

@@ -15,0 +16,0 @@ callDetails.receiverImage = dict.receiverImage;

@@ -9,2 +9,3 @@ import { SignedCallLogger } from '../utils/SignedCallLogger';

CallEvent["Cancelled"] = "Cancelled";
CallEvent["CancelledDueToRingTimeout"] = "CancelledDueToRingTimeout";
CallEvent["Declined"] = "Declined";

@@ -16,2 +17,4 @@ CallEvent["Missed"] = "Missed";

CallEvent["ReceiverBusyOnAnotherCall"] = "ReceiverBusyOnAnotherCall";
CallEvent["DeclinedDueToBusyOnVoIP"] = "DeclinedDueToBusyOnVoIP";
CallEvent["DeclinedDueToBusyOnPSTN"] = "DeclinedDueToBusyOnPSTN";
CallEvent["DeclinedDueToLoggedOutCuid"] = "DeclinedDueToLoggedOutCuid";

@@ -30,2 +33,4 @@ CallEvent["DeclinedDueToNotificationsDisabled"] = "DeclinedDueToNotificationsDisabled";

return CallEvent.Cancelled;
case 'CancelledDueToRingTimeout':
return CallEvent.CancelledDueToRingTimeout;
case 'Declined':

@@ -43,2 +48,6 @@ return CallEvent.Declined;

return CallEvent.ReceiverBusyOnAnotherCall;
case 'DeclinedDueToBusyOnVoIP':
return CallEvent.DeclinedDueToBusyOnVoIP;
case 'DeclinedDueToBusyOnPSTN':
return CallEvent.DeclinedDueToBusyOnPSTN;
case 'DeclinedDueToLoggedOutCuid':

@@ -55,3 +64,3 @@ return CallEvent.DeclinedDueToLoggedOutCuid;

});
throw new Error(errorMessage.replace('{event}', event));
return null;
}

@@ -58,0 +67,0 @@ }

@@ -11,2 +11,4 @@ 'use strict';

import { CallEvent } from './models/CallEvent';
import { SCCallState, SCCallStateUtil } from './models/SCCallState';
import { SCSwipeOffBehaviour, SCSwipeOffBehaviourUtil } from './models/SCSwipeOffBehaviour';
const CleverTapSignedCall = NativeModules.CleverTapSignedCall ? NativeModules.CleverTapSignedCall : new Proxy({}, {

@@ -25,3 +27,3 @@ get() {

const sdkName = 'ctscsdkversion-react-native';
const sdkVersion = 5;
const sdkVersion = 55;
CleverTapSignedCall.trackSdkVersion(sdkName, sdkVersion);

@@ -63,2 +65,9 @@ class SignedCall {

}
static getBackToCall() {
return CleverTapSignedCall.getBackToCall();
}
static async getCallState() {
const callState = await CleverTapSignedCall.getCallState();
return SCCallStateUtil.fromString(callState);
}

@@ -129,3 +138,3 @@ /**

}
export { SignedCall, SignedCallResponse, LogLevel, CallEvent, CallEventResult, CallDirection, MissedCallActionClickResult };
export { SignedCall, SignedCallResponse, LogLevel, CallEvent, SCCallState, SCSwipeOffBehaviour, SCSwipeOffBehaviourUtil, CallEventResult, CallDirection, MissedCallActionClickResult };
//# sourceMappingURL=SignedCall.js.map

@@ -5,4 +5,4 @@ /**

*/
import { SignedCall, SignedCallResponse, LogLevel, CallEvent, CallEventResult, CallDirection, MissedCallActionClickResult } from './SignedCall';
export { SignedCall, SignedCallResponse, LogLevel, CallEvent, CallEventResult, CallDirection, MissedCallActionClickResult, };
import { SignedCall, SignedCallResponse, LogLevel, CallEvent, SCCallState, SCSwipeOffBehaviour, SCSwipeOffBehaviourUtil, CallEventResult, CallDirection, MissedCallActionClickResult } from './SignedCall';
export { SignedCall, SignedCallResponse, LogLevel, CallEvent, SCCallState, SCSwipeOffBehaviour, SCSwipeOffBehaviourUtil, CallEventResult, CallDirection, MissedCallActionClickResult, };
//# sourceMappingURL=index.d.ts.map
export declare class CallDetails {
callId: string | undefined;
callerCuid: string;

@@ -3,0 +4,0 @@ calleeCuid: string;

@@ -7,2 +7,3 @@ /**

Cancelled = "Cancelled",
CancelledDueToRingTimeout = "CancelledDueToRingTimeout",
Declined = "Declined",

@@ -14,2 +15,4 @@ Missed = "Missed",

ReceiverBusyOnAnotherCall = "ReceiverBusyOnAnotherCall",
DeclinedDueToBusyOnVoIP = "DeclinedDueToBusyOnVoIP",
DeclinedDueToBusyOnPSTN = "DeclinedDueToBusyOnPSTN",
DeclinedDueToLoggedOutCuid = "DeclinedDueToLoggedOutCuid",

@@ -20,5 +23,5 @@ DeclinedDueToNotificationsDisabled = "DeclinedDueToNotificationsDisabled",

declare class CallEventUtil {
static fromString(event: string): CallEvent;
static fromString(event: string): CallEvent | null;
}
export { CallEvent, CallEventUtil };
//# sourceMappingURL=CallEvent.d.ts.map

@@ -6,4 +6,4 @@ import { CallDetails } from './CallDetails';

callDetails: CallDetails;
callEvent: CallEvent;
constructor(direction: CallDirection, callDetails: CallDetails, callEvent: CallEvent);
callEvent?: CallEvent | null;
constructor(direction: CallDirection, callDetails: CallDetails, callEvent?: CallEvent | null);
static fromDict(dict: any): CallEventResult;

@@ -10,0 +10,0 @@ }

@@ -6,2 +6,4 @@ import { LogLevel } from './models/LogLevel';

import { CallEvent } from './models/CallEvent';
import { SCCallState } from './models/SCCallState';
import { SCSwipeOffBehaviour, SCSwipeOffBehaviourUtil } from './models/SCSwipeOffBehaviour';
declare class SignedCall {

@@ -28,2 +30,4 @@ static SignedCallOnCallStatusChanged: any;

static call(receiverCuid: string, callContext: string, callProperties?: object | undefined): Promise<SignedCallResponse>;
static getBackToCall(): boolean;
static getCallState(): Promise<SCCallState | null>;
/**

@@ -66,3 +70,3 @@ * Logs out the user by invalidating the active Signed Call session

}
export { SignedCall, SignedCallResponse, LogLevel, CallEvent, CallEventResult, CallDirection, MissedCallActionClickResult, };
export { SignedCall, SignedCallResponse, LogLevel, CallEvent, SCCallState, SCSwipeOffBehaviour, SCSwipeOffBehaviourUtil, CallEventResult, CallDirection, MissedCallActionClickResult, };
//# sourceMappingURL=SignedCall.d.ts.map
{
"name": "@clevertap/clevertap-signed-call-react-native",
"version": "0.0.5",
"version": "0.5.5",
"description": "The CleverTap's Signed Call React Native SDK provides an in-app calls service to make and receive calls in the mobile apps.",

@@ -88,3 +88,2 @@ "main": "lib/commonjs/index",

},
"packageManager": "^yarn@1.22.15",
"jest": {

@@ -91,0 +90,0 @@ "preset": "react-native",

@@ -13,2 +13,5 @@ 'use strict';

CallEvent,
SCCallState,
SCSwipeOffBehaviour,
SCSwipeOffBehaviourUtil,
CallEventResult,

@@ -24,2 +27,5 @@ CallDirection,

CallEvent,
SCCallState,
SCSwipeOffBehaviour,
SCSwipeOffBehaviourUtil,
CallEventResult,

@@ -26,0 +32,0 @@ CallDirection,

//Contains details about the missed call
export class CallDetails {
callId: string | undefined;
callerCuid: string;

@@ -21,2 +22,3 @@ calleeCuid: string;

const callDetails = new CallDetails(callerCuid, calleeCuid, callContext);
callDetails.callId = dict.callId;
callDetails.initiatorImage = dict.initiatorImage;

@@ -23,0 +25,0 @@ callDetails.receiverImage = dict.receiverImage;

@@ -13,2 +13,5 @@ import { SignedCallLogger } from '../utils/SignedCallLogger';

// Indicates that the call is cancelled due to a ring timeout(35 secs)
CancelledDueToRingTimeout = 'CancelledDueToRingTimeout',
// Indicates that the call is declined from the receiver's end

@@ -32,2 +35,8 @@ Declined = 'Declined',

// Indicates that the receiver is busy on VoIP call
DeclinedDueToBusyOnVoIP = 'DeclinedDueToBusyOnVoIP',
// Indicates that the receiver is busy on PSTN call
DeclinedDueToBusyOnPSTN = 'DeclinedDueToBusyOnPSTN',
// Indicates that the call is declined due to the receiver being logged out with the specific CUID

@@ -46,3 +55,3 @@ DeclinedDueToLoggedOutCuid = 'DeclinedDueToLoggedOutCuid',

//Returns the enum value based on the passed event string
static fromString(event: string): CallEvent {
static fromString(event: string): CallEvent | null {
switch (event) {

@@ -53,2 +62,4 @@ case 'CallIsPlaced':

return CallEvent.Cancelled;
case 'CancelledDueToRingTimeout':
return CallEvent.CancelledDueToRingTimeout;
case 'Declined':

@@ -66,2 +77,6 @@ return CallEvent.Declined;

return CallEvent.ReceiverBusyOnAnotherCall;
case 'DeclinedDueToBusyOnVoIP':
return CallEvent.DeclinedDueToBusyOnVoIP;
case 'DeclinedDueToBusyOnPSTN':
return CallEvent.DeclinedDueToBusyOnPSTN;
case 'DeclinedDueToLoggedOutCuid':

@@ -78,3 +93,3 @@ return CallEvent.DeclinedDueToLoggedOutCuid;

});
throw new Error(errorMessage.replace('{event}', event));
return null;
}

@@ -81,0 +96,0 @@ }

@@ -8,3 +8,3 @@ import { CallDetails } from './CallDetails';

callDetails: CallDetails;
callEvent: CallEvent;
callEvent?: CallEvent | null;

@@ -14,3 +14,3 @@ constructor(

callDetails: CallDetails,
callEvent: CallEvent
callEvent?: CallEvent | null
) {

@@ -17,0 +17,0 @@ this.direction = direction;

@@ -11,2 +11,7 @@ 'use strict';

import { CallEvent } from './models/CallEvent';
import { SCCallState, SCCallStateUtil } from './models/SCCallState';
import {
SCSwipeOffBehaviour,
SCSwipeOffBehaviourUtil,
} from './models/SCSwipeOffBehaviour';

@@ -32,3 +37,3 @@ const CleverTapSignedCall = NativeModules.CleverTapSignedCall

const sdkName = 'ctscsdkversion-react-native';
const sdkVersion = 5;
const sdkVersion = 55;
CleverTapSignedCall.trackSdkVersion(sdkName, sdkVersion);

@@ -84,2 +89,11 @@

static getBackToCall(): boolean {
return CleverTapSignedCall.getBackToCall();
}
static async getCallState(): Promise<SCCallState | null> {
const callState = await CleverTapSignedCall.getCallState();
return SCCallStateUtil.fromString(callState);
}
/**

@@ -155,2 +169,5 @@ * Logs out the user by invalidating the active Signed Call session

CallEvent,
SCCallState,
SCSwipeOffBehaviour,
SCSwipeOffBehaviourUtil,
CallEventResult,

@@ -157,0 +174,0 @@ CallDirection,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc