Websites v4 docs v5.2.5
    Preparing search index...

    Hierarchy

    Index

    Properties

    pagination: Pagination | undefined
    serializer: (model: any) => any

    serializer is a pure function that takes a model instance and returns a plain object that describes how to convert the model to JSON

    Accessors

    Methods

    • Retrieves a value from raw API data. Prioritises DBAPI data if available

      Parameters

      • key: string

      Returns any

    • Special method to define behaviour of JSON.stringify() on model instance

      Returns any

    • Parameters

      • params: {
            distance?: number;
            lat?: number;
            lng?: number;
            page?: number;
            pageSize?: number;
        }

      Returns Promise<
          | {
              errors: { message: string }[]
              | null;
              pagination: null;
              results: never[];
          }
          | { errors: null; pagination: Pagination; results: Location[] },
      >

    • Parameters

      • __namedParameters: { countySlug: string; locationSlug: string }

      Returns Promise<{ errors: ModelError[] | null; result: Location | null }>

    • Parameters

      • params: { page?: number; pageSize?: number; polygon: string }

      Returns Promise<
          | { errors: { message: string }[]
          | null; results: never[] }
          | { errors: null; results: Location[] },
      >