Include complete API and frontend sources for unified deployment

This commit is contained in:
Vladimir Kutkovoy committed 2026-11-18 07:44:20 +00:00
1 parent 627b0ae60e
commit d8fcae32b0
93 files changed
+53270 -3

No files matched your search

@@ -0,0 +1,13 @@
import markTypes from '../config/markTypes.js';
import { AppErrorInvalid } from './errors.js';
export const technicalMarkTypes = [markTypes.IMPLEMENTATION, markTypes.WORK];
export function expertRole(value = 'expert') {
if (!['expert', 'technical'].includes(value)) throw new AppErrorInvalid('role');
return value;
}
export function editableMarkTypes(role) {
return role === 'technical'
? technicalMarkTypes
: Object.values(markTypes).filter(type => !technicalMarkTypes.includes(type));
}