Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 committed Jun 29, 2024
1 parent 260e1c7 commit 25110ad
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions Sources/CareKitEssentials/Cards/Shared/CareKitEssentialView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,29 +46,6 @@ public protocol CareKitEssentialView: View {
with taskIDs: [String],
on date: Date
) -> OCKEventQuery

/// Append an `OCKOutcomeValue` to an event's `OCKOutcome`.
/// - Parameters:
/// - values: An array of `OCKOutcomeValue`'s to append.
/// - Throws: An error if the outcome values cannot be set.
/// - Note: Appends occur if an`OCKOutcome` currently exists for the event.
/// Otherwise a new `OCKOutcome` is created with the respective outcome values.
func appendOutcomeValues(
_ values: [OCKOutcomeValue],
event: OCKAnyEvent,
store: OCKAnyStoreProtocol
) async throws

/// Set/Replace the `OCKOutcomeValue`'s of an event.
/// - Parameters:
/// - values: An array of `OCKOutcomeValue`'s to save.
/// - Throws: An error if the outcome values cannot be set.
/// - Note: Setting `values` to an empty array will delete the current `OCKOutcome` if it currently exists.
func saveOutcomeValues(
_ values: [OCKOutcomeValue],
event: OCKAnyEvent,
store: OCKAnyStoreProtocol
) async throws
}

public extension CareKitEssentialView {
Expand Down Expand Up @@ -113,6 +90,12 @@ public extension CareKitEssentialView {
_ = try await careStore.addAnyOutcome(outcome)
}

/// Append an `OCKOutcomeValue` to an event's `OCKOutcome`.
/// - Parameters:
/// - values: An array of `OCKOutcomeValue`'s to append.
/// - Throws: An error if the outcome values cannot be set.
/// - Note: Appends occur if an`OCKOutcome` currently exists for the event.
/// Otherwise a new `OCKOutcome` is created with the respective outcome values.
func appendOutcomeValues(
_ values: [OCKOutcomeValue],
event: OCKAnyEvent,
Expand All @@ -134,6 +117,11 @@ public extension CareKitEssentialView {
return
}

/// Set/Replace the `OCKOutcomeValue`'s of an event.
/// - Parameters:
/// - values: An array of `OCKOutcomeValue`'s to save.
/// - Throws: An error if the outcome values cannot be set.
/// - Note: Setting `values` to an empty array will delete the current `OCKOutcome` if it currently exists.
func saveOutcomeValues(
_ values: [OCKOutcomeValue],
event: OCKAnyEvent,
Expand Down

0 comments on commit 25110ad

Please sign in to comment.