UNPKG

@wepublish/api

Version:
88 lines (87 loc) 3.2 kB
import { Prisma } from '@prisma/client'; import { GraphQLEnumType, GraphQLInputObjectType, GraphQLObjectType, GraphQLScalarType } from 'graphql'; import { Context } from '../../context'; import { ConnectionResult } from '../../db/common'; export declare const VoteValue: GraphQLScalarType<number, number>; export declare const GraphQLPoll: GraphQLObjectType<import("@prisma/client/runtime/library").GetResult<{ id: string; createdAt: Date; modifiedAt: Date; opensAt: Date; closedAt: Date; question: string; infoText: Prisma.JsonValue; }, unknown> & {}, Context>; export declare const GraphQLPollAnswer: GraphQLObjectType<import("@prisma/client/runtime/library").GetResult<{ id: string; createdAt: Date; modifiedAt: Date; answer: string; pollId: string; }, unknown> & {}, Context>; export declare const GraphQLPollAnswerWithVoteCount: GraphQLObjectType<import("@prisma/client/runtime/library").GetResult<{ id: string; createdAt: Date; modifiedAt: Date; answer: string; pollId: string; }, unknown> & {} & { _count: Prisma.PollAnswerCountOutputType; }, Context>; export declare const GraphQLPollVote: GraphQLObjectType<import("@prisma/client/runtime/library").GetResult<{ id: string; createdAt: Date; modifiedAt: Date; userId: string; answerId: string; pollId: string; fingerprint: string; disabled: boolean; }, unknown> & {}, Context>; export declare const GraphQLPollExternalVote: GraphQLObjectType<import("@prisma/client/runtime/library").GetResult<{ id: string; createdAt: Date; modifiedAt: Date; answerId: string; sourceId: string; amount: number; }, unknown> & {}, Context>; export declare const GraphQLPollExternalVoteSource: GraphQLObjectType<import("@prisma/client/runtime/library").GetResult<{ id: string; createdAt: Date; modifiedAt: Date; pollId: string; source: string; }, unknown> & {}, Context>; export declare const GraphQLPollConnection: GraphQLObjectType<ConnectionResult<import("@prisma/client/runtime/library").GetResult<{ id: string; createdAt: Date; modifiedAt: Date; opensAt: Date; closedAt: Date; question: string; infoText: Prisma.JsonValue; }, unknown> & {}>, Context>; export declare const GraphQLPollFilter: GraphQLInputObjectType; export declare const GraphQLPollSort: GraphQLEnumType; export declare const GraphQLPollWithAnswers: GraphQLObjectType<import("@prisma/client/runtime/library").GetResult<{ id: string; createdAt: Date; modifiedAt: Date; opensAt: Date; closedAt: Date; question: string; infoText: Prisma.JsonValue; }, unknown> & {}, Context>; export declare const GraphQLFullPoll: GraphQLObjectType<import("@prisma/client/runtime/library").GetResult<{ id: string; createdAt: Date; modifiedAt: Date; opensAt: Date; closedAt: Date; question: string; infoText: Prisma.JsonValue; }, unknown> & {}, Context>; export declare const GraphQLUpdatePollAnswer: GraphQLInputObjectType; export declare const GraphQLUpdatePollExternalVote: GraphQLInputObjectType; export declare const GraphQLUpdatePollExternalVoteSources: GraphQLInputObjectType;