@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
@@ -0,0 +1,62 @@
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.MatchingTypeEnum = void 0;
17
+ exports.instanceOfMatching = instanceOfMatching;
18
+ exports.MatchingFromJSON = MatchingFromJSON;
19
+ exports.MatchingFromJSONTyped = MatchingFromJSONTyped;
20
+ exports.MatchingToJSON = MatchingToJSON;
21
+ exports.MatchingToJSONTyped = MatchingToJSONTyped;
22
+ const MatchingPairsInner_1 = require("./MatchingPairsInner");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.MatchingTypeEnum = {
27
+ Matching: 'matching'
28
+ };
29
+ /**
30
+ * Check if a given object implements the Matching interface.
31
+ */
32
+ function instanceOfMatching(value) {
33
+ if (!('type' in value) || value['type'] === undefined)
34
+ return false;
35
+ if (!('pairs' in value) || value['pairs'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function MatchingFromJSON(json) {
40
+ return MatchingFromJSONTyped(json, false);
41
+ }
42
+ function MatchingFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'type': json['type'],
48
+ 'pairs': (json['pairs'].map(MatchingPairsInner_1.MatchingPairsInnerFromJSON)),
49
+ };
50
+ }
51
+ function MatchingToJSON(json) {
52
+ return MatchingToJSONTyped(json, false);
53
+ }
54
+ function MatchingToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'type': value['type'],
60
+ 'pairs': (value['pairs'].map(MatchingPairsInner_1.MatchingPairsInnerToJSON)),
61
+ };
62
+ }
@@ -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,62 @@
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.Matching1TypeEnum = void 0;
17
+ exports.instanceOfMatching1 = instanceOfMatching1;
18
+ exports.Matching1FromJSON = Matching1FromJSON;
19
+ exports.Matching1FromJSONTyped = Matching1FromJSONTyped;
20
+ exports.Matching1ToJSON = Matching1ToJSON;
21
+ exports.Matching1ToJSONTyped = Matching1ToJSONTyped;
22
+ const Matching1PairsInner_1 = require("./Matching1PairsInner");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.Matching1TypeEnum = {
27
+ Matching: 'matching'
28
+ };
29
+ /**
30
+ * Check if a given object implements the Matching1 interface.
31
+ */
32
+ function instanceOfMatching1(value) {
33
+ if (!('type' in value) || value['type'] === undefined)
34
+ return false;
35
+ if (!('pairs' in value) || value['pairs'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function Matching1FromJSON(json) {
40
+ return Matching1FromJSONTyped(json, false);
41
+ }
42
+ function Matching1FromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'type': json['type'],
48
+ 'pairs': (json['pairs'].map(Matching1PairsInner_1.Matching1PairsInnerFromJSON)),
49
+ };
50
+ }
51
+ function Matching1ToJSON(json) {
52
+ return Matching1ToJSONTyped(json, false);
53
+ }
54
+ function Matching1ToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'type': value['type'],
60
+ 'pairs': (value['pairs'].map(Matching1PairsInner_1.Matching1PairsInnerToJSON)),
61
+ };
62
+ }
@@ -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,54 @@
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.instanceOfMatching1PairsInner = instanceOfMatching1PairsInner;
17
+ exports.Matching1PairsInnerFromJSON = Matching1PairsInnerFromJSON;
18
+ exports.Matching1PairsInnerFromJSONTyped = Matching1PairsInnerFromJSONTyped;
19
+ exports.Matching1PairsInnerToJSON = Matching1PairsInnerToJSON;
20
+ exports.Matching1PairsInnerToJSONTyped = Matching1PairsInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the Matching1PairsInner interface.
23
+ */
24
+ function instanceOfMatching1PairsInner(value) {
25
+ if (!('premiseId' in value) || value['premiseId'] === undefined)
26
+ return false;
27
+ if (!('responseId' in value) || value['responseId'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function Matching1PairsInnerFromJSON(json) {
32
+ return Matching1PairsInnerFromJSONTyped(json, false);
33
+ }
34
+ function Matching1PairsInnerFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'premiseId': json['premise_id'],
40
+ 'responseId': json['response_id'],
41
+ };
42
+ }
43
+ function Matching1PairsInnerToJSON(json) {
44
+ return Matching1PairsInnerToJSONTyped(json, false);
45
+ }
46
+ function Matching1PairsInnerToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'premise_id': value['premiseId'],
52
+ 'response_id': value['responseId'],
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 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,54 @@
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.instanceOfMatchingPairsInner = instanceOfMatchingPairsInner;
17
+ exports.MatchingPairsInnerFromJSON = MatchingPairsInnerFromJSON;
18
+ exports.MatchingPairsInnerFromJSONTyped = MatchingPairsInnerFromJSONTyped;
19
+ exports.MatchingPairsInnerToJSON = MatchingPairsInnerToJSON;
20
+ exports.MatchingPairsInnerToJSONTyped = MatchingPairsInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MatchingPairsInner interface.
23
+ */
24
+ function instanceOfMatchingPairsInner(value) {
25
+ if (!('premiseId' in value) || value['premiseId'] === undefined)
26
+ return false;
27
+ if (!('responseId' in value) || value['responseId'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function MatchingPairsInnerFromJSON(json) {
32
+ return MatchingPairsInnerFromJSONTyped(json, false);
33
+ }
34
+ function MatchingPairsInnerFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'premiseId': json['premise_id'],
40
+ 'responseId': json['response_id'],
41
+ };
42
+ }
43
+ function MatchingPairsInnerToJSON(json) {
44
+ return MatchingPairsInnerToJSONTyped(json, false);
45
+ }
46
+ function MatchingPairsInnerToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'premise_id': value['premiseId'],
52
+ 'response_id': value['responseId'],
53
+ };
54
+ }
@@ -10,27 +10,33 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Request to create a new SCORM export for a course
13
+ * Request to create a new export for a course
14
14
  * @export
15
15
  * @interface PostCourseExport
16
16
  */
17
17
  export interface PostCourseExport {
18
18
  /**
19
- * The SCORM version to export
20
- * @type {PostCourseExportScormVersionEnum}
19
+ * The export format type
20
+ * @type {PostCourseExportExportTypeEnum}
21
21
  * @memberof PostCourseExport
22
22
  */
23
- scormVersion: PostCourseExportScormVersionEnum;
23
+ exportType: PostCourseExportExportTypeEnum;
24
+ /**
25
+ * IDs of the modules to include in the export
26
+ * @type {Array<string>}
27
+ * @memberof PostCourseExport
28
+ */
29
+ moduleIds: Array<string>;
24
30
  }
25
31
  /**
26
32
  * @export
27
33
  */
28
- export declare const PostCourseExportScormVersionEnum: {
34
+ export declare const PostCourseExportExportTypeEnum: {
29
35
  readonly Scorm12: "SCORM_1_2";
30
36
  readonly Scorm20043RdEdition: "SCORM_2004_3RD_EDITION";
31
37
  readonly Scorm20044ThEdition: "SCORM_2004_4TH_EDITION";
32
38
  };
33
- export type PostCourseExportScormVersionEnum = typeof PostCourseExportScormVersionEnum[keyof typeof PostCourseExportScormVersionEnum];
39
+ export type PostCourseExportExportTypeEnum = typeof PostCourseExportExportTypeEnum[keyof typeof PostCourseExportExportTypeEnum];
34
40
  /**
35
41
  * Check if a given object implements the PostCourseExport interface.
36
42
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PostCourseExportScormVersionEnum = void 0;
16
+ exports.PostCourseExportExportTypeEnum = void 0;
17
17
  exports.instanceOfPostCourseExport = instanceOfPostCourseExport;
18
18
  exports.PostCourseExportFromJSON = PostCourseExportFromJSON;
19
19
  exports.PostCourseExportFromJSONTyped = PostCourseExportFromJSONTyped;
@@ -22,7 +22,7 @@ exports.PostCourseExportToJSONTyped = PostCourseExportToJSONTyped;
22
22
  /**
23
23
  * @export
24
24
  */
25
- exports.PostCourseExportScormVersionEnum = {
25
+ exports.PostCourseExportExportTypeEnum = {
26
26
  Scorm12: 'SCORM_1_2',
27
27
  Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
28
28
  Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
@@ -31,7 +31,9 @@ exports.PostCourseExportScormVersionEnum = {
31
31
  * Check if a given object implements the PostCourseExport interface.
32
32
  */
33
33
  function instanceOfPostCourseExport(value) {
34
- if (!('scormVersion' in value) || value['scormVersion'] === undefined)
34
+ if (!('exportType' in value) || value['exportType'] === undefined)
35
+ return false;
36
+ if (!('moduleIds' in value) || value['moduleIds'] === undefined)
35
37
  return false;
36
38
  return true;
37
39
  }
@@ -43,7 +45,8 @@ function PostCourseExportFromJSONTyped(json, ignoreDiscriminator) {
43
45
  return json;
44
46
  }
45
47
  return {
46
- 'scormVersion': json['scorm_version'],
48
+ 'exportType': json['export_type'],
49
+ 'moduleIds': json['module_ids'],
47
50
  };
48
51
  }
49
52
  function PostCourseExportToJSON(json) {
@@ -54,6 +57,7 @@ function PostCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
54
57
  return value;
55
58
  }
56
59
  return {
57
- 'scorm_version': value['scormVersion'],
60
+ 'export_type': value['exportType'],
61
+ 'module_ids': value['moduleIds'],
58
62
  };
59
63
  }
@@ -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
  /**
@@ -26,7 +26,10 @@ const PostQuestionAnswerChoicesInner_1 = require("./PostQuestionAnswerChoicesInn
26
26
  exports.PostQuestionQuestionTypeEnum = {
27
27
  SingleAnswer: 'single_answer',
28
28
  MultipleAnswer: 'multiple_answer',
29
- FillInBlank: 'fill_in_blank'
29
+ FillInBlank: 'fill_in_blank',
30
+ ShortAnswer: 'short_answer',
31
+ Matching: 'matching',
32
+ Essay: 'essay'
30
33
  };
31
34
  /**
32
35
  * @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
  /**
@@ -26,7 +26,10 @@ const PostQuizAttemptQuestionsInnerAnswerChoicesInner_1 = require("./PostQuizAtt
26
26
  exports.PostQuizAttemptQuestionsInnerQuestionTypeEnum = {
27
27
  SingleAnswer: 'single_answer',
28
28
  MultipleAnswer: 'multiple_answer',
29
- FillInBlank: 'fill_in_blank'
29
+ FillInBlank: 'fill_in_blank',
30
+ ShortAnswer: 'short_answer',
31
+ Matching: 'matching',
32
+ Essay: 'essay'
30
33
  };
31
34
  /**
32
35
  * 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;
@@ -17,9 +17,12 @@ exports.PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSON = PostQuizAttemptSu
17
17
  exports.PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped = PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped;
18
18
  exports.PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSON = PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSON;
19
19
  exports.PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSONTyped = PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSONTyped;
20
+ const Essay1_1 = require("./Essay1");
20
21
  const FillInBlank1_1 = require("./FillInBlank1");
22
+ const Matching1_1 = require("./Matching1");
21
23
  const MultipleAnswer1_1 = require("./MultipleAnswer1");
22
24
  const NoAnswer_1 = require("./NoAnswer");
25
+ const ShortAnswer1_1 = require("./ShortAnswer1");
23
26
  const SingleAnswer_1 = require("./SingleAnswer");
24
27
  function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSON(json) {
25
28
  return PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json, false);
@@ -31,15 +34,24 @@ function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json, ignoreD
31
34
  if (typeof json !== 'object') {
32
35
  return json;
33
36
  }
37
+ if ((0, Essay1_1.instanceOfEssay1)(json)) {
38
+ return (0, Essay1_1.Essay1FromJSONTyped)(json, true);
39
+ }
34
40
  if ((0, FillInBlank1_1.instanceOfFillInBlank1)(json)) {
35
41
  return (0, FillInBlank1_1.FillInBlank1FromJSONTyped)(json, true);
36
42
  }
43
+ if ((0, Matching1_1.instanceOfMatching1)(json)) {
44
+ return (0, Matching1_1.Matching1FromJSONTyped)(json, true);
45
+ }
37
46
  if ((0, MultipleAnswer1_1.instanceOfMultipleAnswer1)(json)) {
38
47
  return (0, MultipleAnswer1_1.MultipleAnswer1FromJSONTyped)(json, true);
39
48
  }
40
49
  if ((0, NoAnswer_1.instanceOfNoAnswer)(json)) {
41
50
  return (0, NoAnswer_1.NoAnswerFromJSONTyped)(json, true);
42
51
  }
52
+ if ((0, ShortAnswer1_1.instanceOfShortAnswer1)(json)) {
53
+ return (0, ShortAnswer1_1.ShortAnswer1FromJSONTyped)(json, true);
54
+ }
43
55
  if ((0, SingleAnswer_1.instanceOfSingleAnswer)(json)) {
44
56
  return (0, SingleAnswer_1.SingleAnswerFromJSONTyped)(json, true);
45
57
  }
@@ -55,15 +67,24 @@ function PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSONTyped(value, ignoreDi
55
67
  if (typeof value !== 'object') {
56
68
  return value;
57
69
  }
70
+ if ((0, Essay1_1.instanceOfEssay1)(value)) {
71
+ return (0, Essay1_1.Essay1ToJSON)(value);
72
+ }
58
73
  if ((0, FillInBlank1_1.instanceOfFillInBlank1)(value)) {
59
74
  return (0, FillInBlank1_1.FillInBlank1ToJSON)(value);
60
75
  }
76
+ if ((0, Matching1_1.instanceOfMatching1)(value)) {
77
+ return (0, Matching1_1.Matching1ToJSON)(value);
78
+ }
61
79
  if ((0, MultipleAnswer1_1.instanceOfMultipleAnswer1)(value)) {
62
80
  return (0, MultipleAnswer1_1.MultipleAnswer1ToJSON)(value);
63
81
  }
64
82
  if ((0, NoAnswer_1.instanceOfNoAnswer)(value)) {
65
83
  return (0, NoAnswer_1.NoAnswerToJSON)(value);
66
84
  }
85
+ if ((0, ShortAnswer1_1.instanceOfShortAnswer1)(value)) {
86
+ return (0, ShortAnswer1_1.ShortAnswer1ToJSON)(value);
87
+ }
67
88
  if ((0, SingleAnswer_1.instanceOfSingleAnswer)(value)) {
68
89
  return (0, SingleAnswer_1.SingleAnswerToJSON)(value);
69
90
  }
@@ -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
  /**
@@ -33,7 +33,10 @@ exports.PostQuizCriteriaCriteriaInnerDifficultyLevelEnum = {
33
33
  exports.PostQuizCriteriaCriteriaInnerQuestionTypeEnum = {
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 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
  /**
@@ -26,7 +26,10 @@ const PutQuestionAnswerChoicesInner_1 = require("./PutQuestionAnswerChoicesInner
26
26
  exports.PutQuestionQuestionTypeEnum = {
27
27
  SingleAnswer: 'single_answer',
28
28
  MultipleAnswer: 'multiple_answer',
29
- FillInBlank: 'fill_in_blank'
29
+ FillInBlank: 'fill_in_blank',
30
+ ShortAnswer: 'short_answer',
31
+ Matching: 'matching',
32
+ Essay: 'essay'
30
33
  };
31
34
  /**
32
35
  * @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;