Skip to content

Commit

Permalink
update gvl v3 feature
Browse files Browse the repository at this point in the history
  • Loading branch information
linh-transcend committed Sep 7, 2023
1 parent 6494555 commit de9d4bc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Transcend Inc.",
"name": "@transcend-io/airgap.js-types",
"description": "TypeScript types for airgap.js interoperability with custom consent UIs",
"version": "10.5.0",
"version": "10.5.1",
"homepage": "https://github.com/transcend-io/airgap.js-types",
"repository": {
"type": "git",
Expand Down
18 changes: 16 additions & 2 deletions src/iab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,20 @@ export const TcfGvlV3Purpose = t.type({
*/
export type TcfGvlV3Purpose = t.TypeOf<typeof TcfGvlV3Purpose>;

/**
* TCF GVL v3 feature configuration
*/
export const TcfGvlV3Feature = t.type({
id: t.number,
name: t.string,
description: t.string,
});

/**
* Type override
*/
export type TcfGvlV3Feature = t.TypeOf<typeof TcfGvlV3Feature>;

/**
* TCF GVL v3 data categories configuration
*/
Expand Down Expand Up @@ -182,8 +196,8 @@ export const TcfV3VendorList = t.intersection([
t.type({
purposes: t.record(t.string, TcfGvlV3Purpose),
specialPurposes: t.record(t.string, TcfGvlV3Purpose),
features: t.record(t.string, TcfGvlV3Purpose),
specialFeatures: t.record(t.string, TcfGvlV3Purpose),
features: t.record(t.string, TcfGvlV3Feature),
specialFeatures: t.record(t.string, TcfGvlV3Feature),
stacks: t.record(t.string, TcfStack),
dataCategories: t.record(t.string, TcfGvlV3DataCategory),
vendors: t.record(t.string, TcfGvlV3Vendor),
Expand Down

0 comments on commit de9d4bc

Please sign in to comment.