@didomi/iabtcf-cmpapi
Version:
Ensures other in-page digital marketing technologies have access to CMP transparency and consent information for the iab. Transparency and Consent Framework (TCF).
32 lines (31 loc) • 851 B
JavaScript
/**
* An enum representing all the possible statuses for the cmpStatus returned
* through the CMP API
*
* @readonly
* @enum {string}
*/
export var CmpStatus;
(function (CmpStatus) {
/**
* CMP not yet loaded – stub still in place
* @type {string}
*/
CmpStatus["STUB"] = "stub";
/**
* CMP is loading
* @type {string}
*/
CmpStatus["LOADING"] = "loading";
/**
* CMP is finished loading
* @type {string}
*/
CmpStatus["LOADED"] = "loaded";
/**
* CMP is in an error state. A CMP shall not respond to any other API requests if this cmpStatus is present.
* A CMP may set this status if, for any reason, it is unable to perform the operations in compliance with the TCF.
* @type {string}
*/
CmpStatus["ERROR"] = "error";
})(CmpStatus || (CmpStatus = {}));