Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/cookie-consent-web-client/src/decision/getServiceSelection"

Index

Type aliases

GetServiceSelectionOptions

GetServiceSelectionOptions: { type: "all" | "essentials" | "consent" } & Pick<CookieConsentManagerOptions, "decisionCookieName" | "tagManager" | "groups" | "essentialGroupSlug">

Functions

getServiceSelection

  • getServiceSelection(__namedParameters: { decisionCookieName: string; essentialGroupSlug: string; groups: ServiceGroup[]; tagManager: ServiceTagManager; type: "all" | "consent" | "essentials" }): { isManagerActive: boolean; selectedGroups: DecisionConsentGroups; iterateServices: any }
  • Read the selected groups + services depending on the passed type.

    Parameters

    • __namedParameters: { decisionCookieName: string; essentialGroupSlug: string; groups: ServiceGroup[]; tagManager: ServiceTagManager; type: "all" | "consent" | "essentials" }
      • decisionCookieName: string
      • essentialGroupSlug: string
      • groups: ServiceGroup[]
      • tagManager: ServiceTagManager
      • type: "all" | "consent" | "essentials"

    Returns { isManagerActive: boolean; selectedGroups: DecisionConsentGroups; iterateServices: any }

Generated using TypeDoc