mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
feat(reports): add server-driven report flows (#3330)
This commit is contained in:
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,
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user