@blendsdk/year-planner-core
    Preparing search index...

    Type Alias CommandOutcome

    CommandOutcome:
        | {
            accepted: true;
            removedItemIds?: string[];
            revision: string;
            updatedItems?: PlannerItem[];
        }
        | { accepted: false; diagnostics: Diagnostic[]; latestRevision?: string }

    The authoritative host response to a command request.

    Type Declaration

    • {
          accepted: true;
          removedItemIds?: string[];
          revision: string;
          updatedItems?: PlannerItem[];
      }
      • accepted: true

        True when the host applied or accepted the command.

      • OptionalremovedItemIds?: string[]

        IDs removed by the command.

      • revision: string

        Host revision token after the change.

      • OptionalupdatedItems?: PlannerItem[]

        Items the host created or changed; ids in removedItemIds are deleted.

    • { accepted: false; diagnostics: Diagnostic[]; latestRevision?: string }
      • accepted: false

        False when the host rejected the command.

      • diagnostics: Diagnostic[]

        Reasons shown to the user and sent to onDiagnostic.

      • OptionallatestRevision?: string

        Host revision token the rejection was based on, when known.