Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vendors list v3 feature #92

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading