UNPKG

condoit

Version:

[![](https://img.shields.io/badge/Docs-Docs-00a02e?logo=github&style=for-the-badge&color=0000ff)](https://securisec.github.io/condoit/) ![](https://img.shields.io/npm/v/condoit?style=for-the-badge)

80 lines (74 loc) 1.66 kB
import { BeforeAfterLimit, RetSearchConstants, ErrorCodes, phid } from './iGlobal'; export interface CountdownServiceSearch extends BeforeAfterLimit { queryKey?: 'all' | 'authored' | 'upcoming'; constraints?: { ids?: Array<number>; phids?: Array<phid>; authorPHIDs?: Array<phid>; upcoming?: Array<'upcoming'>; subscribers?: Array<string>; projects?: Array<string>; }; 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<phid>; subscriberCount: number; viewerIsSubscribed: boolean; }; projects: { projectPHIDs: Array<phid> }; bindings: { bindings: Array<any> }; }; } export interface RetCountdownServiceSearch extends ErrorCodes { result: { data: Array<retCountdownServiceSearchData>; 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<countdownEditTransactions>; objectIdentifier: number | string; }