Creating Plot Twists
    Preparing search index...

    Type Alias NewPriority

    NewPriority: Pick<Priority, "title"> & Partial<Omit<Priority, "id" | "title">> & (
        { id: Uuid }
        | { key: string }
        | {}
    ) & { parent?: { id: Uuid } | { key: string } }

    Type for creating new priorities.

    Supports multiple creation patterns:

    • Provide a specific UUID for the priority
    • Provide a key for upsert within the user's priorities
    • Omit both to auto-generate a new UUID

    Optionally specify a parent priority by ID or key for hierarchical structures.

    Type Declaration

    • { id: Uuid }
      • id: Uuid

        Unique identifier for the priority, generated by Uuid.Generate(). Specifying an ID allows tools to track and upsert priorities.

    • { key: string }
      • key: string

        Unique key for the priority within the user's priorities. Can be used to upsert without knowing the UUID. For example, "@plot" identifies the Plot priority.

    • {}
    • Optionalparent?: { id: Uuid } | { key: string }

      Add the new priority as the child of another priority