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)

54 lines (48 loc) 1.07 kB
import { ErrorCodes, RetSearchConstants, BeforeAfterLimit, phid } from './iGlobal'; export interface portalEditTransactionType { type: | 'name' | 'view' | 'edit' | 'projects.add' | 'projects.remove' | 'projects.set' | 'mfa'; value: any; } export interface PortalEdit { transactions: Array<portalEditTransactionType>; objectIdentifier?: number | string; } export interface PortalSearch extends BeforeAfterLimit { queryKey?: 'all'; constraints?: { ids: Array<number>; phids: Array<phid>; query: string; projects: Array<string>; }; order?: 'newest' | 'oldest' | 'relevance'; attachments?: { projects: boolean }; } export interface retPortalSearchData extends RetSearchConstants { fields: { dateCreated: number; dateModified: number; policy: { view: string; edit: string }; }; attachments: object; } export interface RetPortalSearch extends ErrorCodes { result: { data: Array<retPortalSearchData>; maps: object; query: { queryKey: string }; cursor: { limit: number; after: string; before: string; order: string }; }; }