import { ErrorCodes, RetSearchConstants, BeforeAfterLimit, phid } from './iGlobal'; export interface PollSearch extends BeforeAfterLimit { queryKey: string; constraints: { ids: Array; phids: Array; authorPHIDs: Array; statuses: ['open' | 'closed']; subscribers: Array; projects: Array; }; attachments: { subscribers: boolean; projects: boolean; }; order: any; } export interface retPollSearchData extends RetSearchConstants { fields: { name: string; authorPHID: phid; spacePHID: phid; dateCreated: number; dateModified: number; policy: { view: string; }; }; attachments: object; } export interface RetPollSearch extends ErrorCodes { result: { data: Array; maps: object; query: { queryKey: string; }; cursor: { limit: number; after: string; before: string; order: string; }; }; }