Skip to content
On this page

Operations

Some simple autogenerated client side operations are included below. Each operation matches a query found in the GraphQL Schema.

ts
/* tslint:disable */
/* eslint-disable */
// this is an auto generated file. This will be overwritten

export const countries = /* GraphQL */ `
  query Countries($input: CountriesInput) {
    countries(input: $input) {
      data {
        iso
      }
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      limit
      nextToken
      previousToken
    }
  }
`;
export const country = /* GraphQL */ `
  query Country($input: CountryInput) {
    country(input: $input) {
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      iso
      name {
        content
        iso
      }
    }
  }
`;
export const discipline = /* GraphQL */ `
  query Discipline($input: DisciplineInput) {
    discipline(input: $input) {
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      id
      medias {
        limit
        nextToken
        previousToken
      }
      name {
        content
        iso
      }
    }
  }
`;
export const disciplines = /* GraphQL */ `
  query Disciplines($input: DisciplinesInput) {
    disciplines(input: $input) {
      data {
        id
      }
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      limit
      nextToken
      previousToken
    }
  }
`;
export const event = /* GraphQL */ `
  query Event($input: EventInput) {
    event(input: $input) {
      attendance
      disciplines {
        limit
        nextToken
        previousToken
      }
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      eventCollections {
        limit
        nextToken
        previousToken
      }
      eventDuration
      eventEnd
      eventStart
      id
      medias {
        limit
        nextToken
        previousToken
      }
      metaDatas {
        limit
        nextToken
        previousToken
      }
      name {
        content
        iso
      }
      organization {
        id
      }
      primaryVenue {
        id
      }
      registrationEnd
      registrationStart
      segments {
        limit
        nextToken
        previousToken
      }
      state
      status
      url
      venues {
        id
      }
    }
  }
`;
export const eventCollection = /* GraphQL */ `
  query EventCollection($input: EventCollectionInput) {
    eventCollection(input: $input) {
      countries
      disciplineInclude {
        id
      }
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      eventEnd
      eventEndDuration
      eventSearch {
        eventEnd
        eventStart
        eventStateExclude
        eventStatusExclude
        geoLocate
        limit
        locales
      }
      eventStart
      eventStartDuration
      eventStateExclude
      eventStatusExclude
      events {
        limit
        nextToken
        previousToken
      }
      geoLocate
      geoPoint {
        lat
        lon
        radius
        unit
      }
      id
      name {
        content
        iso
      }
      organizationInclude {
        id
      }
      title {
        content
        iso
      }
    }
  }
`;
export const eventCollections = /* GraphQL */ `
  query EventCollections($input: EventCollectionsInput) {
    eventCollections(input: $input) {
      data {
        countries
        eventEnd
        eventEndDuration
        eventStart
        eventStartDuration
        eventStateExclude
        eventStatusExclude
        geoLocate
        id
      }
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      limit
      nextToken
      previousToken
    }
  }
`;
export const events = /* GraphQL */ `
  query Events($input: EventSearchInput) {
    events(input: $input) {
      data {
        attendance
        eventDuration
        eventEnd
        eventStart
        id
        registrationEnd
        registrationStart
        state
        status
        url
      }
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      eventSearch {
        eventEnd
        eventStart
        eventStateExclude
        eventStatusExclude
        geoLocate
        limit
        locales
      }
      limit
      nextToken
      previousToken
    }
  }
`;
export const geoLocation = /* GraphQL */ `
  query GeoLocation($input: GeoPointInput) {
    geoLocation(input: $input) {
      city {
        content
        iso
      }
      country {
        iso
      }
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      geoPoint {
        lat
        lon
        radius
        unit
      }
      metroCode
      postalCode
      regionCode
      regionName {
        content
        iso
      }
      timeZone
      utcOffset
    }
  }
`;
export const organization = /* GraphQL */ `
  query Organization($input: OrganizationInput) {
    organization(input: $input) {
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      id
      medias {
        limit
        nextToken
        previousToken
      }
      name {
        content
        iso
      }
    }
  }
`;
export const organizations = /* GraphQL */ `
  query Organizations($input: OrganizationsInput) {
    organizations(input: $input) {
      data {
        id
      }
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      limit
      nextToken
      previousToken
    }
  }
`;
export const venue = /* GraphQL */ `
  query Venue($input: VenueInput) {
    venue(input: $input) {
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      geoLocation {
        metroCode
        postalCode
        regionCode
        timeZone
        utcOffset
      }
      id
      medias {
        limit
        nextToken
        previousToken
      }
      name {
        content
        iso
      }
    }
  }
`;
export const venues = /* GraphQL */ `
  query Venues($input: VenuesInput) {
    venues(input: $input) {
      data {
        id
      }
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      limit
      nextToken
      previousToken
    }
  }
`;
export const widget = /* GraphQL */ `
  query Widget($input: WidgetInput) {
    widget(input: $input) {
      content {
        key
      }
      defaultEventCollection {
        countries
        eventEnd
        eventEndDuration
        eventStart
        eventStartDuration
        eventStateExclude
        eventStatusExclude
        geoLocate
        id
      }
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      eventCollections {
        limit
        nextToken
        previousToken
      }
      eventSearch {
        eventEnd
        eventStart
        eventStateExclude
        eventStatusExclude
        geoLocate
        limit
        locales
      }
      events {
        limit
        nextToken
        previousToken
      }
      geoLocation {
        metroCode
        postalCode
        regionCode
        timeZone
        utcOffset
      }
      id
    }
  }
`;
export const widgets = /* GraphQL */ `
  query Widgets($input: WidgetsInput) {
    widgets(input: $input) {
      data {
        id
      }
      errors {
        errorCode
        errorDetail
        errorMessage
      }
      limit
      nextToken
      previousToken
    }
  }
`;