import { BeforeAfterLimit, RetSearchConstants, ErrorCodes, phid } from './iGlobal'; export interface CountdownServiceSearch extends BeforeAfterLimit { queryKey?: 'all' | 'authored' | 'upcoming'; constraints?: { ids?: Array; phids?: Array; authorPHIDs?: Array; upcoming?: Array<'upcoming'>; subscribers?: Array; projects?: Array; }; attachments: { projects: boolean; subscribers: boolean; }; order?: 'ending' | 'unending' | 'newest' | 'oldest'; } export interface retCountdownServiceSearchData extends RetSearchConstants { fields: { title: string; description: string; epoch: number; spacePHID: phid; dateCreated: number; dateModified: number; policy: { view: string; edit: string; }; }; attachments: { subscribers: { subscriberPHIDs: Array; subscriberCount: number; viewerIsSubscribed: boolean; }; projects: { projectPHIDs: Array; }; bindings: { bindings: Array; }; }; } export interface RetCountdownServiceSearch extends ErrorCodes { result: { data: Array; maps: object; query: { queryKey: string; }; cursor: { limit: number; after: string; before: any; order: any; }; }; } export interface countdownEditTransactions { type: 'space' | 'name' | 'epoch' | 'description' | 'view' | 'edit' | 'projects.add' | 'projects.remove' | 'projects.set' | 'subscribers.add' | 'subscribers.remove' | 'subscribers.set' | 'comment' | 'mfa'; value: any; } export interface CountdownEdit { transactions: Array; objectIdentifier: number | string; }