// // Copyright @ 2024 Hardcore Engineering Inc. // import questions, { type AnswerDataAssessFunction, type AnswerDataEditor, type AnswerDataPresenter, type MultipleChoiceAssessment, type MultipleChoiceAssessmentAnswer, type MultipleChoiceQuestion, type MultipleChoiceQuestionAnswer, type OrderingAssessment, type OrderingAssessmentAnswer, type OrderingQuestion, type OrderingQuestionAnswer, type Question, type QuestionDataEditor, type QuestionDataPresenter, type QuestionInitFunction, questionsId, type SingleChoiceAssessment, type SingleChoiceAssessmentAnswer, type SingleChoiceQuestion, type SingleChoiceQuestionAnswer } from '@hcengineering/questions' import type { Ref } from '@hcengineering/core' import { mergeIds, type Resource } from '@hcengineering/platform' import type { Action, ViewActionAvailabilityFunction, ViewActionFunction } from '@hcengineering/view' export default mergeIds(questionsId, questions, { action: { QuestionDelete: '' as Ref>>, QuestionDeleteAction: '' as Resource>>, QuestionDeleteIsAvailable: '' as Resource>>, QuestionDuplicate: '' as Ref>>, QuestionDuplicateAction: '' as Resource>>, QuestionDuplicateIsAvailable: '' as Resource>>, QuestionMoveDown: '' as Ref>>, QuestionMoveDownAction: '' as Resource>>, QuestionMoveDownIsAvailable: '' as Resource>>, QuestionMoveUp: '' as Ref>>, QuestionMoveUpAction: '' as Resource>>, QuestionMoveUpIsAvailable: '' as Resource>> }, component: { // MultipleChoiceAssessment MultipleChoiceAssessmentDataEditor: '' as Resource>, MultipleChoiceAssessmentDataPresenter: '' as Resource>, MultipleChoiceAssessmentAnswerDataEditor: '' as Resource< AnswerDataEditor >, MultipleChoiceAssessmentAnswerDataPresenter: '' as Resource< AnswerDataPresenter >, // MultipleChoiceQuestion MultipleChoiceQuestionDataEditor: '' as Resource>, MultipleChoiceQuestionDataPresenter: '' as Resource>, MultipleChoiceQuestionAnswerDataEditor: '' as Resource< AnswerDataEditor >, MultipleChoiceQuestionAnswerDataPresenter: '' as Resource< AnswerDataPresenter >, // OrderingAssessment OrderingAssessmentDataEditor: '' as Resource>, OrderingAssessmentDataPresenter: '' as Resource>, OrderingAssessmentAnswerDataEditor: '' as Resource>, OrderingAssessmentAnswerDataPresenter: '' as Resource< AnswerDataPresenter >, // OrderingQuestion OrderingQuestionDataEditor: '' as Resource>, OrderingQuestionDataPresenter: '' as Resource>, OrderingQuestionAnswerDataEditor: '' as Resource>, OrderingQuestionAnswerDataPresenter: '' as Resource>, // SingleChoiceAssessment SingleChoiceAssessmentDataEditor: '' as Resource>, SingleChoiceAssessmentDataPresenter: '' as Resource>, SingleChoiceAssessmentAnswerDataEditor: '' as Resource< AnswerDataEditor >, SingleChoiceAssessmentAnswerDataPresenter: '' as Resource< AnswerDataPresenter >, // SingleChoiceQuestion SingleChoiceQuestionDataEditor: '' as Resource>, SingleChoiceQuestionDataPresenter: '' as Resource>, SingleChoiceQuestionAnswerDataEditor: '' as Resource< AnswerDataEditor >, SingleChoiceQuestionAnswerDataPresenter: '' as Resource< AnswerDataPresenter > }, function: { // MultipleChoice MultipleChoiceAssessmentAssess: '' as Resource< AnswerDataAssessFunction >, MultipleChoiceAssessmentInit: '' as Resource>, MultipleChoiceQuestionInit: '' as Resource>, // Ordering OrderingAssessmentAssess: '' as Resource>, OrderingAssessmentInit: '' as Resource>, OrderingQuestionInit: '' as Resource>, // SingleChoice SingleChoiceAssessmentAssess: '' as Resource< AnswerDataAssessFunction >, SingleChoiceAssessmentInit: '' as Resource>, SingleChoiceQuestionInit: '' as Resource> } })