import type * as Square from "../index"; /** * Defines the fields that are included in the response body of * a request to the [SearchEvents](api-endpoint:Events-SearchEvents) endpoint. * * Note: if there are errors processing the request, the events field will not be * present. */ export interface SearchEventsResponse { /** Information on errors encountered during the request. */ errors?: Square.Error_[]; /** The list of [Event](entity:Event)s returned by the search. */ events?: Square.Event[]; /** Contains the metadata of an event. For more information, see [Event](entity:Event). */ metadata?: Square.EventMetadata[]; /** * When a response is truncated, it includes a cursor that you can use in a subsequent request to fetch the next set of events. If empty, this is the final response. * * For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). */ cursor?: string; }