23 lines
1.3 KiB
Swift
23 lines
1.3 KiB
Swift
import ScoreTrackerKit
|
|
|
|
// The types in ScoreClient's public API live in the ScoreTrackerKit framework.
|
|
// The integration guide has apps `import ScoreTracker` only, which left them
|
|
// unable to name any of these, so `Events.shared.PollVote` and
|
|
// `requires: [ConsentCategory.advertising]` didn't compile in an app (#485).
|
|
// Re-exported by name; an app that also imports ScoreTrackerKit sees the same
|
|
// types, because a module's declarations shadow those of the modules it imports.
|
|
|
|
/// Generated loyalty event definitions (`Events.shared.PollVote`, …), shared
|
|
/// with the web and Android trackers.
|
|
public typealias Events = ScoreTrackerKit.Events
|
|
public typealias EventDefinition = ScoreTrackerKit.EventDefinition
|
|
public typealias ConsentCategory = ScoreTrackerKit.ConsentCategory
|
|
public typealias ConsentState = ScoreTrackerKit.ConsentState
|
|
public typealias DeliveryMode = ScoreTrackerKit.DeliveryMode
|
|
public typealias PiiOptions = ScoreTrackerKit.PiiOptions
|
|
public typealias PiiRule = ScoreTrackerKit.PiiRule
|
|
public typealias PiiAction = ScoreTrackerKit.PiiAction
|
|
/// The support snapshot returned by `ScoreClient.inspect()` (#490); its nested
|
|
/// types are reached through it (`snapshot.identity.hasToken`).
|
|
public typealias InspectSnapshot = ScoreTrackerKit.InspectSnapshot
|