@easyedu/js-lsm-api 1.35.0 → 1.37.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 (162) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/README.md +12 -2
  3. package/dist/apis/QuizApi.d.ts +20 -1
  4. package/dist/apis/QuizApi.js +49 -0
  5. package/dist/esm/apis/QuizApi.d.ts +20 -1
  6. package/dist/esm/apis/QuizApi.js +50 -1
  7. package/dist/esm/models/CriteriaBasedSelectionCriteria.d.ts +3 -0
  8. package/dist/esm/models/CriteriaBasedSelectionCriteria.js +4 -1
  9. package/dist/esm/models/Essay.d.ts +45 -0
  10. package/dist/esm/models/Essay.js +53 -0
  11. package/dist/esm/models/Essay1.d.ts +45 -0
  12. package/dist/esm/models/Essay1.js +53 -0
  13. package/dist/esm/models/GetCourseExport.d.ts +19 -7
  14. package/dist/esm/models/GetCourseExport.js +12 -4
  15. package/dist/esm/models/GetQuestion.d.ts +4 -1
  16. package/dist/esm/models/GetQuestion.js +4 -1
  17. package/dist/esm/models/GetQuestionListFilters.d.ts +3 -0
  18. package/dist/esm/models/GetQuestionListFilters.js +4 -1
  19. package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +3 -0
  20. package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.js +4 -1
  21. package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +3 -0
  22. package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +4 -1
  23. package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +3 -0
  24. package/dist/esm/models/GetQuizAttemptQuestionsInner.js +4 -1
  25. package/dist/esm/models/GetQuizCriteriaItem.d.ts +3 -0
  26. package/dist/esm/models/GetQuizCriteriaItem.js +4 -1
  27. package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +3 -0
  28. package/dist/esm/models/GetQuizCriteriaListItemsInner.js +4 -1
  29. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +3 -0
  30. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.js +4 -1
  31. package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +3 -0
  32. package/dist/esm/models/GetQuizResultsQuestionsInner.js +4 -1
  33. package/dist/esm/models/Matching.d.ts +46 -0
  34. package/dist/esm/models/Matching.js +54 -0
  35. package/dist/esm/models/Matching1.d.ts +46 -0
  36. package/dist/esm/models/Matching1.js +54 -0
  37. package/dist/esm/models/Matching1PairsInner.d.ts +38 -0
  38. package/dist/esm/models/Matching1PairsInner.js +47 -0
  39. package/dist/esm/models/MatchingPairsInner.d.ts +38 -0
  40. package/dist/esm/models/MatchingPairsInner.js +47 -0
  41. package/dist/esm/models/PostCourseExport.d.ts +12 -6
  42. package/dist/esm/models/PostCourseExport.js +8 -4
  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/GetCourseExport.d.ts +19 -7
  70. package/dist/models/GetCourseExport.js +13 -5
  71. package/dist/models/GetQuestion.d.ts +4 -1
  72. package/dist/models/GetQuestion.js +4 -1
  73. package/dist/models/GetQuestionListFilters.d.ts +3 -0
  74. package/dist/models/GetQuestionListFilters.js +4 -1
  75. package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +3 -0
  76. package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.js +4 -1
  77. package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +3 -0
  78. package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +4 -1
  79. package/dist/models/GetQuizAttemptQuestionsInner.d.ts +3 -0
  80. package/dist/models/GetQuizAttemptQuestionsInner.js +4 -1
  81. package/dist/models/GetQuizCriteriaItem.d.ts +3 -0
  82. package/dist/models/GetQuizCriteriaItem.js +4 -1
  83. package/dist/models/GetQuizCriteriaListItemsInner.d.ts +3 -0
  84. package/dist/models/GetQuizCriteriaListItemsInner.js +4 -1
  85. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +3 -0
  86. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.js +4 -1
  87. package/dist/models/GetQuizResultsQuestionsInner.d.ts +3 -0
  88. package/dist/models/GetQuizResultsQuestionsInner.js +4 -1
  89. package/dist/models/Matching.d.ts +46 -0
  90. package/dist/models/Matching.js +62 -0
  91. package/dist/models/Matching1.d.ts +46 -0
  92. package/dist/models/Matching1.js +62 -0
  93. package/dist/models/Matching1PairsInner.d.ts +38 -0
  94. package/dist/models/Matching1PairsInner.js +54 -0
  95. package/dist/models/MatchingPairsInner.d.ts +38 -0
  96. package/dist/models/MatchingPairsInner.js +54 -0
  97. package/dist/models/PostCourseExport.d.ts +12 -6
  98. package/dist/models/PostCourseExport.js +9 -5
  99. package/dist/models/PostQuestion.d.ts +4 -1
  100. package/dist/models/PostQuestion.js +4 -1
  101. package/dist/models/PostQuizAttemptQuestionsInner.d.ts +3 -0
  102. package/dist/models/PostQuizAttemptQuestionsInner.js +4 -1
  103. package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.d.ts +4 -1
  104. package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +21 -0
  105. package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +3 -0
  106. package/dist/models/PostQuizCriteriaCriteriaInner.js +4 -1
  107. package/dist/models/PutQuestion.d.ts +4 -1
  108. package/dist/models/PutQuestion.js +4 -1
  109. package/dist/models/PutQuizAnswerAnswer.d.ts +4 -1
  110. package/dist/models/PutQuizAnswerAnswer.js +21 -0
  111. package/dist/models/PutQuizAnswerGrade.d.ts +38 -0
  112. package/dist/models/PutQuizAnswerGrade.js +52 -0
  113. package/dist/models/ShortAnswer.d.ts +45 -0
  114. package/dist/models/ShortAnswer.js +61 -0
  115. package/dist/models/ShortAnswer1.d.ts +45 -0
  116. package/dist/models/ShortAnswer1.js +61 -0
  117. package/dist/models/index.d.ts +9 -0
  118. package/dist/models/index.js +9 -0
  119. package/docs/Essay.md +36 -0
  120. package/docs/Essay1.md +36 -0
  121. package/docs/GetCourseExport.md +7 -3
  122. package/docs/Matching.md +36 -0
  123. package/docs/Matching1.md +36 -0
  124. package/docs/Matching1PairsInner.md +36 -0
  125. package/docs/MatchingPairsInner.md +36 -0
  126. package/docs/PostCourseExport.md +5 -3
  127. package/docs/PostQuizAttemptSubmitFinalAnswersInnerAnswer.md +2 -0
  128. package/docs/PutQuizAnswerAnswer.md +2 -0
  129. package/docs/PutQuizAnswerGrade.md +36 -0
  130. package/docs/QuizApi.md +77 -0
  131. package/docs/ShortAnswer.md +36 -0
  132. package/docs/ShortAnswer1.md +36 -0
  133. package/package.json +1 -1
  134. package/src/apis/QuizApi.ts +73 -0
  135. package/src/models/CriteriaBasedSelectionCriteria.ts +4 -1
  136. package/src/models/Essay.ts +85 -0
  137. package/src/models/Essay1.ts +85 -0
  138. package/src/models/GetCourseExport.ts +28 -10
  139. package/src/models/GetQuestion.ts +5 -2
  140. package/src/models/GetQuestionListFilters.ts +4 -1
  141. package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.ts +4 -1
  142. package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +4 -1
  143. package/src/models/GetQuizAttemptQuestionsInner.ts +4 -1
  144. package/src/models/GetQuizCriteriaItem.ts +4 -1
  145. package/src/models/GetQuizCriteriaListItemsInner.ts +4 -1
  146. package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +4 -1
  147. package/src/models/GetQuizResultsQuestionsInner.ts +4 -1
  148. package/src/models/Matching.ts +93 -0
  149. package/src/models/Matching1.ts +93 -0
  150. package/src/models/Matching1PairsInner.ts +75 -0
  151. package/src/models/MatchingPairsInner.ts +75 -0
  152. package/src/models/PostCourseExport.ts +18 -9
  153. package/src/models/PostQuestion.ts +5 -2
  154. package/src/models/PostQuizAttemptQuestionsInner.ts +4 -1
  155. package/src/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.ts +40 -1
  156. package/src/models/PostQuizCriteriaCriteriaInner.ts +4 -1
  157. package/src/models/PutQuestion.ts +5 -2
  158. package/src/models/PutQuizAnswerAnswer.ts +40 -1
  159. package/src/models/PutQuizAnswerGrade.ts +74 -0
  160. package/src/models/ShortAnswer.ts +85 -0
  161. package/src/models/ShortAnswer1.ts +85 -0
  162. package/src/models/index.ts +9 -0
@@ -14,7 +14,7 @@
14
14
  /**
15
15
  * @export
16
16
  */
17
- export const PostCourseExportScormVersionEnum = {
17
+ export const PostCourseExportExportTypeEnum = {
18
18
  Scorm12: 'SCORM_1_2',
19
19
  Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
20
20
  Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
@@ -23,7 +23,9 @@ export const PostCourseExportScormVersionEnum = {
23
23
  * Check if a given object implements the PostCourseExport interface.
24
24
  */
25
25
  export function instanceOfPostCourseExport(value) {
26
- if (!('scormVersion' in value) || value['scormVersion'] === undefined)
26
+ if (!('exportType' in value) || value['exportType'] === undefined)
27
+ return false;
28
+ if (!('moduleIds' in value) || value['moduleIds'] === undefined)
27
29
  return false;
28
30
  return true;
29
31
  }
@@ -35,7 +37,8 @@ export function PostCourseExportFromJSONTyped(json, ignoreDiscriminator) {
35
37
  return json;
36
38
  }
37
39
  return {
38
- 'scormVersion': json['scorm_version'],
40
+ 'exportType': json['export_type'],
41
+ 'moduleIds': json['module_ids'],
39
42
  };
40
43
  }
41
44
  export function PostCourseExportToJSON(json) {
@@ -46,6 +49,7 @@ export function PostCourseExportToJSONTyped(value, ignoreDiscriminator = false)
46
49
  return value;
47
50
  }
48
51
  return {
49
- 'scorm_version': value['scormVersion'],
52
+ 'export_type': value['exportType'],
53
+ 'module_ids': value['moduleIds'],
50
54
  };
51
55
  }
@@ -23,7 +23,7 @@ export interface PostQuestion {
23
23
  */
24
24
  questionText: string;
25
25
  /**
26
- * Type of question: single answer (True/False, multiple choice), multiple answer, or fill in the blank
26
+ * Type of question
27
27
  * @type {PostQuestionQuestionTypeEnum}
28
28
  * @memberof PostQuestion
29
29
  */
@@ -84,6 +84,9 @@ export declare const PostQuestionQuestionTypeEnum: {
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 PostQuestionQuestionTypeEnum = typeof PostQuestionQuestionTypeEnum[keyof typeof PostQuestionQuestionTypeEnum];
89
92
  /**
@@ -18,7 +18,10 @@ import { PostQuestionAnswerChoicesInnerFromJSON, PostQuestionAnswerChoicesInnerT
18
18
  export const PostQuestionQuestionTypeEnum = {
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
@@ -72,6 +72,9 @@ export declare const PostQuizAttemptQuestionsInnerQuestionTypeEnum: {
72
72
  readonly SingleAnswer: "single_answer";
73
73
  readonly MultipleAnswer: "multiple_answer";
74
74
  readonly FillInBlank: "fill_in_blank";
75
+ readonly ShortAnswer: "short_answer";
76
+ readonly Matching: "matching";
77
+ readonly Essay: "essay";
75
78
  };
76
79
  export type PostQuizAttemptQuestionsInnerQuestionTypeEnum = typeof PostQuizAttemptQuestionsInnerQuestionTypeEnum[keyof typeof PostQuizAttemptQuestionsInnerQuestionTypeEnum];
77
80
  /**
@@ -18,7 +18,10 @@ import { PostQuizAttemptQuestionsInnerAnswerChoicesInnerFromJSON, PostQuizAttemp
18
18
  export const PostQuizAttemptQuestionsInnerQuestionTypeEnum = {
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
  * Check if a given object implements the PostQuizAttemptQuestionsInner interface.
@@ -9,16 +9,19 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { Essay1 } from './Essay1';
12
13
  import type { FillInBlank1 } from './FillInBlank1';
14
+ import type { Matching1 } from './Matching1';
13
15
  import type { MultipleAnswer1 } from './MultipleAnswer1';
14
16
  import type { NoAnswer } from './NoAnswer';
17
+ import type { ShortAnswer1 } from './ShortAnswer1';
15
18
  import type { SingleAnswer } from './SingleAnswer';
16
19
  /**
17
20
  * @type PostQuizAttemptSubmitFinalAnswersInnerAnswer
18
21
  * Final answer for this question
19
22
  * @export
20
23
  */
21
- export type PostQuizAttemptSubmitFinalAnswersInnerAnswer = FillInBlank1 | MultipleAnswer1 | NoAnswer | SingleAnswer;
24
+ export type PostQuizAttemptSubmitFinalAnswersInnerAnswer = Essay1 | FillInBlank1 | Matching1 | MultipleAnswer1 | NoAnswer | ShortAnswer1 | SingleAnswer;
22
25
  export declare function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSON(json: any): PostQuizAttemptSubmitFinalAnswersInnerAnswer;
23
26
  export declare function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostQuizAttemptSubmitFinalAnswersInnerAnswer;
24
27
  export declare function PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSON(json: any): any;
@@ -11,9 +11,12 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { instanceOfEssay1, Essay1FromJSONTyped, Essay1ToJSON, } from './Essay1';
14
15
  import { instanceOfFillInBlank1, FillInBlank1FromJSONTyped, FillInBlank1ToJSON, } from './FillInBlank1';
16
+ import { instanceOfMatching1, Matching1FromJSONTyped, Matching1ToJSON, } from './Matching1';
15
17
  import { instanceOfMultipleAnswer1, MultipleAnswer1FromJSONTyped, MultipleAnswer1ToJSON, } from './MultipleAnswer1';
16
18
  import { instanceOfNoAnswer, NoAnswerFromJSONTyped, NoAnswerToJSON, } from './NoAnswer';
19
+ import { instanceOfShortAnswer1, ShortAnswer1FromJSONTyped, ShortAnswer1ToJSON, } from './ShortAnswer1';
17
20
  import { instanceOfSingleAnswer, SingleAnswerFromJSONTyped, SingleAnswerToJSON, } from './SingleAnswer';
18
21
  export function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSON(json) {
19
22
  return PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json, false);
@@ -25,15 +28,24 @@ export function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json,
25
28
  if (typeof json !== 'object') {
26
29
  return json;
27
30
  }
31
+ if (instanceOfEssay1(json)) {
32
+ return Essay1FromJSONTyped(json, true);
33
+ }
28
34
  if (instanceOfFillInBlank1(json)) {
29
35
  return FillInBlank1FromJSONTyped(json, true);
30
36
  }
37
+ if (instanceOfMatching1(json)) {
38
+ return Matching1FromJSONTyped(json, true);
39
+ }
31
40
  if (instanceOfMultipleAnswer1(json)) {
32
41
  return MultipleAnswer1FromJSONTyped(json, true);
33
42
  }
34
43
  if (instanceOfNoAnswer(json)) {
35
44
  return NoAnswerFromJSONTyped(json, true);
36
45
  }
46
+ if (instanceOfShortAnswer1(json)) {
47
+ return ShortAnswer1FromJSONTyped(json, true);
48
+ }
37
49
  if (instanceOfSingleAnswer(json)) {
38
50
  return SingleAnswerFromJSONTyped(json, true);
39
51
  }
@@ -49,15 +61,24 @@ export function PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSONTyped(value, i
49
61
  if (typeof value !== 'object') {
50
62
  return value;
51
63
  }
64
+ if (instanceOfEssay1(value)) {
65
+ return Essay1ToJSON(value);
66
+ }
52
67
  if (instanceOfFillInBlank1(value)) {
53
68
  return FillInBlank1ToJSON(value);
54
69
  }
70
+ if (instanceOfMatching1(value)) {
71
+ return Matching1ToJSON(value);
72
+ }
55
73
  if (instanceOfMultipleAnswer1(value)) {
56
74
  return MultipleAnswer1ToJSON(value);
57
75
  }
58
76
  if (instanceOfNoAnswer(value)) {
59
77
  return NoAnswerToJSON(value);
60
78
  }
79
+ if (instanceOfShortAnswer1(value)) {
80
+ return ShortAnswer1ToJSON(value);
81
+ }
61
82
  if (instanceOfSingleAnswer(value)) {
62
83
  return SingleAnswerToJSON(value);
63
84
  }
@@ -80,6 +80,9 @@ export declare const PostQuizCriteriaCriteriaInnerQuestionTypeEnum: {
80
80
  readonly SingleAnswer: "single_answer";
81
81
  readonly MultipleAnswer: "multiple_answer";
82
82
  readonly FillInBlank: "fill_in_blank";
83
+ readonly ShortAnswer: "short_answer";
84
+ readonly Matching: "matching";
85
+ readonly Essay: "essay";
83
86
  };
84
87
  export type PostQuizCriteriaCriteriaInnerQuestionTypeEnum = typeof PostQuizCriteriaCriteriaInnerQuestionTypeEnum[keyof typeof PostQuizCriteriaCriteriaInnerQuestionTypeEnum];
85
88
  /**
@@ -25,7 +25,10 @@ export const PostQuizCriteriaCriteriaInnerDifficultyLevelEnum = {
25
25
  export const PostQuizCriteriaCriteriaInnerQuestionTypeEnum = {
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 PostQuizCriteriaCriteriaInner interface.
@@ -23,7 +23,7 @@ export interface PutQuestion {
23
23
  */
24
24
  questionText?: string;
25
25
  /**
26
- * Type of question: single answer (True/False, multiple choice), multiple answer, or fill in the blank
26
+ * Type of question
27
27
  * @type {PutQuestionQuestionTypeEnum}
28
28
  * @memberof PutQuestion
29
29
  */
@@ -84,6 +84,9 @@ export declare const PutQuestionQuestionTypeEnum: {
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 PutQuestionQuestionTypeEnum = typeof PutQuestionQuestionTypeEnum[keyof typeof PutQuestionQuestionTypeEnum];
89
92
  /**
@@ -18,7 +18,10 @@ import { PutQuestionAnswerChoicesInnerFromJSON, PutQuestionAnswerChoicesInnerToJ
18
18
  export const PutQuestionQuestionTypeEnum = {
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
@@ -9,15 +9,18 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { Essay } from './Essay';
12
13
  import type { FillInBlank } from './FillInBlank';
14
+ import type { Matching } from './Matching';
13
15
  import type { MultipleAnswer } from './MultipleAnswer';
16
+ import type { ShortAnswer } from './ShortAnswer';
14
17
  import type { SingleAnswer } from './SingleAnswer';
15
18
  /**
16
19
  * @type PutQuizAnswerAnswer
17
20
  * Answer based on question type
18
21
  * @export
19
22
  */
20
- export type PutQuizAnswerAnswer = FillInBlank | MultipleAnswer | SingleAnswer;
23
+ export type PutQuizAnswerAnswer = Essay | FillInBlank | Matching | MultipleAnswer | ShortAnswer | SingleAnswer;
21
24
  export declare function PutQuizAnswerAnswerFromJSON(json: any): PutQuizAnswerAnswer;
22
25
  export declare function PutQuizAnswerAnswerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerAnswer;
23
26
  export declare function PutQuizAnswerAnswerToJSON(json: any): any;
@@ -11,8 +11,11 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { instanceOfEssay, EssayFromJSONTyped, EssayToJSON, } from './Essay';
14
15
  import { instanceOfFillInBlank, FillInBlankFromJSONTyped, FillInBlankToJSON, } from './FillInBlank';
16
+ import { instanceOfMatching, MatchingFromJSONTyped, MatchingToJSON, } from './Matching';
15
17
  import { instanceOfMultipleAnswer, MultipleAnswerFromJSONTyped, MultipleAnswerToJSON, } from './MultipleAnswer';
18
+ import { instanceOfShortAnswer, ShortAnswerFromJSONTyped, ShortAnswerToJSON, } from './ShortAnswer';
16
19
  import { instanceOfSingleAnswer, SingleAnswerFromJSONTyped, SingleAnswerToJSON, } from './SingleAnswer';
17
20
  export function PutQuizAnswerAnswerFromJSON(json) {
18
21
  return PutQuizAnswerAnswerFromJSONTyped(json, false);
@@ -24,12 +27,21 @@ export function PutQuizAnswerAnswerFromJSONTyped(json, ignoreDiscriminator) {
24
27
  if (typeof json !== 'object') {
25
28
  return json;
26
29
  }
30
+ if (instanceOfEssay(json)) {
31
+ return EssayFromJSONTyped(json, true);
32
+ }
27
33
  if (instanceOfFillInBlank(json)) {
28
34
  return FillInBlankFromJSONTyped(json, true);
29
35
  }
36
+ if (instanceOfMatching(json)) {
37
+ return MatchingFromJSONTyped(json, true);
38
+ }
30
39
  if (instanceOfMultipleAnswer(json)) {
31
40
  return MultipleAnswerFromJSONTyped(json, true);
32
41
  }
42
+ if (instanceOfShortAnswer(json)) {
43
+ return ShortAnswerFromJSONTyped(json, true);
44
+ }
33
45
  if (instanceOfSingleAnswer(json)) {
34
46
  return SingleAnswerFromJSONTyped(json, true);
35
47
  }
@@ -45,12 +57,21 @@ export function PutQuizAnswerAnswerToJSONTyped(value, ignoreDiscriminator = fals
45
57
  if (typeof value !== 'object') {
46
58
  return value;
47
59
  }
60
+ if (instanceOfEssay(value)) {
61
+ return EssayToJSON(value);
62
+ }
48
63
  if (instanceOfFillInBlank(value)) {
49
64
  return FillInBlankToJSON(value);
50
65
  }
66
+ if (instanceOfMatching(value)) {
67
+ return MatchingToJSON(value);
68
+ }
51
69
  if (instanceOfMultipleAnswer(value)) {
52
70
  return MultipleAnswerToJSON(value);
53
71
  }
72
+ if (instanceOfShortAnswer(value)) {
73
+ return ShortAnswerToJSON(value);
74
+ }
54
75
  if (instanceOfSingleAnswer(value)) {
55
76
  return SingleAnswerToJSON(value);
56
77
  }
@@ -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 PutQuizAnswerGrade
16
+ */
17
+ export interface PutQuizAnswerGrade {
18
+ /**
19
+ * Points to award for this answer (0 to max points for the question)
20
+ * @type {number}
21
+ * @memberof PutQuizAnswerGrade
22
+ */
23
+ pointsEarned: number;
24
+ /**
25
+ * Optional instructor feedback or comments
26
+ * @type {string}
27
+ * @memberof PutQuizAnswerGrade
28
+ */
29
+ feedback?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PutQuizAnswerGrade interface.
33
+ */
34
+ export declare function instanceOfPutQuizAnswerGrade(value: object): value is PutQuizAnswerGrade;
35
+ export declare function PutQuizAnswerGradeFromJSON(json: any): PutQuizAnswerGrade;
36
+ export declare function PutQuizAnswerGradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutQuizAnswerGrade;
37
+ export declare function PutQuizAnswerGradeToJSON(json: any): PutQuizAnswerGrade;
38
+ export declare function PutQuizAnswerGradeToJSONTyped(value?: PutQuizAnswerGrade | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
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 PutQuizAnswerGrade interface.
16
+ */
17
+ export function instanceOfPutQuizAnswerGrade(value) {
18
+ if (!('pointsEarned' in value) || value['pointsEarned'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PutQuizAnswerGradeFromJSON(json) {
23
+ return PutQuizAnswerGradeFromJSONTyped(json, false);
24
+ }
25
+ export function PutQuizAnswerGradeFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'pointsEarned': json['points_earned'],
31
+ 'feedback': json['feedback'] == null ? undefined : json['feedback'],
32
+ };
33
+ }
34
+ export function PutQuizAnswerGradeToJSON(json) {
35
+ return PutQuizAnswerGradeToJSONTyped(json, false);
36
+ }
37
+ export function PutQuizAnswerGradeToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'points_earned': value['pointsEarned'],
43
+ 'feedback': value['feedback'],
44
+ };
45
+ }
@@ -0,0 +1,45 @@
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 ShortAnswer
16
+ */
17
+ export interface ShortAnswer {
18
+ /**
19
+ *
20
+ * @type {ShortAnswerTypeEnum}
21
+ * @memberof ShortAnswer
22
+ */
23
+ type: ShortAnswerTypeEnum;
24
+ /**
25
+ * Short text answer
26
+ * @type {string}
27
+ * @memberof ShortAnswer
28
+ */
29
+ textAnswer: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const ShortAnswerTypeEnum: {
35
+ readonly ShortAnswer: "short_answer";
36
+ };
37
+ export type ShortAnswerTypeEnum = typeof ShortAnswerTypeEnum[keyof typeof ShortAnswerTypeEnum];
38
+ /**
39
+ * Check if a given object implements the ShortAnswer interface.
40
+ */
41
+ export declare function instanceOfShortAnswer(value: object): value is ShortAnswer;
42
+ export declare function ShortAnswerFromJSON(json: any): ShortAnswer;
43
+ export declare function ShortAnswerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShortAnswer;
44
+ export declare function ShortAnswerToJSON(json: any): ShortAnswer;
45
+ export declare function ShortAnswerToJSONTyped(value?: ShortAnswer | null, ignoreDiscriminator?: boolean): any;
@@ -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 ShortAnswerTypeEnum = {
18
+ ShortAnswer: 'short_answer'
19
+ };
20
+ /**
21
+ * Check if a given object implements the ShortAnswer interface.
22
+ */
23
+ export function instanceOfShortAnswer(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 ShortAnswerFromJSON(json) {
31
+ return ShortAnswerFromJSONTyped(json, false);
32
+ }
33
+ export function ShortAnswerFromJSONTyped(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 ShortAnswerToJSON(json) {
43
+ return ShortAnswerToJSONTyped(json, false);
44
+ }
45
+ export function ShortAnswerToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'type': value['type'],
51
+ 'text_answer': value['textAnswer'],
52
+ };
53
+ }
@@ -0,0 +1,45 @@
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 ShortAnswer1
16
+ */
17
+ export interface ShortAnswer1 {
18
+ /**
19
+ *
20
+ * @type {ShortAnswer1TypeEnum}
21
+ * @memberof ShortAnswer1
22
+ */
23
+ type: ShortAnswer1TypeEnum;
24
+ /**
25
+ * Short text answer
26
+ * @type {string}
27
+ * @memberof ShortAnswer1
28
+ */
29
+ textAnswer: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const ShortAnswer1TypeEnum: {
35
+ readonly ShortAnswer: "short_answer";
36
+ };
37
+ export type ShortAnswer1TypeEnum = typeof ShortAnswer1TypeEnum[keyof typeof ShortAnswer1TypeEnum];
38
+ /**
39
+ * Check if a given object implements the ShortAnswer1 interface.
40
+ */
41
+ export declare function instanceOfShortAnswer1(value: object): value is ShortAnswer1;
42
+ export declare function ShortAnswer1FromJSON(json: any): ShortAnswer1;
43
+ export declare function ShortAnswer1FromJSONTyped(json: any, ignoreDiscriminator: boolean): ShortAnswer1;
44
+ export declare function ShortAnswer1ToJSON(json: any): ShortAnswer1;
45
+ export declare function ShortAnswer1ToJSONTyped(value?: ShortAnswer1 | null, ignoreDiscriminator?: boolean): any;
@@ -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 ShortAnswer1TypeEnum = {
18
+ ShortAnswer: 'short_answer'
19
+ };
20
+ /**
21
+ * Check if a given object implements the ShortAnswer1 interface.
22
+ */
23
+ export function instanceOfShortAnswer1(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 ShortAnswer1FromJSON(json) {
31
+ return ShortAnswer1FromJSONTyped(json, false);
32
+ }
33
+ export function ShortAnswer1FromJSONTyped(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 ShortAnswer1ToJSON(json) {
43
+ return ShortAnswer1ToJSONTyped(json, false);
44
+ }
45
+ export function ShortAnswer1ToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'type': value['type'],
51
+ 'text_answer': value['textAnswer'],
52
+ };
53
+ }
@@ -1,6 +1,8 @@
1
1
  export * from './CriteriaBasedSelection';
2
2
  export * from './CriteriaBasedSelectionCriteria';
3
3
  export * from './CriteriaBasedSelectionDistribution';
4
+ export * from './Essay';
5
+ export * from './Essay1';
4
6
  export * from './FillInBlank';
5
7
  export * from './FillInBlank1';
6
8
  export * from './GetContent';
@@ -128,6 +130,10 @@ export * from './LoginResAuthData';
128
130
  export * from './LoginResUserData';
129
131
  export * from './LoginResUserDataSelectedPortal';
130
132
  export * from './ManualSelection';
133
+ export * from './Matching';
134
+ export * from './Matching1';
135
+ export * from './Matching1PairsInner';
136
+ export * from './MatchingPairsInner';
131
137
  export * from './MediaContent';
132
138
  export * from './MultipleAnswer';
133
139
  export * from './MultipleAnswer1';
@@ -180,6 +186,7 @@ export * from './PutQuestionAnswerChoicesInner';
180
186
  export * from './PutQuiz';
181
187
  export * from './PutQuizAnswer';
182
188
  export * from './PutQuizAnswerAnswer';
189
+ export * from './PutQuizAnswerGrade';
183
190
  export * from './PutQuizSettings';
184
191
  export * from './PutRole';
185
192
  export * from './PutRolePermissions';
@@ -197,4 +204,6 @@ export * from './ScormSessionDataStatus';
197
204
  export * from './ScormSessionDataTime';
198
205
  export * from './ScormSetValueRequest';
199
206
  export * from './ScormSetValueResponse';
207
+ export * from './ShortAnswer';
208
+ export * from './ShortAnswer1';
200
209
  export * from './SingleAnswer';
@@ -3,6 +3,8 @@
3
3
  export * from './CriteriaBasedSelection';
4
4
  export * from './CriteriaBasedSelectionCriteria';
5
5
  export * from './CriteriaBasedSelectionDistribution';
6
+ export * from './Essay';
7
+ export * from './Essay1';
6
8
  export * from './FillInBlank';
7
9
  export * from './FillInBlank1';
8
10
  export * from './GetContent';
@@ -130,6 +132,10 @@ export * from './LoginResAuthData';
130
132
  export * from './LoginResUserData';
131
133
  export * from './LoginResUserDataSelectedPortal';
132
134
  export * from './ManualSelection';
135
+ export * from './Matching';
136
+ export * from './Matching1';
137
+ export * from './Matching1PairsInner';
138
+ export * from './MatchingPairsInner';
133
139
  export * from './MediaContent';
134
140
  export * from './MultipleAnswer';
135
141
  export * from './MultipleAnswer1';
@@ -182,6 +188,7 @@ export * from './PutQuestionAnswerChoicesInner';
182
188
  export * from './PutQuiz';
183
189
  export * from './PutQuizAnswer';
184
190
  export * from './PutQuizAnswerAnswer';
191
+ export * from './PutQuizAnswerGrade';
185
192
  export * from './PutQuizSettings';
186
193
  export * from './PutRole';
187
194
  export * from './PutRolePermissions';
@@ -199,4 +206,6 @@ export * from './ScormSessionDataStatus';
199
206
  export * from './ScormSessionDataTime';
200
207
  export * from './ScormSetValueRequest';
201
208
  export * from './ScormSetValueResponse';
209
+ export * from './ShortAnswer';
210
+ export * from './ShortAnswer1';
202
211
  export * from './SingleAnswer';