forked from InteractiveAdvertisingBureau/iabtcf-es
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBitLength.ts
More file actions
36 lines (32 loc) · 1.74 KB
/
BitLength.ts
File metadata and controls
36 lines (32 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import {Fields} from '../model/index.js';
export class BitLength {
public static readonly [Fields.cmpId]: number = 12;
public static readonly [Fields.cmpVersion]: number = 12;
public static readonly [Fields.consentLanguage]: number = 12;
public static readonly [Fields.consentScreen]: number = 6;
public static readonly [Fields.created]: number = 36;
public static readonly [Fields.isServiceSpecific]: number = 1;
public static readonly [Fields.lastUpdated]: number = 36;
public static readonly [Fields.policyVersion]: number = 6;
public static readonly [Fields.publisherCountryCode]: number = 12;
public static readonly [Fields.publisherLegitimateInterests]: number = 24;
public static readonly [Fields.publisherConsents]: number = 24;
public static readonly [Fields.purposeConsents]: number = 24;
public static readonly [Fields.purposeLegitimateInterests]: number = 24;
public static readonly [Fields.purposeOneTreatment]: number = 1;
public static readonly [Fields.specialFeatureOptins]: number = 12;
public static readonly [Fields.useNonStandardTexts]: number = 1;
public static readonly [Fields.vendorListVersion]: number = 12;
public static readonly [Fields.version]: number = 6;
public static readonly anyBoolean: number = 1;
public static readonly encodingType: number = 1;
public static readonly maxId: number = 16;
public static readonly numCustomPurposes: number = 6;
public static readonly numEntries: number = 12;
public static readonly numRestrictions: number = 12;
public static readonly purposeId: number = 6;
public static readonly restrictionType: number = 2;
public static readonly segmentType: number = 3;
public static readonly singleOrRange: number = 1;
public static readonly vendorId: number = 16;
}