Skip to content

Instantly share code, notes, and snippets.

@wwe-johndpope wwe-johndpope/BAMify.sh
Last active Oct 3, 2017

Embed
What would you like to do?
generate swift files.
git clone https://github.com/Shopify/graphql_swift_gen.git
cd graphql_swift_gen
mkdir BAM
cd BAM
mkdir Source
cd ..
# optional - install RVM for ruby version managing.
curl -sSL https://get.rvm.io
rvm install ruby --latest
gem install bundler
bundle install
bundle exec rake install
ruby test.rb
{
"data": {
"__schema": {
"queryType": {
"name": "SearchQuery"
},
"mutationType": {
"name": "SearchMutation"
},
"subscriptionType": null,
"types": [
{
"kind": "OBJECT",
"name": "SearchQuery",
"description": null,
"fields": [
{
"name": "query",
"description": null,
"args": [
{
"name": "index",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "must",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoolFilter",
"ofType": null
},
"defaultValue": null
},
{
"name": "must_not",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoolFilter",
"ofType": null
},
"defaultValue": null
},
{
"name": "should",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoolFilter",
"ofType": null
},
"defaultValue": null
},
{
"name": "q",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "fq",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "page_size",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": "10"
},
{
"name": "sort",
"description": null,
"type": {
"kind": "ENUM",
"name": "SortOrder",
"ofType": null
},
"defaultValue": null
},
{
"name": "type",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "from",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Date",
"ofType": null
},
"defaultValue": null
},
{
"name": "to",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Date",
"ofType": null
},
"defaultValue": null
},
{
"name": "highlight",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "false"
},
{
"name": "facet",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "bbox",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoundingBox",
"ofType": null
},
"defaultValue": null
},
{
"name": "radius",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "Radius",
"ofType": null
},
"defaultValue": null
},
{
"name": "spotlight",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "false"
}
],
"type": {
"kind": "OBJECT",
"name": "QueryResponse",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "prefix",
"description": null,
"args": [
{
"name": "index",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "must",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoolFilter",
"ofType": null
},
"defaultValue": null
},
{
"name": "must_not",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoolFilter",
"ofType": null
},
"defaultValue": null
},
{
"name": "should",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoolFilter",
"ofType": null
},
"defaultValue": null
},
{
"name": "q",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "fq",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "page_size",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": "10"
},
{
"name": "sort",
"description": null,
"type": {
"kind": "ENUM",
"name": "SortOrder",
"ofType": null
},
"defaultValue": null
},
{
"name": "type",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "from",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Date",
"ofType": null
},
"defaultValue": null
},
{
"name": "to",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Date",
"ofType": null
},
"defaultValue": null
},
{
"name": "highlight",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "false"
},
{
"name": "facet",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "bbox",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoundingBox",
"ofType": null
},
"defaultValue": null
},
{
"name": "radius",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "Radius",
"ofType": null
},
"defaultValue": null
},
{
"name": "spotlight",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "false"
}
],
"type": {
"kind": "OBJECT",
"name": "PrefixResponse",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "sitesearch",
"description": null,
"args": [
{
"name": "index",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "must",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoolFilter",
"ofType": null
},
"defaultValue": null
},
{
"name": "must_not",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoolFilter",
"ofType": null
},
"defaultValue": null
},
{
"name": "should",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoolFilter",
"ofType": null
},
"defaultValue": null
},
{
"name": "q",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "fq",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "page_size",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": "10"
},
{
"name": "sort",
"description": null,
"type": {
"kind": "ENUM",
"name": "SortOrder",
"ofType": null
},
"defaultValue": null
},
{
"name": "type",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "from",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Date",
"ofType": null
},
"defaultValue": null
},
{
"name": "to",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Date",
"ofType": null
},
"defaultValue": null
},
{
"name": "highlight",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "false"
},
{
"name": "facet",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "spotlight",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "false"
}
],
"type": {
"kind": "OBJECT",
"name": "SitesearchResponse",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "bucket",
"description": null,
"args": [
{
"name": "index",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "must",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoolFilter",
"ofType": null
},
"defaultValue": null
},
{
"name": "must_not",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoolFilter",
"ofType": null
},
"defaultValue": null
},
{
"name": "should",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoolFilter",
"ofType": null
},
"defaultValue": null
},
{
"name": "q",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "fq",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "page_size",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": "10"
},
{
"name": "sort",
"description": null,
"type": {
"kind": "ENUM",
"name": "SortOrder",
"ofType": null
},
"defaultValue": null
},
{
"name": "type",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "from",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Date",
"ofType": null
},
"defaultValue": null
},
{
"name": "to",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Date",
"ofType": null
},
"defaultValue": null
},
{
"name": "highlight",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "false"
},
{
"name": "facet",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
}
},
"defaultValue": null
},
{
"name": "bbox",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "BoundingBox",
"ofType": null
},
"defaultValue": null
},
{
"name": "radius",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "Radius",
"ofType": null
},
"defaultValue": null
},
{
"name": "spotlight",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "false"
}
],
"type": {
"kind": "OBJECT",
"name": "TopFoundHitsResponse",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "bookmarks",
"description": null,
"args": [
{
"name": "type",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": "[\"Video\", \"Airing\"]"
},
{
"name": "show_completed",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "true"
},
{
"name": "page_size",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "MediaResponse",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "watchlist",
"description": null,
"args": [
{
"name": "type",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": "[\"Video\", \"Airing\", \"Collection\", \"Series\"]"
},
{
"name": "page_size",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "MediaResponse",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "Airings",
"description": "Retrieve live, onAir, linear, or once-live video metadata sourced from EPG Metadata Service.",
"args": [
{
"name": "startDate",
"description": "Start date for a schedule by date range. Must be accompanied by endDate. If both are present, scheduled airings will be returned. ISO8601 format (2017-01-23T21:13:31Z)",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "endDate",
"description": "End date for a schedule by date range. Must be accompanied by startDate. If both are present, scheduled airings will be returned. ISO8601 format (2017-01-23T21:13:31Z)",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "onAir",
"description": "If present and there are no Start and End dates, retrieve only airings that are currently onAir.",
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": null
},
{
"name": "upcoming",
"description": "If present and there are no Start and End dates, retrieve only airings will be onAir in the future.",
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": null
},
{
"name": "genre",
"description": "Genre used to filter the airing data. Required if you're filtering based on genre for onAir or scheduled metadata.",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "programType",
"description": "Filter by one or more program type(s). Required if you're filtering based on program type for onAir or scheduled metadata.",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "partnerProgramIds",
"description": "Filter by one or more partnerProgramIds, a unique ID provided by the partner which is consistent between Airings and VOD assets related to those Airings.",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "channelId",
"description": "Filter by ChannelId and retrieve onAir airings if partnerProgramIds is absent.",
"type": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
},
"defaultValue": null
},
{
"name": "contentId",
"description": "Filter by ContentId and retrieve airings if partnerProgramIds and channelId are both absent.",
"type": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
},
"defaultValue": null
},
{
"name": "groupingId",
"description": "Retrieve Airings that have this groupingId value. groupingId is an ID used to group Airings together by some common criteria (e.g. media related to a Eurosport Event Page).",
"type": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
},
"defaultValue": null
},
{
"name": "endsAfter",
"description": "Ends After is used in conjunction with partnerEventId and is used to filter airing data. ISO8601 format (2017-01-23T21:13:31Z)",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "languages",
"description": "For Airing fields that contain multiple language-specific objects (e.g. titles), filter to only data that matches one of these language values, in priority order. The server will also perform an alt languages lookup for each provided value, checking for languages that roll up to the same ISO macro-language. If no matching content is found, the first item in the list will be used. If this argument is not provided, no filtering is performed.",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "channelCallsigns",
"description": "Filter your results by Airings that match one of the Channel Callsigns provided in this list.",
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "page",
"description": "The index of the page of results you would like. (Defaulted to 0)",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": "The total number of results that are returned on each 'page' of results. (Defaulted to 500)",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Airing",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "CategoryAll",
"description": null,
"args": [
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Category",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "CategoryByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Category",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "CategoryBySport",
"description": null,
"args": [
{
"name": "sport",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Category",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ChannelAll",
"description": null,
"args": [
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Channel",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ChannelByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Channel",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "CollectionAll",
"description": null,
"args": [],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Collection",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "CollectionByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Collection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ConfigurationJsonByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "ConfigurationJson",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ConfigurationJsonByResourceKey",
"description": null,
"args": [
{
"name": "resourceKey",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "ConfigurationJson",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ConfigurationStructuredByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "ConfigurationStructured",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "DimensionByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Dimension",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "EventPageAll",
"description": null,
"args": [
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "EventPage",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "EventPageByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "EventPage",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "EventPageByLanguage",
"description": null,
"args": [
{
"name": "language",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "EventPage",
"ofType": null
}
},
"isDeprecated": true,
"deprecationReason": "Use `EventPageAll`"
},
{
"name": "FieldOptionByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "FieldOption",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "KeyValueByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "KeyValue",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ListByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "List",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ListByTitle",
"description": null,
"args": [
{
"name": "title",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "List",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "MasterCutByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "MasterCut",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "Media",
"description": null,
"args": [
{
"name": "partnerProgramIds",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "groupingId",
"description": null,
"type": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
},
"defaultValue": null
},
{
"name": "genre",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "programType",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "languages",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "MediaList",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "MediaAssetByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "MediaAsset",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "PageByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Page",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "PageByResourceKey",
"description": null,
"args": [
{
"name": "resourceKey",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Page",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "PhotoAssetByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "PhotoAsset",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "PhotoByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Photo",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "PhotoTemplateByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "PhotoTemplate",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "postplay",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "collectionContentId",
"description": null,
"type": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
},
"defaultValue": null
},
{
"name": "seriesContentId",
"description": null,
"type": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "PostPlayResponse",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "Schedule",
"description": null,
"args": [
{
"name": "channelIds",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "startDate",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "endDate",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "onAir",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
},
"defaultValue": "false"
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "ChannelSchedule",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SeasonAll",
"description": null,
"args": [],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Season",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SeasonByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Season",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SeasonBySeasonId",
"description": null,
"args": [
{
"name": "seasonId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Season",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SeasonBySeasonIdAndLanguage",
"description": null,
"args": [
{
"name": "seasonId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "language",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Season",
"ofType": null
},
"isDeprecated": true,
"deprecationReason": "Use `SeasonBySeasonId`"
},
{
"name": "SeasonBySeriesSlug",
"description": null,
"args": [
{
"name": "seriesSlug",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Season",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SeasonContainerByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "SeasonContainer",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SectionByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Section",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SeriesAll",
"description": null,
"args": [],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Series",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SeriesByCategory",
"description": null,
"args": [
{
"name": "category",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Series",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SeriesByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Series",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SeriesByGenre",
"description": null,
"args": [
{
"name": "genre",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Series",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SeriesBySeriesId",
"description": null,
"args": [
{
"name": "seriesId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Series",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SeriesBySeriesIdAndLanguage",
"description": null,
"args": [
{
"name": "seriesId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "language",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Series",
"ofType": null
},
"isDeprecated": true,
"deprecationReason": "Use `SeriesBySeriesId`"
},
{
"name": "SeriesBySeriesSlug",
"description": null,
"args": [
{
"name": "seriesSlug",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Series",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "SeriesContainerByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "SeriesContainer",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ShortContentByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "ShortContent",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "TemplateAspectRatioByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "TemplateAspectRatio",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "TitleAssetByContentId",
"description": null,
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "TitleAsset",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "VideoAll",
"description": null,
"args": [
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Video",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "VideoByCategory",
"description": null,
"args": [
{
"name": "category",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Video",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "VideoByContentId",
"description": "Languages filter is unused on contentId lookups",
"args": [
{
"name": "contentId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "languages",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "Video",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "VideoByEpgPartnerProgramId",
"description": null,
"args": [
{
"name": "epgPartnerProgramId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "languages",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Video",
"ofType": null
}
},
"isDeprecated": true,
"deprecationReason": "Use `VideoByPartnerProgramId`"
},
{
"name": "VideoByGenre",
"description": null,
"args": [
{
"name": "genre",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "languages",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Video",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "VideoByGroupingId",
"description": null,
"args": [
{
"name": "groupingId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "languages",
"description": null,
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "String",
"ofType": null
}
},
"defaultValue": null
},
{
"name": "page",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "pageSize",
"description": null,
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Video",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "VideoByPartnerProgramId",
"description": null,
"args": [
{
"name": "partnerProgramId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {