mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-31 12:19:47 +02:00
25 lines
699 B
TypeScript
25 lines
699 B
TypeScript
//
|
|
// Copyright @ 2024 Hardcore Engineering Inc.
|
|
//
|
|
|
|
import {
|
|
type QuestionInitFunction,
|
|
type QuestionInitFunctionResult,
|
|
type OrderingAssessment
|
|
} from '@hcengineering/questions'
|
|
import { type Hierarchy } from '@hcengineering/core'
|
|
import type { ThemeOptions } from '@hcengineering/theme'
|
|
import { OrderingQuestionInit } from './OrderingQuestionInit'
|
|
|
|
export const OrderingAssessmentInit: QuestionInitFunction<OrderingAssessment> = async (
|
|
language: ThemeOptions['language'],
|
|
hierarchy: Hierarchy
|
|
): Promise<QuestionInitFunctionResult<OrderingAssessment>> => {
|
|
return {
|
|
...(await OrderingQuestionInit(language, hierarchy)),
|
|
assessmentData: {
|
|
correctOrder: [1]
|
|
}
|
|
}
|
|
}
|