UNPKG

@wepublish/api

Version:
28 lines (27 loc) 1.08 kB
import { PrismaClient } from '@prisma/client'; import { Context } from '../../context'; import { EventFilter, EventSort } from './event.query'; import { SortOrder } from "../../../../utils-api/src"; export declare const getAdminEvents: (filter: Partial<EventFilter>, sortedField: EventSort, order: SortOrder, cursorId: string | null, skip: number, take: number, authenticate: Context['authenticate'], event: PrismaClient['event']) => Promise<{ nodes: (import("@prisma/client/runtime/library").GetResult<{ id: string; createdAt: Date; modifiedAt: Date; name: string; description: import(".prisma/client").Prisma.JsonValue[]; status: import(".prisma/client").EventStatus; imageId: string; location: string; startsAt: Date; endsAt: Date; externalSourceName: string; externalSourceId: string; }, unknown> & {})[]; totalCount: number; pageInfo: { hasPreviousPage: boolean; hasNextPage: boolean; startCursor: string; endCursor: string; }; }>;