UNPKG

dop-sdk

Version:

Mini App SDK for JavaScript by VTB

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