Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/cookie-consent-web-client/src/types/service"

Index

Type aliases

Service

Service: { codeDynamics: Record<string, string>; codeOnPageLoad: string; codeOptIn: string; codeOptOut: string; consentForwardingUniqueName?: string; deleteTechnicalDefinitionsAfterOptOut: boolean; executeCodeOptInWhenNoTagManagerConsentIsGiven: boolean; executeCodeOptOutWhenNoTagManagerConsentIsGiven: boolean; id: number; isEmbeddingOnlyExternalResources: boolean; legalBasis: "consent" | "legitimate-interest" | "legal-requirement"; presetId?: string; tagManagerOptInEventName: string; tagManagerOptOutEventName: string; technicalDefinitions: ServiceTechnicalDefinition[] }

Type declaration

  • codeDynamics: Record<string, string>
  • codeOnPageLoad: string
  • codeOptIn: string
  • codeOptOut: string
  • Optional consentForwardingUniqueName?: string
  • deleteTechnicalDefinitionsAfterOptOut: boolean

    This package only deletes local- and session-storage items. If you need to delete HTTP cookies, refer to the opt-out event and their deleteHttpCookies data.

  • executeCodeOptInWhenNoTagManagerConsentIsGiven: boolean
  • executeCodeOptOutWhenNoTagManagerConsentIsGiven: boolean
  • id: number
  • isEmbeddingOnlyExternalResources: boolean
  • legalBasis: "consent" | "legitimate-interest" | "legal-requirement"
  • Optional presetId?: string

    E.g. gtm will be used for the Google Tag Manager integration (special cases).

  • tagManagerOptInEventName: string
  • tagManagerOptOutEventName: string
  • technicalDefinitions: ServiceTechnicalDefinition[]

ServiceGroup

ServiceGroup: { id: number; items: Service[]; slug: string }

Type declaration

  • id: number
  • items: Service[]
  • slug: string

ServiceTagManager

ServiceTagManager: "none" | "googleTagManager" | "matomoTagManager"

ServiceTechnicalDefinition

ServiceTechnicalDefinition: { duration: number; durationUnit: "s" | "m" | "h" | "d" | "mo" | "y"; host: string; isSessionDuration: boolean; name: string; type: "http" | "local" | "session" | "flash" | "indexedDb" }

Type declaration

  • duration: number
  • durationUnit: "s" | "m" | "h" | "d" | "mo" | "y"
  • host: string
  • isSessionDuration: boolean
  • name: string
  • type: "http" | "local" | "session" | "flash" | "indexedDb"

Generated using TypeDoc