Constructors

Properties

columns: { [key: string]: null | string }
counters: { [key: string]: number }
directives: { limit: number; name: string; offset: number }[]
filters: {
    [key: string]: {
        action: string;
        attr: string;
        colId: string;
        value: any;
    };
}
name: null | string

Methods

  • Delete filter.

    Parameters

    • name: string

      The name of the filter.

    Returns void

  • Return true if a filter exists in filters object.

    Parameters

    • name: string

      The name of the filter.

    Returns boolean

    boolean

  • Format Metadatas according to server expectation.

    Returns {
        columns: { [key: string]: null | string };
        directives: { limit: number; name: string; offset: number }[];
        filters: { action: string; attr: string; colId: string; value: any }[];
    }

    Object

  • Get a counter by its name.

    Parameters

    • counter: string

      The name of the counter.

    Returns number

    The counter value.

  • Getter.

    Returns { [key: string]: number }

    The counters.

  • Getter.

    Parameters

    • name: string

      The name of the filter.

    Returns { action: string; attr: string; colId: string; value: any }

    The filter.

  • Get action from filter.

    Parameters

    • name: string

      The name of the filter.

    Returns string

    The filter action.

  • Getter.

    Returns { [key: string]: { action: string; attr: string; colId: string; value: any } }

    The filters.

  • Get value from filter.

    Parameters

    • name: string

      The name of the filter.

    Returns any

    The filter value.

  • HasStoredFilterEqualsTo. Compare given filters with this.filters.

    Parameters

    • filters: { [key: string]: { action: string; attr: string; colId: string; value: any } }

      The filters to compare.

    Returns boolean

    boolean - Send false if there are differences.

  • Return true if directive limit exists.

    Returns boolean

    boolean

  • If this metadata has a name it can be stored.

    Returns boolean

    boolean

  • Setter. Columns will be used to format data output of query.

    Parameters

    • columns: { [key: string]: null | string }

      The columns.

    Returns this

    this

  • Setter.

    Parameters

    • counters: { [key: string]: number }

      The counters.

    Returns this

    this

  • Setter.

    Parameters

    • directives: { limit: number; name: string; offset: number }[]

      The directives.

    Returns this

    this

  • Parameters

    • name: string

      The name of the filter.

    • value: string | number

      The value of the filter.

    • action: string = "equals"

      The action of the filter, default is "equals".

    Returns this

  • Setter.

    Parameters

    • filters: { [key: string]: { action: string; attr: string; colId: string; value: any } }

      The filters.

    Returns this

    this

  • Parameters

    • filters: { action: string; attr: string; colId: string; value: any }[]

      An array of filters.

    Returns { [key: string]: { action: string; attr: string; colId: string; value: any } }

    The filters object.

  • Parameters

    • offset: number

      The offset for the limit directive.

    • limit: number

      The limit for the limit directive.

    Returns void

  • Setter.

    Parameters

    • name: string

      The name.

    Returns this

    this