• Read the selected groups + services depending on the passed type.

    Parameters

    Returns {
        isManagerActive: boolean;
        iterateServices: ((callback) => Promise<void>);
        selectedGroups: DecisionConsentGroups;
    }

    • isManagerActive: boolean
    • iterateServices: ((callback) => Promise<void>)
        • (callback): Promise<void>
        • Parameters

          • callback: ((group, service, isOptIn, setCookiesViaManager) => void | Promise<void>)
              • (group, service, isOptIn, setCookiesViaManager): void | Promise<void>
              • Parameters

                • group: ServiceGroup
                • service: Service
                • isOptIn: boolean
                • setCookiesViaManager: {
                      expectedManagerPresetId: "gtm" | "mtm";
                      features: ManagerFeatures;
                      getDataLayer: (() => any[]);
                      managerLabel: string;
                      serviceIsManager: boolean;
                      useManager: ServiceTagManager;
                  }
                  • expectedManagerPresetId: "gtm" | "mtm"
                  • features: ManagerFeatures
                  • getDataLayer: (() => any[])
                      • (): any[]
                      • Returns any[]

                  • managerLabel: string
                  • serviceIsManager: boolean
                  • useManager: ServiceTagManager

                Returns void | Promise<void>

          Returns Promise<void>

    • selectedGroups: DecisionConsentGroups