Creating Plot Twists
    Preparing search index...

    Type Alias PlanOperation

    PlanOperation:
        | {
            type: "updateThread";
            threadId: Uuid;
            threadTitle: string;
            changes: Partial<Pick<ThreadFields, "archived" | "title" | "type">> & {
                priority?: { id: Uuid; title: string };
            };
        }
        | {
            type: "updateLink";
            linkId: Uuid;
            linkTitle: string;
            changes: { threadId?: Uuid; threadTitle?: string };
        }
        | {
            type: "createThread";
            title: string;
            priorityId: Uuid;
            priorityTitle: string;
        }
        | {
            type: "createNote";
            threadId: Uuid;
            threadTitle: string;
            content: string;
        }
        | {
            type: "updatePriority";
            priorityId: Uuid;
            priorityTitle: string;
            changes: Partial<Pick<Priority, "title" | "archived">> & {
                parent?: { id: Uuid; title: string };
            };
        }

    A single operation within a plan submitted for user approval.

    Operations include display metadata (titles) so the app can render a human-readable summary without additional lookups.

    Type Declaration

    • {
          type: "updateThread";
          threadId: Uuid;
          threadTitle: string;
          changes: Partial<Pick<ThreadFields, "archived" | "title" | "type">> & {
              priority?: { id: Uuid; title: string };
          };
      }
      • type: "updateThread"
      • threadId: Uuid
      • threadTitle: string

        Current thread title for display

      • changes: Partial<Pick<ThreadFields, "archived" | "title" | "type">> & {
            priority?: { id: Uuid; title: string };
        }
    • {
          type: "updateLink";
          linkId: Uuid;
          linkTitle: string;
          changes: { threadId?: Uuid; threadTitle?: string };
      }
      • type: "updateLink"
      • linkId: Uuid
      • linkTitle: string

        Current link title for display

      • changes: { threadId?: Uuid; threadTitle?: string }
        • OptionalthreadId?: Uuid

          Move to this thread

        • OptionalthreadTitle?: string
    • { type: "createThread"; title: string; priorityId: Uuid; priorityTitle: string }
      • type: "createThread"
      • title: string
      • priorityId: Uuid
      • priorityTitle: string

        Priority title for display

    • { type: "createNote"; threadId: Uuid; threadTitle: string; content: string }
      • type: "createNote"
      • threadId: Uuid
      • threadTitle: string

        Thread title for display

      • content: string
    • {
          type: "updatePriority";
          priorityId: Uuid;
          priorityTitle: string;
          changes: Partial<Pick<Priority, "title" | "archived">> & {
              parent?: { id: Uuid; title: string };
          };
      }
      • type: "updatePriority"
      • priorityId: Uuid
      • priorityTitle: string

        Current priority title for display

      • changes: Partial<Pick<Priority, "title" | "archived">> & {
            parent?: { id: Uuid; title: string };
        }