devowl-wp
    Preparing search index...
    • Create the API functions and make them available through window.consentApi.

      There is also a stub implementation:

      ((a,b)=>{a[b]||(a[b]={unblockSync:()=>undefined},["consentSync"].forEach(c=>a[b][c]=()=>({cookie:null,consentGiven:!1,cookieOptIn:!0})),["consent","consentAll","unblock"].forEach(c=>a[b][c]=(...d)=>new Promise(e=>a.addEventListener(b,()=>{a[b][c](...d).then(e)},{once:!0}))))})(window,"consentApi");
      

      Parameters

      Returns {
          consent: (
              ...args: [
                  typeOrIdOrUniqueName: string
                  | number,
                  name?: string,
                  host?: string,
              ],
          ) => Promise<
              { consentGiven: boolean; cookie: Service; cookieOptIn: boolean },
          >;
          consentAll: (
              ...args: [
                  technicalDefinitions: [
                      typeOrIdOrUniqueName: string
                      | number,
                      name?: string,
                      host?: string,
                  ][],
              ],
          ) => Promise<
              { consentGiven: boolean; cookie: Service; cookieOptIn: boolean }[],
          >;
          consentSync: (
              ...args: [
                  typeOrIdOrUniqueName: string
                  | number,
                  name?: string,
                  host?: string,
              ],
          ) => { consentGiven: boolean; cookie: Service; cookieOptIn: boolean };
          unblock: (
              ...args: [urlOrElement: string | HTMLElement, options?: Options],
          ) => Promise<void>;
          unblockSync: (...args: [url: string]) => BlockerDefinition;
          wrapFn: (
              ...args: [
                  fn: Fn
                  | FnOverwriteObject
                  | FnOverwriteObject[],
                  checkExecution:
                      | Promise<any>
                      | (
                          (
                              args: {
                                  args: any[];
                                  blocker: BlockerDefinition[];
                                  callOriginal: () => any;
                                  manager: CookieConsentManager;
                                  objectResolved?: any;
                                  original: Fn;
                                  that: any;
                              },
                          ) => boolean
                          | Promise<any>
                      )
                      | [
                          "consent",
                          typeOrIdOrUniqueName: string
                          | number,
                          name?: string,
                          host?: string,
                      ]
                      | [
                          "consentAll",
                          technicalDefinitions: [
                              typeOrIdOrUniqueName: string
                              | number,
                              name?: string,
                              host?: string,
                          ][],
                      ]
                      | [
                          "consentSync",
                          typeOrIdOrUniqueName: string
                          | number,
                          name?: string,
                          host?: string,
                      ]
                      | ["unblock", urlOrElement: string | HTMLElement, options?: Options]
                      | "functionBody",
                  settings: { failedSyncReturnValue?: boolean; skipRetry?: boolean },
              ],
          ) => Fn | Fn[];
      }