import { Org, StatusResult } from '@salesforce/core'; import { Duration } from '@salesforce/kit'; import { AnyJson, JsonMap } from '@salesforce/ts-types'; import SObjectStreaming from '../sObjectStream.js'; import type { AorOutputService } from '../../common/outputService/index.js'; export default class AsyncOpStreaming extends SObjectStreaming { private outputService; constructor(org: Org, wait: Duration, idToInspect: string, outputService: AorOutputService); /** * Connects to the AsyncOperationResults CDC channel and begins to monit for changes to the AOR we are monitoring. If the AOR...... */ monitor(): Promise; /** * This is the processor for the AOR. While InProgress we print the message from the AOR. We finish the stream after completed or errored. * * @param payload The payload from the CDC event * @returns StatusResult Completed: true => will end the stream. */ protected asyncOpStreamProcessor(payload: JsonMap): StatusResult; }