@lcap/nasl
Version:
NetEase Application Specific Language
46 lines • 1.15 kB
TypeScript
import type { Operation } from './operation';
import type { App } from '@lcap/nasl-concepts';
export type { Operation } from './operation';
export type { BatchInstructResult as InstructStatus } from '@lcap/nasl-types';
export interface InstructAction {
action: 'delete' | 'create' | 'update';
parentKey?: string;
path: string;
object: any;
oldObject?: any;
}
export interface Instruct {
uuid: string;
actions: InstructAction[];
oldUUid?: string;
riskList?: string[];
realAction?: string;
}
export interface TaskOption {
app: App;
hasFrontEnd: boolean;
hasBackEnd: boolean;
instructList: Instruct[];
operationList: Operation[];
}
export declare enum TaskQueueStatus {
ExceedMaxTaskCount = 0,
Retrying = 1
}
export interface ErrorInfo {
code?: number | string;
message?: string;
stack?: string;
result?: any;
event?: {
action?: string;
actionMsg?: string;
sourceType?: string;
extra?: any;
collectingList?: any[];
};
}
export interface RefreshNaslOptions {
errorInfo: ErrorInfo;
}
//# sourceMappingURL=types.d.ts.map