23 lines
914 B
JavaScript
23 lines
914 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.FuzzResult = void 0;
|
|
const Entity_1 = require("../../../../shared/domain/Entity");
|
|
class FuzzResult extends Entity_1.Entity {
|
|
static create(props, id) {
|
|
return new FuzzResult({ ...props, detectedAt: new Date() }, id);
|
|
}
|
|
static reconstitute(props, id) {
|
|
return new FuzzResult(props, id);
|
|
}
|
|
get sessionId() { return this.props.sessionId; }
|
|
get stateId() { return this.props.stateId; }
|
|
get selector() { return this.props.selector; }
|
|
get payload() { return this.props.payload; }
|
|
get strategy() { return this.props.strategy; }
|
|
get anomalyType() { return this.props.anomalyType; }
|
|
get severity() { return this.props.severity; }
|
|
get description() { return this.props.description; }
|
|
get detectedAt() { return this.props.detectedAt; }
|
|
}
|
|
exports.FuzzResult = FuzzResult;
|