Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public _historyRead(
context: SessionContext,
historyReadDetails:
ReadRawModifiedDetails | ReadEventDetails | ReadProcessedDetails | ReadAtTimeDetails,
indexRange: NumericRange | null,
dataEncoding: QualifiedNameLike | null,
continuationPoint: ContinuationPoint | null,
callback: Callback
): any {
const result = new HistoryReadResult({
statusCode: StatusCodes.BadHistoryOperationUnsupported
});
callback(null, result);
}
context: SessionContext,
historyReadDetails: ReadRawModifiedDetails | ReadEventDetails | ReadProcessedDetails | ReadAtTimeDetails,
indexRange: NumericRange | null,
dataEncoding: QualifiedNameLike | null,
continuationPoint?: ContinuationPoint | null,
callback?: Callback
): any {
if (!callback) {
callback = continuationPoint as any as Callback;
continuationPoint = undefined;
}
assert(context instanceof SessionContext);
assert(callback instanceof Function);
if (typeof this._historyRead !== "function") {
return callback(null, new HistoryReadResult({ statusCode: StatusCodes.BadNotReadable }));
}
this._historyRead(context, historyReadDetails, indexRange, dataEncoding, continuationPoint || null, callback);
}