condoit
Version:
[](https://securisec.github.io/condoit/) 
68 lines (67 loc) • 1.97 kB
TypeScript
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;
}