-
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.
add enum for behavior on consent expiry (#120)
- Loading branch information
1 parent
648505f
commit 16fe222
Showing
3 changed files
with
18 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { makeEnum } from '@transcend-io/type-utils'; | ||
|
||
/** | ||
* Enum of options available for behavior to exhibit when the user's consent has expired | ||
*/ | ||
export const OnConsentExpiry = makeEnum({ | ||
/** Reprompts the user to change or confirm their selection */ | ||
Prompt: 'prompt', | ||
/** Resets the user's consent and reprompts them */ | ||
Reset: 'reset', | ||
/** Resets the user's opted-in purposes and reprompts them */ | ||
ResetOptIns: 'reset-opt-ins', | ||
}); | ||
/** Override type */ | ||
export type OnConsentExpiry = | ||
typeof OnConsentExpiry[keyof typeof OnConsentExpiry]; |
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