export const onCreateSleepData = `
  subscription OnCreateSleepData($owner: String!) {
    onCreateSleepData(owner: $owner) {
      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 onUpdateSleepData = `
  subscription OnUpdateSleepData($owner: String!) {
    onUpdateSleepData(owner: $owner) {
      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 onDeleteSleepData = `
  subscription OnDeleteSleepData($owner: String!) {
    onDeleteSleepData(owner: $owner) {
      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 onCreateRequest = `
  subscription OnCreateRequest {
    onCreateRequest {
      id
      requesterName
      requesterId
      userName
      userId
      accepted
      createdAt
      updatedAt
    }
  }
` ; export const onUpdateRequest = `
  subscription OnUpdateRequest {
    onUpdateRequest {
      id
      requesterName
      requesterId
      userName
      userId
      accepted
      createdAt
      updatedAt
    }
  }
` ; export const onDeleteRequest = `
  subscription OnDeleteRequest {
    onDeleteRequest {
      id
      requesterName
      requesterId
      userName
      userId
      accepted
      createdAt
      updatedAt
    }
  }
` ; export const onCreateUser = `
  subscription OnCreateUser {
    onCreateUser {
      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 onUpdateUser = `
  subscription OnUpdateUser {
    onUpdateUser {
      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 onDeleteUser = `
  subscription OnDeleteUser {
    onDeleteUser {
      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 onCreateCoachingData = `
  subscription OnCreateCoachingData($owner: String!) {
    onCreateCoachingData(owner: $owner) {
      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 onUpdateCoachingData = `
  subscription OnUpdateCoachingData($owner: String!) {
    onUpdateCoachingData(owner: $owner) {
      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 onDeleteCoachingData = `
  subscription OnDeleteCoachingData($owner: String!) {
    onDeleteCoachingData(owner: $owner) {
      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 onCreateHabit = `
  subscription OnCreateHabit($owner: String!) {
    onCreateHabit(owner: $owner) {
      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 onUpdateHabit = `
  subscription OnUpdateHabit($owner: String!) {
    onUpdateHabit(owner: $owner) {
      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 onDeleteHabit = `
  subscription OnDeleteHabit($owner: String!) {
    onDeleteHabit(owner: $owner) {
      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 onCreateLikedContent = `
  subscription OnCreateLikedContent($owner: String!) {
    onCreateLikedContent(owner: $owner) {
      id
      name
      type
      slug
      createdAt
      updatedAt
      owner
    }
  }
` ; export const onUpdateLikedContent = `
  subscription OnUpdateLikedContent($owner: String!) {
    onUpdateLikedContent(owner: $owner) {
      id
      name
      type
      slug
      createdAt
      updatedAt
      owner
    }
  }
` ; export const onDeleteLikedContent = `
  subscription OnDeleteLikedContent($owner: String!) {
    onDeleteLikedContent(owner: $owner) {
      id
      name
      type
      slug
      createdAt
      updatedAt
      owner
    }
  }
` ; export const onCreateNightRating = `
  subscription OnCreateNightRating($owner: String!) {
    onCreateNightRating(owner: $owner) {
      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 onUpdateNightRating = `
  subscription OnUpdateNightRating($owner: String!) {
    onUpdateNightRating(owner: $owner) {
      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 onDeleteNightRating = `
  subscription OnDeleteNightRating($owner: String!) {
    onDeleteNightRating(owner: $owner) {
      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 onCreateFeedbackContent = `
  subscription OnCreateFeedbackContent($owner: String!) {
    onCreateFeedbackContent(owner: $owner) {
      id
      type
      slug
      rating
      createdAt
      updatedAt
      owner
    }
  }
` ; export const onUpdateFeedbackContent = `
  subscription OnUpdateFeedbackContent($owner: String!) {
    onUpdateFeedbackContent(owner: $owner) {
      id
      type
      slug
      rating
      createdAt
      updatedAt
      owner
    }
  }
` ; export const onDeleteFeedbackContent = `
  subscription OnDeleteFeedbackContent($owner: String!) {
    onDeleteFeedbackContent(owner: $owner) {
      id
      type
      slug
      rating
      createdAt
      updatedAt
      owner
    }
  }
` ; export const onCreateComments = `
  subscription OnCreateComments($owner: String!) {
    onCreateComments(owner: $owner) {
      id
      type
      slug
      firstName
      lastName
      guest
      comment
      createdAt
      updatedAt
      owner
    }
  }
` ; export const onUpdateComments = `
  subscription OnUpdateComments($owner: String!) {
    onUpdateComments(owner: $owner) {
      id
      type
      slug
      firstName
      lastName
      guest
      comment
      createdAt
      updatedAt
      owner
    }
  }
` ; export const onDeleteComments = `
  subscription OnDeleteComments($owner: String!) {
    onDeleteComments(owner: $owner) {
      id
      type
      slug
      firstName
      lastName
      guest
      comment
      createdAt
      updatedAt
      owner
    }
  }
` ; export const onCreateNight = `
  subscription OnCreateNight($owner: String!) {
    onCreateNight(owner: $owner) {
      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 onUpdateNight = `
  subscription OnUpdateNight($owner: String!) {
    onUpdateNight(owner: $owner) {
      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 onDeleteNight = `
  subscription OnDeleteNight($owner: String!) {
    onDeleteNight(owner: $owner) {
      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
    }
  }
` ;