sf-debug-log
Version:
Manage Salesforce Debug Logs
11 lines (10 loc) • 965 B
TypeScript
import { Connection } from '@salesforce/core';
import type { SaveResult, ApexLog, TraceFlag, DebugLevel, DebugLevelCreate, GetLogsOptions } from './types.js';
export declare function createFile(path: string, contents: string): Promise<void>;
export declare function getUserId(connection: Connection, inputUser: string): Promise<string | undefined>;
export declare function getActiveTraceFlag(conn: Connection, userId: string): Promise<TraceFlag | undefined>;
export declare function getDebugLevels(conn: Connection): Promise<DebugLevel[]>;
export declare function createTraceFlag(conn: Connection, userId: string, debugLevelId: string, time: number): Promise<SaveResult>;
export declare function createDebugLevel(conn: Connection, debugLevel: DebugLevelCreate): Promise<SaveResult>;
export declare function getLogs(conn: Connection, options: GetLogsOptions): Promise<ApexLog[]>;
export declare function deleteLogs(conn: Connection, logs: ApexLog[]): Promise<void>;