insert-affiliate-react-native-sdk 1.13.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,8 +29,15 @@ type T_DEEPLINK_IAP_CONTEXT = {
29
29
  setInsertAffiliateIdentifierChangeCallback: (callback: InsertAffiliateIdentifierChangeCallback | null) => void;
30
30
  handleInsertLinks: (url: string) => Promise<boolean>;
31
31
  initialize: (code: string | null, verboseLogging?: boolean, insertLinksEnabled?: boolean, insertLinksClipboardEnabled?: boolean, affiliateAttributionActiveTime?: number, preventAffiliateTransfer?: boolean) => Promise<void>;
32
+ setLogger: (logger: InsertAffiliateLogger) => void;
32
33
  isInitialized: boolean;
33
34
  };
35
+ export type InsertAffiliateLogger = {
36
+ debug: (message: string, ...args: any[]) => void;
37
+ info: (message: string, ...args: any[]) => void;
38
+ warn: (message: string, ...args: any[]) => void;
39
+ error: (message: string, ...args: any[]) => void;
40
+ };
34
41
  export declare const DeepLinkIapContext: React.Context<T_DEEPLINK_IAP_CONTEXT>;
35
42
  declare const DeepLinkIapProvider: React.FC<T_DEEPLINK_IAP_PROVIDER>;
36
43
  export default DeepLinkIapProvider;