Type Alias BehaviourBeta

Behaviour: {
    edit?: (() => Promise<void>);
    getContent?: (() => Promise<any>);
    getEntities?: ((limit?: number) => Promise<Entity[]>);
    getEntitiesCount?: (() => Promise<number>);
    getEntity?: (() => Promise<Entity>);
    getGraph?: (() => Promise<GraphSpec | undefined>);
    open?: (() => Promise<void>);
}

Type representing a set of behaviors with various methods for entity and graph operations.

Type declaration

  • Optionaledit?: (() => Promise<void>)

    Edits the associated entity or content with the default edit action.

      • (): Promise<void>
      • Returns Promise<void>

        A promise that resolves when the operation is complete.

  • OptionalgetContent?: (() => Promise<any>)

    Gets the content associated with the behavior.

      • (): Promise<any>
      • Returns Promise<any>

        A promise that resolves to the content.

  • OptionalgetEntities?: ((limit?: number) => Promise<Entity[]>)

    Gets a list of entities.

      • (limit?): Promise<Entity[]>
      • Parameters

        • Optionallimit: number

          Optional limit on the number of entities to retrieve.

        Returns Promise<Entity[]>

        A promise that resolves to an array of entities.

  • OptionalgetEntitiesCount?: (() => Promise<number>)

    Gets the count of entities.

      • (): Promise<number>
      • Returns Promise<number>

        A promise that resolves to the number of entities.

  • OptionalgetEntity?: (() => Promise<Entity>)

    Gets a single entity.

      • (): Promise<Entity>
      • Returns Promise<Entity>

        A promise that resolves to an entity.

  • OptionalgetGraph?: (() => Promise<GraphSpec | undefined>)

    Gets the graph specification.

      • (): Promise<GraphSpec | undefined>
      • Returns Promise<GraphSpec | undefined>

        A promise that resolves to the graph specification or undefined if not available.

  • Optionalopen?: (() => Promise<void>)

    Opens the associated entity or content with the default action.

      • (): Promise<void>
      • Returns Promise<void>

        A promise that resolves when the operation is complete.