@easyedu/js-lsm-api 1.34.0 → 1.36.0

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.
Files changed (156) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/README.md +13 -2
  3. package/dist/apis/QuizApi.d.ts +20 -1
  4. package/dist/apis/QuizApi.js +49 -0
  5. package/dist/apis/UserApi.d.ts +14 -0
  6. package/dist/apis/UserApi.js +37 -0
  7. package/dist/esm/apis/QuizApi.d.ts +20 -1
  8. package/dist/esm/apis/QuizApi.js +50 -1
  9. package/dist/esm/apis/UserApi.d.ts +14 -0
  10. package/dist/esm/apis/UserApi.js +37 -0
  11. package/dist/esm/models/CriteriaBasedSelectionCriteria.d.ts +3 -0
  12. package/dist/esm/models/CriteriaBasedSelectionCriteria.js +4 -1
  13. package/dist/esm/models/Essay.d.ts +45 -0
  14. package/dist/esm/models/Essay.js +53 -0
  15. package/dist/esm/models/Essay1.d.ts +45 -0
  16. package/dist/esm/models/Essay1.js +53 -0
  17. package/dist/esm/models/GetQuestion.d.ts +4 -1
  18. package/dist/esm/models/GetQuestion.js +4 -1
  19. package/dist/esm/models/GetQuestionListFilters.d.ts +3 -0
  20. package/dist/esm/models/GetQuestionListFilters.js +4 -1
  21. package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +3 -0
  22. package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.js +4 -1
  23. package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +3 -0
  24. package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +4 -1
  25. package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +3 -0
  26. package/dist/esm/models/GetQuizAttemptQuestionsInner.js +4 -1
  27. package/dist/esm/models/GetQuizCriteriaItem.d.ts +3 -0
  28. package/dist/esm/models/GetQuizCriteriaItem.js +4 -1
  29. package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +3 -0
  30. package/dist/esm/models/GetQuizCriteriaListItemsInner.js +4 -1
  31. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +3 -0
  32. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.js +4 -1
  33. package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +3 -0
  34. package/dist/esm/models/GetQuizResultsQuestionsInner.js +4 -1
  35. package/dist/esm/models/Matching.d.ts +46 -0
  36. package/dist/esm/models/Matching.js +54 -0
  37. package/dist/esm/models/Matching1.d.ts +46 -0
  38. package/dist/esm/models/Matching1.js +54 -0
  39. package/dist/esm/models/Matching1PairsInner.d.ts +38 -0
  40. package/dist/esm/models/Matching1PairsInner.js +47 -0
  41. package/dist/esm/models/MatchingPairsInner.d.ts +38 -0
  42. package/dist/esm/models/MatchingPairsInner.js +47 -0
  43. package/dist/esm/models/PostQuestion.d.ts +4 -1
  44. package/dist/esm/models/PostQuestion.js +4 -1
  45. package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +3 -0
  46. package/dist/esm/models/PostQuizAttemptQuestionsInner.js +4 -1
  47. package/dist/esm/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.d.ts +4 -1
  48. package/dist/esm/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +21 -0
  49. package/dist/esm/models/PostQuizCriteriaCriteriaInner.d.ts +3 -0
  50. package/dist/esm/models/PostQuizCriteriaCriteriaInner.js +4 -1
  51. package/dist/esm/models/PutQuestion.d.ts +4 -1
  52. package/dist/esm/models/PutQuestion.js +4 -1
  53. package/dist/esm/models/PutQuizAnswerAnswer.d.ts +4 -1
  54. package/dist/esm/models/PutQuizAnswerAnswer.js +21 -0
  55. package/dist/esm/models/PutQuizAnswerGrade.d.ts +38 -0
  56. package/dist/esm/models/PutQuizAnswerGrade.js +45 -0
  57. package/dist/esm/models/ShortAnswer.d.ts +45 -0
  58. package/dist/esm/models/ShortAnswer.js +53 -0
  59. package/dist/esm/models/ShortAnswer1.d.ts +45 -0
  60. package/dist/esm/models/ShortAnswer1.js +53 -0
  61. package/dist/esm/models/index.d.ts +9 -0
  62. package/dist/esm/models/index.js +9 -0
  63. package/dist/models/CriteriaBasedSelectionCriteria.d.ts +3 -0
  64. package/dist/models/CriteriaBasedSelectionCriteria.js +4 -1
  65. package/dist/models/Essay.d.ts +45 -0
  66. package/dist/models/Essay.js +61 -0
  67. package/dist/models/Essay1.d.ts +45 -0
  68. package/dist/models/Essay1.js +61 -0
  69. package/dist/models/GetQuestion.d.ts +4 -1
  70. package/dist/models/GetQuestion.js +4 -1
  71. package/dist/models/GetQuestionListFilters.d.ts +3 -0
  72. package/dist/models/GetQuestionListFilters.js +4 -1
  73. package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +3 -0
  74. package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.js +4 -1
  75. package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +3 -0
  76. package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +4 -1
  77. package/dist/models/GetQuizAttemptQuestionsInner.d.ts +3 -0
  78. package/dist/models/GetQuizAttemptQuestionsInner.js +4 -1
  79. package/dist/models/GetQuizCriteriaItem.d.ts +3 -0
  80. package/dist/models/GetQuizCriteriaItem.js +4 -1
  81. package/dist/models/GetQuizCriteriaListItemsInner.d.ts +3 -0
  82. package/dist/models/GetQuizCriteriaListItemsInner.js +4 -1
  83. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +3 -0
  84. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.js +4 -1
  85. package/dist/models/GetQuizResultsQuestionsInner.d.ts +3 -0
  86. package/dist/models/GetQuizResultsQuestionsInner.js +4 -1
  87. package/dist/models/Matching.d.ts +46 -0
  88. package/dist/models/Matching.js +62 -0
  89. package/dist/models/Matching1.d.ts +46 -0
  90. package/dist/models/Matching1.js +62 -0
  91. package/dist/models/Matching1PairsInner.d.ts +38 -0
  92. package/dist/models/Matching1PairsInner.js +54 -0
  93. package/dist/models/MatchingPairsInner.d.ts +38 -0
  94. package/dist/models/MatchingPairsInner.js +54 -0
  95. package/dist/models/PostQuestion.d.ts +4 -1
  96. package/dist/models/PostQuestion.js +4 -1
  97. package/dist/models/PostQuizAttemptQuestionsInner.d.ts +3 -0
  98. package/dist/models/PostQuizAttemptQuestionsInner.js +4 -1
  99. package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.d.ts +4 -1
  100. package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +21 -0
  101. package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +3 -0
  102. package/dist/models/PostQuizCriteriaCriteriaInner.js +4 -1
  103. package/dist/models/PutQuestion.d.ts +4 -1
  104. package/dist/models/PutQuestion.js +4 -1
  105. package/dist/models/PutQuizAnswerAnswer.d.ts +4 -1
  106. package/dist/models/PutQuizAnswerAnswer.js +21 -0
  107. package/dist/models/PutQuizAnswerGrade.d.ts +38 -0
  108. package/dist/models/PutQuizAnswerGrade.js +52 -0
  109. package/dist/models/ShortAnswer.d.ts +45 -0
  110. package/dist/models/ShortAnswer.js +61 -0
  111. package/dist/models/ShortAnswer1.d.ts +45 -0
  112. package/dist/models/ShortAnswer1.js +61 -0
  113. package/dist/models/index.d.ts +9 -0
  114. package/dist/models/index.js +9 -0
  115. package/docs/Essay.md +36 -0
  116. package/docs/Essay1.md +36 -0
  117. package/docs/Matching.md +36 -0
  118. package/docs/Matching1.md +36 -0
  119. package/docs/Matching1PairsInner.md +36 -0
  120. package/docs/MatchingPairsInner.md +36 -0
  121. package/docs/PostQuizAttemptSubmitFinalAnswersInnerAnswer.md +2 -0
  122. package/docs/PutQuizAnswerAnswer.md +2 -0
  123. package/docs/PutQuizAnswerGrade.md +36 -0
  124. package/docs/QuizApi.md +77 -0
  125. package/docs/ShortAnswer.md +36 -0
  126. package/docs/ShortAnswer1.md +36 -0
  127. package/docs/UserApi.md +61 -0
  128. package/package.json +1 -1
  129. package/src/apis/QuizApi.ts +73 -0
  130. package/src/apis/UserApi.ts +39 -0
  131. package/src/models/CriteriaBasedSelectionCriteria.ts +4 -1
  132. package/src/models/Essay.ts +85 -0
  133. package/src/models/Essay1.ts +85 -0
  134. package/src/models/GetQuestion.ts +5 -2
  135. package/src/models/GetQuestionListFilters.ts +4 -1
  136. package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.ts +4 -1
  137. package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +4 -1
  138. package/src/models/GetQuizAttemptQuestionsInner.ts +4 -1
  139. package/src/models/GetQuizCriteriaItem.ts +4 -1
  140. package/src/models/GetQuizCriteriaListItemsInner.ts +4 -1
  141. package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +4 -1
  142. package/src/models/GetQuizResultsQuestionsInner.ts +4 -1
  143. package/src/models/Matching.ts +93 -0
  144. package/src/models/Matching1.ts +93 -0
  145. package/src/models/Matching1PairsInner.ts +75 -0
  146. package/src/models/MatchingPairsInner.ts +75 -0
  147. package/src/models/PostQuestion.ts +5 -2
  148. package/src/models/PostQuizAttemptQuestionsInner.ts +4 -1
  149. package/src/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.ts +40 -1
  150. package/src/models/PostQuizCriteriaCriteriaInner.ts +4 -1
  151. package/src/models/PutQuestion.ts +5 -2
  152. package/src/models/PutQuizAnswerAnswer.ts +40 -1
  153. package/src/models/PutQuizAnswerGrade.ts +74 -0
  154. package/src/models/ShortAnswer.ts +85 -0
  155. package/src/models/ShortAnswer1.ts +85 -0
  156. package/src/models/index.ts +9 -0
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const Essay1TypeEnum = {
18
+ Essay: 'essay'
19
+ };
20
+ /**
21
+ * Check if a given object implements the Essay1 interface.
22
+ */
23
+ export function instanceOfEssay1(value) {
24
+ if (!('type' in value) || value['type'] === undefined)
25
+ return false;
26
+ if (!('textAnswer' in value) || value['textAnswer'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function Essay1FromJSON(json) {
31
+ return Essay1FromJSONTyped(json, false);
32
+ }
33
+ export function Essay1FromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'type': json['type'],
39
+ 'textAnswer': json['text_answer'],
40
+ };
41
+ }
42
+ export function Essay1ToJSON(json) {
43
+ return Essay1ToJSONTyped(json, false);
44
+ }
45
+ export function Essay1ToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'type': value['type'],
51
+ 'text_answer': value['textAnswer'],
52
+ };
53
+ }
@@ -29,7 +29,7 @@ export interface GetQuestion {
29
29
  */
30
30
  questionText: string;
31
31
  /**
32
- * Type of question: single answer (True/False, multiple choice), multiple answer, or fill in the blank
32
+ * Type of question
33
33
  * @type {GetQuestionQuestionTypeEnum}
34
34
  * @memberof GetQuestion
35
35
  */
@@ -114,6 +114,9 @@ export declare const GetQuestionQuestionTypeEnum: {
114
114
  readonly SingleAnswer: "single_answer";
115
115
  readonly MultipleAnswer: "multiple_answer";
116
116
  readonly FillInBlank: "fill_in_blank";
117
+ readonly ShortAnswer: "short_answer";
118
+ readonly Matching: "matching";
119
+ readonly Essay: "essay";
117
120
  };
118
121
  export type GetQuestionQuestionTypeEnum = typeof GetQuestionQuestionTypeEnum[keyof typeof GetQuestionQuestionTypeEnum];
119
122
  /**
@@ -18,7 +18,10 @@ import { GetQuestionAnswerChoicesInnerFromJSON, GetQuestionAnswerChoicesInnerToJ
18
18
  export const GetQuestionQuestionTypeEnum = {
19
19
  SingleAnswer: 'single_answer',
20
20
  MultipleAnswer: 'multiple_answer',
21
- FillInBlank: 'fill_in_blank'
21
+ FillInBlank: 'fill_in_blank',
22
+ ShortAnswer: 'short_answer',
23
+ Matching: 'matching',
24
+ Essay: 'essay'
22
25
  };
23
26
  /**
24
27
  * @export
@@ -71,6 +71,9 @@ export declare const GetQuestionListFiltersQuestionTypeEnum: {
71
71
  readonly SingleAnswer: "single_answer";
72
72
  readonly MultipleAnswer: "multiple_answer";
73
73
  readonly FillInBlank: "fill_in_blank";
74
+ readonly ShortAnswer: "short_answer";
75
+ readonly Matching: "matching";
76
+ readonly Essay: "essay";
74
77
  };
75
78
  export type GetQuestionListFiltersQuestionTypeEnum = typeof GetQuestionListFiltersQuestionTypeEnum[keyof typeof GetQuestionListFiltersQuestionTypeEnum];
76
79
  /**
@@ -17,7 +17,10 @@
17
17
  export const GetQuestionListFiltersQuestionTypeEnum = {
18
18
  SingleAnswer: 'single_answer',
19
19
  MultipleAnswer: 'multiple_answer',
20
- FillInBlank: 'fill_in_blank'
20
+ FillInBlank: 'fill_in_blank',
21
+ ShortAnswer: 'short_answer',
22
+ Matching: 'matching',
23
+ Essay: 'essay'
21
24
  };
22
25
  /**
23
26
  * @export
@@ -59,6 +59,9 @@ export declare const GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeIn
59
59
  readonly SingleAnswer: "single_answer";
60
60
  readonly MultipleAnswer: "multiple_answer";
61
61
  readonly FillInBlank: "fill_in_blank";
62
+ readonly ShortAnswer: "short_answer";
63
+ readonly Matching: "matching";
64
+ readonly Essay: "essay";
62
65
  };
63
66
  export type GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInnerQuestionTypeEnum = typeof GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInnerQuestionTypeEnum[keyof typeof GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInnerQuestionTypeEnum];
64
67
  /**
@@ -17,7 +17,10 @@
17
17
  export const GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInnerQuestionTypeEnum = {
18
18
  SingleAnswer: 'single_answer',
19
19
  MultipleAnswer: 'multiple_answer',
20
- FillInBlank: 'fill_in_blank'
20
+ FillInBlank: 'fill_in_blank',
21
+ ShortAnswer: 'short_answer',
22
+ Matching: 'matching',
23
+ Essay: 'essay'
21
24
  };
22
25
  /**
23
26
  * Check if a given object implements the GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner interface.
@@ -103,6 +103,9 @@ export declare const GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnu
103
103
  readonly SingleAnswer: "single_answer";
104
104
  readonly MultipleAnswer: "multiple_answer";
105
105
  readonly FillInBlank: "fill_in_blank";
106
+ readonly ShortAnswer: "short_answer";
107
+ readonly Matching: "matching";
108
+ readonly Essay: "essay";
106
109
  };
107
110
  export type GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnum = typeof GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnum[keyof typeof GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnum];
108
111
  /**
@@ -19,7 +19,10 @@ import { GetQuizAttemptAnalyticsQuestionAnalysisInnerUserAnswerFromJSON, GetQuiz
19
19
  export const GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnum = {
20
20
  SingleAnswer: 'single_answer',
21
21
  MultipleAnswer: 'multiple_answer',
22
- FillInBlank: 'fill_in_blank'
22
+ FillInBlank: 'fill_in_blank',
23
+ ShortAnswer: 'short_answer',
24
+ Matching: 'matching',
25
+ Essay: 'essay'
23
26
  };
24
27
  /**
25
28
  * @export
@@ -85,6 +85,9 @@ export declare const GetQuizAttemptQuestionsInnerQuestionTypeEnum: {
85
85
  readonly SingleAnswer: "single_answer";
86
86
  readonly MultipleAnswer: "multiple_answer";
87
87
  readonly FillInBlank: "fill_in_blank";
88
+ readonly ShortAnswer: "short_answer";
89
+ readonly Matching: "matching";
90
+ readonly Essay: "essay";
88
91
  };
89
92
  export type GetQuizAttemptQuestionsInnerQuestionTypeEnum = typeof GetQuizAttemptQuestionsInnerQuestionTypeEnum[keyof typeof GetQuizAttemptQuestionsInnerQuestionTypeEnum];
90
93
  /**
@@ -19,7 +19,10 @@ import { GetQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON, GetQuizAttemptQ
19
19
  export const GetQuizAttemptQuestionsInnerQuestionTypeEnum = {
20
20
  SingleAnswer: 'single_answer',
21
21
  MultipleAnswer: 'multiple_answer',
22
- FillInBlank: 'fill_in_blank'
22
+ FillInBlank: 'fill_in_blank',
23
+ ShortAnswer: 'short_answer',
24
+ Matching: 'matching',
25
+ Essay: 'essay'
23
26
  };
24
27
  /**
25
28
  * Check if a given object implements the GetQuizAttemptQuestionsInner interface.
@@ -110,6 +110,9 @@ export declare const GetQuizCriteriaItemQuestionTypeEnum: {
110
110
  readonly SingleAnswer: "single_answer";
111
111
  readonly MultipleAnswer: "multiple_answer";
112
112
  readonly FillInBlank: "fill_in_blank";
113
+ readonly ShortAnswer: "short_answer";
114
+ readonly Matching: "matching";
115
+ readonly Essay: "essay";
113
116
  };
114
117
  export type GetQuizCriteriaItemQuestionTypeEnum = typeof GetQuizCriteriaItemQuestionTypeEnum[keyof typeof GetQuizCriteriaItemQuestionTypeEnum];
115
118
  /**
@@ -25,7 +25,10 @@ export const GetQuizCriteriaItemDifficultyLevelEnum = {
25
25
  export const GetQuizCriteriaItemQuestionTypeEnum = {
26
26
  SingleAnswer: 'single_answer',
27
27
  MultipleAnswer: 'multiple_answer',
28
- FillInBlank: 'fill_in_blank'
28
+ FillInBlank: 'fill_in_blank',
29
+ ShortAnswer: 'short_answer',
30
+ Matching: 'matching',
31
+ Essay: 'essay'
29
32
  };
30
33
  /**
31
34
  * Check if a given object implements the GetQuizCriteriaItem interface.
@@ -110,6 +110,9 @@ export declare const GetQuizCriteriaListItemsInnerQuestionTypeEnum: {
110
110
  readonly SingleAnswer: "single_answer";
111
111
  readonly MultipleAnswer: "multiple_answer";
112
112
  readonly FillInBlank: "fill_in_blank";
113
+ readonly ShortAnswer: "short_answer";
114
+ readonly Matching: "matching";
115
+ readonly Essay: "essay";
113
116
  };
114
117
  export type GetQuizCriteriaListItemsInnerQuestionTypeEnum = typeof GetQuizCriteriaListItemsInnerQuestionTypeEnum[keyof typeof GetQuizCriteriaListItemsInnerQuestionTypeEnum];
115
118
  /**
@@ -25,7 +25,10 @@ export const GetQuizCriteriaListItemsInnerDifficultyLevelEnum = {
25
25
  export const GetQuizCriteriaListItemsInnerQuestionTypeEnum = {
26
26
  SingleAnswer: 'single_answer',
27
27
  MultipleAnswer: 'multiple_answer',
28
- FillInBlank: 'fill_in_blank'
28
+ FillInBlank: 'fill_in_blank',
29
+ ShortAnswer: 'short_answer',
30
+ Matching: 'matching',
31
+ Essay: 'essay'
29
32
  };
30
33
  /**
31
34
  * Check if a given object implements the GetQuizCriteriaListItemsInner interface.
@@ -84,6 +84,9 @@ export declare const GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum:
84
84
  readonly SingleAnswer: "single_answer";
85
85
  readonly MultipleAnswer: "multiple_answer";
86
86
  readonly FillInBlank: "fill_in_blank";
87
+ readonly ShortAnswer: "short_answer";
88
+ readonly Matching: "matching";
89
+ readonly Essay: "essay";
87
90
  };
88
91
  export type GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum];
89
92
  /**
@@ -18,7 +18,10 @@ import { GetQuizQuestionsItemsInnerQuestionDetailsAnswerChoicesInnerFromJSON, Ge
18
18
  export const GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = {
19
19
  SingleAnswer: 'single_answer',
20
20
  MultipleAnswer: 'multiple_answer',
21
- FillInBlank: 'fill_in_blank'
21
+ FillInBlank: 'fill_in_blank',
22
+ ShortAnswer: 'short_answer',
23
+ Matching: 'matching',
24
+ Essay: 'essay'
22
25
  };
23
26
  /**
24
27
  * @export
@@ -79,6 +79,9 @@ export declare const GetQuizResultsQuestionsInnerQuestionTypeEnum: {
79
79
  readonly SingleAnswer: "single_answer";
80
80
  readonly MultipleAnswer: "multiple_answer";
81
81
  readonly FillInBlank: "fill_in_blank";
82
+ readonly ShortAnswer: "short_answer";
83
+ readonly Matching: "matching";
84
+ readonly Essay: "essay";
82
85
  };
83
86
  export type GetQuizResultsQuestionsInnerQuestionTypeEnum = typeof GetQuizResultsQuestionsInnerQuestionTypeEnum[keyof typeof GetQuizResultsQuestionsInnerQuestionTypeEnum];
84
87
  /**
@@ -19,7 +19,10 @@ import { GetQuizResultsQuestionsInnerStudentAnswerFromJSON, GetQuizResultsQuesti
19
19
  export const GetQuizResultsQuestionsInnerQuestionTypeEnum = {
20
20
  SingleAnswer: 'single_answer',
21
21
  MultipleAnswer: 'multiple_answer',
22
- FillInBlank: 'fill_in_blank'
22
+ FillInBlank: 'fill_in_blank',
23
+ ShortAnswer: 'short_answer',
24
+ Matching: 'matching',
25
+ Essay: 'essay'
23
26
  };
24
27
  /**
25
28
  * Check if a given object implements the GetQuizResultsQuestionsInner interface.
@@ -0,0 +1,46 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { MatchingPairsInner } from './MatchingPairsInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Matching
17
+ */
18
+ export interface Matching {
19
+ /**
20
+ *
21
+ * @type {MatchingTypeEnum}
22
+ * @memberof Matching
23
+ */
24
+ type: MatchingTypeEnum;
25
+ /**
26
+ * User's matching pair selections
27
+ * @type {Array<MatchingPairsInner>}
28
+ * @memberof Matching
29
+ */
30
+ pairs: Array<MatchingPairsInner>;
31
+ }
32
+ /**
33
+ * @export
34
+ */
35
+ export declare const MatchingTypeEnum: {
36
+ readonly Matching: "matching";
37
+ };
38
+ export type MatchingTypeEnum = typeof MatchingTypeEnum[keyof typeof MatchingTypeEnum];
39
+ /**
40
+ * Check if a given object implements the Matching interface.
41
+ */
42
+ export declare function instanceOfMatching(value: object): value is Matching;
43
+ export declare function MatchingFromJSON(json: any): Matching;
44
+ export declare function MatchingFromJSONTyped(json: any, ignoreDiscriminator: boolean): Matching;
45
+ export declare function MatchingToJSON(json: any): Matching;
46
+ export declare function MatchingToJSONTyped(value?: Matching | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { MatchingPairsInnerFromJSON, MatchingPairsInnerToJSON, } from './MatchingPairsInner';
15
+ /**
16
+ * @export
17
+ */
18
+ export const MatchingTypeEnum = {
19
+ Matching: 'matching'
20
+ };
21
+ /**
22
+ * Check if a given object implements the Matching interface.
23
+ */
24
+ export function instanceOfMatching(value) {
25
+ if (!('type' in value) || value['type'] === undefined)
26
+ return false;
27
+ if (!('pairs' in value) || value['pairs'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function MatchingFromJSON(json) {
32
+ return MatchingFromJSONTyped(json, false);
33
+ }
34
+ export function MatchingFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'type': json['type'],
40
+ 'pairs': (json['pairs'].map(MatchingPairsInnerFromJSON)),
41
+ };
42
+ }
43
+ export function MatchingToJSON(json) {
44
+ return MatchingToJSONTyped(json, false);
45
+ }
46
+ export function MatchingToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'type': value['type'],
52
+ 'pairs': (value['pairs'].map(MatchingPairsInnerToJSON)),
53
+ };
54
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Matching1PairsInner } from './Matching1PairsInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Matching1
17
+ */
18
+ export interface Matching1 {
19
+ /**
20
+ *
21
+ * @type {Matching1TypeEnum}
22
+ * @memberof Matching1
23
+ */
24
+ type: Matching1TypeEnum;
25
+ /**
26
+ * Matching pair selections
27
+ * @type {Array<Matching1PairsInner>}
28
+ * @memberof Matching1
29
+ */
30
+ pairs: Array<Matching1PairsInner>;
31
+ }
32
+ /**
33
+ * @export
34
+ */
35
+ export declare const Matching1TypeEnum: {
36
+ readonly Matching: "matching";
37
+ };
38
+ export type Matching1TypeEnum = typeof Matching1TypeEnum[keyof typeof Matching1TypeEnum];
39
+ /**
40
+ * Check if a given object implements the Matching1 interface.
41
+ */
42
+ export declare function instanceOfMatching1(value: object): value is Matching1;
43
+ export declare function Matching1FromJSON(json: any): Matching1;
44
+ export declare function Matching1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Matching1;
45
+ export declare function Matching1ToJSON(json: any): Matching1;
46
+ export declare function Matching1ToJSONTyped(value?: Matching1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { Matching1PairsInnerFromJSON, Matching1PairsInnerToJSON, } from './Matching1PairsInner';
15
+ /**
16
+ * @export
17
+ */
18
+ export const Matching1TypeEnum = {
19
+ Matching: 'matching'
20
+ };
21
+ /**
22
+ * Check if a given object implements the Matching1 interface.
23
+ */
24
+ export function instanceOfMatching1(value) {
25
+ if (!('type' in value) || value['type'] === undefined)
26
+ return false;
27
+ if (!('pairs' in value) || value['pairs'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function Matching1FromJSON(json) {
32
+ return Matching1FromJSONTyped(json, false);
33
+ }
34
+ export function Matching1FromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'type': json['type'],
40
+ 'pairs': (json['pairs'].map(Matching1PairsInnerFromJSON)),
41
+ };
42
+ }
43
+ export function Matching1ToJSON(json) {
44
+ return Matching1ToJSONTyped(json, false);
45
+ }
46
+ export function Matching1ToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'type': value['type'],
52
+ 'pairs': (value['pairs'].map(Matching1PairsInnerToJSON)),
53
+ };
54
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface Matching1PairsInner
16
+ */
17
+ export interface Matching1PairsInner {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof Matching1PairsInner
22
+ */
23
+ premiseId: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof Matching1PairsInner
28
+ */
29
+ responseId: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the Matching1PairsInner interface.
33
+ */
34
+ export declare function instanceOfMatching1PairsInner(value: object): value is Matching1PairsInner;
35
+ export declare function Matching1PairsInnerFromJSON(json: any): Matching1PairsInner;
36
+ export declare function Matching1PairsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Matching1PairsInner;
37
+ export declare function Matching1PairsInnerToJSON(json: any): Matching1PairsInner;
38
+ export declare function Matching1PairsInnerToJSONTyped(value?: Matching1PairsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the Matching1PairsInner interface.
16
+ */
17
+ export function instanceOfMatching1PairsInner(value) {
18
+ if (!('premiseId' in value) || value['premiseId'] === undefined)
19
+ return false;
20
+ if (!('responseId' in value) || value['responseId'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function Matching1PairsInnerFromJSON(json) {
25
+ return Matching1PairsInnerFromJSONTyped(json, false);
26
+ }
27
+ export function Matching1PairsInnerFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'premiseId': json['premise_id'],
33
+ 'responseId': json['response_id'],
34
+ };
35
+ }
36
+ export function Matching1PairsInnerToJSON(json) {
37
+ return Matching1PairsInnerToJSONTyped(json, false);
38
+ }
39
+ export function Matching1PairsInnerToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'premise_id': value['premiseId'],
45
+ 'response_id': value['responseId'],
46
+ };
47
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface MatchingPairsInner
16
+ */
17
+ export interface MatchingPairsInner {
18
+ /**
19
+ * ID of the premise (left side)
20
+ * @type {number}
21
+ * @memberof MatchingPairsInner
22
+ */
23
+ premiseId: number;
24
+ /**
25
+ * ID of the response (right side)
26
+ * @type {number}
27
+ * @memberof MatchingPairsInner
28
+ */
29
+ responseId: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MatchingPairsInner interface.
33
+ */
34
+ export declare function instanceOfMatchingPairsInner(value: object): value is MatchingPairsInner;
35
+ export declare function MatchingPairsInnerFromJSON(json: any): MatchingPairsInner;
36
+ export declare function MatchingPairsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchingPairsInner;
37
+ export declare function MatchingPairsInnerToJSON(json: any): MatchingPairsInner;
38
+ export declare function MatchingPairsInnerToJSONTyped(value?: MatchingPairsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the MatchingPairsInner interface.
16
+ */
17
+ export function instanceOfMatchingPairsInner(value) {
18
+ if (!('premiseId' in value) || value['premiseId'] === undefined)
19
+ return false;
20
+ if (!('responseId' in value) || value['responseId'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function MatchingPairsInnerFromJSON(json) {
25
+ return MatchingPairsInnerFromJSONTyped(json, false);
26
+ }
27
+ export function MatchingPairsInnerFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'premiseId': json['premise_id'],
33
+ 'responseId': json['response_id'],
34
+ };
35
+ }
36
+ export function MatchingPairsInnerToJSON(json) {
37
+ return MatchingPairsInnerToJSONTyped(json, false);
38
+ }
39
+ export function MatchingPairsInnerToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'premise_id': value['premiseId'],
45
+ 'response_id': value['responseId'],
46
+ };
47
+ }