-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
471 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import * as t from 'io-ts'; | ||
|
||
export const ConsentSDK = t.type({ | ||
/** Unique identifier for the SDK */ | ||
id: t.string, | ||
/** airgap purposes applicable to this SDK */ | ||
purposes: t.array(t.string), | ||
}); | ||
|
||
/** | ||
* Type override | ||
*/ | ||
export type ConsentSDK = t.TypeOf<typeof ConsentSDK>; | ||
|
||
export const ConsentService = t.intersection([ | ||
t.type({ | ||
name: t.string, | ||
}), | ||
t.partial({ | ||
sdks: t.array(ConsentSDK), | ||
tcfId: t.number, | ||
}), | ||
]); | ||
|
||
/** | ||
* Type override | ||
*/ | ||
export type ConsentService = t.TypeOf<typeof ConsentService>; | ||
|
||
export const MobileConfig = t.type({ | ||
services: t.array(ConsentService), | ||
}); | ||
|
||
/** | ||
* Type override | ||
*/ | ||
export type MobileConfig = t.TypeOf<typeof MobileConfig>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters