@transcend-io/airgap.js-types
Advanced tools
Comparing version 8.7.0 to 8.8.0
@@ -392,78 +392,2 @@ import * as t from 'io-ts'; | ||
export declare type ConsentChange = t.TypeOf<typeof ConsentChange>; | ||
export declare const PrivacyRegimeToViewState: t.PartialC<{ | ||
Unknown: t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
CompleteOptions: unknown; | ||
LanguageOptions: unknown; | ||
Collapsed: unknown; | ||
Closed: unknown; | ||
}>; | ||
CPRA: t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
CompleteOptions: unknown; | ||
LanguageOptions: unknown; | ||
Collapsed: unknown; | ||
Closed: unknown; | ||
}>; | ||
GDPR: t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
CompleteOptions: unknown; | ||
LanguageOptions: unknown; | ||
Collapsed: unknown; | ||
Closed: unknown; | ||
}>; | ||
LGPD: t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
CompleteOptions: unknown; | ||
LanguageOptions: unknown; | ||
Collapsed: unknown; | ||
Closed: unknown; | ||
}>; | ||
CDPA: t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
CompleteOptions: unknown; | ||
LanguageOptions: unknown; | ||
Collapsed: unknown; | ||
Closed: unknown; | ||
}>; | ||
CPA: t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
CompleteOptions: unknown; | ||
LanguageOptions: unknown; | ||
Collapsed: unknown; | ||
Closed: unknown; | ||
}>; | ||
}>; | ||
/** type overload */ | ||
export declare type PrivacyRegimeToViewState = t.TypeOf<typeof PrivacyRegimeToViewState>; | ||
//# sourceMappingURL=core.d.ts.map |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PrivacyRegimeToViewState = exports.ConsentChange = exports.UserPrivacySignal = exports.TrackingPurpose = exports.TrackingPurposesConfig = exports.DefaultConsentConfig = exports.TrackingPurposesTypes = exports.TrackingPurposeDetails = exports.DefaultConsentConfigValue = exports.AutoOptOutForGPC = exports.AutoOptOutForDNT = exports.AutoOptOutForGDPR = exports.AutoOptOut = exports.PrivacyRegime = exports.BooleanString = exports.LogLevel = exports.ConsoleSafeLogLevel = void 0; | ||
exports.ConsentChange = exports.UserPrivacySignal = exports.TrackingPurpose = exports.TrackingPurposesConfig = exports.DefaultConsentConfig = exports.TrackingPurposesTypes = exports.TrackingPurposeDetails = exports.DefaultConsentConfigValue = exports.AutoOptOutForGPC = exports.AutoOptOutForDNT = exports.AutoOptOutForGDPR = exports.AutoOptOut = exports.PrivacyRegime = exports.BooleanString = exports.LogLevel = exports.ConsoleSafeLogLevel = void 0; | ||
// external | ||
@@ -133,4 +133,3 @@ const t = __importStar(require("io-ts")); | ||
exports.ConsentChange = t.record(exports.TrackingPurpose, t.boolean); | ||
exports.PrivacyRegimeToViewState = t.partial((0, type_utils_1.applyEnum)(enums_1.PrivacyRegimeEnum, () => (0, type_utils_1.valuesOf)(enums_1.ViewState))); | ||
/* eslint-enable max-lines */ | ||
//# sourceMappingURL=core.js.map |
import * as t from 'io-ts'; | ||
import { PrivacyRegimeEnum, ViewState } from './enums'; | ||
import { ViewState } from './enums'; | ||
import { AirgapAuth } from './core'; | ||
@@ -75,2 +75,71 @@ /** Transcend Smart Quarantine API (window.transcend) */ | ||
export declare type ConsentManagerBreakpoints = t.TypeOf<typeof ConsentManagerBreakpoints>; | ||
export declare const PrivacyRegimeToInitialViewStateInput: t.PartialC<{ | ||
Unknown: t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
}>; | ||
CPRA: t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
}>; | ||
GDPR: t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
}>; | ||
LGPD: t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
}>; | ||
CDPA: t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
}>; | ||
CPA: t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
}>; | ||
}>; | ||
/** type overload */ | ||
export declare type PrivacyRegimeToInitialViewStateInput = t.TypeOf<typeof PrivacyRegimeToInitialViewStateInput>; | ||
export declare const PrivacyRegimeToInitialViewState: t.RecordC<t.KeyofC<{ | ||
Unknown: unknown; | ||
CPRA: unknown; | ||
GDPR: unknown; | ||
LGPD: unknown; | ||
CDPA: unknown; | ||
CPA: unknown; | ||
}>, t.KeyofC<{ | ||
QuickOptions: unknown; | ||
AcceptAll: unknown; | ||
AcceptOrRejectAll: unknown; | ||
NoticeAndDoNotSell: unknown; | ||
DoNotSellDisclosure: unknown; | ||
Hidden: unknown; | ||
}>>; | ||
/** type overload */ | ||
export declare type PrivacyRegimeToInitialViewState = t.TypeOf<typeof PrivacyRegimeToInitialViewState>; | ||
/** Consent manager UI configuration */ | ||
@@ -189,5 +258,3 @@ export declare const ConsentManagerConfig: t.TypeC<{ | ||
}; | ||
export declare const DEFAULT_VIEW_STATE_BY_PRIVACY_REGIME: { | ||
[k in PrivacyRegimeEnum]: ViewState; | ||
}; | ||
export declare const DEFAULT_VIEW_STATE_BY_PRIVACY_REGIME: PrivacyRegimeToInitialViewState; | ||
//# sourceMappingURL=ui.d.ts.map |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DEFAULT_VIEW_STATE_BY_PRIVACY_REGIME = exports.ConsentManagerConfigInput = exports.ConsentManagerConfig = exports.ConsentManagerBreakpoints = exports.ConsentManagerTheme = exports.ConsentManagerThemeStyles = void 0; | ||
exports.DEFAULT_VIEW_STATE_BY_PRIVACY_REGIME = exports.ConsentManagerConfigInput = exports.ConsentManagerConfig = exports.PrivacyRegimeToInitialViewState = exports.PrivacyRegimeToInitialViewStateInput = exports.ConsentManagerBreakpoints = exports.ConsentManagerTheme = exports.ConsentManagerThemeStyles = void 0; | ||
// external | ||
@@ -59,2 +59,4 @@ const t = __importStar(require("io-ts")); | ||
}); | ||
exports.PrivacyRegimeToInitialViewStateInput = t.partial((0, type_utils_1.applyEnum)(enums_1.PrivacyRegimeEnum, () => (0, type_utils_1.valuesOf)(enums_1.InitialViewState))); | ||
exports.PrivacyRegimeToInitialViewState = t.record((0, type_utils_1.valuesOf)(enums_1.PrivacyRegimeEnum), (0, type_utils_1.valuesOf)(enums_1.InitialViewState)); | ||
/** Consent manager UI configuration */ | ||
@@ -73,3 +75,3 @@ exports.ConsentManagerConfig = t.type({ | ||
/** What state the consent manager should launch in */ | ||
initialViewStateByPrivacyRegime: t.record((0, type_utils_1.valuesOf)(enums_1.PrivacyRegimeEnum), (0, type_utils_1.valuesOf)(enums_1.InitialViewState)), | ||
initialViewStateByPrivacyRegime: exports.PrivacyRegimeToInitialViewState, | ||
/** What state the consent manager should go to when dismissed */ | ||
@@ -83,14 +85,14 @@ dismissedViewState: (0, type_utils_1.valuesOf)(enums_1.DismissedViewState), | ||
// TODO: https://transcend.height.app/T-17251 - migrate to DoNotSellDisclosure | ||
CPRA: enums_1.ViewState.NoticeAndDoNotSell, | ||
CPRA: enums_1.InitialViewState.NoticeAndDoNotSell, | ||
// EU | ||
GDPR: enums_1.ViewState.QuickOptions, | ||
GDPR: enums_1.InitialViewState.QuickOptions, | ||
// Brazil | ||
LGPD: enums_1.ViewState.QuickOptions, | ||
LGPD: enums_1.InitialViewState.QuickOptions, | ||
// Virginia (unreachable as we don't detect this regime yet) | ||
CDPA: enums_1.ViewState.NoticeAndDoNotSell, | ||
CDPA: enums_1.InitialViewState.NoticeAndDoNotSell, | ||
// Colorado (unreachable as we don't detect this regime yet) | ||
CPA: enums_1.ViewState.NoticeAndDoNotSell, | ||
CPA: enums_1.InitialViewState.NoticeAndDoNotSell, | ||
// Other | ||
Unknown: enums_1.ViewState.Hidden, | ||
Unknown: enums_1.InitialViewState.Hidden, | ||
}; | ||
//# sourceMappingURL=ui.js.map |
@@ -5,3 +5,3 @@ { | ||
"description": "TypeScript types for airgap.js interoperability with custom consent UIs", | ||
"version": "8.7.0", | ||
"version": "8.8.0", | ||
"homepage": "https://github.com/transcend-io/airgap.js-types", | ||
@@ -8,0 +8,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
115678
1178