From 46145b9abe2a2d6c3a1456ac3e8b265cca49c30a Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 18 Dec 2024 11:53:26 +0100 Subject: [PATCH] fix: gatherConsent missing options, remove js helpers from native module spec --- src/specs/modules/NativeConsentModule.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/specs/modules/NativeConsentModule.ts b/src/specs/modules/NativeConsentModule.ts index 44d01e26..05a3d9ed 100644 --- a/src/specs/modules/NativeConsentModule.ts +++ b/src/specs/modules/NativeConsentModule.ts @@ -394,8 +394,10 @@ export interface AdsConsentInterface { /** * Helper method to call the UMP SDK methods to request consent information and load/present a * consent form if necessary. + * + * @param options An AdsConsentInfoOptions interface. */ - gatherConsent(): Promise; + gatherConsent(options?: AdsConsentInfoOptions): Promise; /** * Returns the value stored under the `IABTCF_TCString` key @@ -520,13 +522,10 @@ export interface Spec extends TurboModule { showPrivacyOptionsForm(): Promise; loadAndShowConsentFormIfRequired(): Promise; getConsentInfo(): Promise; - gatherConsent(): Promise; getTCString(): Promise; - getTCModel(): Promise; getGdprApplies(): Promise; getPurposeConsents(): Promise; getPurposeLegitimateInterests(): Promise; - getUserChoices(): Promise; reset(): void; }