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)

97 lines (89 loc) 1.82 kB
import { ErrorCodes, RetSearchConstants, BeforeAfterLimit, phid } from './iGlobal'; export interface editUsersTransactions { type: | 'disabled' | 'approved' | 'realName' | 'title' | 'icon' | 'blurb' | 'mfa'; value: boolean | string; } export interface UsersEdit { transactions: Array<editUsersTransactions>; objectIdentifier?: number | string; } export interface UsersSearchConstraints { ids?: Array<number>; phids?: Array<phid>; usernames?: Array<string>; nameLike?: string; isAdmin?: boolean; isDisabled?: boolean; isBot?: boolean; isMailingList?: boolean; needsApproval?: boolean; mfa?: boolean; createdStart?: number; createdEnd?: number; query?: string; } export interface UsersSearch extends BeforeAfterLimit { queryKey?: 'active' | 'all' | 'approval'; constraints?: UsersSearchConstraints; attachments?: { availability: boolean }; order?: | 'newest' | 'oldest' | 'relevance' | ['id' | 'username' | 'rank' | 'fulltext-created' | 'fulltext-modified']; } export interface retUsersSearchData extends RetSearchConstants { fields: { username: string; realName: string; roles: Array<string>; dateCreated: number; dateModified: number; policy: { view: string; edit: string }; }; attachments: { availability: { value: string; until: any; name: string; color: string; eventPHID: phid; }; }; } export interface RetUsersSearch extends ErrorCodes { result: { data: Array<retUsersSearchData>; maps: object; query: { queryKey: string }; cursor: { limit: number; after: string; before: any; order: any; }; }; } export interface RetUsersWhoami extends ErrorCodes { result: { phid: phid; userName: string; realName: string; image: string; uri: string; roles: Array<string>; primaryEmail: string; }; }