{"size": 2553, "ext": "js", "max_stars_repo_path": "src/site/stages/build/drupal/graphql/nodeMediaListVideos.graphql.js", "max_stars_repo_name": "acrollet/content-build", "max_stars_repo_stars_event_min_datetime": "2021-07-09T16:38:37.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-24T18:24:04.000Z", "max_issues_repo_path": "src/site/stages/build/drupal/graphql/nodeMediaListVideos.graphql.js", "max_issues_repo_name": "acrollet/content-build", "max_issues_repo_issues_event_min_datetime": "2020-12-08T15:52:09.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T23:33:46.000Z", "max_forks_repo_path": "src/site/stages/build/drupal/graphql/nodeMediaListVideos.graphql.js", "max_forks_repo_name": "acrollet/content-build", "max_forks_repo_forks_event_min_datetime": "2020-12-04T19:46:15.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-24T14:32:21.000Z"}
{"max_stars_count": 3, "max_issues_count": 198, "max_forks_count": 3, "avg_line_length": 19.7906976744, "max_line_length": 76, "alphanum_fraction": 0.5910693302}
const fragments = require('./fragments.graphql');
const entityElementsFromPages = require('./entityElementsForPages.graphql');

const nodeMediaListVideos = `
fragment nodeMediaListVideos on NodeMediaListVideos {
  ${entityElementsFromPages}
  entityBundle

  changed
  title
  fieldIntroTextLimitedHtml {
    processed
  }
  fieldAlertSingle {
    entity {
      ... alertSingle
    }
  }
  fieldButtonsRepeat
  fieldButtons {
    entity {
      ... button
    }
  }
  fieldContactInformation {
    entity {
      entityBundle
      ... contactInformation
    }
  }
  fieldRelatedBenefitHubs {
    entity {
      ... on NodeLandingPage {
        fieldHomePageHubLabel
        fieldTeaserText
        path {
          alias
        }
        fieldSupportServices {
          entity {
            ... supportService
          }
        }
      }
    }
  }
  fieldRelatedInformation {
    entity {
      ... linkTeaser
    }
  }

  fieldMediaListVideos {
    entity {
      ... on ParagraphMediaListVideos {
        fieldSectionHeader
        fieldVideos {
          targetId
          entity {
            ... on MediaVideo {
              fieldDescription
              fieldDuration
              fieldMediaInLibrary
              fieldMediaSubmissionGuideline
              fieldMediaVideoEmbedField
              fieldPublicationDate {
                value
                date
              }
              name
            }
          }
        }
      }
    }
  }
  fieldPrimaryCategory {
    entity {
      ... taxonomyTermLcCategories
    }
  }
  fieldOtherCategories {
    entity {
      ... taxonomyTermLcCategories
    }
  }
  fieldTags {
    entity {
      ... audienceTopics
    }
  }
}
`;

const GetNodeMediaListVideos = `
  ${fragments.alertParagraphSingle}
  ${fragments.button}
  ${fragments.contactInformation}
  ${fragments.supportService}
  ${fragments.linkTeaser}
  ${fragments.termLcCategory}
  ${fragments.audienceTopics}
  ${fragments.emailContact}
  ${fragments.phoneNumber}
  ${fragments.audienceBeneficiaries}
  ${fragments.audienceNonBeneficiaries}
  ${fragments.termTopics}

  ${nodeMediaListVideos}

  query GetNodeMediaListVideos($onlyPublishedContent: Boolean!) {
    nodeQuery(limit: 1000, filter: {
      conditions: [
        { field: "status", value: ["1"], enabled: $onlyPublishedContent },
        { field: "type", value: ["media_list_videos"] }
      ]
    }) {
      entities {
        ... nodeMediaListVideos
      }
    }
  }
`;

module.exports = {
  fragment: nodeMediaListVideos,
  GetNodeMediaListVideos,
};
