Skip to content

Commit

Permalink
Add config mapping tcf purposes to airgap
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherminh committed Nov 20, 2023
1 parent 5439677 commit 1a4897f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 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.7.7",
"version": "10.8.0",
"homepage": "https://github.com/transcend-io/airgap.js-types",
"repository": {
"type": "git",
Expand Down
13 changes: 12 additions & 1 deletion src/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
import * as t from 'io-ts';

// main
import { applyEnum, valuesOf } from '@transcend-io/type-utils';
import {
applyEnum,
FixedLengthArray,

Check failure on line 7 in src/ui.ts

View workflow job for this annotation

GitHub Actions / build-and-upload-artifacts

'FixedLengthArray' is declared but its value is never read.
valuesOf,
} from '@transcend-io/type-utils';
import { ConsentManagerLanguageKey } from '@transcend-io/internationalization';

// local
Expand Down Expand Up @@ -221,6 +225,13 @@ export const TCFConfig = t.type({
css: t.string,
/** Path to localizations directory */
messages: t.string,
/** Mapping of tcf purposes to airgap purposes */
purposeMap: t.record(
/** The TCF purpose number */
t.number,
/** List of corresponding airgap purposes */
t.array(t.string),
),
});

/** Type override */
Expand Down

0 comments on commit 1a4897f

Please sign in to comment.