herum-types 1.0.7 → 1.0.9
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/HadrachaPage/HadrachaPageStyle.d.ts +1 -0
- package/HadrachaPage/HadrachaPageStylePatch.d.ts +1 -0
- package/Resource/MicroResource/MicroResourceFrontData.d.ts +1 -1
- package/Resource/Quiz/Answer.d.ts +8 -0
- package/Resource/Quiz/Answer.js +8 -0
- package/Resource/Quiz/ClosedQuestionContent.d.ts +1 -1
- package/Resource/Quiz/MatchingQuestionContent.d.ts +5 -0
- package/Resource/Quiz/MatchingQuestionContent.js +1 -0
- package/Resource/Quiz/Question.d.ts +18 -0
- package/Resource/Quiz/Question.js +14 -0
- package/Resource/Quiz/Quiz.d.ts +9 -0
- package/Resource/Quiz/Quiz.js +8 -0
- package/Resource/Quiz/QuizData.d.ts +1 -1
- package/Resource/Quiz/index.d.ts +4 -3
- package/Resource/Quiz/index.js +4 -3
- package/Resource/ServerQuizData.d.ts +0 -5
- package/Shared/MenuItem.d.ts +2 -0
- package/Shared/NumericSliderRange.d.ts +4 -0
- package/Shared/NumericSliderRange.js +1 -0
- package/Shared/index.d.ts +1 -0
- package/Shared/index.js +1 -0
- package/package.json +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MicroResourceAuthorizationBase, StudentMicroResourceAuthorization } from "../../Lessons/MicroResourceAuthorization";
|
|
2
2
|
import { ResourceAdditionalFile } from "../ResourceAdditionalFile";
|
|
3
3
|
import { UserQuestionData } from "../../User/QuizSubscription/UserQuestionData";
|
|
4
|
-
import { Question } from "../Quiz/Question
|
|
4
|
+
import { Question } from "../Quiz/Question";
|
|
5
5
|
export type MicroResourceFrontData = MicroResourceAuthorizationBase & {
|
|
6
6
|
id?: string;
|
|
7
7
|
icon?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FileData } from "../../Shared/FileData";
|
|
2
|
+
import { ClosedQuestionContent } from "./ClosedQuestionContent";
|
|
3
|
+
import { FreeAnswerQuestionContent } from "./FreeAnswerQuestionContent";
|
|
4
|
+
import { MatchingQuestionContent } from "./MatchingQuestionContent";
|
|
5
|
+
export declare class Question {
|
|
6
|
+
id: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
index?: number;
|
|
9
|
+
closedContent?: ClosedQuestionContent;
|
|
10
|
+
freeAnswerContent?: FreeAnswerQuestionContent;
|
|
11
|
+
matchingContent?: MatchingQuestionContent;
|
|
12
|
+
questionType?: string;
|
|
13
|
+
answerNote?: string;
|
|
14
|
+
weight?: number;
|
|
15
|
+
fileData?: Partial<FileData>;
|
|
16
|
+
isSkipped?: boolean;
|
|
17
|
+
isValid?: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Question } from "./Question";
|
|
2
|
+
export declare class Quiz {
|
|
3
|
+
numberOfRequiredQuestions?: number;
|
|
4
|
+
displayName: string;
|
|
5
|
+
questions: Question[];
|
|
6
|
+
hasSubmitted: boolean;
|
|
7
|
+
areQuestionsOrdered: boolean;
|
|
8
|
+
displayCorrectAnswersAfterSubmission?: boolean;
|
|
9
|
+
}
|
package/Resource/Quiz/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file Automatically generated by barrelsby.
|
|
3
3
|
*/
|
|
4
|
-
export * from "./Answer
|
|
4
|
+
export * from "./Answer";
|
|
5
5
|
export * from "./AnswerData";
|
|
6
6
|
export * from "./ClosedQuestionContent";
|
|
7
7
|
export * from "./FreeAnswerQuestionContent";
|
|
8
8
|
export * from "./MatchingQuestionAnswer";
|
|
9
|
+
export * from "./MatchingQuestionContent";
|
|
9
10
|
export * from "./MatchingQuestionItem";
|
|
10
|
-
export * from "./Question
|
|
11
|
+
export * from "./Question";
|
|
11
12
|
export * from "./QuestionIdToAnswerData";
|
|
12
|
-
export * from "./Quiz
|
|
13
|
+
export * from "./Quiz";
|
|
13
14
|
export * from "./QuizData";
|
|
14
15
|
export * from "./QuizGradeData";
|
|
15
16
|
export * from "./QuizUserAnswer";
|
package/Resource/Quiz/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @file Automatically generated by barrelsby.
|
|
3
3
|
*/
|
|
4
|
-
export * from "./Answer
|
|
4
|
+
export * from "./Answer";
|
|
5
5
|
export * from "./AnswerData";
|
|
6
6
|
export * from "./ClosedQuestionContent";
|
|
7
7
|
export * from "./FreeAnswerQuestionContent";
|
|
8
8
|
export * from "./MatchingQuestionAnswer";
|
|
9
|
+
export * from "./MatchingQuestionContent";
|
|
9
10
|
export * from "./MatchingQuestionItem";
|
|
10
|
-
export * from "./Question
|
|
11
|
+
export * from "./Question";
|
|
11
12
|
export * from "./QuestionIdToAnswerData";
|
|
12
|
-
export * from "./Quiz
|
|
13
|
+
export * from "./Quiz";
|
|
13
14
|
export * from "./QuizData";
|
|
14
15
|
export * from "./QuizGradeData";
|
|
15
16
|
export * from "./QuizUserAnswer";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Question } from "./Quiz";
|
|
2
|
-
import { MatchingQuestionItem } from "./Quiz/MatchingQuestionItem";
|
|
3
2
|
export type ServerQuizData = {
|
|
4
3
|
numberOfRequiredQuestions?: number;
|
|
5
4
|
questions?: Question[];
|
|
@@ -8,7 +7,3 @@ export type ServerQuizData = {
|
|
|
8
7
|
displayCorrectAnswersAfterSubmission?: boolean;
|
|
9
8
|
isAutoGraded?: boolean;
|
|
10
9
|
};
|
|
11
|
-
export type MatchingQuestionContent = {
|
|
12
|
-
sources?: MatchingQuestionItem[];
|
|
13
|
-
targets?: MatchingQuestionItem[];
|
|
14
|
-
};
|
package/Shared/MenuItem.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/Shared/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from "./MediaSettings";
|
|
|
21
21
|
export * from "./MenuItem";
|
|
22
22
|
export * from "./ModelInfo";
|
|
23
23
|
export * from "./Note";
|
|
24
|
+
export * from "./NumericSliderRange";
|
|
24
25
|
export * from "./PageSection";
|
|
25
26
|
export * from "./Permission";
|
|
26
27
|
export * from "./ProgressOverView";
|
package/Shared/index.js
CHANGED
|
@@ -21,6 +21,7 @@ export * from "./MediaSettings";
|
|
|
21
21
|
export * from "./MenuItem";
|
|
22
22
|
export * from "./ModelInfo";
|
|
23
23
|
export * from "./Note";
|
|
24
|
+
export * from "./NumericSliderRange";
|
|
24
25
|
export * from "./PageSection";
|
|
25
26
|
export * from "./Permission";
|
|
26
27
|
export * from "./ProgressOverView";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "herum-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"npm": "^10.8.3"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"
|
|
23
|
+
"version-patch": "npm version patch",
|
|
24
|
+
"build": "npm run barrels && tsc -p tsconfig.build.json",
|
|
24
25
|
"barrels": "barrelsby --config ./barrelsby.json"
|
|
25
26
|
},
|
|
26
27
|
"peerDependencies": {
|