import { BlockNumberSubscription , BountySubscriptionPayloadSubscription , BountySubscriptionWhereInput , EraSubscription , HeartBeatSubscription , MotionSubscriptionPayloadSubscription , MotionSubscriptionWhereInput , NominationSubscription , OfflineValidatorSubscription , ProposalSubscriptionPayloadSubscription , ProposalSubscriptionWhereInput , ReferendumSubscriptionPayloadSubscription , ReferendumSubscriptionWhereInput , RewardSubscription , SessionSubscription , SlashingSubscription , StakeSubscription , TechCommitteeProposalSubscriptionPayloadSubscription , TechCommitteeProposalSubscriptionWhereInput , TipSubscriptionPayloadSubscription , TipSubscriptionWhereInput , TreasurySpendProposalSubscriptionPayloadSubscription , TreasurySpendProposalSubscriptionWhereInput , ValidatorSubscription , } from '../generated/prisma-client' ; import { Context , Selectors } from '../types' ; const blockNumber = { subscribe : ( parent , { blockNumberSubscriptionWhereInput } , context ) : ( < T = BlockNumberSubscription > ( ) => T ) => { return context . prisma . $subscribe . blockNumber ( { mutation_in : [ 'CREATED' ] , ... blockNumberSubscriptionWhereInput , } ) . node ( ) ; } , resolve : ( payload ) => { return payload ; } , } ; const heartBeat = { subscribe : ( parent , { heartbeatSubscriptionWhereInput } , context ) : ( < T = HeartBeatSubscription > ( ) => T ) => { return context . prisma . $subscribe . heartBeat ( { mutation_in : [ 'CREATED' ] , ... heartbeatSubscriptionWhereInput , } ) . node ( ) ; } , resolve : ( payload ) => { return payload ; } , } ; const era = { subscribe : ( parent , { eraSubscriptionWhereInput } , context ) : ( < T = EraSubscription > ( ) => T ) => { return context . prisma . $subscribe . era ( { mutation_in : [ 'CREATED' ] , ... eraSubscriptionWhereInput , } ) . node ( ) ; } , resolve : ( payload ) => { return payload ; } , } ; const offlineValidator = { subscribe : ( parent , { offlineValidatorsSubscriptionWhereInput } , context ) : ( < T = OfflineValidatorSubscription > ( ) => T ) => { return context . prisma . $subscribe . offlineValidator ( { mutation_in : [ 'CREATED' ] , ... offlineValidatorsSubscriptionWhereInput , } ) . node ( ) ; } , resolve : ( payload ) => { return payload ; } , } ; const nomination = { subscribe : ( parent , { nominationSubscriptionWhereInput } , context ) : ( < T = NominationSubscription > ( ) => T ) => { return context . prisma . $subscribe . nomination ( { mutation_in : [ 'CREATED' ] , ... nominationSubscriptionWhereInput , } ) . node ( ) ; } , resolve : ( payload ) => { return payload ; } , } ; const reward = { subscribe : ( parent , { rewardSubscriptionWhereInput } , context ) : ( < T = RewardSubscription > ( ) => T ) => { return context . prisma . $subscribe . reward ( { mutation_in : [ 'CREATED' ] , ... rewardSubscriptionWhereInput , } ) . node ( ) ; } , resolve : ( payload ) => { return payload ; } , } ; const session = { subscribe : ( parent , { sessionSubscriptionWhereInput } , context ) : ( < T = SessionSubscription > ( ) => T ) => { return context . prisma . $subscribe . session ( { mutation_in : [ 'CREATED' ] , ... sessionSubscriptionWhereInput , } ) . node ( ) ; } , resolve : ( payload ) => { return payload ; } , } ; const slashing = { subscribe : ( parent , { slashingSubscriptionWhereInput } , context ) : ( < T = SlashingSubscription > ( ) => T ) => { return context . prisma . $subscribe . slashing ( { mutation_in : [ 'CREATED' ] , ... slashingSubscriptionWhereInput , } ) . node ( ) ; } , resolve : ( payload ) => { return payload ; } , } ; const stake = { subscribe : ( parent , { stakeSubscriptionWhereInput } , context ) : ( < T = StakeSubscription > ( ) => T ) => { return context . prisma . $subscribe . stake ( { mutation_in : [ 'CREATED' ] , ... stakeSubscriptionWhereInput , } ) . node ( ) ; } , resolve : ( payload ) => { return payload ; } , } ; const validator = { subscribe : ( parent , { validatorSubscriptionWhereInput } , context ) : ( < T = ValidatorSubscription > ( ) => T ) => { return context . prisma . $subscribe . validator ( { mutation_in : [ 'CREATED' ] , ... validatorSubscriptionWhereInput , } ) . node ( ) ; } , resolve : ( payload ) => { return payload ; } , } ; const motion = { subscribe : ( parent , { where } , context ) : MotionSubscriptionPayloadSubscription => { return context . prisma . $subscribe . motion ( where ) ; } , resolve : ( payload ) => { return payload ; } , } ; const proposal = { subscribe : ( parent , { where } , context ) : ProposalSubscriptionPayloadSubscription => { return context . prisma . $subscribe . proposal ( where ) ; } , resolve : ( payload ) => { return payload ; } , } ; const referendum = { subscribe : ( parent , { where } , context ) : ReferendumSubscriptionPayloadSubscription => { return context . prisma . $subscribe . referendum ( where ) ; } , resolve : ( payload ) => { return payload ; } , } ; const treasurySpendProposal = { subscribe : ( parent , { where } , context ) : TreasurySpendProposalSubscriptionPayloadSubscription => { return context . prisma . $subscribe . treasurySpendProposal ( where ) ; } , resolve : ( payload ) => { return payload ; } , } ; const tip = { subscribe : ( parent , { where } , context ) : TipSubscriptionPayloadSubscription => { return context . prisma . $subscribe . tip ( where ) ; } , resolve : ( payload ) => { return payload ; } , } ; const bounty = { subscribe : ( parent , { where } , context ) : BountySubscriptionPayloadSubscription => { return context . prisma . $subscribe . bounty ( where ) ; } , resolve : ( payload ) => { return payload ; } , } ; const techCommitteeProposal = { subscribe : ( parent , { where } , context ) : TechCommitteeProposalSubscriptionPayloadSubscription => { return context . prisma . $subscribe . techCommitteeProposal ( where ) ; } , resolve : ( payload ) => { return payload ; } , } ; export const Subscription = { blockNumber , bounty , era , heartBeat , nomination , offlineValidator , reward , session , slashing , stake , validator , motion , proposal , techCommitteeProposal , tip , treasurySpendProposal , referendum , } ;