2026-03-09 11:18:22 +01:00
|
|
|
import { QUESTION_TYPE_IDS } from '@cio/question-types';
|
|
|
|
|
|
2025-11-24 01:00:50 +01:00
|
|
|
/**
|
|
|
|
|
* 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;
|
2025-12-02 09:54:38 +01:00
|
|
|
|
|
|
|
|
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;
|