import sgqlc.types
import sgqlc.types.relay


schema = sgqlc.types.Schema()


# Unexport Node/PageInfo, let schema re-declare them
schema -= sgqlc.types.relay.Node
schema -= sgqlc.types.relay.PageInfo



########################################################################
# Scalars and Enumerations
########################################################################
Boolean = sgqlc.types.Boolean

class DataPointValue(sgqlc.types.Scalar):
    __schema__ = schema


Float = sgqlc.types.Float

ID = sgqlc.types.ID

Int = sgqlc.types.Int

class Int64(sgqlc.types.Scalar):
    __schema__ = schema


class JSONObject(sgqlc.types.Scalar):
    __schema__ = schema


class SortDirection(sgqlc.types.Enum):
    __schema__ = schema
    __choices__ = ('ASC', 'DESC')


String = sgqlc.types.String

class Timestamp(sgqlc.types.Scalar):
    __schema__ = schema


class _SearchActorFields(sgqlc.types.Enum):
    __schema__ = schema
    __choices__ = ('age', 'externalId', 'name')


class _SearchMovieFields(sgqlc.types.Enum):
    __schema__ = schema
    __choices__ = ('externalId', 'name', 'watchedIt')



########################################################################
# Input Objects
########################################################################
class _ActorSort(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('external_id', 'name', 'age')
    external_id = sgqlc.types.Field(SortDirection, graphql_name='externalId')
    name = sgqlc.types.Field(SortDirection, graphql_name='name')
    age = sgqlc.types.Field(SortDirection, graphql_name='age')


class _BooleanCondition(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('eq', 'is_null', 'in_')
    eq = sgqlc.types.Field(Boolean, graphql_name='eq')
    is_null = sgqlc.types.Field(Boolean, graphql_name='isNull')
    in_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(Boolean)), graphql_name='in')


class _FloatCondition(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('eq', 'is_null', 'in_', 'gt', 'lt', 'gte', 'lte')
    eq = sgqlc.types.Field(Float, graphql_name='eq')
    is_null = sgqlc.types.Field(Boolean, graphql_name='isNull')
    in_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(Float)), graphql_name='in')
    gt = sgqlc.types.Field(Float, graphql_name='gt')
    lt = sgqlc.types.Field(Float, graphql_name='lt')
    gte = sgqlc.types.Field(Float, graphql_name='gte')
    lte = sgqlc.types.Field(Float, graphql_name='lte')


class _IDCondition(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('eq', 'is_null', 'in_')
    eq = sgqlc.types.Field(ID, graphql_name='eq')
    is_null = sgqlc.types.Field(Boolean, graphql_name='isNull')
    in_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(ID)), graphql_name='in')


class _Int64Condition(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('eq', 'is_null', 'in_', 'gt', 'lt', 'gte', 'lte')
    eq = sgqlc.types.Field(Int64, graphql_name='eq')
    is_null = sgqlc.types.Field(Boolean, graphql_name='isNull')
    in_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(Int64)), graphql_name='in')
    gt = sgqlc.types.Field(Int64, graphql_name='gt')
    lt = sgqlc.types.Field(Int64, graphql_name='lt')
    gte = sgqlc.types.Field(Int64, graphql_name='gte')
    lte = sgqlc.types.Field(Int64, graphql_name='lte')


class _IntCondition(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('eq', 'is_null', 'in_', 'gt', 'lt', 'gte', 'lte')
    eq = sgqlc.types.Field(Int, graphql_name='eq')
    is_null = sgqlc.types.Field(Boolean, graphql_name='isNull')
    in_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(Int)), graphql_name='in')
    gt = sgqlc.types.Field(Int, graphql_name='gt')
    lt = sgqlc.types.Field(Int, graphql_name='lt')
    gte = sgqlc.types.Field(Int, graphql_name='gte')
    lte = sgqlc.types.Field(Int, graphql_name='lte')


class _ListActorFilter(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('and_', 'or_', 'not_', 'external_id', 'name', 'age')
    and_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('_ListActorFilter')), graphql_name='and')
    or_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('_ListActorFilter')), graphql_name='or')
    not_ = sgqlc.types.Field('_ListActorFilter', graphql_name='not')
    external_id = sgqlc.types.Field(_IDCondition, graphql_name='externalId')
    name = sgqlc.types.Field('_StringCondition', graphql_name='name')
    age = sgqlc.types.Field(_IntCondition, graphql_name='age')


class _ListBooleanFilter(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('contains_all', 'contains_any')
    contains_all = sgqlc.types.Field(sgqlc.types.list_of(Boolean), graphql_name='containsAll')
    contains_any = sgqlc.types.Field(sgqlc.types.list_of(Boolean), graphql_name='containsAny')


class _ListFloatFilter(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('contains_all', 'contains_any')
    contains_all = sgqlc.types.Field(sgqlc.types.list_of(Float), graphql_name='containsAll')
    contains_any = sgqlc.types.Field(sgqlc.types.list_of(Float), graphql_name='containsAny')


class _ListIDFilter(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('contains_all', 'contains_any')
    contains_all = sgqlc.types.Field(sgqlc.types.list_of(ID), graphql_name='containsAll')
    contains_any = sgqlc.types.Field(sgqlc.types.list_of(ID), graphql_name='containsAny')


class _ListInt64Filter(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('contains_all', 'contains_any')
    contains_all = sgqlc.types.Field(sgqlc.types.list_of(Int64), graphql_name='containsAll')
    contains_any = sgqlc.types.Field(sgqlc.types.list_of(Int64), graphql_name='containsAny')


class _ListIntFilter(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('contains_all', 'contains_any')
    contains_all = sgqlc.types.Field(sgqlc.types.list_of(Int), graphql_name='containsAll')
    contains_any = sgqlc.types.Field(sgqlc.types.list_of(Int), graphql_name='containsAny')


class _ListMovieFilter(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('and_', 'or_', 'not_', 'external_id', 'name', 'watched_it')
    and_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('_ListMovieFilter')), graphql_name='and')
    or_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('_ListMovieFilter')), graphql_name='or')
    not_ = sgqlc.types.Field('_ListMovieFilter', graphql_name='not')
    external_id = sgqlc.types.Field(_IDCondition, graphql_name='externalId')
    name = sgqlc.types.Field('_StringCondition', graphql_name='name')
    watched_it = sgqlc.types.Field(_BooleanCondition, graphql_name='watchedIt')


class _ListStringFilter(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('contains_all', 'contains_any')
    contains_all = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='containsAll')
    contains_any = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='containsAny')


class _ListTimestampFilter(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('contains_all', 'contains_any')
    contains_all = sgqlc.types.Field(sgqlc.types.list_of(Timestamp), graphql_name='containsAll')
    contains_any = sgqlc.types.Field(sgqlc.types.list_of(Timestamp), graphql_name='containsAny')


class _MovieSort(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('external_id', 'name', 'watched_it')
    external_id = sgqlc.types.Field(SortDirection, graphql_name='externalId')
    name = sgqlc.types.Field(SortDirection, graphql_name='name')
    watched_it = sgqlc.types.Field(SortDirection, graphql_name='watchedIt')


class _SearchActorFilter(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('and_', 'or_', 'not_', 'external_id', 'name', 'age')
    and_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('_SearchActorFilter')), graphql_name='and')
    or_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('_SearchActorFilter')), graphql_name='or')
    not_ = sgqlc.types.Field('_SearchActorFilter', graphql_name='not')
    external_id = sgqlc.types.Field(_IDCondition, graphql_name='externalId')
    name = sgqlc.types.Field('_StringCondition', graphql_name='name')
    age = sgqlc.types.Field(_IntCondition, graphql_name='age')


class _SearchMovieFilter(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('and_', 'or_', 'not_', 'external_id', 'name', 'watched_it')
    and_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('_SearchMovieFilter')), graphql_name='and')
    or_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('_SearchMovieFilter')), graphql_name='or')
    not_ = sgqlc.types.Field('_SearchMovieFilter', graphql_name='not')
    external_id = sgqlc.types.Field(_IDCondition, graphql_name='externalId')
    name = sgqlc.types.Field('_StringCondition', graphql_name='name')
    watched_it = sgqlc.types.Field(_BooleanCondition, graphql_name='watchedIt')


class _StringCondition(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('eq', 'is_null', 'in_', 'gt', 'lt', 'gte', 'lte', 'prefix')
    eq = sgqlc.types.Field(String, graphql_name='eq')
    is_null = sgqlc.types.Field(Boolean, graphql_name='isNull')
    in_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name='in')
    gt = sgqlc.types.Field(String, graphql_name='gt')
    lt = sgqlc.types.Field(String, graphql_name='lt')
    gte = sgqlc.types.Field(String, graphql_name='gte')
    lte = sgqlc.types.Field(String, graphql_name='lte')
    prefix = sgqlc.types.Field(String, graphql_name='prefix')


class _TimestampCondition(sgqlc.types.Input):
    __schema__ = schema
    __field_names__ = ('eq', 'is_null', 'in_', 'gt', 'lt', 'gte', 'lte')
    eq = sgqlc.types.Field(Timestamp, graphql_name='eq')
    is_null = sgqlc.types.Field(Boolean, graphql_name='isNull')
    in_ = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(Timestamp)), graphql_name='in')
    gt = sgqlc.types.Field(Timestamp, graphql_name='gt')
    lt = sgqlc.types.Field(Timestamp, graphql_name='lt')
    gte = sgqlc.types.Field(Timestamp, graphql_name='gte')
    lte = sgqlc.types.Field(Timestamp, graphql_name='lte')



########################################################################
# Output Objects and Interfaces
########################################################################
class Actor(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('name', 'age', 'external_id')
    name = sgqlc.types.Field(String, graphql_name='name')
    age = sgqlc.types.Field(Int, graphql_name='age')
    external_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='externalId')


class ActorAggregateConnection(sgqlc.types.relay.Connection):
    __schema__ = schema
    __field_names__ = ('edges', 'items', 'page_info')
    edges = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of('_ActorAggregateEdge')), graphql_name='edges')
    items = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of('ActorAggregateResult')), graphql_name='items')
    page_info = sgqlc.types.Field(sgqlc.types.non_null('PageInfo'), graphql_name='pageInfo')


class ActorAggregateResult(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('group', 'avg', 'min', 'max', 'count', 'sum', 'histogram')
    group = sgqlc.types.Field(JSONObject, graphql_name='group')
    avg = sgqlc.types.Field('_ActorAggregateFieldResult', graphql_name='avg')
    min = sgqlc.types.Field('_ActorAggregateFieldResult', graphql_name='min')
    max = sgqlc.types.Field('_ActorAggregateFieldResult', graphql_name='max')
    count = sgqlc.types.Field('_ActorAggregateFieldCountResult', graphql_name='count')
    sum = sgqlc.types.Field('_ActorAggregateFieldResult', graphql_name='sum')
    histogram = sgqlc.types.Field('_ActorAggregateHistogramFieldResult', graphql_name='histogram', args=sgqlc.types.ArgDict((
        ('interval', sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name='interval', default=None)),
))
    )


class ActorConnection(sgqlc.types.relay.Connection):
    __schema__ = schema
    __field_names__ = ('edges', 'items', 'page_info')
    edges = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of('_ActorEdge')), graphql_name='edges')
    items = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Actor)), graphql_name='items')
    page_info = sgqlc.types.Field(sgqlc.types.non_null('PageInfo'), graphql_name='pageInfo')


class DataPoint(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('timestamp', 'value')
    timestamp = sgqlc.types.Field(Timestamp, graphql_name='timestamp')
    value = sgqlc.types.Field(DataPointValue, graphql_name='value')


class Movie(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('name', 'actors', 'watched_it', 'external_id')
    name = sgqlc.types.Field(String, graphql_name='name')
    actors = sgqlc.types.Field(ActorConnection, graphql_name='actors', args=sgqlc.types.ArgDict((
        ('first', sgqlc.types.Arg(Int, graphql_name='first', default=None)),
        ('after', sgqlc.types.Arg(String, graphql_name='after', default=None)),
        ('filter', sgqlc.types.Arg(_ListActorFilter, graphql_name='filter', default=None)),
        ('sort', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(_ActorSort)), graphql_name='sort', default=None)),
))
    )
    watched_it = sgqlc.types.Field(Boolean, graphql_name='watchedIt')
    external_id = sgqlc.types.Field(sgqlc.types.non_null(ID), graphql_name='externalId')


class MovieAggregateConnection(sgqlc.types.relay.Connection):
    __schema__ = schema
    __field_names__ = ('edges', 'items', 'page_info')
    edges = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of('_MovieAggregateEdge')), graphql_name='edges')
    items = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of('MovieAggregateResult')), graphql_name='items')
    page_info = sgqlc.types.Field(sgqlc.types.non_null('PageInfo'), graphql_name='pageInfo')


class MovieAggregateResult(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('group', 'avg', 'min', 'max', 'count', 'sum', 'histogram')
    group = sgqlc.types.Field(JSONObject, graphql_name='group')
    avg = sgqlc.types.Field('_MovieAggregateFieldResult', graphql_name='avg')
    min = sgqlc.types.Field('_MovieAggregateFieldResult', graphql_name='min')
    max = sgqlc.types.Field('_MovieAggregateFieldResult', graphql_name='max')
    count = sgqlc.types.Field('_MovieAggregateFieldCountResult', graphql_name='count')
    sum = sgqlc.types.Field('_MovieAggregateFieldResult', graphql_name='sum')
    histogram = sgqlc.types.Field('_MovieAggregateHistogramFieldResult', graphql_name='histogram', args=sgqlc.types.ArgDict((
        ('interval', sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name='interval', default=None)),
))
    )


class MovieConnection(sgqlc.types.relay.Connection):
    __schema__ = schema
    __field_names__ = ('edges', 'items', 'page_info')
    edges = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of('_MovieEdge')), graphql_name='edges')
    items = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Movie)), graphql_name='items')
    page_info = sgqlc.types.Field(sgqlc.types.non_null('PageInfo'), graphql_name='pageInfo')


class Mutation(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('_empty',)
    _empty = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='_empty')


class PageInfo(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('has_previous_page', 'has_next_page', 'start_cursor', 'end_cursor')
    has_previous_page = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='hasPreviousPage')
    has_next_page = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='hasNextPage')
    start_cursor = sgqlc.types.Field(String, graphql_name='startCursor')
    end_cursor = sgqlc.types.Field(String, graphql_name='endCursor')


class Query(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('list_movie', 'search_movie', 'aggregate_movie', 'list_actor', 'search_actor', 'aggregate_actor')
    list_movie = sgqlc.types.Field(MovieConnection, graphql_name='listMovie', args=sgqlc.types.ArgDict((
        ('first', sgqlc.types.Arg(Int, graphql_name='first', default=None)),
        ('after', sgqlc.types.Arg(String, graphql_name='after', default=None)),
        ('filter', sgqlc.types.Arg(_ListMovieFilter, graphql_name='filter', default=None)),
        ('sort', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(_MovieSort)), graphql_name='sort', default=None)),
))
    )
    search_movie = sgqlc.types.Field(MovieConnection, graphql_name='searchMovie', args=sgqlc.types.ArgDict((
        ('query', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='query', default=None)),
        ('fields', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(_SearchMovieFields)), graphql_name='fields', default=None)),
        ('filter', sgqlc.types.Arg(_SearchMovieFilter, graphql_name='filter', default=None)),
        ('first', sgqlc.types.Arg(Int, graphql_name='first', default=None)),
))
    )
    aggregate_movie = sgqlc.types.Field(MovieAggregateConnection, graphql_name='aggregateMovie', args=sgqlc.types.ArgDict((
        ('query', sgqlc.types.Arg(String, graphql_name='query', default=None)),
        ('fields', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(_SearchMovieFields)), graphql_name='fields', default=None)),
        ('group_by', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(_SearchMovieFields)), graphql_name='groupBy', default=None)),
        ('filter', sgqlc.types.Arg(_SearchMovieFilter, graphql_name='filter', default=None)),
        ('after', sgqlc.types.Arg(String, graphql_name='after', default=None)),
))
    )
    list_actor = sgqlc.types.Field(ActorConnection, graphql_name='listActor', args=sgqlc.types.ArgDict((
        ('first', sgqlc.types.Arg(Int, graphql_name='first', default=None)),
        ('after', sgqlc.types.Arg(String, graphql_name='after', default=None)),
        ('filter', sgqlc.types.Arg(_ListActorFilter, graphql_name='filter', default=None)),
        ('sort', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(_ActorSort)), graphql_name='sort', default=None)),
))
    )
    search_actor = sgqlc.types.Field(ActorConnection, graphql_name='searchActor', args=sgqlc.types.ArgDict((
        ('query', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='query', default=None)),
        ('fields', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(_SearchActorFields)), graphql_name='fields', default=None)),
        ('filter', sgqlc.types.Arg(_SearchActorFilter, graphql_name='filter', default=None)),
        ('first', sgqlc.types.Arg(Int, graphql_name='first', default=None)),
))
    )
    aggregate_actor = sgqlc.types.Field(ActorAggregateConnection, graphql_name='aggregateActor', args=sgqlc.types.ArgDict((
        ('query', sgqlc.types.Arg(String, graphql_name='query', default=None)),
        ('fields', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(_SearchActorFields)), graphql_name='fields', default=None)),
        ('group_by', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(_SearchActorFields)), graphql_name='groupBy', default=None)),
        ('filter', sgqlc.types.Arg(_SearchActorFilter, graphql_name='filter', default=None)),
        ('after', sgqlc.types.Arg(String, graphql_name='after', default=None)),
))
    )


class TimeSeries(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('id', 'external_id', 'name', 'is_string', 'metadata', 'unit', 'asset_id', 'is_step', 'description', 'security_categories', 'dataset_id', 'data_points')
    id = sgqlc.types.Field(Int64, graphql_name='id')
    external_id = sgqlc.types.Field(String, graphql_name='externalId')
    name = sgqlc.types.Field(String, graphql_name='name')
    is_string = sgqlc.types.Field(Boolean, graphql_name='isString')
    metadata = sgqlc.types.Field(JSONObject, graphql_name='metadata')
    unit = sgqlc.types.Field(String, graphql_name='unit')
    asset_id = sgqlc.types.Field(Int64, graphql_name='assetId')
    is_step = sgqlc.types.Field(Boolean, graphql_name='isStep')
    description = sgqlc.types.Field(String, graphql_name='description')
    security_categories = sgqlc.types.Field(sgqlc.types.list_of(Int64), graphql_name='securityCategories')
    dataset_id = sgqlc.types.Field(Int64, graphql_name='datasetId')
    data_points = sgqlc.types.Field(sgqlc.types.list_of(DataPoint), graphql_name='dataPoints', args=sgqlc.types.ArgDict((
        ('start', sgqlc.types.Arg(Int64, graphql_name='start', default=None)),
        ('end', sgqlc.types.Arg(Int64, graphql_name='end', default=None)),
        ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)),
))
    )


class _ActorAggregateEdge(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('node', 'cursor')
    node = sgqlc.types.Field(sgqlc.types.non_null(ActorAggregateResult), graphql_name='node')
    cursor = sgqlc.types.Field(String, graphql_name='cursor')


class _ActorAggregateFieldCountResult(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('external_id', 'name', 'age')
    external_id = sgqlc.types.Field(Int, graphql_name='externalId')
    name = sgqlc.types.Field(Int, graphql_name='name')
    age = sgqlc.types.Field(Int, graphql_name='age')


class _ActorAggregateFieldResult(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('age',)
    age = sgqlc.types.Field(Float, graphql_name='age')


class _ActorAggregateHistogramFieldResult(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('age',)
    age = sgqlc.types.Field(sgqlc.types.list_of('_AggregateHistogramObjectType'), graphql_name='age')


class _ActorEdge(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('node', 'cursor')
    node = sgqlc.types.Field(sgqlc.types.non_null(Actor), graphql_name='node')
    cursor = sgqlc.types.Field(String, graphql_name='cursor')


class _AggregateHistogramObjectType(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('start', 'count')
    start = sgqlc.types.Field(Int, graphql_name='start')
    count = sgqlc.types.Field(Int, graphql_name='count')


class _MovieAggregateEdge(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('node', 'cursor')
    node = sgqlc.types.Field(sgqlc.types.non_null(MovieAggregateResult), graphql_name='node')
    cursor = sgqlc.types.Field(String, graphql_name='cursor')


class _MovieAggregateFieldCountResult(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('external_id', 'name', 'watched_it')
    external_id = sgqlc.types.Field(Int, graphql_name='externalId')
    name = sgqlc.types.Field(Int, graphql_name='name')
    watched_it = sgqlc.types.Field(Int, graphql_name='watchedIt')


class _MovieAggregateFieldResult(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('_empty',)
    _empty = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='_empty')


class _MovieAggregateHistogramFieldResult(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('_empty',)
    _empty = sgqlc.types.Field(sgqlc.types.list_of(_AggregateHistogramObjectType), graphql_name='_empty')


class _MovieEdge(sgqlc.types.Type):
    __schema__ = schema
    __field_names__ = ('node', 'cursor')
    node = sgqlc.types.Field(sgqlc.types.non_null(Movie), graphql_name='node')
    cursor = sgqlc.types.Field(String, graphql_name='cursor')



########################################################################
# Unions
########################################################################

########################################################################
# Schema Entry Points
########################################################################
schema.query_type = Query
schema.mutation_type = Mutation
schema.subscription_type = None


BEARER_TOKEN="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSIsImtpZCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSJ9.eyJhdWQiOiJodHRwczovL2JsdWVmaWVsZC5jb2duaXRlZGF0YS5jb20iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC9lNTQxNjI2Yi1kNTUyLTQ4OGItODY3NC0yNDk0N2MyYzM0MmUvIiwiaWF0IjoxNjYxOTQ3OTMwLCJuYmYiOjE2NjE5NDc5MzAsImV4cCI6MTY2MTk1MjA1MCwiYWNyIjoiMSIsImFpbyI6IkFRUUIrLzRUQUFBQTVIMi95Qm1DYXdpMU5IUmR6MkxldTNIeDVwcXZzTXRoS3FvaTljcnQ1dG1aandWTXgwYS9zKzBTKzliWExCM3NqdUxHTm16RVNJc2J2UGJpa3VxU0E4NjhycnJ0dXczSmFIUjY1cWxnQXNtbERkMkh3Z0c2RHVDY21wOFBMbzRzVmc2NktraGRjZ3IzSXFqU0VYOHRYYlY2cjZFZ2M4UWpEbEpvcUVrZnpUaG5ZaVZLU3ZydE42WTdZTVp2NnUvbW03UU9xeEJsQ0RCd2kzTGNveURUaUlXLzExTVpNeGNST1hMQ0YvczlhV0t3YUphRndVbVZnSDBxQUk1aWtKTEZSc3I1cW8xUE9HUDlqUGlpZWxkKytYR1ArQXVSWU1uZnhRd0tGVmZpZ2FpeEFEVzZNOGZtTmtCVUk0TVlaMmNSUFVDbHNrT3YyUklCL2dIZVB2YVhZUT09IiwiYW1yIjpbInB3ZCIsIm1mYSJdLCJhcHBpZCI6ImE3ODY5NDU1LTMyZjItNGEwNy1iNTY4LTg0ODViOWI4ODdmMCIsImFwcGlkYWNyIjoiMCIsImVtYWlsIjoiZGF2aWQubGl1QGNvZ25pdGVkYXRhLmNvbSIsImZhbWlseV9uYW1lIjoiZXZlciIsImdpdmVuX25hbWUiOiJncmVhdGVzdCIsImdyb3VwcyI6WyI1M2FjZGQ1Yi00OGMwLTQyMTEtYmVlNy1kODZiYjdiYjk0YTMiLCJmMjRiNmU4NC00YmNlLTRjNTAtOGEwZi03YjU1ODQ1MjNkZmIiLCJkZmQ3NzhjMi1hMDE2LTRhZGQtODExOS1jMDk1YjBmZGMxZTQiXSwiaWRwIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvYTlhZTViNTQtMzYwMC00OTE3LWE5ZGMtMzAyMDcyMzM2MGIzLyIsImlwYWRkciI6Ijg0LjIxMC4xNTkuNTkiLCJuYW1lIjoieWEgYm9pIiwib2lkIjoiYWE0ZThmMmEtNTdhZC00NjNkLWI4ZTctNjQxNGNiNTE3Y2FiIiwicmgiOiIwLkFZSUFhMkpCNVZMVmkwaUdkQ1NVZkN3MEx2QjdCanFDU19aR2xQNUJIOUV5MlR1Q0FHby4iLCJzY3AiOiJJREVOVElUWSB1c2VyX2ltcGVyc29uYXRpb24iLCJzdWIiOiJjbGR4anBMV2R4WkpyLW9TUjBUNE1ldEhmT1g5RUJ0Z0g3bjR0N201em5jIiwidGlkIjoiZTU0MTYyNmItZDU1Mi00ODhiLTg2NzQtMjQ5NDdjMmMzNDJlIiwidW5pcXVlX25hbWUiOiJkYXZpZC5saXVAY29nbml0ZWRhdGEuY29tIiwidXRpIjoibU1sUThEQnB3VXU4enY1bXlaWWVBQSIsInZlciI6IjEuMCJ9.tkB7bPbgDGHapmYvNmX7uPug50i0Tp77_PUNG9gAGKxBfsBfqKz2G6XBz8MM9nK4n8rzRGkBxurWCgxktWTwYBGI3gEsPDfIRHizxSNIrv6MScCl1wawoZUWiRscvmf8wDA-QRE_QvbGq3NFqWCKUk8QCEUNja173XSui1Ua3tSotnB-3cLd00DyphSmotNhOZdr5FCCS4rvnghlvIV0gwI6G74BTN8BiO8_a35WciDfKZnc6KazUu8eTh1cIgWI7LixSylTp-fR7PuqPlSnYVM527Pp5kJaGpQcEADaSJy_4t59Rc8rBzuGq5DJ7TNUGeg0wSdFR0FMM3U8u5c-fQ"
CLUSTER="bluefield"
PROJECT="david"
TENANT="dlcognitetest.onmicrosoft.com"
DM_NAME="moviedm"
DM_VERSION="1"
from typing import TypeVar

INGEST_TYPE_NAMES = ('Movie', 'Actor')
INGEST_TYPES = TypeVar('INGEST_TYPES', Movie, Actor)
