@easyedu/js-lsm-api 1.35.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 (150) 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/GetQuestion.d.ts +4 -1
  14. package/dist/esm/models/GetQuestion.js +4 -1
  15. package/dist/esm/models/GetQuestionListFilters.d.ts +3 -0
  16. package/dist/esm/models/GetQuestionListFilters.js +4 -1
  17. package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +3 -0
  18. package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.js +4 -1
  19. package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +3 -0
  20. package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +4 -1
  21. package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +3 -0
  22. package/dist/esm/models/GetQuizAttemptQuestionsInner.js +4 -1
  23. package/dist/esm/models/GetQuizCriteriaItem.d.ts +3 -0
  24. package/dist/esm/models/GetQuizCriteriaItem.js +4 -1
  25. package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +3 -0
  26. package/dist/esm/models/GetQuizCriteriaListItemsInner.js +4 -1
  27. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +3 -0
  28. package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.js +4 -1
  29. package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +3 -0
  30. package/dist/esm/models/GetQuizResultsQuestionsInner.js +4 -1
  31. package/dist/esm/models/Matching.d.ts +46 -0
  32. package/dist/esm/models/Matching.js +54 -0
  33. package/dist/esm/models/Matching1.d.ts +46 -0
  34. package/dist/esm/models/Matching1.js +54 -0
  35. package/dist/esm/models/Matching1PairsInner.d.ts +38 -0
  36. package/dist/esm/models/Matching1PairsInner.js +47 -0
  37. package/dist/esm/models/MatchingPairsInner.d.ts +38 -0
  38. package/dist/esm/models/MatchingPairsInner.js +47 -0
  39. package/dist/esm/models/PostQuestion.d.ts +4 -1
  40. package/dist/esm/models/PostQuestion.js +4 -1
  41. package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +3 -0
  42. package/dist/esm/models/PostQuizAttemptQuestionsInner.js +4 -1
  43. package/dist/esm/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.d.ts +4 -1
  44. package/dist/esm/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +21 -0
  45. package/dist/esm/models/PostQuizCriteriaCriteriaInner.d.ts +3 -0
  46. package/dist/esm/models/PostQuizCriteriaCriteriaInner.js +4 -1
  47. package/dist/esm/models/PutQuestion.d.ts +4 -1
  48. package/dist/esm/models/PutQuestion.js +4 -1
  49. package/dist/esm/models/PutQuizAnswerAnswer.d.ts +4 -1
  50. package/dist/esm/models/PutQuizAnswerAnswer.js +21 -0
  51. package/dist/esm/models/PutQuizAnswerGrade.d.ts +38 -0
  52. package/dist/esm/models/PutQuizAnswerGrade.js +45 -0
  53. package/dist/esm/models/ShortAnswer.d.ts +45 -0
  54. package/dist/esm/models/ShortAnswer.js +53 -0
  55. package/dist/esm/models/ShortAnswer1.d.ts +45 -0
  56. package/dist/esm/models/ShortAnswer1.js +53 -0
  57. package/dist/esm/models/index.d.ts +9 -0
  58. package/dist/esm/models/index.js +9 -0
  59. package/dist/models/CriteriaBasedSelectionCriteria.d.ts +3 -0
  60. package/dist/models/CriteriaBasedSelectionCriteria.js +4 -1
  61. package/dist/models/Essay.d.ts +45 -0
  62. package/dist/models/Essay.js +61 -0
  63. package/dist/models/Essay1.d.ts +45 -0
  64. package/dist/models/Essay1.js +61 -0
  65. package/dist/models/GetQuestion.d.ts +4 -1
  66. package/dist/models/GetQuestion.js +4 -1
  67. package/dist/models/GetQuestionListFilters.d.ts +3 -0
  68. package/dist/models/GetQuestionListFilters.js +4 -1
  69. package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +3 -0
  70. package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.js +4 -1
  71. package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +3 -0
  72. package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +4 -1
  73. package/dist/models/GetQuizAttemptQuestionsInner.d.ts +3 -0
  74. package/dist/models/GetQuizAttemptQuestionsInner.js +4 -1
  75. package/dist/models/GetQuizCriteriaItem.d.ts +3 -0
  76. package/dist/models/GetQuizCriteriaItem.js +4 -1
  77. package/dist/models/GetQuizCriteriaListItemsInner.d.ts +3 -0
  78. package/dist/models/GetQuizCriteriaListItemsInner.js +4 -1
  79. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +3 -0
  80. package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.js +4 -1
  81. package/dist/models/GetQuizResultsQuestionsInner.d.ts +3 -0
  82. package/dist/models/GetQuizResultsQuestionsInner.js +4 -1
  83. package/dist/models/Matching.d.ts +46 -0
  84. package/dist/models/Matching.js +62 -0
  85. package/dist/models/Matching1.d.ts +46 -0
  86. package/dist/models/Matching1.js +62 -0
  87. package/dist/models/Matching1PairsInner.d.ts +38 -0
  88. package/dist/models/Matching1PairsInner.js +54 -0
  89. package/dist/models/MatchingPairsInner.d.ts +38 -0
  90. package/dist/models/MatchingPairsInner.js +54 -0
  91. package/dist/models/PostQuestion.d.ts +4 -1
  92. package/dist/models/PostQuestion.js +4 -1
  93. package/dist/models/PostQuizAttemptQuestionsInner.d.ts +3 -0
  94. package/dist/models/PostQuizAttemptQuestionsInner.js +4 -1
  95. package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.d.ts +4 -1
  96. package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +21 -0
  97. package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +3 -0
  98. package/dist/models/PostQuizCriteriaCriteriaInner.js +4 -1
  99. package/dist/models/PutQuestion.d.ts +4 -1
  100. package/dist/models/PutQuestion.js +4 -1
  101. package/dist/models/PutQuizAnswerAnswer.d.ts +4 -1
  102. package/dist/models/PutQuizAnswerAnswer.js +21 -0
  103. package/dist/models/PutQuizAnswerGrade.d.ts +38 -0
  104. package/dist/models/PutQuizAnswerGrade.js +52 -0
  105. package/dist/models/ShortAnswer.d.ts +45 -0
  106. package/dist/models/ShortAnswer.js +61 -0
  107. package/dist/models/ShortAnswer1.d.ts +45 -0
  108. package/dist/models/ShortAnswer1.js +61 -0
  109. package/dist/models/index.d.ts +9 -0
  110. package/dist/models/index.js +9 -0
  111. package/docs/Essay.md +36 -0
  112. package/docs/Essay1.md +36 -0
  113. package/docs/Matching.md +36 -0
  114. package/docs/Matching1.md +36 -0
  115. package/docs/Matching1PairsInner.md +36 -0
  116. package/docs/MatchingPairsInner.md +36 -0
  117. package/docs/PostQuizAttemptSubmitFinalAnswersInnerAnswer.md +2 -0
  118. package/docs/PutQuizAnswerAnswer.md +2 -0
  119. package/docs/PutQuizAnswerGrade.md +36 -0
  120. package/docs/QuizApi.md +77 -0
  121. package/docs/ShortAnswer.md +36 -0
  122. package/docs/ShortAnswer1.md +36 -0
  123. package/package.json +1 -1
  124. package/src/apis/QuizApi.ts +73 -0
  125. package/src/models/CriteriaBasedSelectionCriteria.ts +4 -1
  126. package/src/models/Essay.ts +85 -0
  127. package/src/models/Essay1.ts +85 -0
  128. package/src/models/GetQuestion.ts +5 -2
  129. package/src/models/GetQuestionListFilters.ts +4 -1
  130. package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.ts +4 -1
  131. package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +4 -1
  132. package/src/models/GetQuizAttemptQuestionsInner.ts +4 -1
  133. package/src/models/GetQuizCriteriaItem.ts +4 -1
  134. package/src/models/GetQuizCriteriaListItemsInner.ts +4 -1
  135. package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +4 -1
  136. package/src/models/GetQuizResultsQuestionsInner.ts +4 -1
  137. package/src/models/Matching.ts +93 -0
  138. package/src/models/Matching1.ts +93 -0
  139. package/src/models/Matching1PairsInner.ts +75 -0
  140. package/src/models/MatchingPairsInner.ts +75 -0
  141. package/src/models/PostQuestion.ts +5 -2
  142. package/src/models/PostQuizAttemptQuestionsInner.ts +4 -1
  143. package/src/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.ts +40 -1
  144. package/src/models/PostQuizCriteriaCriteriaInner.ts +4 -1
  145. package/src/models/PutQuestion.ts +5 -2
  146. package/src/models/PutQuizAnswerAnswer.ts +40 -1
  147. package/src/models/PutQuizAnswerGrade.ts +74 -0
  148. package/src/models/ShortAnswer.ts +85 -0
  149. package/src/models/ShortAnswer1.ts +85 -0
  150. package/src/models/index.ts +9 -0
@@ -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';
@@ -62,6 +62,9 @@ export declare const CriteriaBasedSelectionCriteriaQuestionTypesEnum: {
62
62
  readonly SingleAnswer: "single_answer";
63
63
  readonly MultipleAnswer: "multiple_answer";
64
64
  readonly FillInBlank: "fill_in_blank";
65
+ readonly ShortAnswer: "short_answer";
66
+ readonly Matching: "matching";
67
+ readonly Essay: "essay";
65
68
  };
66
69
  export type CriteriaBasedSelectionCriteriaQuestionTypesEnum = typeof CriteriaBasedSelectionCriteriaQuestionTypesEnum[keyof typeof CriteriaBasedSelectionCriteriaQuestionTypesEnum];
67
70
  /**
@@ -33,7 +33,10 @@ exports.CriteriaBasedSelectionCriteriaDifficultyLevelsEnum = {
33
33
  exports.CriteriaBasedSelectionCriteriaQuestionTypesEnum = {
34
34
  SingleAnswer: 'single_answer',
35
35
  MultipleAnswer: 'multiple_answer',
36
- FillInBlank: 'fill_in_blank'
36
+ FillInBlank: 'fill_in_blank',
37
+ ShortAnswer: 'short_answer',
38
+ Matching: 'matching',
39
+ Essay: 'essay'
37
40
  };
38
41
  /**
39
42
  * Check if a given object implements the CriteriaBasedSelectionCriteria interface.
@@ -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 Essay
16
+ */
17
+ export interface Essay {
18
+ /**
19
+ *
20
+ * @type {EssayTypeEnum}
21
+ * @memberof Essay
22
+ */
23
+ type: EssayTypeEnum;
24
+ /**
25
+ * Essay response text
26
+ * @type {string}
27
+ * @memberof Essay
28
+ */
29
+ textAnswer: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const EssayTypeEnum: {
35
+ readonly Essay: "essay";
36
+ };
37
+ export type EssayTypeEnum = typeof EssayTypeEnum[keyof typeof EssayTypeEnum];
38
+ /**
39
+ * Check if a given object implements the Essay interface.
40
+ */
41
+ export declare function instanceOfEssay(value: object): value is Essay;
42
+ export declare function EssayFromJSON(json: any): Essay;
43
+ export declare function EssayFromJSONTyped(json: any, ignoreDiscriminator: boolean): Essay;
44
+ export declare function EssayToJSON(json: any): Essay;
45
+ export declare function EssayToJSONTyped(value?: Essay | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.EssayTypeEnum = void 0;
17
+ exports.instanceOfEssay = instanceOfEssay;
18
+ exports.EssayFromJSON = EssayFromJSON;
19
+ exports.EssayFromJSONTyped = EssayFromJSONTyped;
20
+ exports.EssayToJSON = EssayToJSON;
21
+ exports.EssayToJSONTyped = EssayToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.EssayTypeEnum = {
26
+ Essay: 'essay'
27
+ };
28
+ /**
29
+ * Check if a given object implements the Essay interface.
30
+ */
31
+ function instanceOfEssay(value) {
32
+ if (!('type' in value) || value['type'] === undefined)
33
+ return false;
34
+ if (!('textAnswer' in value) || value['textAnswer'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function EssayFromJSON(json) {
39
+ return EssayFromJSONTyped(json, false);
40
+ }
41
+ function EssayFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'type': json['type'],
47
+ 'textAnswer': json['text_answer'],
48
+ };
49
+ }
50
+ function EssayToJSON(json) {
51
+ return EssayToJSONTyped(json, false);
52
+ }
53
+ function EssayToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'type': value['type'],
59
+ 'text_answer': value['textAnswer'],
60
+ };
61
+ }
@@ -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 Essay1
16
+ */
17
+ export interface Essay1 {
18
+ /**
19
+ *
20
+ * @type {Essay1TypeEnum}
21
+ * @memberof Essay1
22
+ */
23
+ type: Essay1TypeEnum;
24
+ /**
25
+ * Essay response text
26
+ * @type {string}
27
+ * @memberof Essay1
28
+ */
29
+ textAnswer: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const Essay1TypeEnum: {
35
+ readonly Essay: "essay";
36
+ };
37
+ export type Essay1TypeEnum = typeof Essay1TypeEnum[keyof typeof Essay1TypeEnum];
38
+ /**
39
+ * Check if a given object implements the Essay1 interface.
40
+ */
41
+ export declare function instanceOfEssay1(value: object): value is Essay1;
42
+ export declare function Essay1FromJSON(json: any): Essay1;
43
+ export declare function Essay1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Essay1;
44
+ export declare function Essay1ToJSON(json: any): Essay1;
45
+ export declare function Essay1ToJSONTyped(value?: Essay1 | null, ignoreDiscriminator?: boolean): any;