Socket
Socket
Sign inDemoInstall

@essent/nativescript-iadvize

Package Overview
Dependencies
Maintainers
76
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@essent/nativescript-iadvize - npm Package Compare versions

Comparing version 2.14.1 to 2.14.2

9

common.d.ts

@@ -18,2 +18,11 @@ import { Observable } from '@nativescript/core';

}
export declare type IAdvizeActivationParameters = {
projectId: number;
authOption: IAdvizeAuthOption;
userId: string;
legalUrl: string | undefined;
jweToken: string | undefined;
onSuccess: () => void;
onFailure: () => void;
};
export declare class IAdvizeCommon extends Observable {

@@ -20,0 +29,0 @@ private static chatbotActivated$;

4

index.android.d.ts

@@ -1,2 +0,2 @@

import { ChatConfiguration, IAdvizeAuthOption, IAdvizeCommon } from './common';
import { ChatConfiguration, IAdvizeActivationParameters, IAdvizeCommon } from './common';
import { Observable } from 'rxjs';

@@ -9,3 +9,3 @@ export { ChatConfiguration, IAdvizeAuthOption } from './common';

setLanguage(): void;
activate(projectId: number, authOption: IAdvizeAuthOption, userId: string, legalUrl: string | undefined, onSuccess: () => void, onFailure: () => void): void;
activate(parameters: IAdvizeActivationParameters): void;
activateTargetingRule(targetingRuleUUID: string): void;

@@ -12,0 +12,0 @@ setOnActiveTargetingRuleAvailabilityListener(): void;

@@ -5,3 +5,2 @@ import { IAdvizeCommon } from './common';

let instance;
let didInit = false;
export class IAdvize extends IAdvizeCommon {

@@ -20,13 +19,13 @@ constructor() {

}
activate(projectId, authOption, userId, legalUrl = undefined, onSuccess, onFailure) {
com.github.triniwiz.essent.AdvizeSDK.activate(projectId, authOption, userId, new com.iadvize.conversation.sdk.IAdvizeSDK.Callback({
activate(parameters) {
com.github.triniwiz.essent.AdvizeSDK.activate(parameters.projectId, parameters.authOption, parameters.userId, new com.iadvize.conversation.sdk.IAdvizeSDK.Callback({
onSuccess() {
console.log('iAdvize[Android] activated');
onSuccess();
parameters.onSuccess();
},
onFailure(error) {
console.error('iAdvize[Android] activation failed' + error.getLocalizedMessage());
onFailure();
parameters.onFailure();
},
}), legalUrl ?? null);
}), parameters.legalUrl ?? null, parameters.jweToken ?? null);
}

@@ -33,0 +32,0 @@ activateTargetingRule(targetingRuleUUID) {

@@ -1,2 +0,2 @@

import { ChatConfiguration, IAdvizeAuthOption, IAdvizeCommon } from './common';
import { ChatConfiguration, IAdvizeActivationParameters, IAdvizeCommon } from './common';
import { Observable } from 'rxjs';

@@ -10,3 +10,3 @@ export { ChatConfiguration, IAdvizeAuthOption } from './common';

static getInstance(): IAdvize;
activate(projectId: number, authOption: IAdvizeAuthOption, userId: string, legalUrl: string | undefined, onSuccess: () => void, onFailure: () => void): void;
activate(parameters: IAdvizeActivationParameters): void;
private buildTargetingRule;

@@ -13,0 +13,0 @@ setLanguage(): void;

@@ -15,11 +15,11 @@ import { Color, ImageSource } from '@nativescript/core';

}
activate(projectId, authOption, userId, legalUrl = undefined, onSuccess, onFailure) {
NSCIAdvize.activateWithIdAuthOptionUserIdLegalUrlCallback(projectId, authOption, userId, legalUrl, (success) => {
activate(parameters) {
NSCIAdvize.activateWithIdAuthOptionUserIdLegalUrlTokenCallback(parameters.projectId, parameters.authOption, parameters.userId, parameters.legalUrl, parameters.jweToken, (success) => {
if (success) {
console.log('iAdvize[iOS] activated');
onSuccess();
parameters.onSuccess();
}
else {
console.error('iAdvize[iOS] activation failed');
onFailure();
parameters.onFailure();
}

@@ -26,0 +26,0 @@ });

{
"name": "@essent/nativescript-iadvize",
"version": "2.14.1",
"version": "2.14.2",
"description": "iAdvize plugin for NativeScript.",

@@ -5,0 +5,0 @@ "main": "index",

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