12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- import { gql } from 'apollo-server-express'
- import { FeaturedVideo, VideoHero } from '../../src/models/FeaturedContent'
- import { CategoryFeaturedVideos } from '../../src/entities/CategoryFeaturedVideos'
- export const GET_VIDEO_HERO = gql`
- query GetVideoHero {
- videoHero {
- heroTitle
- heroVideoCutUrl
- heroPosterUrl
- videoId
- }
- }
- `
- export type GetVideoHero = {
- videoHero: VideoHero | null
- }
- export const GET_CATEGORY_FEATURED_VIDEOS = gql`
- query GetCategoryFeaturedVideos($categoryId: ID!) {
- categoryFeaturedVideos(categoryId: $categoryId) {
- videoCutUrl
- videoId
- }
- }
- `
- export type GetCategoryFeaturedVideos = {
- categoryFeaturedVideos: {
- videoId: string
- videoCutUrl: string
- }
- }
- export type GetCategoryFeaturedVideosArgs = {
- categoryId: string
- }
- export const GET_ALL_CATEGORIES_FEATURED_VIDEOS = gql`
- query GetAllCategoriesFeaturedVideos {
- allCategoriesFeaturedVideos {
- categoryId
- videos {
- videoId
- videoCutUrl
- }
- }
- }
- `
- export type GetAllCategoriesFeaturedVideos = {
- allCategoriesFeaturedVideos: CategoryFeaturedVideos[] | null
- }
- export const SET_VIDEO_HERO = gql`
- mutation SetVideoHero($newVideoHero: VideoHeroInput!) {
- setVideoHero(newVideoHero: $newVideoHero) {
- videoId
- heroTitle
- heroVideoCutUrl
- heroPosterUrl
- }
- }
- `
- export type SetVideoHero = {
- setVideoHero: VideoHero
- }
- export type SetVideoHeroArgs = {
- newVideoHero: {
- videoId: string
- heroTitle: string
- heroVideoCutUrl: string
- heroPosterUrl: string
- }
- }
- export const SET_CATEGORY_FEATURED_VIDEOS = gql`
- mutation SetCategoryFeaturedVideos($categoryId: ID!, $videos: [FeaturedVideoInput!]!) {
- setCategoryFeaturedVideos(categoryId: $categoryId, videos: $videos) {
- videoId
- videoCutUrl
- }
- }
- `
- export type SetCategoryFeaturedVideos = {
- setCategoryFeaturedVideos: FeaturedVideo[]
- }
- export type SetCategoryFeaturedVideosArgs = {
- categoryId: string
- videos: FeaturedVideo[]
- }
|