Hierarchy

Methods

  • Delete the specified limeobject

    Parameters

    • limetype: string

      name of the limetype of the limeobject

    • id: number

      the id of the limeobject

    Returns Promise<void>

  • Beta

    Get an already loaded LimeObject

    Returns

    the LimeObject if it is loaded, otherwise undefined

    Parameters

    • limetype: string

      name of the limetype

    • id: number

      the id of the object

    Returns LimeObject

  • Beta

    Get all loaded LimeObjects of a specific limetype

    Returns

    list of loaded LimeObjects

    Parameters

    • limetype: string

      name of the limetype

    Returns LimeObject[]

  • Get a schema that is already loaded for the limetype.

    Type Parameters

    • TSchemaType extends Record<string, any> = object

    Parameters

    • limetype: string

      name of the limetype of the owning limeobject

    Returns TSchemaType

  • Load the specified limeobject into the state

    Parameters

    • limetype: string
    • id: number
    • Optional options: Pick<LoadOptions, "properties">

    Returns void

  • Load objects of the specified limetype into the state

    Returns

    list of objects together with total count of objects

    Parameters

    • limetype: string

      name of the limetype

    • Optional options: LoadOptions

      options about the objects to load

    Returns Promise<ObjectResponse>

  • Load related objects into the state

    Returns

    list of related objects together with total count of objects

    Parameters

    • limetype: string

      name of the limetype of the owning limeobject

    • id: number

      the id of the owning limeobject

    • property: string

      name of the property that contain the relations

    • Optional options: LoadOptions

      options about the objects to load

    Returns Promise<ObjectResponse>

  • Loads a schema for the limetype.

    Type Parameters

    • TSchemaType extends Record<string, any> = object

    Parameters

    • limetype: string

      name of the limetype of the owning limeobject

    Returns Promise<TSchemaType>

  • Subscribe to state changes

    Returns

    unsubscribe callback

    Parameters

    • callback: ((...args: unknown[]) => void)

      function to call when subscription updates

        • (...args: unknown[]): void
        • Parameters

          • Rest ...args: unknown[]

          Returns void

    • Optional options: StateOptions

      options for the state selector

    Returns (() => void)

      • (): void
      • Subscribe to state changes

        Returns

        unsubscribe callback

        Returns void