UNPKG

dop-sdk

Version:

Mini App SDK for JavaScript by VTB

122 lines 6.9 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NotificationEvent = exports.BrowserManagerEvent = exports.UtilsEvent = exports.CookiesEvent = exports.GalleryManagerEvent = exports.InAppPurchaseEvent = exports.MiniAppPreferenceEvent = exports.SecureStorageEvent = exports.UniversalBridgeEvent = exports.WebConfigEvent = exports.ChatServiceEvent = exports.UserInfoEvent = exports.CommonEvents = exports.HostAppEvents = exports.MiniAppKeyboardEvents = exports.MiniAppEvents = void 0; /** * Enum for supported SDK event types */ var MiniAppEvents; (function (MiniAppEvents) { MiniAppEvents["EXTERNAL_WEBVIEW_CLOSE"] = "miniappwebviewclosed"; MiniAppEvents["PAUSE"] = "miniapppause"; MiniAppEvents["RESUME"] = "miniappresume"; })(MiniAppEvents = exports.MiniAppEvents || (exports.MiniAppEvents = {})); /** * Enum for supported keyboard event types */ var MiniAppKeyboardEvents; (function (MiniAppKeyboardEvents) { MiniAppKeyboardEvents["KEYBOARDSHOWN"] = "miniappkeyboardshown"; MiniAppKeyboardEvents["KEYBOARDHIDDEN"] = "miniappkeyboardhidden"; })(MiniAppKeyboardEvents = exports.MiniAppKeyboardEvents || (exports.MiniAppKeyboardEvents = {})); /** * Enum for supported HostApp event types */ var HostAppEvents; (function (HostAppEvents) { HostAppEvents["RECEIVE_JSON_INFO"] = "miniappreceivejsoninfo"; })(HostAppEvents = exports.HostAppEvents || (exports.HostAppEvents = {})); var CommonEvents; (function (CommonEvents) { CommonEvents["GET_UNIQUE_ID"] = "getUniqueId"; CommonEvents["GET_MESSAGE_UNIQUE_ID"] = "getMessagingUniqueId"; CommonEvents["GET_MAU_ID"] = "getMauid"; CommonEvents["REQUEST_CUSTOM_PERMISSIONS"] = "requestCustomPermissions"; CommonEvents["LOAD_AD"] = "loadAd"; CommonEvents["SHOW_AD"] = "showAd"; CommonEvents["SHARE_INFO"] = "shareInfo"; CommonEvents["SET_SCREEN_ORIENTATION"] = "setScreenOrientation"; CommonEvents["GET_POINTS"] = "getPoints"; CommonEvents["GET_HOST_ENVIRONMENT_INFO"] = "getHostEnvironmentInfo"; CommonEvents["DOWNLOAD_FILE"] = "downloadFile"; CommonEvents["SET_CLOSE_ALERT"] = "setCloseAlert"; CommonEvents["REQUEST_PERMISSION"] = "requestPermission"; })(CommonEvents = exports.CommonEvents || (exports.CommonEvents = {})); var UserInfoEvent; (function (UserInfoEvent) { UserInfoEvent["GET_USER_NAME"] = "getUserName"; UserInfoEvent["GET_PROFILE_PHOTO"] = "getProfilePhoto"; UserInfoEvent["GET_POINT"] = "getPoints"; UserInfoEvent["GET_PHONE_NUMBER"] = "getPhoneNumber"; UserInfoEvent["IS_LOGGED_IN"] = "isLoggedIn"; UserInfoEvent["GET_ACCESS_TOKEN"] = "getAccessToken"; UserInfoEvent["GET_CONTACTS"] = "getContacts"; })(UserInfoEvent = exports.UserInfoEvent || (exports.UserInfoEvent = {})); var ChatServiceEvent; (function (ChatServiceEvent) { ChatServiceEvent["SEND_MESSAGE_TO_CONTACT"] = "sendMessageToContact"; ChatServiceEvent["SEND_MESSAGE_TO_CONTACT_ID"] = "sendMessageToContactId"; ChatServiceEvent["SEND_MESSAGE_TO_MULTIPLE_CONTACTS"] = "sendMessageToMultipleContacts"; })(ChatServiceEvent = exports.ChatServiceEvent || (exports.ChatServiceEvent = {})); var WebConfigEvent; (function (WebConfigEvent) { WebConfigEvent["ALLOW_BACK_FORWARD_NAVIGATION_GESTURES"] = "allowBackForwardNavigationGestures"; })(WebConfigEvent = exports.WebConfigEvent || (exports.WebConfigEvent = {})); var UniversalBridgeEvent; (function (UniversalBridgeEvent) { UniversalBridgeEvent["SEND_JSON_TO_HOST_APP"] = "sendJsonToHostapp"; UniversalBridgeEvent["SEND_INFO_TO_HOST_APP"] = "sendInfoToHostapp"; })(UniversalBridgeEvent = exports.UniversalBridgeEvent || (exports.UniversalBridgeEvent = {})); var SecureStorageEvent; (function (SecureStorageEvent) { SecureStorageEvent["SET_SECURE_STORAGE_ITEM"] = "setSecureStorageItems"; SecureStorageEvent["GET_SECURE_STORAGE_ITEM"] = "getSecureStorageItem"; SecureStorageEvent["REMOVE_SECURE_STORAGE_ITEM"] = "removeSecureStorageItems"; SecureStorageEvent["CLEAR_SECURE_STORAGE"] = "clearSecureStorage"; SecureStorageEvent["GET_SECURE_STORAGE_SIZE"] = "getSecureStorageSize"; })(SecureStorageEvent = exports.SecureStorageEvent || (exports.SecureStorageEvent = {})); var MiniAppPreferenceEvent; (function (MiniAppPreferenceEvent) { MiniAppPreferenceEvent["SET_MINI_APP_PREFERENCE"] = "setMiniAppPreference"; MiniAppPreferenceEvent["GET_MINI_APP_PREFERENCE"] = "getMiniAppPreference"; MiniAppPreferenceEvent["REMOVE_MINI_APP_PREFERENCE"] = "removeMiniAppPreference"; MiniAppPreferenceEvent["CLEAR_MINI_APP_PREFERENCE"] = "clearMiniAppPreferences"; })(MiniAppPreferenceEvent = exports.MiniAppPreferenceEvent || (exports.MiniAppPreferenceEvent = {})); var InAppPurchaseEvent; (function (InAppPurchaseEvent) { InAppPurchaseEvent["GET_ALL_PRODUCT"] = "getAllProducts"; InAppPurchaseEvent["PURCHASE_PRODUCT_WITH"] = "purchaseProductWith"; InAppPurchaseEvent["CONSUME_PRODUCT_WITH"] = "consumeProductWith"; })(InAppPurchaseEvent = exports.InAppPurchaseEvent || (exports.InAppPurchaseEvent = {})); var GalleryManagerEvent; (function (GalleryManagerEvent) { GalleryManagerEvent["GET_IMAGE_FROM_GALLERY"] = "getImageFromGallery"; })(GalleryManagerEvent = exports.GalleryManagerEvent || (exports.GalleryManagerEvent = {})); var CookiesEvent; (function (CookiesEvent) { CookiesEvent["GET_ALL_COOKIES"] = "getAllCookies"; CookiesEvent["GET_COOKIES"] = "getCookies"; })(CookiesEvent = exports.CookiesEvent || (exports.CookiesEvent = {})); var UtilsEvent; (function (UtilsEvent) { UtilsEvent["CLOSE_MINI_APP"] = "closeMiniApp"; UtilsEvent["MINI_APP_FINISHED_LOADING"] = "miniAppFinishedLoading"; UtilsEvent["GET_HOST_APP_THEME_COLORS"] = "getHostAppThemeColors"; UtilsEvent["SET_CLOSE_ALERT"] = "setCloseAlert"; UtilsEvent["IS_DARK_MODE"] = "isDarkMode"; UtilsEvent["SEND_ANALYTICS"] = "sendAnalytics"; UtilsEvent["GET_FEATURE_LIST"] = "getFeatureList"; UtilsEvent["CAN_OPEN_APP_DEEPLINK"] = "canOpenAppDeeplink"; UtilsEvent["IS_APP_DEEPLINK_SUPPORTED"] = "isAppDeeplinkSupported"; })(UtilsEvent = exports.UtilsEvent || (exports.UtilsEvent = {})); var BrowserManagerEvent; (function (BrowserManagerEvent) { BrowserManagerEvent["LAUNCH_EXTERNAL_BROWSER"] = "launchExternalBrowser"; BrowserManagerEvent["LAUNCH_INTERNAL_BROWSER"] = "launchInternalBrowser"; })(BrowserManagerEvent = exports.BrowserManagerEvent || (exports.BrowserManagerEvent = {})); var NotificationEvent; (function (NotificationEvent) { NotificationEvent["SHOULD_CLEAR_NOTIFICATIONS"] = "shouldClearNotifications"; NotificationEvent["SHOULD_UPDATE_BADGE_NUMBER"] = "shouldUpdateBadgeNumber"; NotificationEvent["SHOULD_UPDATE_NOTIFICATION_INFO"] = "shouldUpdateNotificationInfo"; })(NotificationEvent = exports.NotificationEvent || (exports.NotificationEvent = {})); //# sourceMappingURL=index.js.map