fase(6): fuzzing module complete
This commit is contained in:
22
dist/modules/fuzzing/domain/entities/FuzzResult.js
vendored
Normal file
22
dist/modules/fuzzing/domain/entities/FuzzResult.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"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;
|
||||
Reference in New Issue
Block a user