feat(reports): add server-driven report flows (#3330)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-09 01:38:00 +02:00
1 parent bc17922b02
commit ece622e800
471 files changed
+56262 -35932

No files matched your search

@@ -0,0 +1,15 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
import {BadRequestError} from '@fluxer/errors/src/domains/core/BadRequestError';
export class InvalidReportFlowAnswersError extends BadRequestError {
constructor(stepIndex: number) {
super({
code: APIErrorCodes.INVALID_REPORT_FLOW_ANSWERS,
data: {
step_index: stepIndex,
},
});
}
}
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
import {ConflictError} from '@fluxer/errors/src/domains/core/ConflictError';
export class ReportFlowOutdatedError extends ConflictError {
constructor() {
super({
code: APIErrorCodes.REPORT_FLOW_OUTDATED,
});
}
}