Constructors

Properties

blockers: BlockerCollection
busy: boolean = false
busyTemplatesBlocker: boolean = false
busyTemplatesServices: boolean = false
fetchBlockers: (() => Promise<void>) = ...

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

fetchGroups: (() => Promise<void>) = ...

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

fetchTemplatesBlocker: ((params?) => Promise<void>) = ...

Type declaration

fetchTemplatesServices: ((params?) => Promise<void>) = ...

Type declaration

fetchUnassignedCookies: (() => Promise<void>) = ...

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

fetchedAllBlockers: boolean = false
groups: CookieGroupCollection
rootStore: RootStore
templatesBlocker: Map<string, BlockerTemplate> = ...
templatesServices: Map<string, ServiceTemplate> = ...
unassignedCookies: Map<number, {
    id: number;
    title: string;
}> = ...

Type declaration

  • id: number
  • title: string

Accessors

  • get blockersCount(): number
  • Returns number

  • get cookiesCount(): number
  • Returns number

  • get essentialGroup(): CookieGroupModel
  • Returns CookieGroupModel

Methods

  • Parameters

    • items: ({
          createdAt?: Date;
          description?: string;
          descriptionTranslationFlags?: ETranslationFlag[];
          enabledWhenOneOf?: string[];
          exampleEmbedCodes?: string[];
          extendsIdentifier?: string;
          headline?: string;
          headlineTranslationFlags?: ETranslationFlag[];
          id?: string;
          identifier?: string;
          isExtendingMetaData?: boolean;
          isFavourite?: boolean;
          isHidden?: boolean;
          isVisual?: boolean;
          isVisualDarkMode?: boolean;
          language?: string;
          lastEditedBy?: IUser;
          logoUrl?: string;
          machineTranslationStatus?: EMachineTranslationStatus;
          minRequiredRcbVersion?: string;
          name?: string;
          nameTranslationFlags?: ETranslationFlag[];
          recommendedWhenOneOf?: string[];
          releaseId?: string;
          releaseStatus?: ETemplateMetaDataVersionUpdateState;
          ruleGroups?: IContentBlockerRuleGroup[];
          ruleNotice?: string;
          ruleNoticeTranslationFlags?: ETranslationFlag[];
          rules?: IContentBlockerRule[];
          serviceTemplateIdentifiers?: string[];
          shouldForceToShowVisual?: boolean;
          status?: ETemplateStatus;
          subHeadline?: string;
          subHeadlineTranslationFlags?: ETranslationFlag[];
          successorOfIdentifierInfo?: TemplateSuccessorOfInfo[];
          testPipelineId?: number;
          testStatus?: EContentBlockerTestStatus;
          tier?: ERcbTier;
          translationIds?: string[];
          translationInfo?: ITranslationStatus[];
          version?: number;
          visualBlur?: number;
          visualContentType?: EContentBlockerVisualContentType;
          visualHeroButtonText?: string;
          visualHeroButtonTextTranslationFlags?: ETranslationFlag[];
          visualType?: EContentBlockerVisualType;
      } & object & {
          tcfVendorIds: number[];
      } & {
          consumerData: {
              tags: Record<string, string>;
          } & {
              isIgnored?: boolean;
              scan: false | {
                  foundCount: number;
                  foundOnSitesCount: number;
                  lastScanned: string;
              };
          } & {
              isDisabled: boolean;
              isRecommended: boolean;
          } & {
              id?: number;
              isCreated: boolean;
          } & {
              isCloud?: boolean;
          } & {
              technicalHandlingIntegration?: {
                  codeOptIn: string;
                  codeOptOut: string;
                  name: string;
              };
          } & {
              successorOf: (TemplateSuccessorOfInfo & {
                  id: number;
              })[];
          } & {
              acknowledgement: {
                  accordion?: Record<string, string>;
                  buttonAction?: "ignore";
                  buttonLabel?: string;
                  paragraphs: string[];
              };
          } & {
              versions: IContentBlockerTemplateClientResponse[];
          } & {
              createAdNetwork?: string;
          };
      })[]

    Returns void

  • Parameters

    • items: ({
          codeOnPageLoad?: string;
          codeOptIn?: string;
          codeOptOut?: string;
          createContentBlockerNotice?: string;
          createContentBlockerNoticeTranslationFlags?: ETranslationFlag[];
          createdAt?: Date;
          dataProcessingInCountries?: ServiceDataProcessingIn[];
          dataProcessingInCountriesSpecialTreatments?: EServiceTemplateDataProcessingInCountriesSpecialTreatment[];
          deleteTechnicalDefinitionsAfterOptOut?: boolean;
          dynamicFieldIds?: string[];
          dynamicFields?: IServiceTemplateDynamicField[];
          enabledWhenOneOf?: string[];
          executeCodeOptInWhenNoTagManagerConsentIsGiven?: boolean;
          executeCodeOptOutWhenNoTagManagerConsentIsGiven?: boolean;
          executePriority?: number;
          extendsIdentifier?: string;
          googleConsentModeConsentTypes?: EServiceTemplateGoogleConsentModeTypes[];
          group?: EServiceTemplateGroup;
          groupNotice?: string;
          groupNoticeTranslationFlags?: ETranslationFlag[];
          headline?: string;
          headlineTranslationFlags?: ETranslationFlag[];
          id?: string;
          identifier?: string;
          isCdn?: boolean;
          isEmbeddingOnlyExternalResources?: boolean;
          isExtendingMetaData?: boolean;
          isFavourite?: boolean;
          isHidden?: boolean;
          isProviderCurrentWebsite?: boolean;
          language?: string;
          lastEditedBy?: IUser;
          legalBasis?: EServiceTemplateLegalBasis;
          legalBasisNotice?: string;
          legalBasisNoticeTranslationFlags?: ETranslationFlag[];
          logoUrl?: string;
          machineTranslationStatus?: EMachineTranslationStatus;
          minRequiredRcbVersion?: string;
          name?: string;
          nameTranslationFlags?: ETranslationFlag[];
          provider?: string;
          providerContact?: IServiceTemplateProviderContact;
          providerLegalNoticeUrl?: string;
          providerLegalNoticeUrlTranslationFlags?: ETranslationFlag[];
          providerNotice?: string;
          providerNoticeTranslationFlags?: ETranslationFlag[];
          providerPrivacyPolicyUrl?: string;
          providerPrivacyPolicyUrlTranslationFlags?: ETranslationFlag[];
          providerTranslationFlags?: ETranslationFlag[];
          purpose?: string;
          purposeIds?: string[];
          recommendedWhenOneOf?: string[];
          releaseId?: string;
          releaseStatus?: ETemplateMetaDataVersionUpdateState;
          sccConclusionInstructionsNotice?: string;
          sccConclusionInstructionsNoticeTranslationFlags?: ETranslationFlag[];
          shouldUncheckContentBlockerCheckbox?: boolean;
          shouldUncheckContentBlockerCheckboxWhenOneOf?: string[];
          status?: ETemplateStatus;
          subHeadline?: string;
          subHeadlineTranslationFlags?: ETranslationFlag[];
          successorOfIdentifierInfo?: TemplateSuccessorOfInfo[];
          tagManagerOptInEventName?: string;
          tagManagerOptOutEventName?: string;
          technicalDefinitionIds?: string[];
          technicalDefinitions?: IServiceTemplateTechnicalDefinition[];
          technicalHandlingNotice?: string;
          technicalHandlingNoticeTranslationFlags?: ETranslationFlag[];
          tier?: ERcbTier;
          translationIds?: string[];
          translationInfo?: ITranslationStatus[];
          version?: number;
      } & object & {
          consumerData: {
              tags: Record<string, string>;
          } & {
              versions: IServiceTemplateClientResponse[];
          } & {
              isIgnored?: boolean;
              scan: false | {
                  foundCount: number;
                  foundOnSitesCount: number;
                  lastScanned: string;
              };
          } & {
              contentBlockerTemplates: {
                  identifier: string;
                  name: string;
                  subHeadline: string;
              }[];
          } & {
              isDisabled: boolean;
              isRecommended: boolean;
          } & {
              id?: number;
              isCreated: boolean;
          } & {
              isCloud?: boolean;
          } & {
              technicalHandlingIntegration?: {
                  codeOptIn: string;
                  codeOptOut: string;
                  name: string;
              };
          } & {
              successorOf: (TemplateSuccessorOfInfo & {
                  id: number;
              })[];
          } & {
              acknowledgement: {
                  accordion?: Record<string, string>;
                  buttonAction?: "ignore";
                  buttonLabel?: string;
                  paragraphs: string[];
              };
          };
      })[]

    Returns void