// Namespace of transaction /** @deprecated */ const TransactionNamespace = 'transaction'; const transaction = { scanCode: 'scanCode', getBalance: 'getBalance', makePayment: 'makePayment', }; const apis = { //Routing navigateTo: 'navigateTo', navigateBack: 'navigateBack', backButtonDidTap: 'backButtonDidTap', popAll: 'popAll', redirectTo: 'redirectTo', navigateToRemote: 'navigateToRemote', switchTab: 'switchTab', openWebview: 'openWebview', present: 'present', //Networking request: 'request', requestInternal: 'requestInternal', //PayPay getUAID: 'getUAID', getUserProfile: 'getUserProfile', topup: 'topup', scanCode: 'scanCode', getBalance: 'getBalance', makePayment: 'makePayment', getKycInformation: 'getKycInformation', //Data setSessionData: 'setSessionData', getSessionData: 'getSessionData', setStorageData: 'setStorageData', getStorageData: 'getStorageData', removeStorageData: 'removeStorageData', downloadFile: 'downloadFile', getSavedFileList: 'getSavedFileList', removeSavedFile: 'removeSavedFile', //Permission requestPermission: 'requestPermission', getPermissionStatus: 'getPermissionStatus', getUserLocation: 'getUserLocation', takePhoto: 'takePhoto', getBatteryLevel: 'getBatteryLevel', //Deeplink & Share registerAppLaunchOptions: 'registerAppLaunchOptions', getAppLaunchOptions: 'getAppLaunchOptions', openApp: 'openApp', closeApp: 'closeApp', //App Life Cycle paypayWillEnterForeground: 'paypayWillEnterForeground', paypayWillEnterBackground: 'paypayWillEnterBackground', //Page Life Cycle pageWillAppear: 'pageWillAppear', pageWillDisappear: 'pageWillDisappear', //UI showAlert: 'showAlert', setTitle: 'setTitle', showErrorSheet: 'showErrorSheet', detectShakeMotion: 'detectShakeMotion', getTopBarHeight: 'getTopBarHeight', setNavigationBarBackgroundColor: 'setNavigationBarBackgroundColor', setNavigationBarTextStyle: 'setNavigationBarTextStyle', setBackgroundColor: 'setBackgroundColor', setEnablePullDownRefresh: 'setEnablePullDownRefresh', openMap: 'openMap', setNavigationStyle: 'setNavigationStyle', setScreenBrightness: 'setScreenBrightness', share: 'share', setTabBarVisibility: 'setTabBarVisibility', loadNotificationStatus: 'loadNotificationStatus', //System checkBiometricAuthenticationAvailability: 'checkBiometricAuthenticationAvailability', startBiometricAuthentication: 'startBiometricAuthentication', log: 'log', getPlatformInformation: 'getPlatformInformation', showUpdateWarning: 'showUpdateWarning', generateCodeImage: 'generateCodeImage', getCompassInfo: 'getCompassInfo', getContactList: 'getContactList', getDeviceInformation: 'getDeviceInformation', getPushToken: 'getPushToken', //settings openAppSettings: 'openAppSettings', checkAppInstall: 'checkAppInstall', getIpAddress: 'getIpAddress', }; export const MiniAppAPI = { ...apis, [TransactionNamespace]: { ...transaction, }, }; export enum MiniAppCBType { success = 'success', fail = 'fail', complete = 'complete', }