Files
classroomio/packages/utils/src/validation/constants.ts
T

25 lines
746 B
TypeScript
Raw Normal View History

2026-03-09 11:18:22 +01:00
import { QUESTION_TYPE_IDS } from '@cio/question-types';
/**
* Validation Constants
*
* Shared constants used across validation schemas.
* These should match the constants in the API.
*/
export const ALLOWED_CONTENT_TYPES = ['video/mp4', 'video/quicktime', 'video/x-msvideo', 'video/x-matroska'] as const;
export const ALLOWED_DOCUMENT_TYPES = [
'application/pdf',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document', // .docx
'application/msword' // .doc
] as const;
export const ALLOWED_IMAGE_TYPES = ['image/jpeg', 'image/jpg', 'image/png', 'image/webp', 'image/gif'] as const;
2026-03-09 11:18:22 +01:00
/**
* Question Type Constants
* These match canonical question type ids.
*/
export const QUESTION_TYPE = QUESTION_TYPE_IDS;