import { WebPlugin, PluginListenerHandle } from '@capacitor/core'; import { BranchDeepLinksPlugin, BranchLoggedOutResponse, BranchReferringParamsResponse, BranchUrlParams, BranchShortUrlParams, BranchShortUrlResponse, BranchShowShareSheetParams, BranchTrackingResponse, BranchQRCodeParams, BranchQRCodeResponse, BranchDMAParams, BranchInitEvent, } from './definitions'; export class BranchDeepLinksWeb extends WebPlugin implements BranchDeepLinksPlugin { constructor() { super(); } handleUrl(_: BranchUrlParams): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } generateShortUrl(_: BranchShortUrlParams): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } showShareSheet(_: BranchShowShareSheetParams): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } getStandardEvents(): Promise<{ [index: number]: string }> { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } sendBranchEvent(_: { eventName: string; metaData: { [key: string]: any } }): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } handleATTAuthorizationStatus(_: { status: number }): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } disableTracking(_: { isEnabled: false }): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } setIdentity(_: { newIdentity: string }): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } logout(): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } getBranchQRCode(_: BranchQRCodeParams): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } getLatestReferringParams(): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } getFirstReferringParams(): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } setDMAParamsForEEA(_: BranchDMAParams): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } setConsumerProtectionAttributionLevel(_: { level: string }): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } addListener(_eventName: 'init', _listenerFunc: (event: BranchInitEvent) => void): Promise; addListener(_eventName: 'initError', _listenerFunc: (error: any) => void): Promise; addListener(_eventName: string, _listenerFunc: (event: any) => void): Promise { return Promise.reject(new Error('BranchDeepLinks does not have web implementation')); } }