react-native-lightspeedsdk
Version:
A react-native interface for using the LightspeedSDK
65 lines (52 loc) • 3.32 kB
JavaScript
const NativeSurveyCoordinator = require('react-native').NativeModules.LSSurveyCoordinator;
const NativeServicesCoordinator = require('react-native').NativeModules.LSServicesCoordinator;
const NativeUserCoordinator = require('react-native').NativeModules.LSUserCoordinator;
const NativeQuestionsCoordinator = require('react-native').NativeModules.LSQuestionsCoordinator;
function define(name, value) {
Object.defineProperty(exports, name, {
value: value,
enumerable: true
});
}
// SurveyType
define('SurveyTypeBoth', NativeSurveyCoordinator.SurveyTypeBoth);
define('SurveyTypeValidated', NativeSurveyCoordinator.SurveyTypeValidated);
define('SurveyTypePassive', NativeSurveyCoordinator.SurveyTypePassive);
// SurveyStatus
define('SurveyStatusNone', NativeSurveyCoordinator.SurveyStatusNone);
define('SurveyStatusCompleted', NativeSurveyCoordinator.SurveyStatusCompleted);
define('SurveyStatusScreened', NativeSurveyCoordinator.SurveyStatusScreened);
define('SurveyStatusQuotaFull', NativeSurveyCoordinator.SurveyStatusQuotaFull);
define('SurveyStatusStudyClosed', NativeSurveyCoordinator.SurveyStatusStudyClosed);
define('SurveyStatusAlreadyTaken', NativeSurveyCoordinator.SurveyStatusAlreadyTaken);
define('SurveyStatusStudyTemporarilyClosed', NativeSurveyCoordinator.SurveyStatusStudyTemporarilyClosed);
// AwardType
define('AwardTypeUnknown', NativeSurveyCoordinator.AwardTypeUnknown);
define('AwardTypePoints', NativeSurveyCoordinator.AwardTypePoints);
define('AwardTypeSweeps', NativeSurveyCoordinator.AwardTypeSweeps);
// DeviceService
define('DeviceServiceTypeLocation', NativeServicesCoordinator.service_location);
define('DeviceServiceTypeNotification', NativeServicesCoordinator.service_notification);
// HitOrMissState
define('HitOrMissStateNotAvailable', NativeUserCoordinator.HitOrMissStateNotAvailable);
define('HitOrMissStateAvailable', NativeUserCoordinator.HitOrMissStateAvailable);
define('HitOrMissStateContentNotAvailable', NativeUserCoordinator.HitOrMissStateContentNotAvailable);
// QuestionType
define('QuestionTypeSingleAnswer', NativeQuestionsCoordinator.QuestionTypeSingleAnswer);
define('QuestionTypeMultipleAnswer', NativeQuestionsCoordinator.QuestionTypeMultipleAnswer);
// InquestType
define('InquestTypeProfiler', NativeQuestionsCoordinator.InquestTypeProfiler);
define('InquestTypeTt', NativeQuestionsCoordinator.InquestTypeTt);
// AnswersSequence
define('AnswersSequenceStatic', NativeQuestionsCoordinator.AnswersSequenceStatic);
define('AnswersSequenceShuffle', NativeQuestionsCoordinator.AnswersSequenceShuffle);
// DailyQuizStatus
define('DailyQuizStatusNotCompleted', NativeQuestionsCoordinator.DailyQuizStatusNotCompleted);
define('DailyQuizStatusCompleted', NativeQuestionsCoordinator.DailyQuizStatusCompleted);
define('DailyQuizStatusLost', NativeQuestionsCoordinator.DailyQuizStatusLost);
// QuestionsStatus
define('QuestionsStatusAvailable', NativeQuestionsCoordinator.QuestionsStatusAvailable);
define('QuestionsStatusQuestionsCompleted', NativeQuestionsCoordinator.QuestionsStatusQuestionsCompleted);
define('QuestionsStatusNoQuestionsAvailable', NativeQuestionsCoordinator.QuestionsStatusNoQuestionsAvailable);
// RequestQuestionType
define('RequestQuestionTypeIRCheck', NativeQuestionsCoordinator.RequestQuestionTypeIRCheck);