SwiftstructHomeKitEvents

struct HomeKitEvents.EventQuery

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 16

  1. funcstatic fetchOldestDate(database: HomeKitEvents.DatabaseConfiguration, homeIdentifier: Foundation.UUID, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, queryIdentifier: Foundation.UUID, qualityOfService: NSQualityOfService) async throws -> Foundation.Date?
  2. varstatic var logCategory: String { get }
  3. fieldlet configuration: HomeKitEvents.EventQuery.Configuration
  4. funcstart() -> AsyncThrowingStream<HomeKitEvents.SomeEvent, Error>
  5. initinit(features: HomeKitEvents.FeaturesDataSource, homeIdentifier: Foundation.UUID, dateInterval: Foundation.DateInterval, categories: Set<HomeKitEvents.EventCategory>?, accessoryIdentifier: Foundation.UUID?, resultsLimit: Int?, maxRecordsPerQuery: Int?, dateIntervalStartOpen: Bool, dateIntervalEndOpen: Bool, scope: HomeKitEvents.QueryScope, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, qualityOfService: NSQualityOfService, operationGroup: CKOperationGroup?, retainEncodedEvent: Bool) -> HomeKitEvents.EventQuery
  6. initinit(features: HomeKitEvents.FeaturesDataSource, homeIdentifier: Foundation.UUID, dateInterval: Foundation.DateInterval, categories: Set<HomeKitEvents.EventCategory>?, accessoryIdentifier: Foundation.UUID?, resultsLimit: Int?, batchLimit: Int?, firstBatchLimit: Int?, dateIntervalStartOpen: Bool, dateIntervalEndOpen: Bool, scope: HomeKitEvents.QueryScope, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, qualityOfService: NSQualityOfService, operationGroup: CKOperationGroup?, retainEncodedEvent: Bool) -> HomeKitEvents.EventQuery
  7. initinit(features: HomeKitEvents.FeaturesDataSource, database: HomeKitEvents.DatabaseConfiguration, homeIdentifier: Foundation.UUID, dateInterval: Foundation.DateInterval, categories: Set<HomeKitEvents.EventCategory>?, accessoryIdentifier: Foundation.UUID?, resultsLimit: Int?, batchLimit: Int?, firstBatchLimit: Int?, dateIntervalStartOpen: Bool, dateIntervalEndOpen: Bool, scope: HomeKitEvents.QueryScope, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, qualityOfService: NSQualityOfService, retainEncodedEvent: Bool) -> HomeKitEvents.EventQuery
  8. varvar accessoryIdentifier: Foundation.UUID? { get }
  9. varvar categories: Set<HomeKitEvents.EventCategory>? { get }
  10. varvar dateInterval: Foundation.DateInterval { get }
  11. varvar dateIntervalEndOpen: Bool { get }
  12. varvar dateIntervalStartOpen: Bool { get }
  13. varvar homeIdentifier: Foundation.UUID { get }
  14. varvar queryIdentifier: Foundation.UUID { get }
  15. varvar resultsLimit: Int? { get }
  16. varvar scope: HomeKitEvents.QueryScope { get }
struct EventQuery {
    struct Configuration {
        let features: any HomeKitEvents.FeaturesDataSource
        let database: HomeKitEvents.DatabaseConfiguration
        let queryIdentifier: Foundation.UUID
        let homeIdentifier: Foundation.UUID
        let dateInterval: Foundation.DateInterval
        let categories: Swift.Set<HomeKitEvents.EventCategory>?
        let categoriesToMatchAgainstEvents: Swift.Set<HomeKitEvents.EventCategory>?
        let accessoryIdentifier: Foundation.UUID?
        let resultsLimit: Swift.Int?
        let batchLimit: Swift.Int?
        let firstBatchLimit: Swift.Int?
        let dateIntervalStartOpen: Swift.Bool
        let dateIntervalEndOpen: Swift.Bool
        let qualityOfService: __C.NSQualityOfService?
        let metricsSubmitter: any __C.HMMLogEventSubmitting
        let maxTagsPerQuery: Swift.Int
        let encryptionKeyCache: any HomeKitEvents.AsyncCache
        let maxFakeRecordsPerHour: Swift.Int
        let retainEncodedEvent: Swift.Bool
        let targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone
    }
    struct FetchedRecordInfo {
        let name: Foundation.UUID
        let event: HomeKitEvents.SomeEvent
    }
    struct TagPartition {
        let dateInterval: Foundation.DateInterval
        let partitionDateInterval: Foundation.DateInterval
        let tags: [Foundation.Data]
    }
    let configuration: HomeKitEvents.EventQuery.Configuration

    init(features: any HomeKitEvents.FeaturesDataSource, homeIdentifier: Foundation.UUID, dateInterval: Foundation.DateInterval, categories: Swift.Set<HomeKitEvents.EventCategory>?, accessoryIdentifier: Foundation.UUID?, resultsLimit: Swift.Int?, maxRecordsPerQuery: Swift.Int?, dateIntervalStartOpen: Swift.Bool, dateIntervalEndOpen: Swift.Bool, scope: HomeKitEvents.QueryScope, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, qualityOfService: __C.NSQualityOfService, operationGroup: __C.CKOperationGroup?, retainEncodedEvent: Swift.Bool)
    init(features: any HomeKitEvents.FeaturesDataSource, homeIdentifier: Foundation.UUID, dateInterval: Foundation.DateInterval, categories: Swift.Set<HomeKitEvents.EventCategory>?, accessoryIdentifier: Foundation.UUID?, resultsLimit: Swift.Int?, batchLimit: Swift.Int?, firstBatchLimit: Swift.Int?, dateIntervalStartOpen: Swift.Bool, dateIntervalEndOpen: Swift.Bool, scope: HomeKitEvents.QueryScope, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, qualityOfService: __C.NSQualityOfService, operationGroup: __C.CKOperationGroup?, retainEncodedEvent: Swift.Bool)
    init(features: any HomeKitEvents.FeaturesDataSource, database: HomeKitEvents.DatabaseConfiguration, homeIdentifier: Foundation.UUID, dateInterval: Foundation.DateInterval, categories: Swift.Set<HomeKitEvents.EventCategory>?, accessoryIdentifier: Foundation.UUID?, resultsLimit: Swift.Int?, batchLimit: Swift.Int?, firstBatchLimit: Swift.Int?, dateIntervalStartOpen: Swift.Bool, dateIntervalEndOpen: Swift.Bool, scope: HomeKitEvents.QueryScope, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, qualityOfService: __C.NSQualityOfService, retainEncodedEvent: Swift.Bool)

    var accessoryIdentifier: Foundation.UUID? {
        get
    }
    var categories: Swift.Set<HomeKitEvents.EventCategory>? {
        get
    }
    var dateInterval: Foundation.DateInterval {
        get
    }
    var dateIntervalEndOpen: Swift.Bool {
        get
    }
    var dateIntervalStartOpen: Swift.Bool {
        get
    }
    var homeIdentifier: Foundation.UUID {
        get
    }
    var queryIdentifier: Foundation.UUID {
        get
    }
    var resultsLimit: Swift.Int? {
        get
    }
    var scope: HomeKitEvents.QueryScope {
        get
    }

    func start() -> Swift.AsyncThrowingStream<HomeKitEvents.SomeEvent, any Swift.Error>

    static var logCategory: Swift.String {
        get
    }

    static func fetchOldestDate(database: HomeKitEvents.DatabaseConfiguration, homeIdentifier: Foundation.UUID, targetCloudKitZone: HomeKitEvents.Configuration.TargetCloudKitZone, queryIdentifier: Foundation.UUID, qualityOfService: __C.NSQualityOfService) async throws -> Foundation.Date?
}