@tinyweb_dev/oe-exam-sdk 0.1.27 → 0.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -6
- package/dist/api/contest-rooms.js +54 -1
- package/dist/api/contest-rooms.types.js +1 -1
- package/dist/api/exam-create.js +179 -1
- package/dist/api/exam-create.types.js +1 -1
- package/dist/api/exam-entry.js +68 -1
- package/dist/api/exam-entry.types.js +1 -1
- package/dist/api/exam-questions.js +149 -1
- package/dist/api/exam-questions.types.js +1 -1
- package/dist/api/exam-taking.js +84 -1
- package/dist/api/exam-taking.types.d.ts +7 -0
- package/dist/api/exam-taking.types.js +1 -1
- package/dist/api/index.js +8 -1
- package/dist/api/result-review.js +62 -1
- package/dist/api/result-review.types.js +16 -1
- package/dist/components/CueCardEditor.js +58 -1
- package/dist/components/common/ResolvedImage.js +15 -1
- package/dist/components/exams/CompletionDialog.js +8 -1
- package/dist/components/exams/CreateExamInfoForm.js +84 -1
- package/dist/components/exams/CreateExamPageContainer.js +110 -1
- package/dist/components/exams/ExamCreator.js +287 -1
- package/dist/components/exams/ExamPartTabs.js +138 -1
- package/dist/components/exams/ExamPreviewDialog.d.ts +6 -7
- package/dist/components/exams/ExamPreviewDialog.js +121 -1
- package/dist/components/exams/ExamPreviewPartContent.d.ts +18 -0
- package/dist/components/exams/ExamPreviewPartContent.js +27 -0
- package/dist/components/exams/ExamPreviewSidebar.d.ts +17 -0
- package/dist/components/exams/ExamPreviewSidebar.js +37 -0
- package/dist/components/exams/ExamQuestionGrid.js +37 -1
- package/dist/components/exams/ExamQuestionsPageContainer.js +112 -1
- package/dist/components/exams/ExamViewDialog.js +61 -1
- package/dist/components/exams/PartAudioUploader.js +9 -1
- package/dist/components/exams/TemplateSelector.js +76 -1
- package/dist/components/exams/UnsavedChangesDialog.js +7 -1
- package/dist/components/exams/api.js +3 -1
- package/dist/components/exams/create-exam.texts.js +1 -1
- package/dist/components/exams/create-exam.validation.js +18 -1
- package/dist/components/exams/entry/EntryRestartDialog.js +11 -1
- package/dist/components/exams/entry/StudentExamEntryPageContainer.js +358 -1
- package/dist/components/exams/entry/exam-entry.states.js +26 -1
- package/dist/components/exams/entry/exam-entry.utils.js +55 -1
- package/dist/components/exams/entry/fullscreen-loading.js +18 -1
- package/dist/components/exams/entry/index.js +4 -1
- package/dist/components/exams/exam-preview.types.d.ts +30 -0
- package/dist/components/exams/exam-preview.types.js +62 -0
- package/dist/components/exams/exam-question-status.js +45 -1
- package/dist/components/exams/exam-template.utils.js +18 -1
- package/dist/components/exams/index.d.ts +1 -0
- package/dist/components/exams/index.js +19 -1
- package/dist/components/exams/rooms/StudentContestRoomsPageContainer.js +183 -1
- package/dist/components/exams/rooms/contest-rooms.utils.js +93 -1
- package/dist/components/exams/rooms/index.js +2 -1
- package/dist/components/exams/take/ExamTakingApiContext.js +25 -1
- package/dist/components/exams/take/ExamTakingPageContainer.js +955 -1
- package/dist/components/exams/take/GenericQuestionRenderer.js +14 -1
- package/dist/components/exams/take/components/QuestionRenderer.js +207 -1
- package/dist/components/exams/take/components/index.js +11 -1
- package/dist/components/exams/take/components/question-renderers/ArticlesViewer.js +8 -1
- package/dist/components/exams/take/components/question-renderers/MoversAnswerTheQuestionRenderer.js +30 -1
- package/dist/components/exams/take/components/question-renderers/MoversChooseAdjectiveRenderer.js +63 -1
- package/dist/components/exams/take/components/question-renderers/MoversChooseBestAnswerRenderer.js +136 -1
- package/dist/components/exams/take/components/question-renderers/MoversColoringRenderer.js +379 -1
- package/dist/components/exams/take/components/question-renderers/MoversCrossOutWordGroupRenderer.d.ts +20 -0
- package/dist/components/exams/take/components/question-renderers/MoversCrossOutWordGroupRenderer.js +141 -0
- package/dist/components/exams/take/components/question-renderers/MoversFillWordHintRenderer.js +131 -1
- package/dist/components/exams/take/components/question-renderers/MoversGridFillRenderer.js +76 -1
- package/dist/components/exams/take/components/question-renderers/MoversLabelThePictureRenderer.js +68 -1
- package/dist/components/exams/take/components/question-renderers/MoversListenAndWriteRenderer.js +42 -1
- package/dist/components/exams/take/components/question-renderers/MoversMatchByWritingAnswerRenderer.js +131 -1
- package/dist/components/exams/take/components/question-renderers/MoversPictureChooseRenderer.js +76 -1
- package/dist/components/exams/take/components/question-renderers/MoversPictureFillBlankChooseRenderer.js +68 -1
- package/dist/components/exams/take/components/question-renderers/MoversReadingPassageRenderer.js +62 -1
- package/dist/components/exams/take/components/question-renderers/MoversTrueFalseRenderer.d.ts +1 -1
- package/dist/components/exams/take/components/question-renderers/MoversTrueFalseRenderer.js +51 -1
- package/dist/components/exams/take/components/question-renderers/MoversWordFillParagraphRenderer.js +171 -1
- package/dist/components/exams/take/components/question-renderers/MoversWordFillStructuredFormRenderer.js +198 -1
- package/dist/components/exams/take/components/question-renderers/MoversWordOrderAndMatchGroupRenderer.d.ts +15 -0
- package/dist/components/exams/take/components/question-renderers/MoversWordOrderAndMatchGroupRenderer.js +36 -0
- package/dist/components/exams/take/components/question-renderers/MoversWordOrderingRenderer.js +92 -1
- package/dist/components/exams/take/components/question-renderers/MoversWriteSentencesRenderer.js +11 -1
- package/dist/components/exams/take/components/question-renderers/MoversWritingRenderer.js +56 -1
- package/dist/components/exams/take/components/question-renderers/index.d.ts +2 -0
- package/dist/components/exams/take/components/question-renderers/index.js +25 -1
- package/dist/components/exams/take/components/speaking/SpeakingAudioPlayer.js +85 -1
- package/dist/components/exams/take/components/speaking/SpeakingContentFrame.js +10 -1
- package/dist/components/exams/take/components/speaking/SpeakingExamLayout.js +15 -1
- package/dist/components/exams/take/components/speaking/SpeakingHeader.js +6 -1
- package/dist/components/exams/take/components/speaking/SpeakingInstructionBar.js +8 -1
- package/dist/components/exams/take/components/speaking/SpeakingMicButton.js +59 -1
- package/dist/components/exams/take/components/speaking/SpeakingNavButton.js +7 -1
- package/dist/components/exams/take/components/speaking/SpeakingPartBadge.js +5 -1
- package/dist/components/exams/take/components/speaking/SpeakingReadDisplayedContent.module.css +120 -0
- package/dist/components/exams/take/components/speaking/SpeakingRecordingPreview.js +73 -1
- package/dist/components/exams/take/components/speaking/SpeakingReportErrorButton.js +8 -1
- package/dist/components/exams/take/components/speaking/SpeakingSpontaneousQA.module.css +344 -0
- package/dist/components/exams/take/components/speaking/SpeakingVideoIntro.js +32 -1
- package/dist/components/exams/take/components/speaking/index.js +1 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingChooseAnswerGroupRenderer.js +63 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingChooseObjectsRenderer.js +95 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingCompareImagesRenderer.js +35 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingConversationRenderer.js +147 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingCueCardRenderer.js +232 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingDescribeImageRenderer.js +193 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingDragObjectsRenderer.js +155 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingGNInterviewRenderer.js +212 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingInfoExchangeRenderer.js +77 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingListenAndSpeakAnswerRenderer.js +64 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingOddOneOutRenderer.js +69 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingQuestionListRenderer.js +64 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingQuestionRenderer.js +92 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingReadDisplayedContentRenderer.js +202 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingSpontaneousQARenderer.js +339 -1
- package/dist/components/exams/take/components/speaking/renderers/SpeakingSpontaneousQaGroupRenderer.d.ts +19 -0
- package/dist/components/exams/take/components/speaking/renderers/SpeakingSpontaneousQaGroupRenderer.js +76 -0
- package/dist/components/exams/take/components/speaking/renderers/SpeakingStoryImagesRenderer.js +56 -1
- package/dist/components/exams/take/components/speaking/renderers/SpontaneousQACambridgeLayout.d.ts +24 -0
- package/dist/components/exams/take/components/speaking/renderers/SpontaneousQACambridgeLayout.js +120 -0
- package/dist/components/exams/take/components/speaking/renderers/SpontaneousQAInlineAudioPlayer.d.ts +8 -0
- package/dist/components/exams/take/components/speaking/renderers/SpontaneousQAInlineAudioPlayer.js +94 -0
- package/dist/components/exams/take/components/speaking/renderers/SpontaneousQASummerSkyAudioPlayer.d.ts +8 -0
- package/dist/components/exams/take/components/speaking/renderers/SpontaneousQASummerSkyAudioPlayer.js +101 -0
- package/dist/components/exams/take/components/speaking/renderers/index.d.ts +1 -0
- package/dist/components/exams/take/components/speaking/renderers/index.js +14 -1
- package/dist/components/exams/take/exam-taking.utils.d.ts +13 -0
- package/dist/components/exams/take/exam-taking.utils.js +203 -1
- package/dist/components/exams/take/hooks/index.js +2 -1
- package/dist/components/exams/take/hooks/useAnswerAutosave.js +71 -1
- package/dist/components/exams/take/hooks/useAttemptSubmit.js +38 -1
- package/dist/components/exams/take/hooks/useAutoSave.js +83 -1
- package/dist/components/exams/take/hooks/useExamCountdown.js +35 -1
- package/dist/components/exams/take/hooks/useExamTimer.js +97 -1
- package/dist/components/exams/take/hooks/useProctoringCamera.js +118 -1
- package/dist/components/exams/take/hooks/useProctoringSnapshot.js +76 -1
- package/dist/components/exams/take/hooks/useSpeakingConversationAudio.js +178 -1
- package/dist/components/exams/take/hooks/useSpeakingNavigation.js +51 -1
- package/dist/components/exams/take/hooks/useSpeakingRecorder.js +406 -1
- package/dist/components/exams/take/hooks/useSpeakingRendererSetup.js +136 -1
- package/dist/components/exams/take/hooks/useSpontaneousQaGroupRecorder.d.ts +11 -0
- package/dist/components/exams/take/hooks/useSpontaneousQaGroupRecorder.js +352 -0
- package/dist/components/exams/take/hooks/useSpontaneousQaGroupRendererSetup.d.ts +42 -0
- package/dist/components/exams/take/hooks/useSpontaneousQaGroupRendererSetup.js +166 -0
- package/dist/components/exams/take/hooks/useToeicAudio.js +35 -1
- package/dist/components/exams/take/index.js +6 -1
- package/dist/components/exams/take/types/speaking-cue-card.types.js +1 -1
- package/dist/components/exams/take/types/speaking.types.js +7 -1
- package/dist/components/exams/take/types.js +4 -1
- package/dist/components/exams/take/utils/answer-transformers.js +452 -1
- package/dist/components/exams/take/utils/cambridge-yle-inline-speaking.d.ts +21 -0
- package/dist/components/exams/take/utils/cambridge-yle-inline-speaking.js +44 -0
- package/dist/components/exams/take/utils/coloring-assignments.js +40 -1
- package/dist/components/exams/take/utils/cross-out-word-group.transformer.d.ts +21 -0
- package/dist/components/exams/take/utils/cross-out-word-group.transformer.js +83 -0
- package/dist/components/exams/take/utils/question-transformers.d.ts +43 -2
- package/dist/components/exams/take/utils/question-transformers.js +1137 -1
- package/dist/components/features/exam-entry/entry-state-cards.js +19 -1
- package/dist/components/features/exam-entry/index.js +2 -1
- package/dist/components/features/exam-entry/themed/CambridgeYleWaitingRoom.js +121 -1
- package/dist/components/features/exam-entry/themed/ThemedWaitingRoom.js +37 -1
- package/dist/components/features/exam-entry/themed/ToeicWaitingRoom.js +15 -1
- package/dist/components/features/exam-entry/themed/cambridge-yle-waiting-parts.js +80 -1
- package/dist/components/features/exam-entry/themed/components/CloseButton.js +6 -1
- package/dist/components/features/exam-entry/themed/components/ExamInfoPanel.js +17 -1
- package/dist/components/features/exam-entry/themed/components/ModeSelector.js +6 -1
- package/dist/components/features/exam-entry/themed/components/StartButton.js +12 -1
- package/dist/components/features/exam-entry/themed/components/index.js +4 -1
- package/dist/components/features/exam-entry/themed/index.js +3 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +43 -1
- package/dist/components/questions/_shared/config/question-types.config.js +362 -1
- package/dist/components/questions/_shared/constants/color-palette.js +21 -1
- package/dist/components/questions/_shared/hooks/useAnswerGroupQuestionGroup.js +105 -1
- package/dist/components/questions/_shared/hooks/useBasicQuestionGroup.js +222 -1
- package/dist/components/questions/_shared/hooks/useCompareImagesGroup.js +140 -1
- package/dist/components/questions/_shared/hooks/useImageQuestionGroup.js +123 -1
- package/dist/components/questions/_shared/hooks/useInfoExchangeGroup.js +50 -1
- package/dist/components/questions/_shared/hooks/useQuestionFormState.js +54 -1
- package/dist/components/questions/_shared/hooks/useQuestionInitialization.js +123 -1
- package/dist/components/questions/_shared/hooks/useQuestionListGroup.js +121 -1
- package/dist/components/questions/_shared/hooks/useQuestionOnChange.js +70 -1
- package/dist/components/questions/_shared/hooks/useSceneQuestionGroup.js +194 -1
- package/dist/components/questions/_shared/index.js +7 -1
- package/dist/components/questions/_shared/types/answer-the-question.type.js +1 -1
- package/dist/components/questions/_shared/types/arrange-letters-into-words.type.js +1 -1
- package/dist/components/questions/_shared/types/choose-correct-adjective.type.js +3 -1
- package/dist/components/questions/_shared/types/choose-the-correct-answer-group.type.d.ts +1 -0
- package/dist/components/questions/_shared/types/choose-the-correct-answer-group.type.js +1 -1
- package/dist/components/questions/_shared/types/color-region.config.js +1 -1
- package/dist/components/questions/_shared/types/cross-out-word-group.type.d.ts +2 -0
- package/dist/components/questions/_shared/types/cross-out-word-group.type.js +1 -1
- package/dist/components/questions/_shared/types/fill-in-blank.type.js +1 -1
- package/dist/components/questions/_shared/types/fill-missing-words-in-grid.type.js +1 -1
- package/dist/components/questions/_shared/types/gn-speaking-interview.type.js +1 -1
- package/dist/components/questions/_shared/types/index.d.ts +1 -0
- package/dist/components/questions/_shared/types/index.js +14 -1
- package/dist/components/questions/_shared/types/label-the-picture.type.js +1 -1
- package/dist/components/questions/_shared/types/listen-and-choose-from-answer-group.type.js +1 -1
- package/dist/components/questions/_shared/types/listen-and-choose-objects-in-scene.type.js +1 -1
- package/dist/components/questions/_shared/types/listen-and-drag-objects-into-scene.type.js +1 -1
- package/dist/components/questions/_shared/types/listen-and-speak-answer.type.js +1 -1
- package/dist/components/questions/_shared/types/listen-and-speak-compare-images.type.js +1 -1
- package/dist/components/questions/_shared/types/listen-and-speak-image-group.type.js +1 -1
- package/dist/components/questions/_shared/types/listen-and-speak-info-exchange.type.js +1 -1
- package/dist/components/questions/_shared/types/listen-and-speak-odd-one-out.type.js +3 -1
- package/dist/components/questions/_shared/types/listen-and-speak-question-list.type.js +1 -1
- package/dist/components/questions/_shared/types/listen-and-speak-with-story-images.type.js +3 -1
- package/dist/components/questions/_shared/types/listen-and-tick-answer.type.js +1 -1
- package/dist/components/questions/_shared/types/listening-drawline.type.js +1 -1
- package/dist/components/questions/_shared/types/look-and-choose-answer.type.js +1 -1
- package/dist/components/questions/_shared/types/look-picture-fill-word-hint.type.js +1 -1
- package/dist/components/questions/_shared/types/match-by-writing-answer.type.js +1 -1
- package/dist/components/questions/_shared/types/multiple-choice.type.d.ts +5 -0
- package/dist/components/questions/_shared/types/multiple-choice.type.js +1 -1
- package/dist/components/questions/_shared/types/question-group.type.js +11 -1
- package/dist/components/questions/_shared/types/read-and-color-objects.type.js +1 -1
- package/dist/components/questions/_shared/types/read-displayed-content.type.js +1 -1
- package/dist/components/questions/_shared/types/read-passage-and-answer-questions.type.js +1 -1
- package/dist/components/questions/_shared/types/speaking-describe-image.type.js +1 -1
- package/dist/components/questions/_shared/types/spontaneous-qa-group.type.d.ts +37 -0
- package/dist/components/questions/_shared/types/spontaneous-qa-group.type.js +1 -0
- package/dist/components/questions/_shared/types/spontaneous-qa.type.js +1 -1
- package/dist/components/questions/_shared/types/true-false-group.type.js +1 -1
- package/dist/components/questions/_shared/types/word-fill-paragraph-with-options.type.js +1 -1
- package/dist/components/questions/_shared/types/word-fill-paragraph.type.js +1 -1
- package/dist/components/questions/_shared/types/word-fill-structured-form.type.d.ts +20 -11
- package/dist/components/questions/_shared/types/word-fill-structured-form.type.js +1 -1
- package/dist/components/questions/_shared/types/word-order-and-match-group.type.d.ts +38 -0
- package/dist/components/questions/_shared/types/word-order-and-match-group.type.js +1 -0
- package/dist/components/questions/_shared/types/word-ordering.type.js +1 -1
- package/dist/components/questions/_shared/types/write-a-short-letter.type.js +1 -1
- package/dist/components/questions/_shared/types/write-correct-verb-form.type.js +3 -1
- package/dist/components/questions/_shared/types/write-sentences.type.js +1 -1
- package/dist/components/questions/_shared/types/write-short-paragraph.type.js +1 -1
- package/dist/components/questions/_shared/utils/answer-builder.js +79 -1
- package/dist/components/questions/_shared/utils/createColorRegionRegistration.js +39 -1
- package/dist/components/questions/_shared/utils/id-generator.js +3 -1
- package/dist/components/questions/_shared/utils/parseFillBlankStem.d.ts +30 -0
- package/dist/components/questions/_shared/utils/parseFillBlankStem.js +69 -0
- package/dist/components/questions/_shared/utils/question-validation.js +21 -1
- package/dist/components/questions/components/ColorNode.js +85 -1
- package/dist/components/questions/components/ColorRegionClient.js +545 -1
- package/dist/components/questions/components/ColorRegionCreator.js +420 -1
- package/dist/components/questions/components/ColorRegionNode.js +59 -1
- package/dist/components/questions/components/CreatorGuide.js +103 -1
- package/dist/components/questions/components/NameNode.js +26 -1
- package/dist/components/questions/components/QuestionBankOption.js +46 -1
- package/dist/components/questions/components/QuestionBasicInfoForm.js +9 -1
- package/dist/components/questions/components/QuestionCommonFields.js +33 -1
- package/dist/components/questions/components/QuestionSearchDropdown.js +258 -1
- package/dist/components/questions/components/QuestionTypeSelector.js +32 -1
- package/dist/components/questions/components/QuestionTypeSpecificForms.js +6 -1
- package/dist/components/questions/components/RegionNode.js +94 -1
- package/dist/components/questions/components/index.js +14 -1
- package/dist/components/questions/creator/QuestionCreator.js +90 -1
- package/dist/components/questions/creator/QuestionGroupCreator.js +119 -1
- package/dist/components/questions/creator/dedicated-component-router.js +79 -1
- package/dist/components/questions/creator/index.js +3 -1
- package/dist/components/questions/creator/question-type-registry.js +90 -1
- package/dist/components/questions/groups/ArticlesGroupCard.js +121 -1
- package/dist/components/questions/groups/BasicQuestionGroupCard.js +50 -1
- package/dist/components/questions/groups/DocumentGroupCard.js +114 -1
- package/dist/components/questions/groups/MatchAnswerGroupCard.js +25 -1
- package/dist/components/questions/index.d.ts +1 -0
- package/dist/components/questions/index.js +11 -1
- package/dist/components/questions/question-bank/EditQuestionBankDialog.d.ts +2 -0
- package/dist/components/questions/question-bank/EditQuestionBankDialog.js +114 -0
- package/dist/components/questions/question-bank/QuestionEditorRenderer.d.ts +23 -0
- package/dist/components/questions/question-bank/QuestionEditorRenderer.js +75 -0
- package/dist/components/questions/question-bank/difficulty.d.ts +15 -0
- package/dist/components/questions/question-bank/difficulty.js +33 -0
- package/dist/components/questions/question-bank/editor-adapters/choice-adapters.d.ts +5 -0
- package/dist/components/questions/question-bank/editor-adapters/choice-adapters.js +101 -0
- package/dist/components/questions/question-bank/editor-adapters/index.d.ts +5 -0
- package/dist/components/questions/question-bank/editor-adapters/index.js +4 -0
- package/dist/components/questions/question-bank/editor-adapters/media-adapters.d.ts +6 -0
- package/dist/components/questions/question-bank/editor-adapters/media-adapters.js +140 -0
- package/dist/components/questions/question-bank/editor-adapters/types.d.ts +1 -0
- package/dist/components/questions/question-bank/editor-adapters/types.js +1 -0
- package/dist/components/questions/question-bank/editor-adapters/unsupported-fallback.d.ts +8 -0
- package/dist/components/questions/question-bank/editor-adapters/unsupported-fallback.js +6 -0
- package/dist/components/questions/question-bank/editor-adapters/writing-adapters.d.ts +5 -0
- package/dist/components/questions/question-bank/editor-adapters/writing-adapters.js +114 -0
- package/dist/components/questions/question-bank/index.d.ts +4 -0
- package/dist/components/questions/question-bank/index.js +3 -0
- package/dist/components/questions/question-bank/types.d.ts +59 -0
- package/dist/components/questions/question-bank/types.js +1 -0
- package/dist/components/questions/types/answer-the-question/AnswerTheQuestionClient.js +37 -1
- package/dist/components/questions/types/answer-the-question/AnswerTheQuestionCreator.js +351 -1
- package/dist/components/questions/types/answer-the-question/register.js +67 -1
- package/dist/components/questions/types/answer-the-question/transform.js +36 -1
- package/dist/components/questions/types/arrange-letters-into-words/ArrangeLettersIntoWordsClient.js +141 -1
- package/dist/components/questions/types/arrange-letters-into-words/ArrangeLettersIntoWordsCreator.js +118 -1
- package/dist/components/questions/types/arrange-letters-into-words/index.js +2 -1
- package/dist/components/questions/types/arrange-letters-into-words/register.js +4 -1
- package/dist/components/questions/types/arrange-letters-into-words/transform.js +24 -1
- package/dist/components/questions/types/choose-correct-adjective/ChooseCorrectAdjectiveClient.js +74 -1
- package/dist/components/questions/types/choose-correct-adjective/ChooseCorrectAdjectiveCreator.js +169 -1
- package/dist/components/questions/types/choose-correct-adjective/index.js +2 -1
- package/dist/components/questions/types/choose-correct-adjective/register.js +55 -1
- package/dist/components/questions/types/choose-correct-adjective/transform.js +16 -1
- package/dist/components/questions/types/choose-the-correct-answer/ChooseTheCorrectAnswerClient.js +149 -1
- package/dist/components/questions/types/choose-the-correct-answer/ChooseTheCorrectAnswerCreator.js +568 -1
- package/dist/components/questions/types/choose-the-correct-answer/index.js +3 -1
- package/dist/components/questions/types/choose-the-correct-answer/normalize.d.ts +9 -0
- package/dist/components/questions/types/choose-the-correct-answer/normalize.js +88 -1
- package/dist/components/questions/types/choose-the-correct-answer/register.js +99 -1
- package/dist/components/questions/types/choose-the-correct-answer/transform.js +70 -1
- package/dist/components/questions/types/choose-the-correct-answer-group/ChooseTheCorrectAnswerGroupClient.js +22 -1
- package/dist/components/questions/types/choose-the-correct-answer-group/ChooseTheCorrectAnswerGroupCreator.js +163 -1
- package/dist/components/questions/types/choose-the-correct-answer-group/index.d.ts +1 -0
- package/dist/components/questions/types/choose-the-correct-answer-group/index.js +3 -1
- package/dist/components/questions/types/choose-the-correct-answer-group/map-choose-the-correct-answer-group-data.d.ts +4 -0
- package/dist/components/questions/types/choose-the-correct-answer-group/map-choose-the-correct-answer-group-data.js +94 -0
- package/dist/components/questions/types/choose-the-correct-answer-group/register.js +36 -1
- package/dist/components/questions/types/choose-the-correct-answer-group/transform.js +55 -1
- package/dist/components/questions/types/cross-out-word-group/CrossOutWordGroupClient.js +27 -1
- package/dist/components/questions/types/cross-out-word-group/CrossOutWordGroupCreator.js +231 -1
- package/dist/components/questions/types/cross-out-word-group/index.d.ts +1 -0
- package/dist/components/questions/types/cross-out-word-group/index.js +5 -1
- package/dist/components/questions/types/cross-out-word-group/map-cross-out-word-group-data.d.ts +6 -0
- package/dist/components/questions/types/cross-out-word-group/map-cross-out-word-group-data.js +110 -0
- package/dist/components/questions/types/cross-out-word-group/register.js +36 -1
- package/dist/components/questions/types/cross-out-word-group/transform.js +67 -1
- package/dist/components/questions/types/fill-in-blank/FillInBlankClient.js +275 -1
- package/dist/components/questions/types/fill-in-blank/FillInBlankCreator.js +464 -1
- package/dist/components/questions/types/fill-in-blank/index.js +2 -1
- package/dist/components/questions/types/fill-in-blank/register.js +148 -1
- package/dist/components/questions/types/fill-in-blank/transform.js +88 -1
- package/dist/components/questions/types/fill-missing-words-in-grid/FillMissingWordsInGridClient.js +117 -1
- package/dist/components/questions/types/fill-missing-words-in-grid/FillMissingWordsInGridCreator.js +671 -1
- package/dist/components/questions/types/fill-missing-words-in-grid/index.js +2 -1
- package/dist/components/questions/types/fill-missing-words-in-grid/register.js +37 -1
- package/dist/components/questions/types/fill-missing-words-in-grid/transform.js +15 -1
- package/dist/components/questions/types/gn-speaking-interview/GNSpeakingInterviewCreator.js +262 -1
- package/dist/components/questions/types/gn-speaking-interview/register.js +121 -1
- package/dist/components/questions/types/gn-speaking-interview/transform.js +48 -1
- package/dist/components/questions/types/image-object-matching/ImageObjectMatchingClient.js +16 -1
- package/dist/components/questions/types/image-object-matching/ImageObjectMatchingCreator.js +27 -1
- package/dist/components/questions/types/image-object-matching/index.js +2 -1
- package/dist/components/questions/types/image-object-matching/register.js +3 -1
- package/dist/components/questions/types/image-object-matching/transform.js +2 -1
- package/dist/components/questions/types/label-the-picture/LabelThePictureClient.js +102 -1
- package/dist/components/questions/types/label-the-picture/LabelThePictureCreator.js +344 -1
- package/dist/components/questions/types/label-the-picture/index.js +2 -1
- package/dist/components/questions/types/label-the-picture/register.js +54 -1
- package/dist/components/questions/types/label-the-picture/transform.js +28 -1
- package/dist/components/questions/types/listen-and-choose-from-answer-group/ListenAndChooseFromAnswerGroupClient.js +78 -1
- package/dist/components/questions/types/listen-and-choose-from-answer-group/ListenAndChooseFromAnswerGroupCreator.js +232 -1
- package/dist/components/questions/types/listen-and-choose-from-answer-group/index.js +2 -1
- package/dist/components/questions/types/listen-and-choose-from-answer-group/register.js +82 -1
- package/dist/components/questions/types/listen-and-choose-from-answer-group/transform.js +27 -1
- package/dist/components/questions/types/listen-and-choose-objects-in-scene/ListenAndChooseObjectsInSceneClient.js +70 -1
- package/dist/components/questions/types/listen-and-choose-objects-in-scene/ListenAndChooseObjectsInSceneCreator.js +386 -1
- package/dist/components/questions/types/listen-and-choose-objects-in-scene/index.js +2 -1
- package/dist/components/questions/types/listen-and-choose-objects-in-scene/register.js +100 -1
- package/dist/components/questions/types/listen-and-choose-objects-in-scene/transform.js +33 -1
- package/dist/components/questions/types/listen-and-drag-objects-into-scene/ListenAndDragObjectsIntoSceneClient.js +106 -1
- package/dist/components/questions/types/listen-and-drag-objects-into-scene/ListenAndDragObjectsIntoSceneCreator.js +457 -1
- package/dist/components/questions/types/listen-and-drag-objects-into-scene/index.js +2 -1
- package/dist/components/questions/types/listen-and-drag-objects-into-scene/register.js +110 -1
- package/dist/components/questions/types/listen-and-drag-objects-into-scene/transform.js +35 -1
- package/dist/components/questions/types/listen-and-speak-answer/ArrowIndicator.js +8 -1
- package/dist/components/questions/types/listen-and-speak-answer/ListenAndSpeakAnswerClient.js +22 -1
- package/dist/components/questions/types/listen-and-speak-answer/ListenAndSpeakAnswerCreator.js +291 -1
- package/dist/components/questions/types/listen-and-speak-answer/index.js +2 -1
- package/dist/components/questions/types/listen-and-speak-answer/register.js +84 -1
- package/dist/components/questions/types/listen-and-speak-answer/transform.js +27 -1
- package/dist/components/questions/types/listen-and-speak-compare-images/ListenAndSpeakCompareImagesClient.js +32 -1
- package/dist/components/questions/types/listen-and-speak-compare-images/ListenAndSpeakCompareImagesCreator.js +295 -1
- package/dist/components/questions/types/listen-and-speak-compare-images/register.js +79 -1
- package/dist/components/questions/types/listen-and-speak-compare-images/transform.js +27 -1
- package/dist/components/questions/types/listen-and-speak-image-group/ListenAndSpeakImageGroupClient.js +34 -1
- package/dist/components/questions/types/listen-and-speak-image-group/ListenAndSpeakImageGroupCreator.js +285 -1
- package/dist/components/questions/types/listen-and-speak-image-group/register.js +81 -1
- package/dist/components/questions/types/listen-and-speak-image-group/transform.js +26 -1
- package/dist/components/questions/types/listen-and-speak-info-exchange/ListenAndSpeakInfoExchangeClient.js +38 -1
- package/dist/components/questions/types/listen-and-speak-info-exchange/ListenAndSpeakInfoExchangeCreator.js +385 -1
- package/dist/components/questions/types/listen-and-speak-info-exchange/register.js +87 -1
- package/dist/components/questions/types/listen-and-speak-info-exchange/transform.js +32 -1
- package/dist/components/questions/types/listen-and-speak-odd-one-out/ListenAndSpeakOddOneOutClient.js +26 -1
- package/dist/components/questions/types/listen-and-speak-odd-one-out/ListenAndSpeakOddOneOutCreator.js +247 -1
- package/dist/components/questions/types/listen-and-speak-odd-one-out/register.js +59 -1
- package/dist/components/questions/types/listen-and-speak-odd-one-out/transform.js +18 -1
- package/dist/components/questions/types/listen-and-speak-question-list/ListenAndSpeakQuestionListClient.js +26 -1
- package/dist/components/questions/types/listen-and-speak-question-list/ListenAndSpeakQuestionListCreator.js +256 -1
- package/dist/components/questions/types/listen-and-speak-question-list/register.js +81 -1
- package/dist/components/questions/types/listen-and-speak-question-list/transform.js +26 -1
- package/dist/components/questions/types/listen-and-speak-with-story-images/ListenAndSpeakWithStoryImagesClient.js +26 -1
- package/dist/components/questions/types/listen-and-speak-with-story-images/ListenAndSpeakWithStoryImagesCreator.js +230 -1
- package/dist/components/questions/types/listen-and-speak-with-story-images/register.js +56 -1
- package/dist/components/questions/types/listen-and-speak-with-story-images/transform.js +16 -1
- package/dist/components/questions/types/look-picture-choose-correct-answer/LookPictureChooseCorrectAnswerClient.js +72 -1
- package/dist/components/questions/types/look-picture-choose-correct-answer/LookPictureChooseCorrectAnswerCreator.js +230 -1
- package/dist/components/questions/types/look-picture-choose-correct-answer/index.js +1 -1
- package/dist/components/questions/types/look-picture-choose-correct-answer/register.js +66 -1
- package/dist/components/questions/types/look-picture-choose-correct-answer/transform.js +42 -1
- package/dist/components/questions/types/look-picture-fill-blank-choose-answer/LookPictureFillBlankChooseAnswerClient.js +96 -1
- package/dist/components/questions/types/look-picture-fill-blank-choose-answer/LookPictureFillBlankChooseAnswerCreator.js +238 -1
- package/dist/components/questions/types/look-picture-fill-blank-choose-answer/index.js +2 -1
- package/dist/components/questions/types/look-picture-fill-blank-choose-answer/register.js +76 -1
- package/dist/components/questions/types/look-picture-fill-blank-choose-answer/transform.js +19 -1
- package/dist/components/questions/types/look-picture-fill-word-hint/LookPictureFillWordHintClient.js +134 -1
- package/dist/components/questions/types/look-picture-fill-word-hint/LookPictureFillWordHintCreator.js +617 -1
- package/dist/components/questions/types/look-picture-fill-word-hint/index.js +2 -1
- package/dist/components/questions/types/look-picture-fill-word-hint/register.js +82 -1
- package/dist/components/questions/types/look-picture-fill-word-hint/transform.js +29 -1
- package/dist/components/questions/types/match-by-writing-answer/MatchByWritingAnswerClient.js +38 -1
- package/dist/components/questions/types/match-by-writing-answer/MatchByWritingAnswerCreator.js +359 -1
- package/dist/components/questions/types/match-by-writing-answer/index.js +3 -1
- package/dist/components/questions/types/match-by-writing-answer/register.js +58 -1
- package/dist/components/questions/types/match-by-writing-answer/transform.js +61 -1
- package/dist/components/questions/types/read-and-color-objects/ReadAndColorObjectsClient.js +16 -1
- package/dist/components/questions/types/read-and-color-objects/ReadAndColorObjectsCreator.js +23 -1
- package/dist/components/questions/types/read-and-color-objects/index.js +2 -1
- package/dist/components/questions/types/read-and-color-objects/register.js +3 -1
- package/dist/components/questions/types/read-and-color-objects/transform.js +36 -1
- package/dist/components/questions/types/read-displayed-content/ReadDisplayedContentCreator.js +125 -1
- package/dist/components/questions/types/read-displayed-content/register.js +64 -1
- package/dist/components/questions/types/read-displayed-content/transform.js +12 -1
- package/dist/components/questions/types/read-passage-and-answer-questions/ReadPassageAndAnswerQuestionsClient.js +65 -1
- package/dist/components/questions/types/read-passage-and-answer-questions/ReadPassageAndAnswerQuestionsCreator.js +511 -1
- package/dist/components/questions/types/read-passage-and-answer-questions/index.js +2 -1
- package/dist/components/questions/types/read-passage-and-answer-questions/register.js +58 -1
- package/dist/components/questions/types/read-passage-and-answer-questions/transform.js +28 -1
- package/dist/components/questions/types/speaking-conversation/SpeakingConversationCreator.js +373 -1
- package/dist/components/questions/types/speaking-conversation/SpeakingConversationPreviewClient.js +41 -1
- package/dist/components/questions/types/speaking-conversation/register.js +110 -1
- package/dist/components/questions/types/speaking-conversation/transform.js +34 -1
- package/dist/components/questions/types/speaking-cue-card/SpeakingCueCardCreator.js +74 -1
- package/dist/components/questions/types/speaking-cue-card/register.js +52 -1
- package/dist/components/questions/types/speaking-cue-card/transform.js +12 -1
- package/dist/components/questions/types/speaking-describe-image/SpeakingDescribeImageClient.js +10 -1
- package/dist/components/questions/types/speaking-describe-image/SpeakingDescribeImageCreator.js +161 -1
- package/dist/components/questions/types/speaking-describe-image/index.js +2 -1
- package/dist/components/questions/types/speaking-describe-image/register.js +69 -1
- package/dist/components/questions/types/speaking-describe-image/transform.js +16 -1
- package/dist/components/questions/types/spontaneous-qa/SpontaneousQACreator.js +234 -1
- package/dist/components/questions/types/spontaneous-qa/register.js +93 -1
- package/dist/components/questions/types/spontaneous-qa/transform.js +34 -1
- package/dist/components/questions/types/spontaneous-qa-group/SpontaneousQaGroupClient.d.ts +2 -0
- package/dist/components/questions/types/spontaneous-qa-group/SpontaneousQaGroupClient.js +9 -0
- package/dist/components/questions/types/spontaneous-qa-group/SpontaneousQaGroupCreator.d.ts +2 -0
- package/dist/components/questions/types/spontaneous-qa-group/SpontaneousQaGroupCreator.js +179 -0
- package/dist/components/questions/types/spontaneous-qa-group/creator-helpers.d.ts +5 -0
- package/dist/components/questions/types/spontaneous-qa-group/creator-helpers.js +43 -0
- package/dist/components/questions/types/spontaneous-qa-group/flatten.d.ts +14 -0
- package/dist/components/questions/types/spontaneous-qa-group/flatten.js +69 -0
- package/dist/components/questions/types/spontaneous-qa-group/index.d.ts +2 -0
- package/dist/components/questions/types/spontaneous-qa-group/index.js +2 -0
- package/dist/components/questions/types/spontaneous-qa-group/register.d.ts +2 -0
- package/dist/components/questions/types/spontaneous-qa-group/register.js +139 -0
- package/dist/components/questions/types/spontaneous-qa-group/transform.d.ts +2 -0
- package/dist/components/questions/types/spontaneous-qa-group/transform.js +52 -0
- package/dist/components/questions/types/true-false/TrueFalseClient.js +75 -1
- package/dist/components/questions/types/true-false/TrueFalseCreator.js +244 -1
- package/dist/components/questions/types/true-false/index.js +2 -1
- package/dist/components/questions/types/true-false/register.js +77 -1
- package/dist/components/questions/types/true-false/transform.js +32 -1
- package/dist/components/questions/types/true-false-group/TrueFalseGroupClient.js +25 -1
- package/dist/components/questions/types/true-false-group/TrueFalseGroupCreator.js +129 -1
- package/dist/components/questions/types/true-false-group/index.d.ts +1 -0
- package/dist/components/questions/types/true-false-group/index.js +5 -1
- package/dist/components/questions/types/true-false-group/map-true-false-group-data.d.ts +4 -0
- package/dist/components/questions/types/true-false-group/map-true-false-group-data.js +69 -0
- package/dist/components/questions/types/true-false-group/register.js +36 -1
- package/dist/components/questions/types/true-false-group/transform.js +43 -1
- package/dist/components/questions/types/word-fill-paragraph/WordFillParagraphClient.js +233 -1
- package/dist/components/questions/types/word-fill-paragraph/WordFillParagraphCreator.js +631 -1
- package/dist/components/questions/types/word-fill-paragraph/WordFillParagraphWrapper.js +28 -1
- package/dist/components/questions/types/word-fill-paragraph/index.js +2 -1
- package/dist/components/questions/types/word-fill-paragraph/register.js +136 -1
- package/dist/components/questions/types/word-fill-paragraph/transform.js +56 -1
- package/dist/components/questions/types/word-fill-structured-form/WfsfWordBankEditor.js +86 -1
- package/dist/components/questions/types/word-fill-structured-form/WordFillStructuredFormClient.js +246 -1
- package/dist/components/questions/types/word-fill-structured-form/WordFillStructuredFormCreator.d.ts +2 -0
- package/dist/components/questions/types/word-fill-structured-form/WordFillStructuredFormCreator.js +484 -1
- package/dist/components/questions/types/word-fill-structured-form/index.d.ts +1 -0
- package/dist/components/questions/types/word-fill-structured-form/index.js +3 -1
- package/dist/components/questions/types/word-fill-structured-form/map-wfsf-question-data.d.ts +7 -0
- package/dist/components/questions/types/word-fill-structured-form/map-wfsf-question-data.js +113 -0
- package/dist/components/questions/types/word-fill-structured-form/register.js +36 -1
- package/dist/components/questions/types/word-fill-structured-form/transform.js +77 -1
- package/dist/components/questions/types/word-fill-structured-form/wfsf-word-bank.utils.js +110 -1
- package/dist/components/questions/types/word-order-and-match-group/WordOrderAndMatchGroupClient.d.ts +3 -0
- package/dist/components/questions/types/word-order-and-match-group/WordOrderAndMatchGroupClient.js +190 -0
- package/dist/components/questions/types/word-order-and-match-group/WordOrderAndMatchGroupCreator.d.ts +3 -0
- package/dist/components/questions/types/word-order-and-match-group/WordOrderAndMatchGroupCreator.js +182 -0
- package/dist/components/questions/types/word-order-and-match-group/index.d.ts +4 -0
- package/dist/components/questions/types/word-order-and-match-group/index.js +4 -0
- package/dist/components/questions/types/word-order-and-match-group/register.d.ts +2 -0
- package/dist/components/questions/types/word-order-and-match-group/register.js +121 -0
- package/dist/components/questions/types/word-order-and-match-group/transform.d.ts +2 -0
- package/dist/components/questions/types/word-order-and-match-group/transform.js +70 -0
- package/dist/components/questions/types/word-ordering/WordOrderingClient.js +84 -1
- package/dist/components/questions/types/word-ordering/WordOrderingCreator.js +192 -1
- package/dist/components/questions/types/word-ordering/index.js +2 -1
- package/dist/components/questions/types/word-ordering/register.js +46 -1
- package/dist/components/questions/types/word-ordering/transform.js +24 -1
- package/dist/components/questions/types/write-a-short-letter/WriteAShortLetterClient.js +99 -1
- package/dist/components/questions/types/write-a-short-letter/WriteAShortLetterCreator.js +320 -1
- package/dist/components/questions/types/write-a-short-letter/index.js +2 -1
- package/dist/components/questions/types/write-a-short-letter/register.js +68 -1
- package/dist/components/questions/types/write-a-short-letter/transform.js +25 -1
- package/dist/components/questions/types/write-correct-verb-form/WriteCorrectVerbFormClient.js +61 -1
- package/dist/components/questions/types/write-correct-verb-form/WriteCorrectVerbFormCreator.js +196 -1
- package/dist/components/questions/types/write-correct-verb-form/index.js +2 -1
- package/dist/components/questions/types/write-correct-verb-form/register.js +62 -1
- package/dist/components/questions/types/write-correct-verb-form/transform.js +17 -1
- package/dist/components/questions/types/write-sentences/WriteSentencesClient.js +22 -1
- package/dist/components/questions/types/write-sentences/WriteSentencesCreator.js +174 -1
- package/dist/components/questions/types/write-sentences/index.js +2 -1
- package/dist/components/questions/types/write-sentences/register.js +58 -1
- package/dist/components/questions/types/write-sentences/transform.js +28 -1
- package/dist/components/questions/types/write-short-paragraph/WriteShortParagraphClient.js +96 -1
- package/dist/components/questions/types/write-short-paragraph/WriteShortParagraphCreator.js +161 -1
- package/dist/components/questions/types/write-short-paragraph/index.js +2 -1
- package/dist/components/questions/types/write-short-paragraph/register.js +4 -1
- package/dist/components/questions/types/write-short-paragraph/transform.js +21 -1
- package/dist/components/questions/viewer/ChooseTheCorrectAnswerGroupViewer.d.ts +8 -0
- package/dist/components/questions/viewer/ChooseTheCorrectAnswerGroupViewer.js +11 -0
- package/dist/components/questions/viewer/CrossOutWordGroupViewer.d.ts +7 -0
- package/dist/components/questions/viewer/CrossOutWordGroupViewer.js +8 -0
- package/dist/components/questions/viewer/QuestionGroupViewer.js +36 -1
- package/dist/components/questions/viewer/QuestionViewer.js +692 -1
- package/dist/components/questions/viewer/SpontaneousQaGroupViewer.d.ts +5 -0
- package/dist/components/questions/viewer/SpontaneousQaGroupViewer.js +82 -0
- package/dist/components/questions/viewer/TrueFalseGroupViewer.d.ts +8 -0
- package/dist/components/questions/viewer/TrueFalseGroupViewer.js +11 -0
- package/dist/components/questions/viewer/WordFillStructuredFormViewer.d.ts +9 -0
- package/dist/components/questions/viewer/WordFillStructuredFormViewer.js +14 -0
- package/dist/components/questions/viewer/WordOrderAndMatchGroupViewer.d.ts +6 -0
- package/dist/components/questions/viewer/WordOrderAndMatchGroupViewer.js +95 -0
- package/dist/components/questions/viewer/index.d.ts +6 -0
- package/dist/components/questions/viewer/index.js +8 -1
- package/dist/components/results/ResultReviewPageContainer.js +220 -1
- package/dist/components/results/ReviewQuestionRenderer.js +55 -1
- package/dist/components/results/hooks/useResultReviewPolling.js +76 -1
- package/dist/components/results/index.js +22 -1
- package/dist/components/results/renderers/QuestionExplanations.js +19 -1
- package/dist/components/results/renderers/ReviewChooseAdjectiveRenderer.js +94 -1
- package/dist/components/results/renderers/ReviewChooseBestAnswerRenderer.js +75 -1
- package/dist/components/results/renderers/ReviewColoringRenderer.js +110 -1
- package/dist/components/results/renderers/ReviewListenAndWriteRenderer.js +48 -1
- package/dist/components/results/renderers/ReviewListenChooseAnswerGroupRenderer.js +87 -1
- package/dist/components/results/renderers/ReviewListenChooseObjectsRenderer.js +104 -1
- package/dist/components/results/renderers/ReviewListenDragObjectsRenderer.js +123 -1
- package/dist/components/results/renderers/ReviewListeningHeader.js +104 -1
- package/dist/components/results/renderers/ReviewSpeakingAIPanel.js +116 -1
- package/dist/components/results/renderers/ReviewSpeakingMedia.js +48 -1
- package/dist/components/results/renderers/ReviewSpeakingQuestionItem.js +42 -1
- package/dist/components/results/renderers/ReviewSpeakingRenderer.js +12 -1
- package/dist/components/results/renderers/ReviewSpeakingRenderer.types.js +85 -1
- package/dist/components/results/renderers/review-question-body-dedicated.js +104 -1
- package/dist/components/results/renderers/review-question-body-movers.js +148 -1
- package/dist/components/results/renderers/review-speaking-map.js +226 -1
- package/dist/components/results/renderers/review-spontaneous-qa-group.d.ts +4 -0
- package/dist/components/results/renderers/review-spontaneous-qa-group.js +74 -0
- package/dist/components/results/report/BadgeTitle.js +5 -1
- package/dist/components/results/report/ExamSkillRow.js +20 -1
- package/dist/components/results/report/OceanEduExamReport.js +58 -1
- package/dist/components/results/report/OceanEduSpeakingReport.js +62 -1
- package/dist/components/results/report/OverallAssessmentSection.js +17 -1
- package/dist/components/results/report/ResultErrorState.js +18 -1
- package/dist/components/results/report/ResultLoadingState.js +10 -1
- package/dist/components/results/report/ResultNotPublicState.js +27 -1
- package/dist/components/results/report/SpeakingReportParts.js +14 -1
- package/dist/components/results/report/SpeakingReportShared.js +86 -1
- package/dist/components/results/report/SpeakingRubricSection.js +171 -1
- package/dist/components/results/report/speaking-report.utils.js +198 -1
- package/dist/components/results/result-review.utils.js +6 -1
- package/dist/components/results/review-data.js +222 -1
- package/dist/components/results/review-renderer.utils.js +97 -1
- package/dist/components/results/review-status.utils.js +36 -1
- package/dist/components/results/review-types.js +1 -1
- package/dist/components/results/speaking/SpeakingResultAudioPlayer.js +77 -1
- package/dist/components/results/speaking/SpeakingReviewResult.js +48 -1
- package/dist/components/results/utils/review-score.utils.js +72 -1
- package/dist/components/results/utils/speaking-summary.js +224 -1
- package/dist/components/results/utils/transform-speaking-review.js +183 -1
- package/dist/components/shared/RichTextEditor.d.ts +9 -0
- package/dist/components/shared/RichTextEditor.js +47 -0
- package/dist/components/shared/audio/SpeakingAudioPlayer.js +100 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleAudioPlayer.js +140 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleBottomNav.js +10 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleExamLayout.d.ts +1 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleExamLayout.js +18 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleExampleText.js +11 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleHeader.js +11 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleInstructionBanner.d.ts +2 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleInstructionBanner.js +19 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleNavButton.js +13 -1
- package/dist/components/themes/cambridge-yle/CambridgeYlePartBanner.d.ts +1 -1
- package/dist/components/themes/cambridge-yle/CambridgeYlePartBanner.js +3 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleProgressBar.js +6 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleQuestionCard.js +5 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleQuestionCardFullWidth.js +9 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleSidebar.d.ts +2 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleSidebar.js +61 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleTimer.d.ts +1 -1
- package/dist/components/themes/cambridge-yle/CambridgeYleTimer.js +25 -1
- package/dist/components/themes/cambridge-yle/index.js +13 -1
- package/dist/components/themes/english-certification/EcAnswerTheQuestion.js +25 -1
- package/dist/components/themes/english-certification/EcMatchByWritingAnswer.js +89 -1
- package/dist/components/themes/english-certification/EcWordFillParagraph.js +56 -1
- package/dist/components/themes/english-certification/EcWordFillStructuredForm.js +192 -1
- package/dist/components/themes/english-certification/EcWritingTask.js +60 -1
- package/dist/components/themes/english-certification/EnglishCertificationAudioPlayer.js +108 -1
- package/dist/components/themes/english-certification/EnglishCertificationBrand.js +11 -1
- package/dist/components/themes/english-certification/EnglishCertificationExamLayout.js +34 -1
- package/dist/components/themes/english-certification/EnglishCertificationFlagButton.js +15 -1
- package/dist/components/themes/english-certification/EnglishCertificationFooterBar.js +19 -1
- package/dist/components/themes/english-certification/EnglishCertificationGroupedQuestion.js +166 -1
- package/dist/components/themes/english-certification/EnglishCertificationHeader.js +31 -1
- package/dist/components/themes/english-certification/EnglishCertificationInstructionBanner.js +79 -1
- package/dist/components/themes/english-certification/EnglishCertificationNavigationPanel.js +71 -1
- package/dist/components/themes/english-certification/EnglishCertificationOptionSelector.js +79 -1
- package/dist/components/themes/english-certification/EnglishCertificationPartHeader.js +47 -1
- package/dist/components/themes/english-certification/EnglishCertificationPassagePanel.js +77 -1
- package/dist/components/themes/english-certification/EnglishCertificationQuestionCard.js +25 -1
- package/dist/components/themes/english-certification/EnglishCertificationQuestionItem.js +36 -1
- package/dist/components/themes/english-certification/EnglishCertificationQuestionRenderer.js +81 -1
- package/dist/components/themes/english-certification/EnglishCertificationReadingSection.js +95 -1
- package/dist/components/themes/english-certification/EnglishCertificationSingleQuestion.js +18 -1
- package/dist/components/themes/english-certification/EnglishCertificationSingleQuestionList.js +32 -1
- package/dist/components/themes/english-certification/english-cert-scroll.js +163 -1
- package/dist/components/themes/english-certification/english-certification-theme.js +58 -1
- package/dist/components/themes/english-certification/grouped-question-utils.js +243 -1
- package/dist/components/themes/english-certification/index.js +24 -1
- package/dist/components/themes/index.js +25 -1
- package/dist/components/themes/summer-sky/SummerSkyAudioPlayer.js +170 -1
- package/dist/components/themes/summer-sky/SummerSkyExitModal.js +21 -1
- package/dist/components/themes/summer-sky/SummerSkyLayout.js +221 -1
- package/dist/components/themes/summer-sky/SummerSkySubmitModal.js +18 -1
- package/dist/components/themes/summer-sky/SummerSkyWaitingRoom.js +193 -1
- package/dist/components/themes/types.js +1 -1
- package/dist/components/ui/alert-dialog.js +26 -1
- package/dist/components/ui/alert.js +22 -1
- package/dist/components/ui/avatar.js +12 -1
- package/dist/components/ui/badge.js +38 -1
- package/dist/components/ui/button.js +35 -1
- package/dist/components/ui/calendar.js +76 -1
- package/dist/components/ui/card.js +16 -1
- package/dist/components/ui/carousel.js +91 -1
- package/dist/components/ui/checkbox.js +9 -1
- package/dist/components/ui/collapsible.js +13 -1
- package/dist/components/ui/command.js +34 -1
- package/dist/components/ui/confirm-dialog.js +49 -1
- package/dist/components/ui/dialog.js +23 -1
- package/dist/components/ui/drawer.js +35 -1
- package/dist/components/ui/dropdown-menu.js +33 -1
- package/dist/components/ui/file-upload.js +155 -1
- package/dist/components/ui/form.js +62 -1
- package/dist/components/ui/hover-card.js +10 -1
- package/dist/components/ui/image-preview.js +29 -1
- package/dist/components/ui/input.js +8 -1
- package/dist/components/ui/label.js +9 -1
- package/dist/components/ui/language-switcher.js +15 -1
- package/dist/components/ui/multi-select.js +90 -1
- package/dist/components/ui/points-input.js +33 -1
- package/dist/components/ui/popover.js +26 -1
- package/dist/components/ui/progress.js +16 -1
- package/dist/components/ui/radio-group.js +12 -1
- package/dist/components/ui/scroll-area.js +11 -1
- package/dist/components/ui/select.js +38 -1
- package/dist/components/ui/separator.js +8 -1
- package/dist/components/ui/sheet.js +40 -1
- package/dist/components/ui/single-select.js +76 -1
- package/dist/components/ui/skeleton.js +6 -1
- package/dist/components/ui/switch.js +8 -1
- package/dist/components/ui/table.js +20 -1
- package/dist/components/ui/tabs.js +17 -1
- package/dist/components/ui/textarea.js +8 -1
- package/dist/components/ui/tooltip.js +11 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +24 -1
- package/dist/shared/constants/ApiConstant.d.ts +1 -0
- package/dist/shared/constants/ApiConstant.js +278 -1
- package/dist/shared/constants/QueryKeyConstant.js +112 -1
- package/dist/shared/constants/exam-level.enum.js +41 -1
- package/dist/shared/constants/landings/placement-test.constants.js +431 -1
- package/dist/shared/constants/question-skills.js +277 -1
- package/dist/shared/constants/routes.js +81 -1
- package/dist/shared/index.js +10 -1
- package/dist/shared/lib/hooks/index.js +10 -1
- package/dist/shared/lib/hooks/useAlertDialog.js +57 -1
- package/dist/shared/lib/hooks/useAudioPlayCounter.js +30 -1
- package/dist/shared/lib/hooks/useAudioPreview.js +81 -1
- package/dist/shared/lib/hooks/useAudioUpload.js +24 -1
- package/dist/shared/lib/hooks/useConfirmDialog.js +89 -1
- package/dist/shared/lib/hooks/useDebouncedCallback.js +32 -1
- package/dist/shared/lib/hooks/useDelayedAutoPlay.js +12 -1
- package/dist/shared/lib/hooks/useFileUpload.js +24 -1
- package/dist/shared/lib/hooks/useImageUrl.js +5 -1
- package/dist/shared/lib/hooks/usePresignedFileUrl.js +108 -1
- package/dist/shared/lib/hooks/useReactHookForm.js +31 -1
- package/dist/shared/lib/hooks/useToast.js +62 -1
- package/dist/shared/lib/html-content.js +22 -1
- package/dist/shared/lib/i18n/index.js +54 -1
- package/dist/shared/lib/i18n/messages/en/admin.d.ts +11 -4
- package/dist/shared/lib/i18n/messages/en/admin.js +2111 -1
- package/dist/shared/lib/i18n/messages/en/auth.js +86 -1
- package/dist/shared/lib/i18n/messages/en/common.js +140 -1
- package/dist/shared/lib/i18n/messages/en/file-upload.js +18 -1
- package/dist/shared/lib/i18n/messages/en/student.js +133 -1
- package/dist/shared/lib/i18n/messages/en/terms.js +37 -1
- package/dist/shared/lib/i18n/messages/en.d.ts +11 -4
- package/dist/shared/lib/i18n/messages/en.js +15 -1
- package/dist/shared/lib/i18n/messages/vi/admin.d.ts +11 -4
- package/dist/shared/lib/i18n/messages/vi/admin.js +2111 -1
- package/dist/shared/lib/i18n/messages/vi/auth.js +86 -1
- package/dist/shared/lib/i18n/messages/vi/common.js +140 -1
- package/dist/shared/lib/i18n/messages/vi/file-upload.js +18 -1
- package/dist/shared/lib/i18n/messages/vi/student.js +133 -1
- package/dist/shared/lib/i18n/messages/vi/terms.js +37 -1
- package/dist/shared/lib/i18n/messages/vi.d.ts +11 -4
- package/dist/shared/lib/i18n/messages/vi.js +15 -1
- package/dist/shared/lib/i18n/types.js +1 -1
- package/dist/shared/lib/stores/examQuestionStore.js +212 -1
- package/dist/shared/lib/stores/examTakingStore.js +240 -1
- package/dist/shared/lib/stores/gradingTransientStore.js +39 -1
- package/dist/shared/lib/stores/localeStore.js +10 -1
- package/dist/shared/lib/themes/config/starters.config.js +71 -1
- package/dist/shared/lib/themes/index.js +49 -1
- package/dist/shared/lib/themes/types.js +2 -1
- package/dist/shared/lib/toast.js +43 -1
- package/dist/shared/lib/utils/public-page.js +44 -1
- package/dist/shared/lib/utils/question-reverse-transform.js +438 -1
- package/dist/shared/lib/utils/question-transform-types.js +1 -1
- package/dist/shared/lib/utils/question-transform-validation.js +194 -1
- package/dist/shared/lib/utils/question-transform.js +199 -1
- package/dist/shared/lib/utils.js +168 -1
- package/dist/shared/lib/validation/choose-correct-answer.validation.js +111 -1
- package/dist/shared/lib/validation/label-the-picture.validation.js +19 -1
- package/dist/shared/lib/validation/listen-and-choose-from-answer-group.validation.js +46 -1
- package/dist/shared/lib/validation/listen-and-choose-objects-in-scene.validation.js +21 -1
- package/dist/shared/lib/validation/listen-and-drag-objects-into-scene.validation.js +34 -1
- package/dist/shared/lib/validation/listen-and-speak-answer.validation.js +40 -1
- package/dist/shared/lib/validation/listen-and-speak-compare-images.validation.js +45 -1
- package/dist/shared/lib/validation/listen-and-speak-image-group.validation.js +19 -1
- package/dist/shared/lib/validation/listen-and-speak-info-exchange.validation.js +39 -1
- package/dist/shared/lib/validation/listen-and-speak-odd-one-out.validation.js +32 -1
- package/dist/shared/lib/validation/listen-and-speak-question-list.validation.js +19 -1
- package/dist/shared/lib/validation/listen-and-speak-with-story-images.validation.js +28 -1
- package/dist/shared/lib/validation/look-picture-choose-correct-answer.validation.js +12 -1
- package/dist/shared/lib/validation/look-picture-fill-blank-choose-answer.validation.js +47 -1
- package/dist/shared/lib/validation/read-and-color-objects.validation.js +29 -1
- package/dist/shared/lib/validation/read-displayed-content.validation.js +28 -1
- package/dist/shared/lib/validation/speaking-conversation.validation.js +75 -1
- package/dist/shared/lib/validation/speaking-describe-image.validation.js +31 -1
- package/dist/shared/lib/validation/spontaneous-qa.validation.js +48 -1
- package/dist/shared/lib/validation/word-fill-paragraph-default.validation.js +38 -1
- package/dist/shared/lib/validation/word-fill-paragraph-with-options.validation.js +39 -1
- package/dist/shared/lib/validation/word-fill-paragraph.validation.js +43 -1
- package/dist/shared/lib/validation/word-ordering.validation.js +33 -1
- package/dist/shared/types/branch.types.js +6 -1
- package/dist/shared/types/common.types.d.ts +1 -1
- package/dist/shared/types/common.types.js +49 -1
- package/dist/shared/types/entities/exam-schedule.types.js +5 -1
- package/dist/shared/types/entities/exam.types.js +1 -1
- package/dist/shared/types/entities/question.types.js +4 -1
- package/dist/shared/types/entities/result.types.js +4 -1
- package/dist/shared/types/entities/user.types.js +4 -1
- package/dist/shared/types/exam-taking.types.js +2 -1
- package/dist/shared/types/history.types.js +34 -1
- package/dist/shared/types/index.js +1 -1
- package/dist/shared/types/questions/choose-correct-adjective.js +4 -1
- package/dist/shared/types/questions/choose-the-correct-answer-group.d.ts +1 -0
- package/dist/shared/types/questions/choose-the-correct-answer-group.js +1 -1
- package/dist/shared/types/questions/choose-the-correct-answer.js +9 -1
- package/dist/shared/types/questions/cross-out-word-group.d.ts +2 -0
- package/dist/shared/types/questions/cross-out-word-group.js +1 -1
- package/dist/shared/types/questions/fill-missing-words-in-grid.js +11 -1
- package/dist/shared/types/questions/index.d.ts +1 -0
- package/dist/shared/types/questions/index.js +46 -1
- package/dist/shared/types/questions/listen-and-speak-answer.js +1 -1
- package/dist/shared/types/questions/listen-and-speak-compare-images.js +1 -1
- package/dist/shared/types/questions/listen-and-speak-image-group.js +1 -1
- package/dist/shared/types/questions/listen-and-speak-info-exchange.js +3 -1
- package/dist/shared/types/questions/listen-and-speak-odd-one-out.js +3 -1
- package/dist/shared/types/questions/listen-and-speak-question-list.js +1 -1
- package/dist/shared/types/questions/listen-and-speak-with-story-images.js +3 -1
- package/dist/shared/types/questions/look-picture-choose-correct-answer.js +5 -1
- package/dist/shared/types/questions/look-picture-fill-blank-choose-answer.js +9 -1
- package/dist/shared/types/questions/look-picture-fill-word-hint.js +7 -1
- package/dist/shared/types/questions/read-displayed-content.js +1 -1
- package/dist/shared/types/questions/speaking-conversation.js +7 -1
- package/dist/shared/types/questions/speaking-describe-image.js +1 -1
- package/dist/shared/types/questions/spontaneous-qa.js +1 -1
- package/dist/shared/types/questions/word-order-and-match-group.d.ts +33 -0
- package/dist/shared/types/questions/word-order-and-match-group.js +1 -0
- package/dist/shared/types/questions/write-correct-verb-form.js +12 -1
- package/dist/shared/types/role.types.js +1 -1
- package/dist/shared/types/structure-management.js +28 -1
- package/dist/shared/types/student.types.js +57 -1
- package/dist/shared/types/teacher-dashboard-rooms.js +2 -1
- package/package.json +184 -165
- package/dist/mcp/config.d.ts +0 -12
- package/dist/mcp/config.js +0 -1
- package/dist/mcp/http-client.d.ts +0 -6
- package/dist/mcp/http-client.js +0 -1
- package/dist/mcp/index.d.ts +0 -6
- package/dist/mcp/index.js +0 -2
- package/dist/mcp/tools/_helpers.d.ts +0 -4
- package/dist/mcp/tools/_helpers.js +0 -1
- package/dist/mcp/tools/exams.d.ts +0 -2
- package/dist/mcp/tools/exams.js +0 -1
- package/dist/mcp/tools/index.d.ts +0 -2
- package/dist/mcp/tools/index.js +0 -1
- package/dist/mcp/tools/results.d.ts +0 -2
- package/dist/mcp/tools/results.js +0 -1
|
@@ -1 +1,278 @@
|
|
|
1
|
-
export const API_VERSION="v1";export const API_BASE_URL="undefined"==typeof process?void 0:process.env.NEXT_PUBLIC_API_URL;export const API_ENDPOINTS={AUTH:{LOGIN:"/api/v1/auth/login",LOGOUT:"/api/v1/auth/logout",REFRESH:"/api/v1/auth/refresh",CHANGE_PASSWORD:"/api/v1/auth/change-password",ME:"/api/v1/auth/me",UPGRADE_ACCOUNT:"/api/v1/auth/upgrade-account",STUDENT_REGISTER:"/api/v1/auth/student/register",REGISTER_SIMPLE:"/api/v1/auth/register-simple",PERMISSIONS:"/api/v1/auth/permissions"},MANAGE:{USERS:"/api/v1/manage/users",USER_DETAIL:a=>`/api/v1/manage/users/${a}`,SYNC_EBM:"/api/v1/manage/users/sync-ebm",BRANCHES:"/api/v1/manage/branches",BRANCH_DETAIL:a=>`/api/v1/manage/branches/${a}`,BRANCHES_STATISTICS:"/api/v1/manage/branches/statistics",BRANCHES_MANAGERS:"/api/v1/manage/branches/managers",BRANCHES_TEACHERS:"/api/v1/manage/branches/teachers",QUESTIONS:"/api/v1/manage/questions",QUESTION_DETAIL:a=>`/api/v1/manage/questions/${a}`,QUESTIONS_BATCH:"/api/v1/manage/questions/batch",QUESTIONS_GENERATE_AUDIO:"/api/v1/manage/questions/generate-audio",QUESTIONS_BY_EXAM:a=>`/api/v1/manage/questions/by-exam/${a}`,EXAMS:"/api/v1/manage/exams",EXAM_DETAIL:a=>`/api/v1/manage/exams/${a}`,EXAM_QUESTIONS:a=>`/api/v1/manage/exams/${a}/questions`,EXAM_SHUFFLE:a=>`/api/v1/manage/exams/${a}/shuffle`,EXAM_COPY:a=>`/api/v1/manage/exams/${a}/copy`,EXAM_CLASSES:"/api/v1/manage/exam-classes",EXAM_CLASS_DETAIL:a=>`/api/v1/manage/exam-classes/${a}`,EXAM_SESSIONS:"/api/v1/manage/exam-sessions",EXAM_SESSION_DETAIL:a=>`/api/v1/manage/exam-sessions/${a}`,EXAM_ROOMS:"/api/v1/manage/rooms",EXAM_ROOM_DETAIL:a=>`/api/v1/manage/rooms/${a}`,ROOM_TEACHERS:"/api/v1/manage/rooms/teachers",ROOM_STUDENTS:"/api/v1/manage/rooms/students",ROOM_EXAMS:"/api/v1/manage/rooms/exams",ROOM_CONTESTS:"/api/v1/manage/rooms/contests",ROOM_STATISTICS:"/api/v1/manage/rooms/statistics",ROOM_CLASSES:"/api/v1/manage/rooms/classes",ROOM_BRANCHES:"/api/v1/manage/rooms/branches",ROOM_TAGS:"/api/v1/manage/rooms/tags",ROOM_REGISTRATIONS:a=>`/api/v1/manage/rooms/${a}/registrations`,ROOM_REGISTRATION_DETAIL:(a,s)=>`/api/v1/manage/rooms/${a}/registrations/${s}`,ROOM_REGISTRATIONS_BULK_REVIEW:a=>`/api/v1/manage/rooms/${a}/registrations/bulk-review`,ROOM_INVITE_LINK:a=>`/api/v1/manage/rooms/${a}/invite-link`,ROOM_MANUAL_GRADING:a=>`/api/v1/manage/rooms/${a}/manual-grading`,ROOM_UPLOAD_ANSWER_SHEETS:a=>`/api/v1/manage/rooms/${a}/upload-answer-sheets`,ROOM_EXTERNAL_ANSWER_SHEETS:a=>`/api/v1/manage/rooms/${a}/external-answer-sheets`,ROOM_EXTERNAL_ANSWER_SHEET_DETAIL:(a,s)=>`/api/v1/manage/rooms/${a}/external-answer-sheets/${s}`,ROOM_EXTERNAL_UPLOAD_TOKEN:a=>`/api/v1/manage/rooms/${a}/external-answer-sheets/upload-token`,ROOM_EXTERNAL_ANSWER_SHEET_REGRADE:(a,s)=>`/api/v1/manage/rooms/${a}/external-answer-sheets/${s}/re-grade`,ROOM_EXTERNAL_ANSWER_SHEETS_REGRADE_ALL:a=>`/api/v1/manage/rooms/${a}/external-answer-sheets/re-grade-all`,ROOM_EXTERNAL_ANSWER_SHEET_REPROCESS:(a,s)=>`/api/v1/manage/rooms/${a}/external-answer-sheets/${s}/re-process`,ROOM_EXTERNAL_ANSWER_SHEETS_REPROCESS_ALL:a=>`/api/v1/manage/rooms/${a}/external-answer-sheets/re-process-all`,CONTESTS:"/api/v1/manage/contests",CONTEST_DETAIL:a=>`/api/v1/manage/contests/${a}`,CONTEST_SUMMARY:"/api/v1/manage/contests/summary",CONTEST_TOP_STUDENTS_LATEST:"/api/v1/manage/contests/top-students-latest",CONTEST_TOP_STUDENTS_ALL_TIME:"/api/v1/manage/contests/top-students-all-time",CONTEST_STATISTICS_LIST:"/api/v1/manage/contests/statistics-list",CONTEST_STUDENT_HISTORY:a=>`/api/v1/manage/contests/student-contest-history/${a}`,CONTEST_STUDENT_STATISTICS:a=>`/api/v1/manage/contests/student-statistics/${a}`,CONTEST_STATISTICS:a=>`/api/v1/manage/contests/${a}/statistics`,CONTEST_STAFF:a=>`/api/v1/manage/contests/${a}/staff`,CONTEST_STAFF_BY_GROUP:a=>`/api/v1/manage/contests/${a}/staff/by-group`,CONTEST_STAFF_DETAIL:(a,s)=>`/api/v1/manage/contests/${a}/staff/${s}`,CONTEST_GALLERY:a=>`/api/v1/manage/contests/${a}/gallery`,CONTEST_GALLERY_DETAIL:(a,s)=>`/api/v1/manage/contests/${a}/gallery/${s}`,CONTEST_CONVERT_MULTI_ROUND:a=>`/api/v1/manage/contests/${a}/convert-to-multi-round`,CONTEST_ROUNDS:a=>`/api/v1/manage/contests/${a}/rounds`,CONTEST_ROUND_DETAIL:(a,s)=>`/api/v1/manage/contests/${a}/rounds/${s}`,CONTEST_REGISTRATIONS:a=>`/api/v1/manage/contests/${a}/registrations`,CONTEST_REGISTRATION_DETAIL:(a,s)=>`/api/v1/manage/contests/${a}/registrations/${s}`,CONTEST_REGISTRATIONS_BULK_REVIEW:a=>`/api/v1/manage/contests/${a}/registrations/bulk-review`,CONTEST_RESULTS:a=>`/api/v1/manage/contests/${a}/results`,CONTEST_OVERVIEW_STATS:a=>`/api/v1/manage/contests/${a}/overview-stats`,QUESTION_BANKS:"/api/v1/manage/question-banks",QUESTION_BANK_DETAIL:a=>`/api/v1/manage/question-banks/${a}`,QUESTION_BANKS_STATISTICS:"/api/v1/manage/question-banks/statistics",SCHEDULES_SUMMARY:"/api/v1/manage/schedules/summary",SCHEDULES_CALENDAR:"/api/v1/manage/schedules/calendar",SCHEDULES:"/api/v1/manage/schedules",STUDENT_TEST_PARTICIPANTS:"/api/v1/manage/students/test-participants",REPORTS:"/api/v1/manage/reports",REPORT_OVERVIEW:"/api/v1/manage/reports/overview",REPORT_CLASSES:"/api/v1/manage/reports/classes",REPORT_BRANCHES:"/api/v1/manage/reports/branches",REPORT_SKILLS:"/api/v1/manage/reports/skills",REPORT_TRENDS:"/api/v1/manage/reports/trends",REPORT_CUSTOM:"/api/v1/manage/reports/custom",REPORT_CUSTOM_DETAIL:a=>`/api/v1/manage/reports/custom/${a}`,REPORT_CUSTOM_DOWNLOAD:a=>`/api/v1/manage/reports/custom/${a}/download`,REPORT_ROOMS:"/api/v1/manage/reports/rooms",REPORT_CONTESTS:"/api/v1/manage/reports/contests",REPORT_COMPETENCY:"/api/v1/manage/reports/competency",REPORT_COMPETENCY_EXAM_ROOMS:"/api/v1/manage/reports/competency/exam-rooms",DASHBOARD_SUMMARY:"/api/v1/manage/dashboard/summary",DASHBOARD_USER_GROWTH:"/api/v1/manage/dashboard/user-growth",DASHBOARD_EXAM_STATS:"/api/v1/manage/dashboard/exam-statistics",DASHBOARD_ACTIVITIES:"/api/v1/manage/dashboard/recent-activities",DASHBOARD_ROOMS:"/api/v1/manage/dashboard/rooms",DASHBOARD_CHARTS:"/api/v1/manage/dashboard/charts",DASHBOARD_UPCOMING_ROOMS:"/api/v1/manage/dashboard/upcoming-rooms",DASHBOARD_PENDING_GRADING:"/api/v1/manage/dashboard/pending-grading",ROLES:"/api/v1/manage/roles",ROLE_DETAIL:a=>`/api/v1/manage/roles/${a}`,ROLE_PERMISSIONS:a=>`/api/v1/manage/roles/${a}/permissions`,PERMISSIONS:"/api/v1/manage/permissions",PERMISSIONS_GROUPED:"/api/v1/manage/permissions/grouped",USER_ROLES:a=>`/api/v1/manage/users/${a}/roles`,USER_ROLE_DETAIL:(a,s)=>`/api/v1/manage/users/${a}/roles/${s}`,ROOM_OPEN:a=>`/api/v1/manage/rooms/${a}/open`,ROOM_CLOSE:a=>`/api/v1/manage/rooms/${a}/close`,ROOM_TOGGLE_LOCK:a=>`/api/v1/manage/rooms/${a}/toggle-lock`,GRADING_ATTEMPT:a=>`/api/v1/manage/grading/${a}`,GRADING_ANSWER:(a,s)=>`/api/v1/manage/grading/${a}/answers/${s}`,EXAM_VARIANTS:a=>`/api/v1/manage/exams/${a}/variants`,EXAM_TEMPLATE:a=>`/api/v1/manage/exams/${a}/template`},get ADMIN(){return this.MANAGE},SYSTEM_ADMIN:{BRANCHES:"/api/v1/system-admin/branches",BRANCH_DETAIL:a=>`/api/v1/system-admin/branches/${a}`,BRANCHES_STATISTICS:"/api/v1/system-admin/branches/statistics",USERS:"/api/v1/system-admin/users",USER_DETAIL:a=>`/api/v1/system-admin/users/${a}`,USERS_IMPORT:"/api/v1/system-admin/users/import",USERS_IMPORT_TEMPLATE:"/api/v1/system-admin/users/import/template",USERS_BULK_UPDATE_PASSWORD:"/api/v1/system-admin/users/bulk-update-password",USER_GROUPS:"/api/v1/system-admin/user-groups",USER_GROUP_DETAIL:a=>`/api/v1/system-admin/user-groups/${a}`,USER_GROUP_MEMBERS:a=>`/api/v1/system-admin/user-groups/${a}/members`,USER_GROUP_MEMBERS_BY_EMAIL:a=>`/api/v1/system-admin/user-groups/${a}/members/by-email`,TAGS:"/api/v1/system-admin/tags",TAG_DETAIL:a=>`/api/v1/system-admin/tags/${a}`,TAG_CATEGORIES:"/api/v1/system-admin/tags/categories",BULK_ROOMS_PREVIEW:"/api/v1/system-admin/bulk-rooms/preview",BULK_ROOMS_COMMIT:"/api/v1/system-admin/bulk-rooms/commit",BULK_ROOMS_EBM_BRANCHES:"/api/v1/system-admin/bulk-rooms/ebm-branches",BULK_ASSIGN_EXAMS_MATCH:"/api/v1/system-admin/bulk-assign-exams/match",BULK_ASSIGN_EXAMS_APPLY:"/api/v1/system-admin/bulk-assign-exams/apply",ASSIGN_STUDENTS_TO_ROOMS_IMPORT:"/api/v1/system-admin/rooms/assign-students/import",OEA_RESULTS_IMPORT:"/api/v1/system-admin/oea-results/import",OEA_RESULTS_CLEAR:"/api/v1/system-admin/oea-results/clear",OEA_RESULTS_COUNT:"/api/v1/system-admin/oea-results/count",OEA_RESULTS_LIST:"/api/v1/system-admin/oea-results/list"},STUDENT:{PROFILE:"/api/v1/student/profile",EXAMS:"/api/v1/student/exams",EXAM_START:a=>`/api/v1/student/exams/${a}/start`,EXAM_SUBMIT:a=>`/api/v1/student/exams/${a}/submit`,ROOMS:"/api/v1/student/rooms",ROOMS_JOINED:"/api/v1/student/rooms/joined",ROOM_DETAIL:a=>`/api/v1/student/rooms/${a}`,ROOM_JOIN:"/api/v1/student/rooms/join",ROOM_STATUS:a=>`/api/v1/student/rooms/${a}/status`,ROOM_JOIN_INVITE:(a,s)=>`/api/v1/student/rooms/${a}/invite/${s}`,ATTEMPTS_START:"/api/v1/student/attempts/start",ATTEMPTS_ACTIVE:"/api/v1/student/attempts/active",ATTEMPTS_ACTIVE_BY_ROOM:a=>`/api/v1/student/attempts/active-by-room/${a}`,ATTEMPT_DETAIL:a=>`/api/v1/student/attempts/${a}`,ATTEMPT_DELETE:a=>`/api/v1/student/attempts/${a}`,ATTEMPT_QUESTIONS:a=>`/api/v1/student/attempts/${a}/questions`,ATTEMPT_ANSWERS:a=>`/api/v1/student/attempts/${a}/answers`,ATTEMPT_SUBMIT:a=>`/api/v1/student/attempts/${a}/submit`,ATTEMPT_CANCEL:a=>`/api/v1/student/attempts/${a}/cancel`,ATTEMPT_AUDIO_ANSWER:a=>`/api/v1/student/attempts/${a}/audio-answer`,ATTEMPT_PROCTORING_SNAPSHOT:a=>`/api/v1/student/attempts/${a}/proctoring-snapshot`,ATTEMPT_GRADING_SUMMARY:a=>`/api/v1/student/attempts/${a}/grading-summary`,ATTEMPT_ANSWERS_GRADING_STATUS:a=>`/api/v1/student/attempts/${a}/answers/grading-status`,ATTEMPT_ANSWER_DETAIL:(a,s)=>`/api/v1/student/attempts/${a}/answers/${s}`,SCHEDULES:"/api/v1/student/schedules",SCHEDULES_PAST:"/api/v1/student/schedules/past",RESULTS:"/api/v1/student/results",RESULT_DETAIL:a=>`/api/v1/student/results/${a}`,RESULT_RANKING:a=>`/api/v1/student/results/${a}/ranking`,EXPORT_NATIVE_PDF:"/api/v1/export/exam-report-pdf",STATS:"/api/v1/student/stats",PROGRESS:"/api/v1/student/progress",CONTESTS:"/api/v1/student/contests",CONTESTS_PUBLIC:"/api/v1/student/contests/public",CONTESTS_MY:"/api/v1/student/contests/my",CONTEST_DETAIL:a=>`/api/v1/student/contests/${a}`,CONTEST_REGISTER:a=>`/api/v1/student/contests/${a}/register`,CONTEST_ROOMS:a=>`/api/v1/student/contests/${a}/rooms`,CONTEST_RESULTS:a=>`/api/v1/student/contests/${a}/results`,CONTEST_HISTORY:a=>`/api/v1/student/contests/${a}/history`,CONTEST_LEADERBOARD:a=>`/api/v1/student/contests/${a}/leaderboard`,CONTEST_ROUNDS:a=>`/api/v1/student/contests/${a}/rounds`,CONTEST_GALLERY:a=>`/api/v1/student/contests/${a}/gallery`,CONTEST_ROOM_REGISTER:(a,s)=>`/api/v1/student/contests/${a}/rooms/${s}/register`},SHARED:{EXAM_TEMPLATES:"/api/v1/exam-templates",EXAM_TEMPLATE_DETAIL:a=>`/api/v1/exam-templates/${a}`,EXAM_TEMPLATE_EXPORT:a=>`/api/v1/exam-templates/${a}/export`,EXAM_TEMPLATE_IMPORT:"/api/v1/exam-templates/import",EXAM_TEMPLATE_UPDATE:a=>`/api/v1/exam-templates/${a}`,EXAM_TEMPLATE_DELETE:a=>`/api/v1/exam-templates/${a}`,EXAM_TEMPLATE_EXAMS:a=>`/api/v1/exam-templates/${a}/exams`,EXAM_TEMPLATE_APPLY_CONFIG:a=>`/api/v1/exam-templates/${a}/apply-config`,SUBJECTS:"/api/v1/subjects",CONTESTS:"/api/v1/contests",SPEAKING_REALTIME_GRADE:"/api/v1/speaking-assessment/realtime/grade-single"},STORAGE:{UPLOAD:"/api/v1/storage/upload",UPLOAD_AUDIO:"/api/v1/storage/upload-audio",FILE:a=>`/api/v1/storage/${encodeURIComponent(a)}`},PUBLIC:{EXTERNAL_SHEET_RESULT:a=>`/api/v1/public/external-sheets/result/${a}`,EXTERNAL_SHEET_UPLOAD:a=>`/api/v1/public/external-sheets/upload/${a}`,EXTERNAL_SHEET_TOKEN_INFO:a=>`/api/v1/public/external-sheets/token-info/${a}`,OEA_RESULTS_LOOKUP:"/api/v1/public/oea-results/lookup"},TEST:{COOKIE_SET:"/api/v1/test/cookie/set",COOKIE_SET_AUTH:"/api/v1/test/cookie/set-auth-test",COOKIE_CLEAR:"/api/v1/test/cookie/clear"}};
|
|
1
|
+
/**
|
|
2
|
+
* API endpoints constants
|
|
3
|
+
*/
|
|
4
|
+
export const API_VERSION = 'v1';
|
|
5
|
+
export const API_BASE_URL = typeof process === 'undefined' ? undefined : process.env.NEXT_PUBLIC_API_URL;
|
|
6
|
+
export const API_ENDPOINTS = {
|
|
7
|
+
// Auth endpoints
|
|
8
|
+
AUTH: {
|
|
9
|
+
LOGIN: `/api/${API_VERSION}/auth/login`,
|
|
10
|
+
LOGOUT: `/api/${API_VERSION}/auth/logout`,
|
|
11
|
+
REFRESH: `/api/${API_VERSION}/auth/refresh`,
|
|
12
|
+
CHANGE_PASSWORD: `/api/${API_VERSION}/auth/change-password`,
|
|
13
|
+
ME: `/api/${API_VERSION}/auth/me`,
|
|
14
|
+
UPGRADE_ACCOUNT: `/api/${API_VERSION}/auth/upgrade-account`,
|
|
15
|
+
STUDENT_REGISTER: `/api/${API_VERSION}/auth/student/register`,
|
|
16
|
+
REGISTER_SIMPLE: `/api/${API_VERSION}/auth/register-simple`,
|
|
17
|
+
PERMISSIONS: `/api/${API_VERSION}/auth/permissions`,
|
|
18
|
+
},
|
|
19
|
+
// Manage endpoints (unified admin + teacher)
|
|
20
|
+
MANAGE: {
|
|
21
|
+
USERS: `/api/${API_VERSION}/manage/users`,
|
|
22
|
+
USER_DETAIL: (id) => `/api/${API_VERSION}/manage/users/${id}`,
|
|
23
|
+
SYNC_EBM: `/api/${API_VERSION}/manage/users/sync-ebm`,
|
|
24
|
+
// Branch endpoints
|
|
25
|
+
BRANCHES: `/api/${API_VERSION}/manage/branches`,
|
|
26
|
+
BRANCH_DETAIL: (id) => `/api/${API_VERSION}/manage/branches/${id}`,
|
|
27
|
+
BRANCHES_STATISTICS: `/api/${API_VERSION}/manage/branches/statistics`,
|
|
28
|
+
BRANCHES_MANAGERS: `/api/${API_VERSION}/manage/branches/managers`,
|
|
29
|
+
BRANCHES_TEACHERS: `/api/${API_VERSION}/manage/branches/teachers`,
|
|
30
|
+
QUESTIONS: `/api/${API_VERSION}/manage/questions`,
|
|
31
|
+
QUESTION_DETAIL: (id) => `/api/${API_VERSION}/manage/questions/${id}`,
|
|
32
|
+
QUESTIONS_BATCH: `/api/${API_VERSION}/manage/questions/batch`,
|
|
33
|
+
QUESTIONS_GENERATE_AUDIO: `/api/${API_VERSION}/manage/questions/generate-audio`,
|
|
34
|
+
QUESTIONS_BY_EXAM: (examId) => `/api/${API_VERSION}/manage/questions/by-exam/${examId}`,
|
|
35
|
+
EXAMS: `/api/${API_VERSION}/manage/exams`,
|
|
36
|
+
EXAM_DETAIL: (id) => `/api/${API_VERSION}/manage/exams/${id}`,
|
|
37
|
+
EXAM_QUESTIONS: (id) => `/api/${API_VERSION}/manage/exams/${id}/questions`,
|
|
38
|
+
EXAM_SHUFFLE: (id) => `/api/${API_VERSION}/manage/exams/${id}/shuffle`,
|
|
39
|
+
EXAM_COPY: (id) => `/api/${API_VERSION}/manage/exams/${id}/copy`,
|
|
40
|
+
EXAM_CLASSES: `/api/${API_VERSION}/manage/exam-classes`,
|
|
41
|
+
EXAM_CLASS_DETAIL: (id) => `/api/${API_VERSION}/manage/exam-classes/${id}`,
|
|
42
|
+
EXAM_SESSIONS: `/api/${API_VERSION}/manage/exam-sessions`,
|
|
43
|
+
EXAM_SESSION_DETAIL: (id) => `/api/${API_VERSION}/manage/exam-sessions/${id}`,
|
|
44
|
+
EXAM_ROOMS: `/api/${API_VERSION}/manage/rooms`,
|
|
45
|
+
EXAM_ROOM_DETAIL: (id) => `/api/${API_VERSION}/manage/rooms/${id}`,
|
|
46
|
+
// Room resource endpoints
|
|
47
|
+
ROOM_TEACHERS: `/api/${API_VERSION}/manage/rooms/teachers`,
|
|
48
|
+
ROOM_STUDENTS: `/api/${API_VERSION}/manage/rooms/students`,
|
|
49
|
+
ROOM_EXAMS: `/api/${API_VERSION}/manage/rooms/exams`,
|
|
50
|
+
ROOM_CONTESTS: `/api/${API_VERSION}/manage/rooms/contests`,
|
|
51
|
+
ROOM_STATISTICS: `/api/${API_VERSION}/manage/rooms/statistics`,
|
|
52
|
+
ROOM_CLASSES: `/api/${API_VERSION}/manage/rooms/classes`,
|
|
53
|
+
ROOM_BRANCHES: `/api/${API_VERSION}/manage/rooms/branches`,
|
|
54
|
+
ROOM_TAGS: `/api/${API_VERSION}/manage/rooms/tags`,
|
|
55
|
+
// Room registration endpoints
|
|
56
|
+
ROOM_REGISTRATIONS: (roomId) => `/api/${API_VERSION}/manage/rooms/${roomId}/registrations`,
|
|
57
|
+
ROOM_REGISTRATION_DETAIL: (roomId, registrationId) => `/api/${API_VERSION}/manage/rooms/${roomId}/registrations/${registrationId}`,
|
|
58
|
+
ROOM_REGISTRATIONS_BULK_REVIEW: (roomId) => `/api/${API_VERSION}/manage/rooms/${roomId}/registrations/bulk-review`,
|
|
59
|
+
// Room invite link endpoints
|
|
60
|
+
ROOM_INVITE_LINK: (roomId) => `/api/${API_VERSION}/manage/rooms/${roomId}/invite-link`,
|
|
61
|
+
// Room grading & answer sheet endpoints
|
|
62
|
+
ROOM_MANUAL_GRADING: (roomId) => `/api/${API_VERSION}/manage/rooms/${roomId}/manual-grading`,
|
|
63
|
+
ROOM_UPLOAD_ANSWER_SHEETS: (roomId) => `/api/${API_VERSION}/manage/rooms/${roomId}/upload-answer-sheets`,
|
|
64
|
+
// External Answer Sheet endpoints
|
|
65
|
+
ROOM_EXTERNAL_ANSWER_SHEETS: (roomId) => `/api/${API_VERSION}/manage/rooms/${roomId}/external-answer-sheets`,
|
|
66
|
+
ROOM_EXTERNAL_ANSWER_SHEET_DETAIL: (roomId, sheetId) => `/api/${API_VERSION}/manage/rooms/${roomId}/external-answer-sheets/${sheetId}`,
|
|
67
|
+
ROOM_EXTERNAL_UPLOAD_TOKEN: (roomId) => `/api/${API_VERSION}/manage/rooms/${roomId}/external-answer-sheets/upload-token`,
|
|
68
|
+
ROOM_EXTERNAL_ANSWER_SHEET_REGRADE: (roomId, sheetId) => `/api/${API_VERSION}/manage/rooms/${roomId}/external-answer-sheets/${sheetId}/re-grade`,
|
|
69
|
+
ROOM_EXTERNAL_ANSWER_SHEETS_REGRADE_ALL: (roomId) => `/api/${API_VERSION}/manage/rooms/${roomId}/external-answer-sheets/re-grade-all`,
|
|
70
|
+
ROOM_EXTERNAL_ANSWER_SHEET_REPROCESS: (roomId, sheetId) => `/api/${API_VERSION}/manage/rooms/${roomId}/external-answer-sheets/${sheetId}/re-process`,
|
|
71
|
+
ROOM_EXTERNAL_ANSWER_SHEETS_REPROCESS_ALL: (roomId) => `/api/${API_VERSION}/manage/rooms/${roomId}/external-answer-sheets/re-process-all`,
|
|
72
|
+
CONTESTS: `/api/${API_VERSION}/manage/contests`,
|
|
73
|
+
CONTEST_DETAIL: (id) => `/api/${API_VERSION}/manage/contests/${id}`,
|
|
74
|
+
CONTEST_SUMMARY: `/api/${API_VERSION}/manage/contests/summary`,
|
|
75
|
+
CONTEST_TOP_STUDENTS_LATEST: `/api/${API_VERSION}/manage/contests/top-students-latest`,
|
|
76
|
+
CONTEST_TOP_STUDENTS_ALL_TIME: `/api/${API_VERSION}/manage/contests/top-students-all-time`,
|
|
77
|
+
CONTEST_STATISTICS_LIST: `/api/${API_VERSION}/manage/contests/statistics-list`,
|
|
78
|
+
CONTEST_STUDENT_HISTORY: (studentId) => `/api/${API_VERSION}/manage/contests/student-contest-history/${studentId}`,
|
|
79
|
+
CONTEST_STUDENT_STATISTICS: (userId) => `/api/${API_VERSION}/manage/contests/student-statistics/${userId}`,
|
|
80
|
+
CONTEST_STATISTICS: (contestId) => `/api/${API_VERSION}/manage/contests/${contestId}/statistics`,
|
|
81
|
+
CONTEST_STAFF: (contestId) => `/api/${API_VERSION}/manage/contests/${contestId}/staff`,
|
|
82
|
+
CONTEST_STAFF_BY_GROUP: (contestId) => `/api/${API_VERSION}/manage/contests/${contestId}/staff/by-group`,
|
|
83
|
+
CONTEST_STAFF_DETAIL: (contestId, staffId) => `/api/${API_VERSION}/manage/contests/${contestId}/staff/${staffId}`,
|
|
84
|
+
CONTEST_GALLERY: (contestId) => `/api/${API_VERSION}/manage/contests/${contestId}/gallery`,
|
|
85
|
+
CONTEST_GALLERY_DETAIL: (contestId, imageId) => `/api/${API_VERSION}/manage/contests/${contestId}/gallery/${imageId}`,
|
|
86
|
+
CONTEST_CONVERT_MULTI_ROUND: (contestId) => `/api/${API_VERSION}/manage/contests/${contestId}/convert-to-multi-round`,
|
|
87
|
+
CONTEST_ROUNDS: (contestId) => `/api/${API_VERSION}/manage/contests/${contestId}/rounds`,
|
|
88
|
+
CONTEST_ROUND_DETAIL: (contestId, roundId) => `/api/${API_VERSION}/manage/contests/${contestId}/rounds/${roundId}`,
|
|
89
|
+
CONTEST_REGISTRATIONS: (contestId) => `/api/${API_VERSION}/manage/contests/${contestId}/registrations`,
|
|
90
|
+
CONTEST_REGISTRATION_DETAIL: (contestId, registrationId) => `/api/${API_VERSION}/manage/contests/${contestId}/registrations/${registrationId}`,
|
|
91
|
+
CONTEST_REGISTRATIONS_BULK_REVIEW: (contestId) => `/api/${API_VERSION}/manage/contests/${contestId}/registrations/bulk-review`,
|
|
92
|
+
CONTEST_RESULTS: (contestId) => `/api/${API_VERSION}/manage/contests/${contestId}/results`,
|
|
93
|
+
CONTEST_OVERVIEW_STATS: (contestId) => `/api/${API_VERSION}/manage/contests/${contestId}/overview-stats`,
|
|
94
|
+
// Question Banks endpoints
|
|
95
|
+
QUESTION_BANKS: `/api/${API_VERSION}/manage/question-banks`,
|
|
96
|
+
QUESTION_BANK_DETAIL: (id) => `/api/${API_VERSION}/manage/question-banks/${id}`,
|
|
97
|
+
QUESTION_BANKS_STATISTICS: `/api/${API_VERSION}/manage/question-banks/statistics`,
|
|
98
|
+
// Schedules endpoints
|
|
99
|
+
SCHEDULES_SUMMARY: `/api/${API_VERSION}/manage/schedules/summary`,
|
|
100
|
+
SCHEDULES_CALENDAR: `/api/${API_VERSION}/manage/schedules/calendar`,
|
|
101
|
+
SCHEDULES: `/api/${API_VERSION}/manage/schedules`,
|
|
102
|
+
// Student Test Participants endpoint
|
|
103
|
+
STUDENT_TEST_PARTICIPANTS: `/api/${API_VERSION}/manage/students/test-participants`,
|
|
104
|
+
// Reports endpoints
|
|
105
|
+
REPORTS: `/api/${API_VERSION}/manage/reports`,
|
|
106
|
+
REPORT_OVERVIEW: `/api/${API_VERSION}/manage/reports/overview`,
|
|
107
|
+
REPORT_CLASSES: `/api/${API_VERSION}/manage/reports/classes`,
|
|
108
|
+
REPORT_BRANCHES: `/api/${API_VERSION}/manage/reports/branches`,
|
|
109
|
+
REPORT_SKILLS: `/api/${API_VERSION}/manage/reports/skills`,
|
|
110
|
+
REPORT_TRENDS: `/api/${API_VERSION}/manage/reports/trends`,
|
|
111
|
+
REPORT_CUSTOM: `/api/${API_VERSION}/manage/reports/custom`,
|
|
112
|
+
REPORT_CUSTOM_DETAIL: (id) => `/api/${API_VERSION}/manage/reports/custom/${id}`,
|
|
113
|
+
REPORT_CUSTOM_DOWNLOAD: (id) => `/api/${API_VERSION}/manage/reports/custom/${id}/download`,
|
|
114
|
+
REPORT_ROOMS: `/api/${API_VERSION}/manage/reports/rooms`,
|
|
115
|
+
REPORT_CONTESTS: `/api/${API_VERSION}/manage/reports/contests`,
|
|
116
|
+
REPORT_COMPETENCY: `/api/${API_VERSION}/manage/reports/competency`,
|
|
117
|
+
REPORT_COMPETENCY_EXAM_ROOMS: `/api/${API_VERSION}/manage/reports/competency/exam-rooms`,
|
|
118
|
+
// Dashboard endpoints
|
|
119
|
+
DASHBOARD_SUMMARY: `/api/${API_VERSION}/manage/dashboard/summary`,
|
|
120
|
+
DASHBOARD_USER_GROWTH: `/api/${API_VERSION}/manage/dashboard/user-growth`,
|
|
121
|
+
DASHBOARD_EXAM_STATS: `/api/${API_VERSION}/manage/dashboard/exam-statistics`,
|
|
122
|
+
DASHBOARD_ACTIVITIES: `/api/${API_VERSION}/manage/dashboard/recent-activities`,
|
|
123
|
+
DASHBOARD_ROOMS: `/api/${API_VERSION}/manage/dashboard/rooms`,
|
|
124
|
+
DASHBOARD_CHARTS: `/api/${API_VERSION}/manage/dashboard/charts`,
|
|
125
|
+
DASHBOARD_UPCOMING_ROOMS: `/api/${API_VERSION}/manage/dashboard/upcoming-rooms`,
|
|
126
|
+
DASHBOARD_PENDING_GRADING: `/api/${API_VERSION}/manage/dashboard/pending-grading`,
|
|
127
|
+
// Roles endpoints
|
|
128
|
+
ROLES: `/api/${API_VERSION}/manage/roles`,
|
|
129
|
+
ROLE_DETAIL: (id) => `/api/${API_VERSION}/manage/roles/${id}`,
|
|
130
|
+
ROLE_PERMISSIONS: (id) => `/api/${API_VERSION}/manage/roles/${id}/permissions`,
|
|
131
|
+
// Permissions endpoints
|
|
132
|
+
PERMISSIONS: `/api/${API_VERSION}/manage/permissions`,
|
|
133
|
+
PERMISSIONS_GROUPED: `/api/${API_VERSION}/manage/permissions/grouped`,
|
|
134
|
+
// User Roles endpoints
|
|
135
|
+
USER_ROLES: (userId) => `/api/${API_VERSION}/manage/users/${userId}/roles`,
|
|
136
|
+
USER_ROLE_DETAIL: (userId, userRoleId) => `/api/${API_VERSION}/manage/users/${userId}/roles/${userRoleId}`,
|
|
137
|
+
// Room open/close (previously teacher-only)
|
|
138
|
+
ROOM_OPEN: (id) => `/api/${API_VERSION}/manage/rooms/${id}/open`,
|
|
139
|
+
ROOM_CLOSE: (id) => `/api/${API_VERSION}/manage/rooms/${id}/close`,
|
|
140
|
+
ROOM_TOGGLE_LOCK: (id) => `/api/${API_VERSION}/manage/rooms/${id}/toggle-lock`,
|
|
141
|
+
// Grading endpoints (previously teacher-only)
|
|
142
|
+
GRADING_ATTEMPT: (attemptId) => `/api/${API_VERSION}/manage/grading/${attemptId}`,
|
|
143
|
+
GRADING_ANSWER: (attemptId, answerId) => `/api/${API_VERSION}/manage/grading/${attemptId}/answers/${answerId}`,
|
|
144
|
+
// Exam variants/template (previously teacher-only)
|
|
145
|
+
EXAM_VARIANTS: (id) => `/api/${API_VERSION}/manage/exams/${id}/variants`,
|
|
146
|
+
EXAM_TEMPLATE: (id) => `/api/${API_VERSION}/manage/exams/${id}/template`,
|
|
147
|
+
},
|
|
148
|
+
// Backward-compatible alias: ADMIN → MANAGE
|
|
149
|
+
// TODO: Remove after all frontend consumers are migrated to use MANAGE
|
|
150
|
+
get ADMIN() {
|
|
151
|
+
return this.MANAGE;
|
|
152
|
+
},
|
|
153
|
+
// System Admin endpoints
|
|
154
|
+
SYSTEM_ADMIN: {
|
|
155
|
+
// Branch endpoints
|
|
156
|
+
BRANCHES: `/api/${API_VERSION}/system-admin/branches`,
|
|
157
|
+
BRANCH_DETAIL: (id) => `/api/${API_VERSION}/system-admin/branches/${id}`,
|
|
158
|
+
BRANCHES_STATISTICS: `/api/${API_VERSION}/system-admin/branches/statistics`,
|
|
159
|
+
// Users endpoint (for manager selection)
|
|
160
|
+
USERS: `/api/${API_VERSION}/system-admin/users`,
|
|
161
|
+
USER_DETAIL: (id) => `/api/${API_VERSION}/system-admin/users/${id}`,
|
|
162
|
+
USERS_IMPORT: `/api/${API_VERSION}/system-admin/users/import`,
|
|
163
|
+
USERS_IMPORT_TEMPLATE: `/api/${API_VERSION}/system-admin/users/import/template`,
|
|
164
|
+
USERS_BULK_UPDATE_PASSWORD: `/api/${API_VERSION}/system-admin/users/bulk-update-password`,
|
|
165
|
+
// User Groups endpoints
|
|
166
|
+
USER_GROUPS: `/api/${API_VERSION}/system-admin/user-groups`,
|
|
167
|
+
USER_GROUP_DETAIL: (id) => `/api/${API_VERSION}/system-admin/user-groups/${id}`,
|
|
168
|
+
USER_GROUP_MEMBERS: (id) => `/api/${API_VERSION}/system-admin/user-groups/${id}/members`,
|
|
169
|
+
USER_GROUP_MEMBERS_BY_EMAIL: (id) => `/api/${API_VERSION}/system-admin/user-groups/${id}/members/by-email`,
|
|
170
|
+
// Tag endpoints
|
|
171
|
+
TAGS: `/api/${API_VERSION}/system-admin/tags`,
|
|
172
|
+
TAG_DETAIL: (id) => `/api/${API_VERSION}/system-admin/tags/${id}`,
|
|
173
|
+
TAG_CATEGORIES: `/api/${API_VERSION}/system-admin/tags/categories`,
|
|
174
|
+
// Bulk Room Provisioning endpoints
|
|
175
|
+
BULK_ROOMS_PREVIEW: `/api/${API_VERSION}/system-admin/bulk-rooms/preview`,
|
|
176
|
+
BULK_ROOMS_COMMIT: `/api/${API_VERSION}/system-admin/bulk-rooms/commit`,
|
|
177
|
+
BULK_ROOMS_EBM_BRANCHES: `/api/${API_VERSION}/system-admin/bulk-rooms/ebm-branches`,
|
|
178
|
+
// Bulk Assign Exams endpoints
|
|
179
|
+
BULK_ASSIGN_EXAMS_MATCH: `/api/${API_VERSION}/system-admin/bulk-assign-exams/match`,
|
|
180
|
+
BULK_ASSIGN_EXAMS_APPLY: `/api/${API_VERSION}/system-admin/bulk-assign-exams/apply`,
|
|
181
|
+
// Assign Students to Rooms endpoint
|
|
182
|
+
ASSIGN_STUDENTS_TO_ROOMS_IMPORT: `/api/${API_VERSION}/system-admin/rooms/assign-students/import`,
|
|
183
|
+
// OEA Round 2 Results endpoints
|
|
184
|
+
OEA_RESULTS_IMPORT: `/api/${API_VERSION}/system-admin/oea-results/import`,
|
|
185
|
+
OEA_RESULTS_CLEAR: `/api/${API_VERSION}/system-admin/oea-results/clear`,
|
|
186
|
+
OEA_RESULTS_COUNT: `/api/${API_VERSION}/system-admin/oea-results/count`,
|
|
187
|
+
OEA_RESULTS_LIST: `/api/${API_VERSION}/system-admin/oea-results/list`,
|
|
188
|
+
},
|
|
189
|
+
// Student endpoints
|
|
190
|
+
STUDENT: {
|
|
191
|
+
// Profile
|
|
192
|
+
PROFILE: `/api/${API_VERSION}/student/profile`,
|
|
193
|
+
// Exams
|
|
194
|
+
EXAMS: `/api/${API_VERSION}/student/exams`,
|
|
195
|
+
EXAM_START: (id) => `/api/${API_VERSION}/student/exams/${id}/start`,
|
|
196
|
+
EXAM_SUBMIT: (id) => `/api/${API_VERSION}/student/exams/${id}/submit`,
|
|
197
|
+
// Rooms
|
|
198
|
+
ROOMS: `/api/${API_VERSION}/student/rooms`,
|
|
199
|
+
ROOMS_JOINED: `/api/${API_VERSION}/student/rooms/joined`,
|
|
200
|
+
ROOM_DETAIL: (id) => `/api/${API_VERSION}/student/rooms/${id}`,
|
|
201
|
+
ROOM_JOIN: `/api/${API_VERSION}/student/rooms/join`,
|
|
202
|
+
ROOM_STATUS: (id) => `/api/${API_VERSION}/student/rooms/${id}/status`,
|
|
203
|
+
ROOM_JOIN_INVITE: (roomId, token) => `/api/${API_VERSION}/student/rooms/${roomId}/invite/${token}`,
|
|
204
|
+
// Attempts
|
|
205
|
+
ATTEMPTS_START: `/api/${API_VERSION}/student/attempts/start`,
|
|
206
|
+
ATTEMPTS_ACTIVE: `/api/${API_VERSION}/student/attempts/active`,
|
|
207
|
+
ATTEMPTS_ACTIVE_BY_ROOM: (roomId) => `/api/${API_VERSION}/student/attempts/active-by-room/${roomId}`,
|
|
208
|
+
ATTEMPT_DETAIL: (id) => `/api/${API_VERSION}/student/attempts/${id}`,
|
|
209
|
+
ATTEMPT_DELETE: (id) => `/api/${API_VERSION}/student/attempts/${id}`,
|
|
210
|
+
ATTEMPT_QUESTIONS: (id) => `/api/${API_VERSION}/student/attempts/${id}/questions`,
|
|
211
|
+
ATTEMPT_ANSWERS: (id) => `/api/${API_VERSION}/student/attempts/${id}/answers`,
|
|
212
|
+
ATTEMPT_SUBMIT: (id) => `/api/${API_VERSION}/student/attempts/${id}/submit`,
|
|
213
|
+
ATTEMPT_CANCEL: (id) => `/api/${API_VERSION}/student/attempts/${id}/cancel`,
|
|
214
|
+
ATTEMPT_AUDIO_ANSWER: (id) => `/api/${API_VERSION}/student/attempts/${id}/audio-answer`,
|
|
215
|
+
ATTEMPT_AUDIO_ANSWER_ITEM: (id) => `/api/${API_VERSION}/student/attempts/${id}/audio-answer-item`,
|
|
216
|
+
ATTEMPT_PROCTORING_SNAPSHOT: (id) => `/api/${API_VERSION}/student/attempts/${id}/proctoring-snapshot`,
|
|
217
|
+
ATTEMPT_GRADING_SUMMARY: (id) => `/api/${API_VERSION}/student/attempts/${id}/grading-summary`,
|
|
218
|
+
ATTEMPT_ANSWERS_GRADING_STATUS: (id) => `/api/${API_VERSION}/student/attempts/${id}/answers/grading-status`,
|
|
219
|
+
ATTEMPT_ANSWER_DETAIL: (attemptId, answerId) => `/api/${API_VERSION}/student/attempts/${attemptId}/answers/${answerId}`,
|
|
220
|
+
// Schedules
|
|
221
|
+
SCHEDULES: `/api/${API_VERSION}/student/schedules`,
|
|
222
|
+
SCHEDULES_PAST: `/api/${API_VERSION}/student/schedules/past`,
|
|
223
|
+
// Results
|
|
224
|
+
RESULTS: `/api/${API_VERSION}/student/results`,
|
|
225
|
+
RESULT_DETAIL: (id) => `/api/${API_VERSION}/student/results/${id}`,
|
|
226
|
+
RESULT_RANKING: (id) => `/api/${API_VERSION}/student/results/${id}/ranking`,
|
|
227
|
+
EXPORT_NATIVE_PDF: `/api/${API_VERSION}/export/exam-report-pdf`,
|
|
228
|
+
// Analytics
|
|
229
|
+
STATS: `/api/${API_VERSION}/student/stats`,
|
|
230
|
+
PROGRESS: `/api/${API_VERSION}/student/progress`,
|
|
231
|
+
// Contests
|
|
232
|
+
CONTESTS: `/api/${API_VERSION}/student/contests`,
|
|
233
|
+
CONTESTS_PUBLIC: `/api/${API_VERSION}/student/contests/public`,
|
|
234
|
+
CONTESTS_MY: `/api/${API_VERSION}/student/contests/my`,
|
|
235
|
+
CONTEST_DETAIL: (id) => `/api/${API_VERSION}/student/contests/${id}`,
|
|
236
|
+
CONTEST_REGISTER: (id) => `/api/${API_VERSION}/student/contests/${id}/register`,
|
|
237
|
+
CONTEST_ROOMS: (id) => `/api/${API_VERSION}/student/contests/${id}/rooms`,
|
|
238
|
+
CONTEST_RESULTS: (id) => `/api/${API_VERSION}/student/contests/${id}/results`,
|
|
239
|
+
CONTEST_HISTORY: (id) => `/api/${API_VERSION}/student/contests/${id}/history`,
|
|
240
|
+
CONTEST_LEADERBOARD: (id) => `/api/${API_VERSION}/student/contests/${id}/leaderboard`,
|
|
241
|
+
CONTEST_ROUNDS: (id) => `/api/${API_VERSION}/student/contests/${id}/rounds`,
|
|
242
|
+
CONTEST_GALLERY: (id) => `/api/${API_VERSION}/student/contests/${id}/gallery`,
|
|
243
|
+
CONTEST_ROOM_REGISTER: (contestId, roomId) => `/api/${API_VERSION}/student/contests/${contestId}/rooms/${roomId}/register`,
|
|
244
|
+
},
|
|
245
|
+
SHARED: {
|
|
246
|
+
EXAM_TEMPLATES: `/api/${API_VERSION}/exam-templates`,
|
|
247
|
+
EXAM_TEMPLATE_DETAIL: (id) => `/api/${API_VERSION}/exam-templates/${id}`,
|
|
248
|
+
EXAM_TEMPLATE_EXPORT: (id) => `/api/${API_VERSION}/exam-templates/${id}/export`,
|
|
249
|
+
EXAM_TEMPLATE_IMPORT: `/api/${API_VERSION}/exam-templates/import`,
|
|
250
|
+
EXAM_TEMPLATE_UPDATE: (id) => `/api/${API_VERSION}/exam-templates/${id}`,
|
|
251
|
+
EXAM_TEMPLATE_DELETE: (id) => `/api/${API_VERSION}/exam-templates/${id}`,
|
|
252
|
+
EXAM_TEMPLATE_EXAMS: (id) => `/api/${API_VERSION}/exam-templates/${id}/exams`,
|
|
253
|
+
EXAM_TEMPLATE_APPLY_CONFIG: (id) => `/api/${API_VERSION}/exam-templates/${id}/apply-config`,
|
|
254
|
+
SUBJECTS: `/api/${API_VERSION}/subjects`,
|
|
255
|
+
CONTESTS: `/api/${API_VERSION}/contests`,
|
|
256
|
+
SPEAKING_REALTIME_GRADE: `/api/${API_VERSION}/speaking-assessment/realtime/grade-single`,
|
|
257
|
+
},
|
|
258
|
+
// Storage endpoints
|
|
259
|
+
STORAGE: {
|
|
260
|
+
UPLOAD: `/api/${API_VERSION}/storage/upload`,
|
|
261
|
+
UPLOAD_AUDIO: `/api/${API_VERSION}/storage/upload-audio`,
|
|
262
|
+
FILE: (key) => `/api/${API_VERSION}/storage/${encodeURIComponent(key)}`,
|
|
263
|
+
},
|
|
264
|
+
// Public (unauthenticated) endpoints
|
|
265
|
+
PUBLIC: {
|
|
266
|
+
EXTERNAL_SHEET_RESULT: (publicToken) => `/api/${API_VERSION}/public/external-sheets/result/${publicToken}`,
|
|
267
|
+
EXTERNAL_SHEET_UPLOAD: (uploadToken) => `/api/${API_VERSION}/public/external-sheets/upload/${uploadToken}`,
|
|
268
|
+
EXTERNAL_SHEET_TOKEN_INFO: (uploadToken) => `/api/${API_VERSION}/public/external-sheets/token-info/${uploadToken}`,
|
|
269
|
+
// OEA Round 2 Results lookup
|
|
270
|
+
OEA_RESULTS_LOOKUP: `/api/${API_VERSION}/public/oea-results/lookup`,
|
|
271
|
+
},
|
|
272
|
+
// Test endpoints (development only)
|
|
273
|
+
TEST: {
|
|
274
|
+
COOKIE_SET: `/api/${API_VERSION}/test/cookie/set`,
|
|
275
|
+
COOKIE_SET_AUTH: `/api/${API_VERSION}/test/cookie/set-auth-test`,
|
|
276
|
+
COOKIE_CLEAR: `/api/${API_VERSION}/test/cookie/clear`,
|
|
277
|
+
},
|
|
278
|
+
};
|
|
@@ -1 +1,112 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* React Query keys constants
|
|
3
|
+
*/
|
|
4
|
+
export const QUERY_KEYS = {
|
|
5
|
+
// Auth
|
|
6
|
+
AUTH: {
|
|
7
|
+
ME: ['auth', 'me'],
|
|
8
|
+
PERMISSIONS: ['auth', 'permissions'],
|
|
9
|
+
},
|
|
10
|
+
// Admin
|
|
11
|
+
ADMIN: {
|
|
12
|
+
USERS: (params) => ['admin', 'users', params],
|
|
13
|
+
USERS_BASE: () => ['admin', 'users'],
|
|
14
|
+
USER_DETAIL: (id) => ['admin', 'users', id],
|
|
15
|
+
// Branch query keys
|
|
16
|
+
BRANCHES: (params) => ['admin', 'branches', params],
|
|
17
|
+
BRANCHES_BASE: () => ['admin', 'branches'],
|
|
18
|
+
BRANCH_DETAIL: (id) => ['admin', 'branches', id],
|
|
19
|
+
BRANCHES_STATISTICS: () => ['admin', 'branches', 'statistics'],
|
|
20
|
+
BRANCHES_MANAGERS: () => ['admin', 'branches', 'managers'],
|
|
21
|
+
BRANCHES_TEACHERS: (branchId) => ['admin', 'branches', 'teachers', branchId],
|
|
22
|
+
QUESTIONS: (params) => ['admin', 'questions', params],
|
|
23
|
+
QUESTIONS_BASE: () => ['admin', 'questions'],
|
|
24
|
+
QUESTION_DETAIL: (id) => ['admin', 'questions', id],
|
|
25
|
+
EXAMS: (params) => ['admin', 'exams', params],
|
|
26
|
+
EXAM_DETAIL: (id) => ['admin', 'exams', id],
|
|
27
|
+
EXAM_CLASSES: (params) => ['admin', 'exam-classes', params],
|
|
28
|
+
EXAM_CLASS_DETAIL: (id) => ['admin', 'exam-classes', id],
|
|
29
|
+
EXAM_SESSIONS: (params) => ['admin', 'exam-sessions', params],
|
|
30
|
+
EXAM_SESSION_DETAIL: (id) => ['admin', 'exam-sessions', id],
|
|
31
|
+
EXAM_ROOMS: (params) => ['admin', 'exam-rooms', params],
|
|
32
|
+
EXAM_ROOM_DETAIL: (id) => ['admin', 'exam-rooms', id],
|
|
33
|
+
CONTEST_ROOMS: (contestId, params) => ['admin', 'contests', contestId, 'rooms', params],
|
|
34
|
+
CONTEST_REGISTRATIONS: (contestId) => ['admin', 'contests', contestId, 'registrations'],
|
|
35
|
+
ROOM_REGISTRATIONS: (roomId) => ['admin', 'rooms', roomId, 'registrations'],
|
|
36
|
+
ROOM_STATISTICS: () => ['admin', 'rooms', 'statistics'],
|
|
37
|
+
SUBJECTS: () => ['admin', 'subjects'],
|
|
38
|
+
// Question Banks query keys
|
|
39
|
+
QUESTION_BANKS: (params) => ['admin', 'question-banks', params],
|
|
40
|
+
QUESTION_BANKS_BASE: () => ['admin', 'question-banks'],
|
|
41
|
+
QUESTION_BANK_DETAIL: (id) => ['admin', 'question-banks', id],
|
|
42
|
+
REPORTS: (params) => ['admin', 'reports', params],
|
|
43
|
+
// Student Test Participants query keys
|
|
44
|
+
STUDENT_TEST_PARTICIPANTS: (params) => ['admin', 'student-test-participants', params],
|
|
45
|
+
STUDENT_TEST_PARTICIPANTS_BASE: () => ['admin', 'student-test-participants'],
|
|
46
|
+
// Roles query keys
|
|
47
|
+
ROLES: () => ['admin', 'roles'],
|
|
48
|
+
ROLE_DETAIL: (id) => ['admin', 'roles', id],
|
|
49
|
+
// Permissions query keys
|
|
50
|
+
PERMISSIONS: () => ['admin', 'permissions'],
|
|
51
|
+
PERMISSIONS_GROUPED: () => ['admin', 'permissions', 'grouped'],
|
|
52
|
+
// User Roles query keys
|
|
53
|
+
USER_ROLES: (userId) => ['admin', 'users', userId, 'roles'],
|
|
54
|
+
},
|
|
55
|
+
// System Admin
|
|
56
|
+
SYSTEM_ADMIN: {
|
|
57
|
+
BRANCHES: (params) => ['system-admin', 'branches', params],
|
|
58
|
+
BRANCHES_BASE: () => ['system-admin', 'branches'],
|
|
59
|
+
BRANCH_DETAIL: (id) => ['system-admin', 'branches', id],
|
|
60
|
+
BRANCHES_STATISTICS: () => ['system-admin', 'branches', 'statistics'],
|
|
61
|
+
USERS: (params) => ['system-admin', 'users', params],
|
|
62
|
+
USERS_BASE: () => ['system-admin', 'users'],
|
|
63
|
+
// User Groups
|
|
64
|
+
USER_GROUPS: (params) => ['system-admin', 'user-groups', params],
|
|
65
|
+
USER_GROUPS_BASE: () => ['system-admin', 'user-groups'],
|
|
66
|
+
USER_GROUP_DETAIL: (id) => ['system-admin', 'user-groups', id],
|
|
67
|
+
USER_GROUP_MEMBERS: (id, params) => ['system-admin', 'user-groups', id, 'members', params],
|
|
68
|
+
// Tags
|
|
69
|
+
TAGS: (params) => ['system-admin', 'tags', params],
|
|
70
|
+
TAGS_BASE: () => ['system-admin', 'tags'],
|
|
71
|
+
TAG_DETAIL: (id) => ['system-admin', 'tags', id],
|
|
72
|
+
TAG_CATEGORIES: () => ['system-admin', 'tags', 'categories'],
|
|
73
|
+
},
|
|
74
|
+
// Teacher
|
|
75
|
+
TEACHER: {
|
|
76
|
+
ROOMS: (params) => ['teacher', 'rooms', params],
|
|
77
|
+
ROOM_DETAIL: (id) => ['teacher', 'rooms', id],
|
|
78
|
+
ROOM_STUDENTS: (id) => ['teacher', 'rooms', id, 'students'],
|
|
79
|
+
ESSAYS: (params) => ['teacher', 'essays', params],
|
|
80
|
+
ESSAY_DETAIL: (id) => ['teacher', 'essays', id],
|
|
81
|
+
EXAMS: (params) => ['teacher', 'exams', params],
|
|
82
|
+
EXAM_DETAIL: (id) => ['teacher', 'exams', id],
|
|
83
|
+
EXAM_QUESTIONS: (id) => ['teacher', 'exams', id, 'questions'],
|
|
84
|
+
},
|
|
85
|
+
// Student
|
|
86
|
+
STUDENT: {
|
|
87
|
+
PROFILE: () => ['student', 'profile'],
|
|
88
|
+
EXAMS: (params) => ['student', 'exams', params],
|
|
89
|
+
EXAM_DETAIL: (id) => ['student', 'exams', id],
|
|
90
|
+
RESULTS: (params) => ['student', 'results', params],
|
|
91
|
+
RESULT_DETAIL: (id) => ['student', 'results', id],
|
|
92
|
+
// Contests
|
|
93
|
+
CONTESTS_PUBLIC: (params) => ['student', 'contests', 'public', params],
|
|
94
|
+
CONTESTS_MY: (params) => ['student', 'contests', 'my', params],
|
|
95
|
+
CONTEST_DETAIL: (id) => ['student', 'contests', id],
|
|
96
|
+
CONTEST_ROOMS: (id, params) => ['student', 'contests', id, 'rooms', params],
|
|
97
|
+
CONTEST_RESULTS: (id, params) => ['student', 'contests', id, 'results', params],
|
|
98
|
+
CONTEST_HISTORY: (id, params) => ['student', 'contests', id, 'history', params],
|
|
99
|
+
CONTEST_LEADERBOARD: (id) => ['student', 'contests', id, 'leaderboard'],
|
|
100
|
+
CONTEST_ROUNDS: (id) => ['student', 'contests', id, 'rounds'],
|
|
101
|
+
CONTEST_GALLERY: (id) => ['student', 'contests', id, 'gallery'],
|
|
102
|
+
},
|
|
103
|
+
SHARED: {
|
|
104
|
+
EXAM_TEMPLATES: (params) => ['shared', 'exam-templates', params],
|
|
105
|
+
EXAM_TEMPLATES_BASE: () => ['shared', 'exam-templates'],
|
|
106
|
+
EXAM_TEMPLATE_DETAIL: (id) => ['shared', 'exam-templates', id],
|
|
107
|
+
EXAM_TEMPLATE_EXAMS: (id) => ['shared', 'exam-templates', id, 'exams'],
|
|
108
|
+
STORAGE: {
|
|
109
|
+
FILE: (key, token) => ['shared', 'storage', 'file', key, token],
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
};
|
|
@@ -1 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Exam Level Enum
|
|
3
|
+
* Represents the CEFR level of an exam
|
|
4
|
+
* Mirrors the backend ExamLevel enum
|
|
5
|
+
* Replaces the old mst_exam_levels table API calls
|
|
6
|
+
*/
|
|
7
|
+
export var ExamLevel;
|
|
8
|
+
(function (ExamLevel) {
|
|
9
|
+
ExamLevel["PRE_A1"] = "PRE_A1";
|
|
10
|
+
ExamLevel["A1"] = "A1";
|
|
11
|
+
ExamLevel["A2"] = "A2";
|
|
12
|
+
ExamLevel["B1"] = "B1";
|
|
13
|
+
ExamLevel["B2"] = "B2";
|
|
14
|
+
ExamLevel["C1"] = "C1";
|
|
15
|
+
ExamLevel["C2"] = "C2";
|
|
16
|
+
})(ExamLevel || (ExamLevel = {}));
|
|
17
|
+
/**
|
|
18
|
+
* Display labels for ExamLevel values
|
|
19
|
+
*/
|
|
20
|
+
export const EXAM_LEVEL_LABELS = {
|
|
21
|
+
[ExamLevel.PRE_A1]: 'Pre-A1',
|
|
22
|
+
[ExamLevel.A1]: 'A1',
|
|
23
|
+
[ExamLevel.A2]: 'A2',
|
|
24
|
+
[ExamLevel.B1]: 'B1',
|
|
25
|
+
[ExamLevel.B2]: 'B2',
|
|
26
|
+
[ExamLevel.C1]: 'C1',
|
|
27
|
+
[ExamLevel.C2]: 'C2',
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* All exam levels as an array for dropdowns and filters
|
|
31
|
+
*/
|
|
32
|
+
export const ALL_EXAM_LEVELS = Object.values(ExamLevel);
|
|
33
|
+
/**
|
|
34
|
+
* Exam level options for select dropdowns
|
|
35
|
+
* Compatible with the old { id, name } format used by useExamLevels hook consumers
|
|
36
|
+
*/
|
|
37
|
+
export const EXAM_LEVEL_OPTIONS = ALL_EXAM_LEVELS.map((level) => ({
|
|
38
|
+
id: level,
|
|
39
|
+
name: EXAM_LEVEL_LABELS[level],
|
|
40
|
+
description: `CEFR ${EXAM_LEVEL_LABELS[level]}`,
|
|
41
|
+
}));
|