Module "frontend-packages/cookie-consent-web-client/src/decision/getServiceSelection"
Type aliases
GetServiceSelectionOptions
Get
ServiceSelectionOptions: { 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 }
-
Parameters
-
__namedParameters: { decisionCookieName: string; essentialGroupSlug: string; groups: ServiceGroup[]; tagManager: ServiceTagManager; type: "all" | "consent" | "essentials" }
-
decisionCookieName: string
-
essentialGroupSlug: string
-
-
-
type: "all" | "consent" | "essentials"
Returns { isManagerActive: boolean; selectedGroups: DecisionConsentGroups; iterateServices: any }
-
isManagerActive: boolean
-
-
iterateServices: function
-
Parameters
Returns Promise<void>
Read the selected groups + services depending on the passed type.