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)

173 lines (172 loc) 4.54 kB
import { BeforeAfterLimit, ErrorCodes, RetSearchConstants, phid } from './iGlobal'; export interface DrydockAlmanacSearch extends BeforeAfterLimit { queryKey?: 'active' | 'all'; constraints?: { ids?: Array<number>; phids?: Array<phid>; blueprintPHIDs?: Array<string>; objectPHIDs?: Array<phid>; }; order?: 'newest' | 'oldest'; } export interface retDDAlmanacSearchData extends RetSearchConstants { fields: { blueprintPHID: phid; blueprintAuthorizationState: object; objectPHID: phid; objectAuthorizationState: object; dateCreated: number; dateModified: number; policy: { view: string; edit: string; }; }; } export interface RetDDAlmanacSearch extends ErrorCodes { result: { data: Array<retDDAlmanacSearchData>; maps: object; query: { queryKey: string; }; cursor: { limit: number; after: string; before: any; order: any; }; }; } export interface DrydockBlueprintSearch extends BeforeAfterLimit { queryKey?: 'active' | 'all'; constraints?: { ids?: Array<number>; phids?: Array<phid>; match?: string; isDisabled?: boolean; projects?: Array<string>; }; attachments: { projects: boolean; }; order?: 'newest' | 'oldest'; } export interface retDDBlueprintSearchData extends RetSearchConstants { fields: { name: string; type: string; dateCreated: number; dateModified: number; policy: { view: string; edit: string; }; }; } export interface RetDDBlueprintSearch extends ErrorCodes { result: { data: Array<retDDBlueprintSearchData>; maps: object; query: { queryKey: string; }; cursor: { limit: number; after: string; before: any; order: any; }; }; } export interface DrydockLeaseSearch extends BeforeAfterLimit { queryKey?: 'active' | 'all'; constraints?: { ids?: Array<number>; phids?: Array<phid>; statuses?: [ 'pending' | 'acquired' | 'active' | 'released' | 'broken' | 'destroyed' ]; ownerPHIDs?: Array<phid>; resourcePHIDs?: Array<phid>; }; order?: 'newest' | 'oldest'; } export interface retDDLeaseSearchData extends RetSearchConstants { fields: { resourcePHID: phid; resourceType: string; until: number; ownerPHID: phid; authorizingPHID: phid; status: object; dateCreated: number; dateModified: number; policy: { view: string; edit: string; }; }; } export interface RetDDLeaseSearch extends ErrorCodes { result: { data: Array<retDDLeaseSearchData>; maps: object; query: { queryKey: string; }; cursor: { limit: number; after: string; before: any; order: any; }; }; } export interface DrydockResourceSearch extends BeforeAfterLimit { queryKey?: 'active' | 'all'; constraints?: { ids?: Array<number>; phids?: Array<phid>; statuses?: [ 'pending' | 'acquired' | 'active' | 'released' | 'broken' | 'destroyed' ]; blueprintPHIDs?: Array<phid>; }; order?: 'newest' | 'oldest'; } export interface retDDResourceSearchData extends RetSearchConstants { fields: { blueprintPHID: phid; status: object; dateCreated: number; dateModified: number; policy: { view: string; edit: string; }; }; } export interface RetDDResourceSearch extends ErrorCodes { result: { data: Array<retDDResourceSearchData>; maps: object; query: { queryKey: string; }; cursor: { limit: number; after: string; before: any; order: any; }; }; } export interface blueprintEditTrans { type: 'type' | 'name' | 'view' | 'edit' | 'projects.add' | 'projects.remove' | 'projects.set' | 'custom.blueprintPHIDs' | 'custom.allocator.limit' | 'mfa'; value: any; } export interface DrydockBlueprintEdit { transactions: Array<blueprintEditTrans>; objectIdentifier?: string | number; }