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; objectIdentifier?: number | string; } export interface PortalSearch extends BeforeAfterLimit { queryKey?: 'all'; constraints?: { ids: Array; phids: Array; query: string; projects: Array; }; 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; maps: object; query: { queryKey: string; }; cursor: { limit: number; after: string; before: string; order: string; }; }; }