UNPKG

pyze-nativescript

Version:

Pyze Analytics, Growth Intelligence Platform, Push Notification, In App Messages and more

809 lines 196 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var application = require("tns-core-modules/application"); var androidApplication; var pyzeInAppMessageType = { PyzeInAppTypeUnread: com.pyze.android.constants.Constants.PyzeInAppMessageType.PyzeInAppTypeUnread, PyzeInAppTypeRead: com.pyze.android.constants.Constants.PyzeInAppMessageType.PyzeInAppTypeRead, PyzeInAppTypeAll: com.pyze.android.constants.Constants.PyzeInAppMessageType.PyzeInAppTypeAll }; var pyzeMessageType = { PyzeMessageTypeDefault: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeDefault, PyzeMessageTypeSMS: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeSMS, PyzeMessageTypeMMS: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeMMS, PyzeMessageTypeText: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeText, PyzeMessageTypeTextPlain: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeTextPlain, PyzeMessageTypeTextWithEmoji: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeTextWithEmoji, PyzeMessageTypePicture: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypePicture, PyzeMessageTypePictureFromCamera: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypePictureFromCamera, PyzeMessageTypePictureFromAlbum: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypePictureFromAlbum, PyzeMessageTypePictureMostRecent: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypePictureMostRecent, PyzeMessageTypePictureMarkedup: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypePictureMarkedup, PyzeMessageTypePictureEdited: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypePictureEdited, PyzeMessageTypePictureWhiteboard: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypePictureWhiteboard, PyzeMessageTypePictureAnimated: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypePictureAnimated, PyzeMessageTypePictureWhiteboardCleaned: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypePictureWhiteboardCleaned, PyzeMessageTypeClipart: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeClipart, PyzeMessageTypeSticker: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeSticker, PyzeMessageTypeAnimatedSticker: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeAnimatedSticker, PyzeMessageTypeVideo: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeVideo, PyzeMessageTypeVideoFromCamera: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeVideoFromCamera, PyzeMessageTypeVideoFromAlbum: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeVideoFromAlbum, PyzeMessageTypeVideoeMostRecent: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeVideoeMostRecent, PyzeMessageTypeVideoEdited: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeVideoEdited, PyzeMessageTypeVoiceMemo: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeVoiceMemo, PyzeMessageTypeVoiceCall: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeVoiceCall, PyzeMessageTypeVideoMemo: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeVideoMemo, PyzeMessageTypeScribble: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeScribble, PyzeMessageTypeIntegrationOrBot: com.pyze.android.constants.Constants.PyzeMessageType.PyzeMessageTypeIntegrationOrBot }; var pyzeWeatherRequestType = { PyzeWeatherRequestByCityName: 0, PyzeWeatherRequestByCityCode: 1, PyzeWeatherRequestByGeoCodes: 2, PyzeWeatherRequestByZone: 3 }; var Pyze = (function () { function Pyze() { } Pyze.initialize = function (pyzeAppKey) { androidApplication = application.android; try { com.pyze.android.Pyze.initialize(androidApplication.context.getApplicationContext(), "PyzelogLevelMinimum", pyzeAppKey); } catch (e) { console.log("Pyze is not initialized " + e.toString()); } }; Pyze.initializeWithLogLevel = function (pyzeAppKey, logLevel) { androidApplication = application.android; try { com.pyze.android.Pyze.initialize(androidApplication.context.getApplicationContext(), logLevel, pyzeAppKey); } catch (e) { console.log("Pyze is not initialized " + e.toString()); } }; Pyze.getTimerReference = function () { return ((new Date().getTime() / 1000.0) - 475574000); }; Pyze.showInAppNotification = function (callback) { com.pyze.android.Pyze.showInAppNotificationUI(application.android.foregroundActivity, new com.pyze.android.inapp.templates.ui.InAppNotificationTemplateDialogFragment.OnButtonClickListener({ onButtonClicked: function (param) { callback(param); } })); }; Pyze.showInAppNotificatonWithCustomAttributes = function (messageType, navigationBarColor, callback) { com.pyze.android.Pyze.showInAppNotificationUI(application.android.foregroundActivity, pyzeInAppMessageType[messageType], navigationBarColor, new com.pyze.android.inapp.templates.ui.InAppNotificationTemplateDialogFragment.OnButtonClickListener({ onButtonClicked: function (param) { callback(param); } })); }; Pyze.closeInAppMessage = function () { com.pyze.android.Pyze.closeInAppMessageDialog(application.android.foregroundActivity); }; Pyze.countNewUnFetchedMessages = function (callback) { com.pyze.android.Pyze.countNewUnFetched(new com.pyze.android.inapp.PyzeInAppMessagesManager.GetMessageCountListener({ onUnreadMessageCountDownloaded: function (param) { callback(param); } })); }; Pyze.getMessageHeaderOfType = function (messageType, callback) { com.pyze.android.Pyze.getMessageHeadersForType(pyzeInAppMessageType[messageType], new com.pyze.android.inapp.PyzeInAppMessagesManager.GetMetadataListener({ onMetadataReceived: function (param) { callback(param); } })); }; Pyze.getMessageWithContentID = function (cId, mId, callback) { com.pyze.android.Pyze.getMessageWithContentID(mId, cId, new com.pyze.android.inapp.PyzeInAppMessagesManager.GetMessageListener({ onMessageDownloaded: function (param) { callback(param); } })); }; Pyze.setUserOptOut = function (isUserOptedOut) { com.pyze.android.Pyze.setUserOptOut(isUserOptedOut); }; Pyze.deleteUser = function (shouldDeleteUser) { com.pyze.android.Pyze.deleteUser(shouldDeleteUser); }; return Pyze; }()); exports.Pyze = Pyze; var PyzeEvents = (function () { function PyzeEvents() { } PyzeEvents.postCustomEvent = function (eventName) { com.pyze.android.PyzeEvents.postCustomEvent(eventName); }; PyzeEvents.postCustomEventWithAttributes = function (eventName, customAttributes) { com.pyze.android.PyzeEvents.postCustomEventWithAttributes(eventName, PyzeUtils.toHashMap(customAttributes)); }; PyzeEvents.postTimedEventWithName = function (eventName, timerReferece) { com.pyze.android.PyzeEvents.postTimedWithEventName(eventName, timerReferece); }; PyzeEvents.postTimedEventWithNameAndAttributes = function (eventName, timerReferece, customAttributes) { com.pyze.android.PyzeEvents.postTimedWithEventName(eventName, timerReferece, PyzeUtils.toHashMap(customAttributes)); }; return PyzeEvents; }()); exports.PyzeEvents = PyzeEvents; var PyzeAccount = (function () { function PyzeAccount() { } PyzeAccount.postLoginOffered = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeAccount.postLoginOffered(PyzeUtils.toHashMap(customAttributes)); }; PyzeAccount.postLoginStarted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeAccount.postLoginStarted(PyzeUtils.toHashMap(customAttributes)); }; PyzeAccount.postSocialLoginOffered = function (type, customAttributes) { com.pyze.android.PyzeEvents.PyzeAccount.postSocialLoginOffered(type, PyzeUtils.toHashMap(customAttributes)); }; PyzeAccount.postSocialLoginStarted = function (type, customAttributes) { com.pyze.android.PyzeEvents.PyzeAccount.postSocialLoginStarted(type, PyzeUtils.toHashMap(customAttributes)); }; PyzeAccount.postSocialLoginCompleted = function (type, customAttributes) { com.pyze.android.PyzeEvents.PyzeAccount.postSocialLoginCompleted(type, PyzeUtils.toHashMap(customAttributes)); }; PyzeAccount.postRegistrationOffered = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeAccount.postRegistrationOffered(PyzeUtils.toHashMap(customAttributes)); }; PyzeAccount.postRegistrationStarted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeAccount.postRegistrationStarted(PyzeUtils.toHashMap(customAttributes)); }; PyzeAccount.postRegistrationCompleted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeAccount.postRegistrationCompleted(PyzeUtils.toHashMap(customAttributes)); }; PyzeAccount.postLoginCompleted = function (success, errCodeStr, customAttributes) { com.pyze.android.PyzeEvents.PyzeAccount.postLoginCompleted(success, errCodeStr, PyzeUtils.toHashMap(customAttributes)); }; PyzeAccount.postLogoutCompleted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeAccount.postLogoutCompleted(PyzeUtils.toHashMap(customAttributes)); }; PyzeAccount.postPasswordResetRequest = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeAccount.postPasswordResetRequest(PyzeUtils.toHashMap(customAttributes)); }; PyzeAccount.postPasswordResetCompleted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeAccount.postPasswordResetCompleted(PyzeUtils.toHashMap(customAttributes)); }; return PyzeAccount; }()); exports.PyzeAccount = PyzeAccount; var PyzeAd = (function () { function PyzeAd() { } PyzeAd.postAdRequested = function (adNetwork, appScreen, size, type, customAttributes) { com.pyze.android.PyzeEvents.PyzeAd.postAdRequested(adNetwork, appScreen, size, type, PyzeUtils.toHashMap(customAttributes)); }; PyzeAd.postAdReceived = function (adNetwork, appScreen, resultCode, success, customAttributes) { com.pyze.android.PyzeEvents.PyzeAd.postAdReceived(adNetwork, appScreen, resultCode, success, PyzeUtils.toHashMap(customAttributes)); }; PyzeAd.postAdClicked = function (adNetwork, appScreen, adCode, success, errorCode, customAttributes) { com.pyze.android.PyzeEvents.PyzeAd.postAdClicked(adNetwork, appScreen, adCode, success, errorCode, PyzeUtils.toHashMap(customAttributes)); }; return PyzeAd; }()); exports.PyzeAd = PyzeAd; var PyzeAdvocacy = (function () { function PyzeAdvocacy() { } PyzeAdvocacy.postRequestFeedback = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeAdvocacy.postRequestForFeedback(PyzeUtils.toHashMap(customAttributes)); }; PyzeAdvocacy.postFeedbackProvided = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeAdvocacy.postFeedbackProvided(PyzeUtils.toHashMap(customAttributes)); }; PyzeAdvocacy.postRequestRating = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeAdvocacy.postRequestRating(PyzeUtils.toHashMap(customAttributes)); }; return PyzeAdvocacy; }()); exports.PyzeAdvocacy = PyzeAdvocacy; var PyzeBitcoin = (function () { function PyzeBitcoin() { } PyzeBitcoin.postSentBitCoins = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeBitcoin.postSentBitCoins(PyzeUtils.toHashMap(customAttributes)); }; PyzeBitcoin.postRequestedBitCoins = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeBitcoin.postRequestedBitCoins(PyzeUtils.toHashMap(customAttributes)); }; PyzeBitcoin.postReceivedBitCoins = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeBitcoin.postReceivedBitCoins(PyzeUtils.toHashMap(customAttributes)); }; PyzeBitcoin.postViewedTransaction = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeBitcoin.postViewedTransaction(PyzeUtils.toHashMap(customAttributes)); }; PyzeBitcoin.postImportedPrivateKey = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeBitcoin.postImportedPrivateKey(PyzeUtils.toHashMap(customAttributes)); }; PyzeBitcoin.postScannedPrivateKey = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeBitcoin.postScannedPrivateKey(PyzeUtils.toHashMap(customAttributes)); }; return PyzeBitcoin; }()); exports.PyzeBitcoin = PyzeBitcoin; var PyzeCommerceBeacon = (function () { function PyzeCommerceBeacon() { } PyzeCommerceBeacon.postEnteredRegion = function (beaconUUID, beaconMajor, beaconMinor, uniqueRegionIdentifier, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceBeacon.postEnteredRegion(beaconUUID, beaconMajor, beaconMinor, uniqueRegionIdentifier, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceBeacon.postExitedRegion = function (beaconUUID, beaconMajor, beaconMinor, uniqueRegionIdentifier, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceBeacon.postExitedRegion(beaconUUID, beaconMajor, beaconMinor, uniqueRegionIdentifier, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceBeacon.postTransactedRegion = function (beaconUUID, beaconMajor, beaconMinor, uniqueRegionIdentifier, proximity, actionId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceBeacon.postTransactedRegion(beaconUUID, beaconMajor, beaconMinor, uniqueRegionIdentifier, proximity, actionId, PyzeUtils.toHashMap(customAttributes)); }; return PyzeCommerceBeacon; }()); exports.PyzeCommerceBeacon = PyzeCommerceBeacon; var PyzeCommerceBilling = (function () { function PyzeCommerceBilling() { } PyzeCommerceBilling.postBillingStarted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceBilling.postBillingStarted(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceBilling.postBillingCompleted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceBilling.postBillingCompleted(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceBilling.postBillingAbandoned = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceBilling.postBillingAbandoned(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceBilling.postBillingFailed = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceBilling.postBillingFailed(PyzeUtils.toHashMap(customAttributes)); }; return PyzeCommerceBilling; }()); exports.PyzeCommerceBilling = PyzeCommerceBilling; var PyzeCommerceCart = (function () { function PyzeCommerceCart() { } PyzeCommerceCart.postAddItem = function (cartId, itemCategory, itemId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCart.postAddItem(cartId, itemCategory, itemId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCart.postAddItemFromDeals = function (cartId, itemCategory, itemId, uniqueDealId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCart.postAddItemFromDeals(cartId, itemCategory, itemId, uniqueDealId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCart.postAddItemFromWishList = function (cartId, itemCategory, itemId, uniqueWishListId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCart.postAddItemFromWishList(cartId, itemCategory, itemId, uniqueWishListId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCart.postAddItemFromCuratedList = function (cartId, itemCategory, itemId, uniqueCuratedListID, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCart.postAddItemFromCuratedList(cartId, itemCategory, itemId, uniqueCuratedListID, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCart.postAddItemFromRecommendations = function (cartId, itemCategory, itemId, uniqueRecommendationId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCart.postAddItemFromRecommendations(cartId, itemCategory, itemId, uniqueRecommendationId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCart.postAddItemFromPreviousOrders = function (cartId, itemCategory, itemId, previousOrderId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCart.postAddItemFromPreviousOrders(cartId, itemCategory, itemId, previousOrderId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCart.postAddItemFromSearchResults = function (cartId, itemCategory, itemId, searchstring, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCart.postAddItemFromSearchResults(cartId, itemCategory, itemId, searchstring, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCart.postAddItemFromSubscriptionList = function (cartId, itemCategory, itemId, uniqueSubscriptionId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCart.postAddItemFromSubscriptionList(cartId, itemCategory, itemId, uniqueSubscriptionId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCart.postRemoveItemFromCart = function (cartId, itemCategory, itemId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCart.postRemoveItemFromCart(cartId, itemCategory, itemId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCart.postShare = function (cartId, sharedWith, itemId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCart.postShare(cartId, sharedWith, itemId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCart.postView = function (cartId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCart.postView(cartId, PyzeUtils.toHashMap(customAttributes)); }; return PyzeCommerceCart; }()); exports.PyzeCommerceCart = PyzeCommerceCart; var PyzeCommerceCheckout = (function () { function PyzeCommerceCheckout() { } PyzeCommerceCheckout.postCheckoutStarted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCheckout.postCheckoutStarted(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCheckout.postCheckoutCompleted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCheckout.postCheckoutCompleted(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCheckout.postCheckoutAbandoned = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCheckout.postCheckoutAbandoned(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCheckout.postCheckoutFailed = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCheckout.postCheckoutFailed(PyzeUtils.toHashMap(customAttributes)); }; return PyzeCommerceCheckout; }()); exports.PyzeCommerceCheckout = PyzeCommerceCheckout; var PyzeCommerceCuratedList = (function () { function PyzeCommerceCuratedList() { } PyzeCommerceCuratedList.postCreated = function (uniqueCuratedListID, curatedListType, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCuratedList.postCreated(uniqueCuratedListID, curatedListType, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCuratedList.postBrowsed = function (curatedList, curatedListCreator, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCuratedList.postBrowsed(curatedList, curatedListCreator, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCuratedList.postAddedItem = function (uniqueCuratedListID, itemCategory, itemId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCuratedList.postAddedItem(uniqueCuratedListID, itemCategory, itemId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCuratedList.postRemovedItem = function (uniqueCuratedListID, curatedListType, itemId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCuratedList.postRemovedItem(uniqueCuratedListID, curatedListType, itemId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCuratedList.postShared = function (curatedList, curatedListCreator, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCuratedList.postShared(curatedList, curatedListCreator, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceCuratedList.postPublished = function (curatedList, curatedListCreator, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceCuratedList.postShared(curatedList, curatedListCreator, PyzeUtils.toHashMap(customAttributes)); }; return PyzeCommerceCuratedList; }()); exports.PyzeCommerceCuratedList = PyzeCommerceCuratedList; var PyzeCommerceDiscovery = (function () { function PyzeCommerceDiscovery() { } PyzeCommerceDiscovery.postSearched = function (searchstring, latency, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceDiscovery.postSearched(searchstring, latency, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceDiscovery.postBrowsedCategory = function (category, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceDiscovery.postBrowsedCategory(category, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceDiscovery.postBrowsedDeals = function (uniqueDealId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceDiscovery.postBrowsedDeals(uniqueDealId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceDiscovery.postBrowsedRecommendations = function (uniqueRecommendationID, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceDiscovery.postBrowsedRecommendations(uniqueRecommendationID, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceDiscovery.postBrowsedPrevOrders = function (rangeStart, rangeEnd, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceDiscovery.postBrowsedPrevOrders(rangeStart, rangeEnd, PyzeUtils.toHashMap(customAttributes)); }; return PyzeCommerceDiscovery; }()); exports.PyzeCommerceDiscovery = PyzeCommerceDiscovery; var PyzeCommerceItem = (function () { function PyzeCommerceItem() { } PyzeCommerceItem.postViewedItem = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceItem.postViewedItem(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceItem.postScannedItem = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceItem.postScannedItem(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceItem.postViewedReviews = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceItem.postViewedReviews(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceItem.postViewedDetails = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceItem.postViewedDetails(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceItem.postViewedPrice = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceItem.postViewedPrice(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceItem.postItemShare = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceItem.postItemShare(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceItem.postItemRateOn5Scale = function (itemSKU, rating, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceItem.postItemRateOn5Scale(itemSKU, rating, PyzeUtils.toHashMap(customAttributes)); }; return PyzeCommerceItem; }()); exports.PyzeCommerceItem = PyzeCommerceItem; var PyzeCommercePayment = (function () { function PyzeCommercePayment() { } PyzeCommercePayment.postPaymentStarted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommercePayment.postPaymentStarted(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommercePayment.postPaymentCompleted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommercePayment.postPaymentCompleted(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommercePayment.postPaymentAbandoned = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommercePayment.postPaymentAbandoned(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommercePayment.postPaymentFailed = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommercePayment.postPaymentFailed(PyzeUtils.toHashMap(customAttributes)); }; return PyzeCommercePayment; }()); exports.PyzeCommercePayment = PyzeCommercePayment; var PyzeCommerceRevenue = (function () { function PyzeCommerceRevenue() { } PyzeCommerceRevenue.postRevenue = function (revenue, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceRevenue.postRevenue(revenue, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceRevenue.postRevenueDetailed = function (revenue, paymentInstrument, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceRevenue.postRevenue(revenue, paymentInstrument, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceRevenue.postRevenueUsingApplePay = function (revenue, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceRevenue.postRevenueUsingApplePay(revenue, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceRevenue.postRevenueUsingSamsungPay = function (revenue, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceRevenue.postRevenueUsingSamsungPay(revenue, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceRevenue.postRevenueUsingGooglePay = function (revenue, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceRevenue.postRevenueUsingGooglePay(revenue, PyzeUtils.toHashMap(customAttributes)); }; return PyzeCommerceRevenue; }()); exports.PyzeCommerceRevenue = PyzeCommerceRevenue; var PyzeCommerceShipping = (function () { function PyzeCommerceShipping() { } PyzeCommerceShipping.postShippingStarted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceShipping.postShippingStarted(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceShipping.postShippingCompleted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceShipping.postShippingCompleted(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceShipping.postShippingAbandoned = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceShipping.postShippingAbandoned(PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceShipping.postShippingFailed = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceShipping.postShippingFailed(PyzeUtils.toHashMap(customAttributes)); }; return PyzeCommerceShipping; }()); exports.PyzeCommerceShipping = PyzeCommerceShipping; var PyzeCommerceSupport = (function () { function PyzeCommerceSupport() { } PyzeCommerceSupport.postLiveChatStartedWithTopic = function (topic, orderNumber, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceSupport.postLiveChatStartedWithTopic(topic, orderNumber, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceSupport.postLiveChatEndedWithTopic = function (topic, orderNumber, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceSupport.postLiveChatEndedWithTopic(topic, orderNumber, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceSupport.postTicketCreated = function (topic, itemID, orderNumber, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceSupport.postTicketCreated(topic, itemID, orderNumber, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceSupport.postFeedbackReceived = function (feedback, orderNumber, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceSupport.postFeedbackReceived(feedback, orderNumber, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceSupport.postQualityOfServiceRated = function (comment, rating, orderNumber, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceSupport.postQualityOfServiceRated(comment, rating, orderNumber, PyzeUtils.toHashMap(customAttributes)); }; return PyzeCommerceSupport; }()); exports.PyzeCommerceSupport = PyzeCommerceSupport; var PyzeCommerceWishList = (function () { function PyzeCommerceWishList() { } PyzeCommerceWishList.postCreated = function (uniqueWishListId, wishListType, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceWishList.postCreated(uniqueWishListId, wishListType, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceWishList.postBrowsed = function (uniqueWishListId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceWishList.postBrowsed(uniqueWishListId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceWishList.postAddedItem = function (uniqueWishListId, itemCategory, itemId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceWishList.postAddedItem(uniqueWishListId, itemCategory, itemId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceWishList.postRemovedItem = function (uniqueWishListId, itemCategory, itemId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceWishList.postRemovedItem(uniqueWishListId, itemCategory, itemId, PyzeUtils.toHashMap(customAttributes)); }; PyzeCommerceWishList.postShared = function (uniqueWishListId, customAttributes) { com.pyze.android.PyzeEvents.PyzeCommerceWishList.postShared(uniqueWishListId, PyzeUtils.toHashMap(customAttributes)); }; return PyzeCommerceWishList; }()); exports.PyzeCommerceWishList = PyzeCommerceWishList; var PyzeContent = (function () { function PyzeContent() { } PyzeContent.postViewed = function (contentName, categoryName, contentId, customAttributes) { com.pyze.android.PyzeEvents.PyzeContent.postViewed(contentName, categoryName, contentId, PyzeUtils.toHashMap(customAttributes)); }; PyzeContent.postSearched = function (searchstring, customAttributes) { com.pyze.android.PyzeEvents.PyzeContent.postSearched(searchstring, PyzeUtils.toHashMap(customAttributes)); }; PyzeContent.postRatedOn5PointScale = function (contentName, categoryName, contentId, rating, customAttributes) { com.pyze.android.PyzeEvents.PyzeContent.postRatedOn5PointScale(contentName, categoryName, contentId, rating, PyzeUtils.toHashMap(customAttributes)); }; PyzeContent.postRatedThumbsUp = function (contentName, categoryName, contentId, customAttributes) { com.pyze.android.PyzeEvents.PyzeContent.postRatedThumbsUp(contentName, categoryName, contentId, PyzeUtils.toHashMap(customAttributes)); }; PyzeContent.postRatedThumbsDown = function (contentName, categoryName, contentId, customAttributes) { com.pyze.android.PyzeEvents.PyzeContent.postRatedThumbsDown(contentName, categoryName, contentId, PyzeUtils.toHashMap(customAttributes)); }; return PyzeContent; }()); exports.PyzeContent = PyzeContent; var PyzeDrone = (function () { function PyzeDrone() { } PyzeDrone.postPreflightCheckCompleted = function (overallStatus, storageStatus, droneBatteryChargePercent, deviceBatteryChargePercent, calibrationStatus, gpsStatus, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postPreflightCheckCompleted(overallStatus, storageStatus, droneBatteryChargePercent, deviceBatteryChargePercent, calibrationStatus, gpsStatus, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postInflightCheckCompleted = function (overallStatus, rollStatus, pitchStatus, yawStatus, throttleStatus, trimmingSettings, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postInflightCheckCompleted(overallStatus, rollStatus, pitchStatus, yawStatus, throttleStatus, trimmingSettings, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postConnected = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postConnected(PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postDisconnected = function (code, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postDisconnected(code, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postAirborne = function (status, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postAirborne(status, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postLanded = function (status, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postLanded(status, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postFlightPathCreated = function (uniqueFlightPathId, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postFlightPathCreated(uniqueFlightPathId, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postFlightPathUploaded = function (uniqueFlightPathId, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postFlightPathUploaded(uniqueFlightPathId, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postFlightPathEdited = function (uniqueFlightPathId, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postFlightPathEdited(uniqueFlightPathId, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postFlightPathDeleted = function (uniqueFlightPathId, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postFlightPathDeleted(uniqueFlightPathId, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postFlightPathCompleted = function (uniqueFlightPathId, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postFlightPathCompleted(uniqueFlightPathId, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postFirstPersonViewEnabled = function (status, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postFirstPersonViewEnabled(status, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postFirstPersonViewDisabled = function (status, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postFirstPersonViewDisabled(status, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postStartedAerialVideo = function (status, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postStartedAerialVideo(status, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postStartedAerialVideoDetailed = function (status, videoIdentifer, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postStartedAerialVideo(status, videoIdentifer, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postStoppedAerialVideo = function (status, secondsLength, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postStoppedAerialVideo(status, secondsLength, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postTookAerialPicture = function (status, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postTookAerialPicture(status, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postStartedAerialTimelapse = function (status, totalshots, secondsBetweenShots, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postStartedAerialTimelapse(status, totalshots, secondsBetweenShots, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postStoppedAerialTimelapse = function (status, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postStoppedAerialTimelapse(status, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postRequestedReturnToBase = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postRequestedReturnToBase(PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postSwitchedToHelicopterFlyingMode = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postRequestedReturnToBase(PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postSwitchedToAltitudeFlyingMode = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postSwitchedToAltitudeFlyingMode(PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postSwitchedToGPSHoldFlyingMode = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postSwitchedToGPSHoldFlyingMode(PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postSwitchedToCustomFlyingMode = function (mode, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postSwitchedToCustomFlyingMode(mode, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postSetMaxAltitude = function (altitudeInMeters, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postSetMaxAltitude(altitudeInMeters, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postSetAutoReturnInSeconds = function (seconds, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postSetAutoReturnInSeconds(seconds, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postSetAutoReturnWhenLowMemory = function (memoryLeftInKilobytes, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postSetAutoReturnWhenLowMemory(memoryLeftInKilobytes, PyzeUtils.toHashMap(customAttributes)); }; PyzeDrone.postSetAutoReturnWhenLowBattery = function (batterylevelPercent, customAttributes) { com.pyze.android.PyzeEvents.PyzeDrone.postSetAutoReturnWhenLowBattery(batterylevelPercent, PyzeUtils.toHashMap(customAttributes)); }; return PyzeDrone; }()); exports.PyzeDrone = PyzeDrone; var PyzeExplicitActivation = (function () { function PyzeExplicitActivation() { } PyzeExplicitActivation.postWithAttributes = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeExplicitActivation.postWithAttributes(PyzeUtils.toHashMap(customAttributes)); }; PyzeExplicitActivation.post = function () { com.pyze.android.PyzeEvents.PyzeExplicitActivation.post(); }; return PyzeExplicitActivation; }()); exports.PyzeExplicitActivation = PyzeExplicitActivation; var PyzeGaming = (function () { function PyzeGaming() { } PyzeGaming.postLevelStarted = function (level, customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postLevelStarted(level, PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postLevelEnded = function (level, score, success, customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postLevelEnded(level, score, success, PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postPowerUpConsumed = function (level, type, value, customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postPowerUpConsumed(level, type, value, PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postInGameItemPurchased = function (uniqueItemId, itemType, value, customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postInGameItemPurchased(uniqueItemId, itemType, value, PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postAchievementEarned = function (uniqueAchievementId, type, customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postAchievementEarned(uniqueAchievementId, type, PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postSummaryViewed = function (level, type, customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postSummaryViewed(level, type, PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postLeaderBoardViewed = function (level, score, customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postLeaderBoardViewed(level, score, PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postScorecardViewed = function (level, score, customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postScorecardViewed(level, score, PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postHelpViewed = function (helpTopicId, customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postHelpViewed(helpTopicId, PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postTutorialViewed = function (helpTopicId, customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postTutorialViewed(helpTopicId, PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postFriendChallenged = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postFriendChallenged(PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postChallengeAccepted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postChallengeAccepted(PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postChallengeDeclined = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postChallengeDeclined(PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postGameStarted = function (level, customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postGameStarted(level, PyzeUtils.toHashMap(customAttributes)); }; PyzeGaming.postGameEnd = function (levelsPlayed, levelsWon, customAttributes) { com.pyze.android.PyzeEvents.PyzeGaming.postGameEnd(levelsPlayed, levelsWon, PyzeUtils.toHashMap(customAttributes)); }; return PyzeGaming; }()); exports.PyzeGaming = PyzeGaming; var PyzeHealthAndFitness = (function () { function PyzeHealthAndFitness() { } PyzeHealthAndFitness.postStarted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeHealthAndFitness.postStarted(PyzeUtils.toHashMap(customAttributes)); }; PyzeHealthAndFitness.postEnded = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeHealthAndFitness.postEnded(PyzeUtils.toHashMap(customAttributes)); }; PyzeHealthAndFitness.postAchievementReceived = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeHealthAndFitness.postAchievementReceived(PyzeUtils.toHashMap(customAttributes)); }; PyzeHealthAndFitness.postStepGoalCompleted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeHealthAndFitness.postStepGoalCompleted(PyzeUtils.toHashMap(customAttributes)); }; PyzeHealthAndFitness.postGoalCompleted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeHealthAndFitness.postGoalCompleted(PyzeUtils.toHashMap(customAttributes)); }; PyzeHealthAndFitness.postChallengedFriend = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeHealthAndFitness.postChallengedFriend(PyzeUtils.toHashMap(customAttributes)); }; PyzeHealthAndFitness.postChallengeAccepted = function (customAttributes) { com.pyze.android.PyzeEvents.PyzeHealthAndFitness.postChallengeAccepted(PyzeUtils.toHashMap(customAttributes)); }; return PyzeHealthAndFitness; }()); exports.PyzeHealthAndFitness = PyzeHealthAndFitness; var PyzeIdentity = (function () { function PyzeIdentity() { } PyzeIdentity.setUserIdentifier = function (userIdentifier) { com.pyze.android.PyzeIdentity.setUserIdentifier(userIdentifier); }; PyzeIdentity.resetUserIdentifier = function () { com.pyze.android.PyzeIdentity.resetUserIdentifier(); }; PyzeIdentity.postTraits = function (attributes) { com.pyze.android.PyzeIdentity.postTraits(attributes); }; return PyzeIdentity; }()); exports.PyzeIdentity = PyzeIdentity; var PyzeInAppPurchaseRevenue = (function () { function PyzeInAppPurchaseRevenue() { } PyzeInAppPurchaseRevenue.postPriceListViewed = function (appScreenRequestFromId, customAttributes) { com.pyze.android.PyzeEvents.PyzeInAppPurchaseRevenue.postPriceListViewed(appScreenRequestFromId, PyzeUtils.toHashMap(customAttributes)); }; PyzeInAppPurchaseRevenue.postBuyItem = function (itemName, currency, price, itemType, itemSKU, quantity, appScreenRequestFromId, status, successOrErrorCode, customAttributes) { com.pyze.android.PyzeEvents.PyzeInAppPurchaseRevenue.postBuyItem(itemName, currency, price, itemType, itemSKU, quantity, appScreenRequestFromId, status, successOrErrorCode, PyzeUtils.toHashMap(customAttributes)); }; PyzeInAppPurchaseRevenue.postBuyItemShort = function (itemName, price, currencyISO4217Code, customAttributes) { com.pyze.android.PyzeEvents.PyzeInAppPurchaseRevenue.postBuyItem(itemName, price, currencyISO4217Code, PyzeUtils.toHashMap(customAttributes)); }; PyzeInAppPurchaseRevenue.postBuyItemUSD = function (itemName, price, customAttributes) { com.pyze.android.PyzeEvents.PyzeInAppPurchaseRevenue.postBuyItemInUSD(itemName, price, PyzeUtils.toHashMap(customAttributes)); }; return PyzeInAppPurchaseRevenue; }()); exports.PyzeInAppPurchaseRevenue = PyzeInAppPurchaseRevenue; var PyzeMedia = (function () { function PyzeMedia() { } PyzeMedia.postPlayedMedia = function (contentName, type, categoryName, percent, contentId, customAttributes) { com.pyze.android.PyzeEvents.PyzeMedia.postPlayedMedia(contentName, type, categoryName, percent, contentId, PyzeUtils.toHashMap(customAttributes)); }; PyzeMedia.postSearched = function (searchString, customAttributes) { com.pyze.android.PyzeEvents.PyzeMedia.postSearched(searchString, PyzeUtils.toHashMap(customAttributes)); }; PyzeMedia.postRateOn5PointScale = function (contentName, categoryName, contentId, rating, customAttributes) { com.pyze.android.PyzeEvents.PyzeMedia.postRateOn5PointScale(contentName, categoryName, contentId, rating, PyzeUtils.toHashMap(customAttributes)); }; PyzeMedia.postRatedThumbsUp = function (contentName, categoryName, contentId, customAttributes) { com.pyze.android.PyzeEvents.PyzeMedia.postRatedThumbsUp(contentName, categoryName, contentId, PyzeUtils.toHashMap(customAttributes)); }; PyzeMedia.postRatedThumbsDown = function (contentName, categoryName, contentId, customAttributes) { com.pyze.android.PyzeEvents.PyzeMedia.postRatedThumbsDown(contentName, categoryName, contentId, PyzeUtils.toHashMap(customAttributes)); }; return PyzeMedia; }()); exports.PyzeMedia = PyzeMedia; var PyzeMessaging = (function () { function PyzeMessaging() { } PyzeMessaging.postMessageSent = function (uniqueId, customAttributes) { com.pyze.android.PyzeEvents.PyzeMessaging.postMessageSent(uniqueId, PyzeUtils.toHashMap(customAttributes)); }; PyzeMessaging.postMessageSentOfType = function (messageType, uniqueId, customAttributes) { com.pyze.android.PyzeEvents.PyzeMessaging.postMessageSentOfType(pyzeMessageType[messageType], uniqueId, PyzeUtils.toHashMap(customAttributes)); }; PyzeMessaging.postMessageReceived = function (uniqueId, customAttributes) { com.pyze.android.PyzeEvents.PyzeMessaging.postMessageReceived(uniqueId, PyzeUtils.toHashMap(customAttributes)); }; PyzeMessaging.postMessageNewConversation = function (uniqueId, customAttributes) { com.pyze.android.PyzeEvents.PyzeMessaging.postMessageNewConversation(uniqueId, PyzeUtils.toHashMap(customAttributes)); }; PyzeMessaging.postMessageVoiceCall = function (uniqueId, customAttributes) { com.pyze.android.PyzeEvents.PyzeMessaging.postMessageVoiceCall(uniqueId, PyzeUtils.toHashMap(customAttributes)); }; return PyzeMessaging; }()); exports.PyzeMessaging = PyzeMessaging; var PyzePersonalizationIntelligence = (function () { function PyzePersonalizationIntelligence() { } PyzePersonalizationIntelligence.getTags = function (callback) { com.pyze.android.tags.PyzePersonalizationIntelligence.getTags(new com.pyze.android.tags.TagsManager.OnRequestTagsListener({ onTagsRequested: function (param) { callback(param); } })); }; ; PyzePersonalizationIntelligence.isTagSet = function (tag) { return com.pyze.android.tags.PyzePersonalizationIntelligence.isTagSet(tag); }; PyzePersonalizationIntelligence.areAnyTagSet = function (tags) { return com.pyze.android.tags.PyzePersonalizationIntelligence.areAnyTagsSet(tags); }; PyzePersonalizationIntelligence.areAllTagSet = function (tags) { return com.pyze.android.tags.PyzePersonalizationIntelligence.areAllTagsSet(tags); }; return PyzePersonalizationIntelligence; }()); exports.PyzePersonalizationIntelligence = PyzePersonalizationIntelligence; var PyzeSceneFlow = (function () { function PyzeSceneFlow() { } PyzeSceneFlow.postSecondsOnScene = function (sceneName, seconds) { com.pyze.android.PyzeSceneFlow.postSecondsOnScene(sceneName, seconds); }; return PyzeSceneFlow; }()); exports.PyzeSceneFlow = PyzeSceneFlow; var PyzeSocial = (function () { function PyzeSocial() { } PyzeSocial.postSocialContentShareForNetworkName = function (socialNetworkName, contentReference, category, customAttributes) { com.pyze.android.PyzeEvents.PyzeSocial.postSocialContentShareForNetworkName(socialNetworkName, contentReference, category, PyzeUtils.toHashMap(customAttributes)); }; PyzeSocial.postLiked = function (socialNetworkName, contentReference, category, customAttributes) { com.pyze.android.PyzeEvents.PyzeSocial.postLiked(socialNetworkName, contentReference, category, PyzeUtils.toHashMap(customAttributes)); }; PyzeSocial.postFollowed = function (socialNetworkName, contentReference, category, customAttrib