@iabtechlabtcf/core
Version:
Ensures consistent encoding and decoding of TC Signals for the iab. Transparency and Consent Framework (TCF).
22 lines (21 loc) • 590 B
JavaScript
import { Segment } from './Segment.js';
export class SegmentIDs {
/**
* 0 = default - reserved for core string (does not need to be present in the core string)
* 1 = OOB vendors disclosed
* 2 = OOB vendors allowed
* 3 = PublisherTC
*/
static ID_TO_KEY = [
Segment.CORE,
Segment.VENDORS_DISCLOSED,
Segment.VENDORS_ALLOWED,
Segment.PUBLISHER_TC,
];
static KEY_TO_ID = {
[ ]: 0,
[ ]: 1,
[ ]: 2,
[ ]: 3,
};
}