Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • Constructs the TCModel. Passing a GVL is optional when constructing as this TCModel may be constructed from decoding an existing encoded TCString.

    Parameters

    • Optional gvl: GVL

    Returns TCModel

Properties

__computed

__computed: PurposeRestrictionVector = new PurposeRestrictionVector()

The TCF designates certain Features as special, that is, a CMP must afford the user a means to opt in to their use. These Special Features are published and numbered in the GVL separately from normal Features. Provides for up to 12 special features. Renamed from PurposesAllowed in TCF v1.1 The user’s consent value for each Purpose established on the legal basis of consent. Purposes are published in the Global Vendor List (see. GVL). The user’s consent value for each Purpose established on the legal basis of consent, for the publisher. Purposes are published in the Global Vendor List. The user’s permission for each Purpose established on the legal basis of legitimate interest. If the user has exercised right-to-object for a purpose. The user’s permission for each Purpose established on the legal basis of legitimate interest. If the user has exercised right-to-object for a purpose. The user’s consent value for each Purpose established on the legal basis of consent, for the publisher. Purposes are published in the Global Vendor List. The user’s permission for each Purpose established on the legal basis of legitimate interest. If the user has exercised right-to-object for a purpose that is established in the publisher's custom purposes. Each Vendor is keyed by id. Their consent value is true if it is in the Vector Each Vendor is keyed by id. Whether their Legitimate Interest Disclosures have been established is stored as boolean. see: Vector The value included for disclosed vendors signals which vendors have been disclosed to the user in the interface surfaced by the CMP. This section content is required when writing a TC string to the global (consensu) scope. When a CMP has read from and is updating a TC string from the global consensu.org storage, the CMP MUST retain the existing disclosure information and only add information for vendors that it has disclosed that had not been disclosed by other CMPs in prior interactions with this device/user agent. Signals which vendors the publisher permits to use OOB legal bases. Each change to an operating CMP should receive a new version number, for logging proof of consent. CmpVersion defined by each CMP. The screen number is CMP and CmpVersion specific, and is for logging proof of consent.(For example, a CMP could keep records so that a publisher can request information about the context in which consent was gathered.) Version of the GVL used to create this TCModel. Global Vendor List versions will be released periodically. From the corresponding field in the GVL that was used for obtaining consent. A new policy version invalidates existing strings and requires CMPs to re-establish transparency and consent from users. Incremented when TC String format changes. Indicates what encoding format the TCString will follow v1 or v2. v1 fields will omit fields. Whether the signals encoded in this TC String were from site-specific storage true versus ‘global’ consensu.org shared storage false. A string intended to be stored in global/shared scope but the CMP is unable to store due to a user agent not accepting third-party cookies would be considered site-specific true. Non-standard stacks means that a CMP is using publisher-customized stack descriptions. Stacks (in terms of purposes in a stack) are pre-set by the IAB. As are titles. Descriptions are pre-set, but publishers can customize them. If they do, they need to set this bit to indicate that they've customized descriptions. false There is no special Purpose 1 status. Purpose 1 was disclosed normally (consent) as expected by Policy. true Purpose 1 not disclosed at all. CMPs use PublisherCC to indicate the publisher’s country of establishment to help Vendors determine whether the vendor requires Purpose 1 consent. In global scope TC strings, this field must always have a value of false. When a CMP encounters a global scope string with purposeOneTreatment=true then that string should be considered invalid and the CMP must re-establish transparency and consent.

If a TCF policy version number is different from the one from the latest GVL, the CMP must re-establish transparency and consent.

throws

{TCModelError} if the value is not an integer greater than 1 as those are not valid.

throws

{TCModelError} if the value is not an integer greater than 1 as those are not valid.

throws

{TCModelError} if the value is not an integer greater than 0 as those are not valid.

throws

{TCModelError} if the value is not a length-2 string of alpha characters

throws

{TCModelError} if the value is not a length-2 string of alpha characters

throws

{TCModelError} if the value is not an integer greater than 0 as those are not valid.

throws

{TCModelError} if the value is not an integer greater than 1 as those are not valid.

throws

{TCModelError} if the value is not either 1 or 2

customPurposes

customPurposes: IntMap<Purpose>

set by a publisher if they wish to collect consent and LI Transparency for purposes outside of the TCF

Static consentLanguages

consentLanguages: ConsentLanguages = GVL.consentLanguages

Set of available consent languages published by the IAB

Accessors

gvl

gvl:

sets the GVL with side effects of also setting the vendorListVersion, policyVersion, and consentLanguage

numCustomPurposes

numCustomPurposes:

Methods

clone

setAll

  • setAll(): void
  • setAll - calls:

    setAllVendorConsents();
    setAllPurposeLegitimateInterest();
    setAllSpecialFeatureOptIns();
    setAllPurposeConsents();
    setAllVendorLegitimateInterest();

    Returns void

setAllPurposeConsents

  • setAllPurposeConsents(): void
  • setAllPurposeConsents - sets all purposes on the GVL Consent (true)

    Returns void

setAllPurposeLegitimateInterest

  • setAllPurposeLegitimateInterest(): void
  • setAllPurposeLegitimateInterest - sets all purposes on the GVL LI Transparency (true)

    Returns void

setAllSpecialFeatureOptIns

  • setAllSpecialFeatureOptIns(): void
  • setAllSpecialFeatureOptIns - sets all special featuresOptins on the GVL (true)

    Returns void

setAllVendorConsents

  • setAllVendorConsents(): void
  • setAllVendorConsents - sets all vendors on the GVL Consent (true)

    Returns void

setAllVendorLegitimateInterest

  • setAllVendorLegitimateInterest(): void
  • setAllVendorLegitimateInterest - sets all vendors on the GVL LegitimateInterest (true)

    Returns void

setAllVendorsAllowed

  • setAllVendorsAllowed(): void
  • setAllVendorsAllowed - sets all vendors on the GVL Consent (true)

    Returns void

setAllVendorsDisclosed

  • setAllVendorsDisclosed(): void
  • setAllVendorsDisclosed - sets all vendors on the GVL Vendors Disclosed (true)

    Returns void

unsetAll

  • unsetAll(): void
  • unsetAll - calls:

    unsetAllVendorConsents();
    unsetAllPurposeLegitimateInterest();
    unsetAllSpecialFeatureOptIns();
    unsetAllPurposeConsents();
    unsetAllVendorLegitimateInterest();

    Returns void

unsetAllPurposeConsents

  • unsetAllPurposeConsents(): void
  • unsetAllPurposeConsents - unsets all purposes on the GVL Consent (false)

    Returns void

unsetAllPurposeLegitimateInterest

  • unsetAllPurposeLegitimateInterest(): void
  • unsetAllPurposeLegitimateInterest - unsets all purposes on the GVL LI Transparency (false)

    Returns void

unsetAllSpecialFeatureOptIns

  • unsetAllSpecialFeatureOptIns(): void
  • unsetAllSpecialFeatureOptIns - unsets all special featuresOptins on the GVL (true)

    Returns void

unsetAllVendorConsents

  • unsetAllVendorConsents(): void
  • unsetAllVendorConsents - unsets all vendors on the GVL Consent (false)

    Returns void

unsetAllVendorLegitimateInterest

  • unsetAllVendorLegitimateInterest(): void
  • unsetAllVendorLegitimateInterest - unsets all vendors on the GVL LegitimateInterest (false)

    Returns void

unsetAllVendorsAllowed

  • unsetAllVendorsAllowed(): void
  • unsetAllVendorsAllowed - unsets all vendors on the GVL Consent (false)

    Returns void

unsetAllVendorsDisclosed

  • unsetAllVendorsDisclosed(): void
  • unsetAllVendorsDisclosed - unsets all vendors on the GVL Consent (false)

    Returns void

updated

  • updated(): void
  • updated - updates the lastUpdatedDate with a 'now' timestamp

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc