@grandlinex/kernel
    Preparing search index...

    Class BaseTableUtils

    Hierarchy (View Summary)

    Index
    PaginationSchema: SKey<SSchemaEl> = ...
    • Creates a new schema element object that combines the default core body parameters with the provided properties.

      Parameters

      • param: { [key: string]: SSchemaEl } | undefined

        The properties to merge into the core body parameters.

      Returns SSchemaElObj

      The merged schema element object.

    • Creates a JSON schema that represents a paginated table response.

      Parameters

      • schema: SSchemaEl

        The schema for each element in the data array.

      Returns SSchemaElObj

      A schema object that validates an object containing the properties:

      • data: an array of items matching the provided schema
      • total: an integer indicating the total number of items
      • page: an integer indicating the current page number
      • maxPage: an integer indicating the maximum number of pages