export const getSleepData = `
  query GetSleepData($id: ID!) {
    getSleepData(id: $id) {
      id
      userId
      user {
        connectionId
        id
        email
        nickname
        darkMode
        intercomId
        activeCoaching {
          id
          userId
          stage
          activeWeek
          started
          ended
          lessons
          createdAt
          updatedAt
          owner
        }
        sleepPoints {
          efficiency
          duration
          socialJetLag
          timing
        }
        createdAt
        updatedAt
      }
      date
      rating
      night {
        value
        sourceName
        sourceId
        startDate
        endDate
      }
      createdAt
      updatedAt
      owner
    }
  }
` ; export const listSleepDatas = `
  query ListSleepDatas(
    $filter: ModelSleepDataFilterInput
    $limit: Int
    $nextToken: String
  ) {
    listSleepDatas(filter: $filter, limit: $limit, nextToken: $nextToken) {
      items {
        id
        userId
        user {
          connectionId
          id
          email
          nickname
          darkMode
          intercomId
          createdAt
          updatedAt
        }
        date
        rating
        night {
          value
          sourceName
          sourceId
          startDate
          endDate
        }
        createdAt
        updatedAt
        owner
      }
      nextToken
    }
  }
` ; export const getRequest = `
  query GetRequest($id: ID!) {
    getRequest(id: $id) {
      id
      requesterName
      requesterId
      userName
      userId
      accepted
      createdAt
      updatedAt
    }
  }
` ; export const listRequests = `
  query ListRequests(
    $filter: ModelRequestFilterInput
    $limit: Int
    $nextToken: String
  ) {
    listRequests(filter: $filter, limit: $limit, nextToken: $nextToken) {
      items {
        id
        requesterName
        requesterId
        userName
        userId
        accepted
        createdAt
        updatedAt
      }
      nextToken
    }
  }
` ; export const getUser = `
  query GetUser($id: ID!) {
    getUser(id: $id) {
      connectionId
      id
      email
      nickname
      darkMode
      intercomId
      activeCoaching {
        id
        userId
        user {
          connectionId
          id
          email
          nickname
          darkMode
          intercomId
          createdAt
          updatedAt
        }
        stage
        active {
          connectionId
          id
          email
          nickname
          darkMode
          intercomId
          createdAt
          updatedAt
        }
        activeWeek
        started
        ended
        weeks {
          started
          ended
          locked
          slug
        }
        lessons
        createdAt
        updatedAt
        owner
      }
      sleepPoints {
        efficiency
        duration
        socialJetLag
        timing
      }
      createdAt
      updatedAt
    }
  }
` ; export const listUsers = `
  query ListUsers(
    $filter: ModelUserFilterInput
    $limit: Int
    $nextToken: String
  ) {
    listUsers(filter: $filter, limit: $limit, nextToken: $nextToken) {
      items {
        connectionId
        id
        email
        nickname
        darkMode
        intercomId
        activeCoaching {
          id
          userId
          stage
          activeWeek
          started
          ended
          lessons
          createdAt
          updatedAt
          owner
        }
        sleepPoints {
          efficiency
          duration
          socialJetLag
          timing
        }
        createdAt
        updatedAt
      }
      nextToken
    }
  }
` ; export const getCoachingData = `
  query GetCoachingData($id: ID!) {
    getCoachingData(id: $id) {
      id
      userId
      user {
        connectionId
        id
        email
        nickname
        darkMode
        intercomId
        activeCoaching {
          id
          userId
          stage
          activeWeek
          started
          ended
          lessons
          createdAt
          updatedAt
          owner
        }
        sleepPoints {
          efficiency
          duration
          socialJetLag
          timing
        }
        createdAt
        updatedAt
      }
      stage
      active {
        connectionId
        id
        email
        nickname
        darkMode
        intercomId
        activeCoaching {
          id
          userId
          stage
          activeWeek
          started
          ended
          lessons
          createdAt
          updatedAt
          owner
        }
        sleepPoints {
          efficiency
          duration
          socialJetLag
          timing
        }
        createdAt
        updatedAt
      }
      activeWeek
      started
      ended
      weeks {
        started
        ended
        locked
        slug
      }
      lessons
      createdAt
      updatedAt
      owner
    }
  }
` ; export const listCoachingDatas = `
  query ListCoachingDatas(
    $filter: ModelCoachingDataFilterInput
    $limit: Int
    $nextToken: String
  ) {
    listCoachingDatas(filter: $filter, limit: $limit, nextToken: $nextToken) {
      items {
        id
        userId
        user {
          connectionId
          id
          email
          nickname
          darkMode
          intercomId
          createdAt
          updatedAt
        }
        stage
        active {
          connectionId
          id
          email
          nickname
          darkMode
          intercomId
          createdAt
          updatedAt
        }
        activeWeek
        started
        ended
        weeks {
          started
          ended
          locked
          slug
        }
        lessons
        createdAt
        updatedAt
        owner
      }
      nextToken
    }
  }
` ; export const getHabit = `
  query GetHabit($id: ID!) {
    getHabit(id: $id) {
      id
      userId
      user {
        connectionId
        id
        email
        nickname
        darkMode
        intercomId
        activeCoaching {
          id
          userId
          stage
          activeWeek
          started
          ended
          lessons
          createdAt
          updatedAt
          owner
        }
        sleepPoints {
          efficiency
          duration
          socialJetLag
          timing
        }
        createdAt
        updatedAt
      }
      dayStreak
      longestDayStreak
      latestCompletedDate
      title
      description
      date
      days {
        key
        value
      }
      archived
      period
      createdAt
      updatedAt
      owner
    }
  }
` ; export const listHabits = `
  query ListHabits(
    $filter: ModelHabitFilterInput
    $limit: Int
    $nextToken: String
  ) {
    listHabits(filter: $filter, limit: $limit, nextToken: $nextToken) {
      items {
        id
        userId
        user {
          connectionId
          id
          email
          nickname
          darkMode
          intercomId
          createdAt
          updatedAt
        }
        dayStreak
        longestDayStreak
        latestCompletedDate
        title
        description
        date
        days {
          key
          value
        }
        archived
        period
        createdAt
        updatedAt
        owner
      }
      nextToken
    }
  }
` ; export const getLikedContent = `
  query GetLikedContent($id: ID!) {
    getLikedContent(id: $id) {
      id
      name
      type
      slug
      createdAt
      updatedAt
      owner
    }
  }
` ; export const listLikedContents = `
  query ListLikedContents(
    $filter: ModelLikedContentFilterInput
    $limit: Int
    $nextToken: String
  ) {
    listLikedContents(filter: $filter, limit: $limit, nextToken: $nextToken) {
      items {
        id
        name
        type
        slug
        createdAt
        updatedAt
        owner
      }
      nextToken
    }
  }
` ; export const getNightRating = `
  query GetNightRating($id: ID!) {
    getNightRating(id: $id) {
      id
      userId
      user {
        connectionId
        id
        email
        nickname
        darkMode
        intercomId
        activeCoaching {
          id
          userId
          stage
          activeWeek
          started
          ended
          lessons
          createdAt
          updatedAt
          owner
        }
        sleepPoints {
          efficiency
          duration
          socialJetLag
          timing
        }
        createdAt
        updatedAt
      }
      rating
      date
      createdAt
      updatedAt
      owner
    }
  }
` ; export const listNightRatings = `
  query ListNightRatings(
    $filter: ModelNightRatingFilterInput
    $limit: Int
    $nextToken: String
  ) {
    listNightRatings(filter: $filter, limit: $limit, nextToken: $nextToken) {
      items {
        id
        userId
        user {
          connectionId
          id
          email
          nickname
          darkMode
          intercomId
          createdAt
          updatedAt
        }
        rating
        date
        createdAt
        updatedAt
        owner
      }
      nextToken
    }
  }
` ; export const getFeedbackContent = `
  query GetFeedbackContent($id: ID!) {
    getFeedbackContent(id: $id) {
      id
      type
      slug
      rating
      createdAt
      updatedAt
      owner
    }
  }
` ; export const listFeedbackContents = `
  query ListFeedbackContents(
    $filter: ModelFeedbackContentFilterInput
    $limit: Int
    $nextToken: String
  ) {
    listFeedbackContents(
      filter: $filter
      limit: $limit
      nextToken: $nextToken
    ) {
      items {
        id
        type
        slug
        rating
        createdAt
        updatedAt
        owner
      }
      nextToken
    }
  }
` ; export const getComments = `
  query GetComments($id: ID!) {
    getComments(id: $id) {
      id
      type
      slug
      firstName
      lastName
      guest
      comment
      createdAt
      updatedAt
      owner
    }
  }
` ; export const listCommentss = `
  query ListCommentss(
    $filter: ModelCommentsFilterInput
    $limit: Int
    $nextToken: String
  ) {
    listCommentss(filter: $filter, limit: $limit, nextToken: $nextToken) {
      items {
        id
        type
        slug
        firstName
        lastName
        guest
        comment
        createdAt
        updatedAt
        owner
      }
      nextToken
    }
  }
` ; export const userByConnectionId = `
  query UserByConnectionId(
    $connectionId: String
    $sortDirection: ModelSortDirection
    $filter: ModelUserFilterInput
    $limit: Int
    $nextToken: String
  ) {
    userByConnectionId(
      connectionId: $connectionId
      sortDirection: $sortDirection
      filter: $filter
      limit: $limit
      nextToken: $nextToken
    ) {
      items {
        connectionId
        id
        email
        nickname
        darkMode
        intercomId
        activeCoaching {
          id
          userId
          stage
          activeWeek
          started
          ended
          lessons
          createdAt
          updatedAt
          owner
        }
        sleepPoints {
          efficiency
          duration
          socialJetLag
          timing
        }
        createdAt
        updatedAt
      }
      nextToken
    }
  }
` ; export const coachingByUser = `
  query CoachingByUser(
    $userId: ID
    $sortDirection: ModelSortDirection
    $filter: ModelCoachingDataFilterInput
    $limit: Int
    $nextToken: String
  ) {
    coachingByUser(
      userId: $userId
      sortDirection: $sortDirection
      filter: $filter
      limit: $limit
      nextToken: $nextToken
    ) {
      items {
        id
        userId
        user {
          connectionId
          id
          email
          nickname
          darkMode
          intercomId
          createdAt
          updatedAt
        }
        stage
        active {
          connectionId
          id
          email
          nickname
          darkMode
          intercomId
          createdAt
          updatedAt
        }
        activeWeek
        started
        ended
        weeks {
          started
          ended
          locked
          slug
        }
        lessons
        createdAt
        updatedAt
        owner
      }
      nextToken
    }
  }
` ; export const likedContentBySlug = `
  query LikedContentBySlug(
    $slug: String
    $id: ModelIDKeyConditionInput
    $sortDirection: ModelSortDirection
    $filter: ModelLikedContentFilterInput
    $limit: Int
    $nextToken: String
  ) {
    likedContentBySlug(
      slug: $slug
      id: $id
      sortDirection: $sortDirection
      filter: $filter
      limit: $limit
      nextToken: $nextToken
    ) {
      items {
        id
        name
        type
        slug
        createdAt
        updatedAt
        owner
      }
      nextToken
    }
  }
` ; export const feedbackContentBySlug = `
  query FeedbackContentBySlug(
    $slug: String
    $id: ModelStringKeyConditionInput
    $sortDirection: ModelSortDirection
    $filter: ModelFeedbackContentFilterInput
    $limit: Int
    $nextToken: String
  ) {
    feedbackContentBySlug(
      slug: $slug
      id: $id
      sortDirection: $sortDirection
      filter: $filter
      limit: $limit
      nextToken: $nextToken
    ) {
      items {
        id
        type
        slug
        rating
        createdAt
        updatedAt
        owner
      }
      nextToken
    }
  }
` ; export const commentsBySlug = `
  query CommentsBySlug(
    $slug: String
    $id: ModelStringKeyConditionInput
    $sortDirection: ModelSortDirection
    $filter: ModelCommentsFilterInput
    $limit: Int
    $nextToken: String
  ) {
    commentsBySlug(
      slug: $slug
      id: $id
      sortDirection: $sortDirection
      filter: $filter
      limit: $limit
      nextToken: $nextToken
    ) {
      items {
        id
        type
        slug
        firstName
        lastName
        guest
        comment
        createdAt
        updatedAt
        owner
      }
      nextToken
    }
  }
` ; export const getNight = `
  query GetNight($id: ID!) {
    getNight(id: $id) {
      id
      userId
      user {
        connectionId
        id
        email
        nickname
        darkMode
        intercomId
        activeCoaching {
          id
          userId
          stage
          activeWeek
          started
          ended
          lessons
          createdAt
          updatedAt
          owner
        }
        sleepPoints {
          efficiency
          duration
          socialJetLag
          timing
        }
        createdAt
        updatedAt
      }
      sourceId
      sourceName
      value
      startDate
      endDate
      totalDuration
      createdAt
      updatedAt
      owner
    }
  }
` ; export const listNights = `
  query ListNights(
    $filter: ModelNightFilterInput
    $limit: Int
    $nextToken: String
  ) {
    listNights(filter: $filter, limit: $limit, nextToken: $nextToken) {
      items {
        id
        userId
        user {
          connectionId
          id
          email
          nickname
          darkMode
          intercomId
          createdAt
          updatedAt
        }
        sourceId
        sourceName
        value
        startDate
        endDate
        totalDuration
        createdAt
        updatedAt
        owner
      }
      nextToken
    }
  }
` ;