Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates to OCKHealthKitOutcome #639

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
20 changes: 14 additions & 6 deletions CareKitStore/CareKitStore.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,16 @@
51178DE823AA94D50068BAB1 /* OCKEventStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0339A01F2316FCCA002F784A /* OCKEventStore.swift */; };
51178DE923AA94DA0068BAB1 /* OCKStoreProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7AE85222232F24500AF7C32 /* OCKStoreProtocol.swift */; };
51178DEA23AA94DA0068BAB1 /* OCKStoreProtocol+Synchronous.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7B7AF71226C26C300646A91 /* OCKStoreProtocol+Synchronous.swift */; };
51178DEC23AA94DA0068BAB1 /* OCKObjectCompatible.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7460493223870C100A1B16B /* OCKObjectCompatible.swift */; };
51178DEC23AA94DA0068BAB1 /* OCKVersionedObjectCompatible.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7460493223870C100A1B16B /* OCKVersionedObjectCompatible.swift */; };
51178DED23AA94DA0068BAB1 /* OCKResultClosure.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7AE85252232F24600AF7C32 /* OCKResultClosure.swift */; };
51178DEE23AA94DA0068BAB1 /* OCKStoreError.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7AE853D2232F24600AF7C32 /* OCKStoreError.swift */; };
51178DEF23AA94DA0068BAB1 /* OCKEventAggregator.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7A2E7B322C2C1F900520C37 /* OCKEventAggregator.swift */; };
51178DF023AA94DA0068BAB1 /* OCKAdherenceAggregator.swift in Sources */ = {isa = PBXBuildFile; fileRef = E77140E822C3090200D1BC36 /* OCKAdherenceAggregator.swift */; };
51178DF123AA94DA0068BAB1 /* OCKUtilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03ABAAB723146772001FCACE /* OCKUtilities.swift */; };
5121407D240043E200B035F6 /* TestEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5121407C240043E200B035F6 /* TestEvent.swift */; };
9137A8F727AC7FBF0064DC00 /* OCKCDHealthKitOutcome.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9137A8F627AC7FBF0064DC00 /* OCKCDHealthKitOutcome.swift */; };
9137A8F827AC7FBF0064DC00 /* OCKCDHealthKitOutcome.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9137A8F627AC7FBF0064DC00 /* OCKCDHealthKitOutcome.swift */; };
9137A8F927AC85EB0064DC00 /* OCKHealthKitOutcome.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03E76D1F23D22110003BF691 /* OCKHealthKitOutcome.swift */; };
E7131DC12241FAA80001861B /* OCKTaskQuery.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7131DC02241FAA80001861B /* OCKTaskQuery.swift */; };
E7131DC5224200640001861B /* OCKOutcomeQuery.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7131DC4224200640001861B /* OCKOutcomeQuery.swift */; };
E7131DCB22420A520001861B /* OCKPatientQuery.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7131DCA22420A520001861B /* OCKPatientQuery.swift */; };
Expand All @@ -198,7 +201,7 @@
E726C05422CFAE04001236E2 /* TestStore+Outcomes.swift in Sources */ = {isa = PBXBuildFile; fileRef = E726C05322CFAE04001236E2 /* TestStore+Outcomes.swift */; };
E726C05622CFB825001236E2 /* TestStore+Notes.swift in Sources */ = {isa = PBXBuildFile; fileRef = E726C05522CFB825001236E2 /* TestStore+Notes.swift */; };
E746049022385B8300A1B16B /* TestOutcomeValue.swift in Sources */ = {isa = PBXBuildFile; fileRef = E746048F22385B8300A1B16B /* TestOutcomeValue.swift */; };
E7460494223870C100A1B16B /* OCKObjectCompatible.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7460493223870C100A1B16B /* OCKObjectCompatible.swift */; };
E7460494223870C100A1B16B /* OCKVersionedObjectCompatible.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7460493223870C100A1B16B /* OCKVersionedObjectCompatible.swift */; };
E747EC4822382BBC00775C0D /* OCKOutcomeValue.swift in Sources */ = {isa = PBXBuildFile; fileRef = E747EC4722382BBC00775C0D /* OCKOutcomeValue.swift */; };
E760F75222F8C85A007FCB12 /* OCKBiologicalSex.swift in Sources */ = {isa = PBXBuildFile; fileRef = E760F75122F8C85A007FCB12 /* OCKBiologicalSex.swift */; };
E76FB6092267D89D00F5E1B8 /* OCKAdherenceQuery.swift in Sources */ = {isa = PBXBuildFile; fileRef = E76FB6082267D89D00F5E1B8 /* OCKAdherenceQuery.swift */; };
Expand Down Expand Up @@ -344,6 +347,7 @@
05A6B74D237F4A94009D7D1F /* CareKitStore.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = CareKitStore.xctestplan; sourceTree = "<group>"; };
5121407C240043E200B035F6 /* TestEvent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestEvent.swift; sourceTree = "<group>"; };
515862D423A9C5BA00630AB5 /* CareKitStore.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CareKitStore.framework; sourceTree = BUILT_PRODUCTS_DIR; };
9137A8F627AC7FBF0064DC00 /* OCKCDHealthKitOutcome.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OCKCDHealthKitOutcome.swift; sourceTree = "<group>"; };
E7131DC02241FAA80001861B /* OCKTaskQuery.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OCKTaskQuery.swift; sourceTree = "<group>"; };
E7131DC4224200640001861B /* OCKOutcomeQuery.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OCKOutcomeQuery.swift; sourceTree = "<group>"; };
E7131DCA22420A520001861B /* OCKPatientQuery.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OCKPatientQuery.swift; sourceTree = "<group>"; };
Expand All @@ -356,7 +360,7 @@
E726C05322CFAE04001236E2 /* TestStore+Outcomes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "TestStore+Outcomes.swift"; sourceTree = "<group>"; };
E726C05522CFB825001236E2 /* TestStore+Notes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "TestStore+Notes.swift"; sourceTree = "<group>"; };
E746048F22385B8300A1B16B /* TestOutcomeValue.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestOutcomeValue.swift; sourceTree = "<group>"; };
E7460493223870C100A1B16B /* OCKObjectCompatible.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OCKObjectCompatible.swift; sourceTree = "<group>"; };
E7460493223870C100A1B16B /* OCKVersionedObjectCompatible.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OCKVersionedObjectCompatible.swift; sourceTree = "<group>"; };
E747EC4722382BBC00775C0D /* OCKOutcomeValue.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OCKOutcomeValue.swift; sourceTree = "<group>"; };
E760F75122F8C85A007FCB12 /* OCKBiologicalSex.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OCKBiologicalSex.swift; sourceTree = "<group>"; };
E76FB6082267D89D00F5E1B8 /* OCKAdherenceQuery.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OCKAdherenceQuery.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -681,7 +685,7 @@
03678DEE2343B20B00E27926 /* Events */,
E7AE85222232F24500AF7C32 /* OCKStoreProtocol.swift */,
E7B7AF71226C26C300646A91 /* OCKStoreProtocol+Synchronous.swift */,
E7460493223870C100A1B16B /* OCKObjectCompatible.swift */,
E7460493223870C100A1B16B /* OCKVersionedObjectCompatible.swift */,
);
path = Protocols;
sourceTree = "<group>";
Expand Down Expand Up @@ -742,6 +746,7 @@
0322ED19245752CE0018FCEB /* OCKCDClock.swift */,
0326CE5C25C3903700C2553C /* OCKCDKnowledgeElement.swift */,
03ADE6CA25CDBD5A008507BE /* OCKCDHealthKitTask.swift */,
9137A8F627AC7FBF0064DC00 /* OCKCDHealthKitOutcome.swift */,
03A7841B25DB080E00D93EFB /* OCKCDTag.swift */,
);
path = CoreData;
Expand Down Expand Up @@ -963,12 +968,13 @@
51178DCE23AA94B60068BAB1 /* OCKLabeledValue.swift in Sources */,
51178D9423AA949D0068BAB1 /* OCKStoreCoordinator.swift in Sources */,
51178DD723AA94C50068BAB1 /* OCKCarePlanStore.swift in Sources */,
9137A8F827AC7FBF0064DC00 /* OCKCDHealthKitOutcome.swift in Sources */,
51178DE123AA94CD0068BAB1 /* OCKTaskStoreDelegate.swift in Sources */,
51178DC423AA94B60068BAB1 /* OCKOutcome.swift in Sources */,
51178DD523AA94C50068BAB1 /* OCKAnyCarePlan.swift in Sources */,
51178DD223AA94C10068BAB1 /* OCKAnyPatientStore.swift in Sources */,
51178D9F23AA94AB0068BAB1 /* OCKStore.swift in Sources */,
51178DEC23AA94DA0068BAB1 /* OCKObjectCompatible.swift in Sources */,
51178DEC23AA94DA0068BAB1 /* OCKVersionedObjectCompatible.swift in Sources */,
51178DEE23AA94DA0068BAB1 /* OCKStoreError.swift in Sources */,
51178DD823AA94C50068BAB1 /* OCKCarePlanStoreDelegate.swift in Sources */,
03A7841D25DB080E00D93EFB /* OCKCDTag.swift in Sources */,
Expand Down Expand Up @@ -1001,6 +1007,7 @@
51178DF023AA94DA0068BAB1 /* OCKAdherenceAggregator.swift in Sources */,
51178DA423AA94AB0068BAB1 /* OCKStore+Tasks.swift in Sources */,
51178DA223AA94AB0068BAB1 /* OCKStore+CarePlans.swift in Sources */,
9137A8F927AC85EB0064DC00 /* OCKHealthKitOutcome.swift in Sources */,
51178DB023AA94AB0068BAB1 /* OCKCDPersonName.swift in Sources */,
51178DE323AA94D10068BAB1 /* OCKAnyOutcomeStore.swift in Sources */,
039782A52410403C00D4F905 /* OCKHealthKitLinkage.swift in Sources */,
Expand Down Expand Up @@ -1064,6 +1071,7 @@
E7AE854F2232F24600AF7C32 /* OCKOutcome.swift in Sources */,
E773748B228111BD00F31F94 /* OCKCDContact.swift in Sources */,
03CB6EBF2316F14C0081AA7C /* OCKHealthKitLinkage.swift in Sources */,
9137A8F727AC7FBF0064DC00 /* OCKCDHealthKitOutcome.swift in Sources */,
E7AE85582232F24600AF7C32 /* OCKCDObject.swift in Sources */,
03534C2B2342B95C00BA1C67 /* OCKAnyCarePlanStore.swift in Sources */,
035FE17D23440E8900851723 /* OCKPersistentStoreCoordinator+Events.swift in Sources */,
Expand Down Expand Up @@ -1124,7 +1132,7 @@
E7D671C22281F7380089E4B7 /* OCKStore+Contacts.swift in Sources */,
03678DDA2342BD2D00E27926 /* OCKAnyContactStore.swift in Sources */,
0339A0202316FCCA002F784A /* OCKEventStore.swift in Sources */,
E7460494223870C100A1B16B /* OCKObjectCompatible.swift in Sources */,
E7460494223870C100A1B16B /* OCKVersionedObjectCompatible.swift in Sources */,
03BB28FD25D5C78A004498E0 /* OCKQueryProtocol.swift in Sources */,
03678DE82342C59200E27926 /* OCKLabeledValue.swift in Sources */,
E7A2E7B422C2C1F900520C37 /* OCKEventAggregator.swift in Sources */,
Expand Down
79 changes: 79 additions & 0 deletions CareKitStore/CareKitStore/CoreData/OCKCDHealthKitOutcome.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
//
/*
Copyright (c) 2022, Apple Inc. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

3. Neither the name of the copyright holder(s) nor the names of any contributors
may be used to endorse or promote products derived from this software without
specific prior written permission. No license is granted to the trademarks of
the copyright holders even if such marks are included in this software.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

import CoreData
import Foundation

@objc(OCKCDHealthKitOutcome)
class OCKCDHealthKitOutcome: OCKCDVersionedObject {
@NSManaged var taskOccurrenceIndex: Int64
@NSManaged var task: OCKCDHealthKitTask
@NSManaged var values: Set<OCKCDOutcomeValue>
@NSManaged var startDate: Date
@NSManaged var endDate: Date
@NSManaged var isOwnedByApp: Bool

convenience init(outcome: OCKHealthKitOutcome, context: NSManagedObjectContext) {
self.init(entity: Self.entity(), insertInto: context)
self.copyVersionedValue(value: outcome, context: context)
self.isOwnedByApp = outcome.isOwnedByApp

let task: OCKCDHealthKitTask = try! context.fetchObject(uuid: outcome.taskUUID)
let schedule = OCKSchedule(composing: task.scheduleElements.map { $0.makeValue() })
let event = schedule[outcome.taskOccurrenceIndex]

self.task = task
self.taskOccurrenceIndex = Int64(outcome.taskOccurrenceIndex)
self.startDate = event.start
self.endDate = event.end
self.values = Set(outcome.values.map {
OCKCDOutcomeValue(value: $0, context: context)
})
}

override func makeValue() -> OCKVersionedObjectCompatible {
makeOutcome()
}

func makeOutcome() -> OCKHealthKitOutcome {

var outcome = OCKHealthKitOutcome(
taskUUID: task.uuid,
taskOccurrenceIndex: Int(taskOccurrenceIndex),
values: values.map { $0.makeValue() }
)

outcome.copyVersionedValues(from: self)

return outcome
}
}

35 changes: 35 additions & 0 deletions CareKitStore/CareKitStore/HealthKit/OCKHealthKitOutcome.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

import CoreData
import Foundation
import HealthKit

Expand All @@ -47,6 +48,21 @@ public struct OCKHealthKitOutcome: Codable, Equatable, Identifiable, OCKAnyOutco
public var groupIdentifier: String?
public var notes: [OCKNote]?

// MARK: OCKVersionedObjectCompatible
public var effectiveDate: Date
public internal(set) var deletedDate: Date?
public internal(set) var uuid = UUID()
public internal(set) var nextVersionUUIDs: [UUID] = []
public internal(set) var previousVersionUUIDs: [UUID] = []
public internal(set) var createdDate: Date?
public internal(set) var updatedDate: Date?
public internal(set) var schemaVersion: OCKSemanticVersion?
public var tags: [String]?
public var source: String?
public var userInfo: [String: String]?
public var asset: String?
public var timezone: TimeZone

/// A record of the HealthKit object that this outcome is derived from. Used for targeted deletions.
internal var healthKitUUIDs: Set<UUID>?

Expand All @@ -61,6 +77,8 @@ public struct OCKHealthKitOutcome: Codable, Equatable, Identifiable, OCKAnyOutco
self.taskOccurrenceIndex = taskOccurrenceIndex
self.values = values
self.isOwnedByApp = true
self.effectiveDate = Date()
self.timezone = TimeZone.current
}

internal init(taskUUID: UUID, taskOccurrenceIndex: Int, values: [OCKOutcomeValue], isOwnedByApp: Bool, healthKitUUIDs: Set<UUID>) {
Expand All @@ -69,10 +87,27 @@ public struct OCKHealthKitOutcome: Codable, Equatable, Identifiable, OCKAnyOutco
self.values = values
self.isOwnedByApp = isOwnedByApp
self.healthKitUUIDs = healthKitUUIDs
self.effectiveDate = Date()
self.timezone = TimeZone.current
}

public func belongs(to task: OCKAnyTask) -> Bool {
guard let task = task as? OCKHealthKitTask else { return false }
return task.uuid == taskUUID
}
}

extension OCKHealthKitOutcome: OCKVersionedObjectCompatible {

static func entity() -> NSEntityDescription {
OCKCDHealthKitOutcome.entity()
}

func entity() -> OCKEntity {
.healthKitOutcome(self)
}

func insert(context: NSManagedObjectContext) -> OCKCDVersionedObject {
OCKCDHealthKitOutcome(outcome: self, context: context)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ public extension OCKHealthKitPassthroughStore {
guard outcome.isOwnedByApp
else { throw OCKStoreError.addFailed(reason: "Cannot persist an OCKHealthKitOutcome that is not owned by this app!") }
guard outcome.values.count == 1
else { throw OCKStoreError.addFailed(reason: "OCKHealthKitOutcomes must have exactly 1 value, but got \(outcome.values.count).") }
else { throw OCKStoreError.addFailed(reason: "OCKHealthKitOutcomes must have exactly 1 value, but attempting to add \(outcome.values.count).") }
guard let value = outcome.values.first?.doubleValue
else { throw OCKStoreError.addFailed(reason: "OCKHealthKitOutcome's value must be of type Double, but was not.") }
guard let task = tasks.first(where: { $0.uuid == outcome.taskUUID })
else { throw OCKStoreError.addFailed(reason: "No task could be for outcome") }
else { throw OCKStoreError.addFailed(reason: "No task could be found for outcome") }

let unit = task.healthKitLinkage.unit
let quantity = HKQuantity(unit: unit, doubleValue: value)
Expand Down
4 changes: 1 addition & 3 deletions CareKitStore/CareKitStore/HealthKit/OCKHealthKitTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ public struct OCKHealthKitTask: Codable, Equatable, OCKAnyVersionableTask, OCKAn
public var groupIdentifier: String?
public var tags: [String]?

// MARK: OCKVersionable
// MARK: OCKVersionedObjectCompatible
public var effectiveDate: Date
public internal(set) var deletedDate: Date?
public internal(set) var uuid = UUID()
public internal(set) var nextVersionUUIDs: [UUID] = []
public internal(set) var previousVersionUUIDs: [UUID] = []

// MARK: OCKObjectCompatible
public internal(set) var createdDate: Date?
public internal(set) var updatedDate: Date?
public internal(set) var schemaVersion: OCKSemanticVersion?
Expand Down
18 changes: 8 additions & 10 deletions CareKitStore/CareKitStore/Structs/OCKCarePlan.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,15 @@ public struct OCKCarePlan: Codable, Equatable, Identifiable, OCKAnyCarePlan {
public let id: String
public var title: String

// MARK: OCKVersionable
// MARK: OCKVersionedObjectCompatible
public var effectiveDate: Date
public var deletedDate: Date?
public var uuid = UUID()
public var nextVersionUUIDs: [UUID] = []
public var previousVersionUUIDs: [UUID] = []

// MARK: OCKObjectCompatible
public var createdDate: Date?
public var updatedDate: Date?
public var schemaVersion: OCKSemanticVersion?
public internal(set) var deletedDate: Date?
public internal(set) var uuid = UUID()
public internal(set) var nextVersionUUIDs: [UUID] = []
public internal(set) var previousVersionUUIDs: [UUID] = []
public internal(set) var createdDate: Date?
public internal(set) var updatedDate: Date?
public internal(set) var schemaVersion: OCKSemanticVersion?
public var groupIdentifier: String?
public var tags: [String]?
public var remoteID: String?
Expand Down
18 changes: 8 additions & 10 deletions CareKitStore/CareKitStore/Structs/OCKContact.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,15 @@ public struct OCKContact: Codable, Equatable, Identifiable, OCKAnyContact {
public var role: String?
public var category: OCKContactCategory?

// MARK: OCKVersionable
// MARK: OCKVersionedObjectCompatible
public var effectiveDate: Date
public var deletedDate: Date?
public var uuid = UUID()
public var nextVersionUUIDs: [UUID] = []
public var previousVersionUUIDs: [UUID] = []

// MARK: OCKObjectCompatible
public var createdDate: Date?
public var updatedDate: Date?
public var schemaVersion: OCKSemanticVersion?
public internal(set) var deletedDate: Date?
public internal(set) var uuid = UUID()
public internal(set) var nextVersionUUIDs: [UUID] = []
public internal(set) var previousVersionUUIDs: [UUID] = []
public internal(set) var createdDate: Date?
public internal(set) var updatedDate: Date?
public internal(set) var schemaVersion: OCKSemanticVersion?
public var groupIdentifier: String?
public var tags: [String]?
public var remoteID: String?
Expand Down
Loading