@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.
- package/.openapi-generator/FILES +18 -0
- package/README.md +12 -2
- package/dist/apis/QuizApi.d.ts +20 -1
- package/dist/apis/QuizApi.js +49 -0
- package/dist/esm/apis/QuizApi.d.ts +20 -1
- package/dist/esm/apis/QuizApi.js +50 -1
- package/dist/esm/models/CriteriaBasedSelectionCriteria.d.ts +3 -0
- package/dist/esm/models/CriteriaBasedSelectionCriteria.js +4 -1
- package/dist/esm/models/Essay.d.ts +45 -0
- package/dist/esm/models/Essay.js +53 -0
- package/dist/esm/models/Essay1.d.ts +45 -0
- package/dist/esm/models/Essay1.js +53 -0
- package/dist/esm/models/GetCourseExport.d.ts +19 -7
- package/dist/esm/models/GetCourseExport.js +12 -4
- package/dist/esm/models/GetQuestion.d.ts +4 -1
- package/dist/esm/models/GetQuestion.js +4 -1
- package/dist/esm/models/GetQuestionListFilters.d.ts +3 -0
- package/dist/esm/models/GetQuestionListFilters.js +4 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +3 -0
- package/dist/esm/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.js +4 -1
- package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +3 -0
- package/dist/esm/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +4 -1
- package/dist/esm/models/GetQuizAttemptQuestionsInner.d.ts +3 -0
- package/dist/esm/models/GetQuizAttemptQuestionsInner.js +4 -1
- package/dist/esm/models/GetQuizCriteriaItem.d.ts +3 -0
- package/dist/esm/models/GetQuizCriteriaItem.js +4 -1
- package/dist/esm/models/GetQuizCriteriaListItemsInner.d.ts +3 -0
- package/dist/esm/models/GetQuizCriteriaListItemsInner.js +4 -1
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +3 -0
- package/dist/esm/models/GetQuizQuestionsItemsInnerQuestionDetails.js +4 -1
- package/dist/esm/models/GetQuizResultsQuestionsInner.d.ts +3 -0
- package/dist/esm/models/GetQuizResultsQuestionsInner.js +4 -1
- package/dist/esm/models/Matching.d.ts +46 -0
- package/dist/esm/models/Matching.js +54 -0
- package/dist/esm/models/Matching1.d.ts +46 -0
- package/dist/esm/models/Matching1.js +54 -0
- package/dist/esm/models/Matching1PairsInner.d.ts +38 -0
- package/dist/esm/models/Matching1PairsInner.js +47 -0
- package/dist/esm/models/MatchingPairsInner.d.ts +38 -0
- package/dist/esm/models/MatchingPairsInner.js +47 -0
- package/dist/esm/models/PostCourseExport.d.ts +12 -6
- package/dist/esm/models/PostCourseExport.js +8 -4
- package/dist/esm/models/PostQuestion.d.ts +4 -1
- package/dist/esm/models/PostQuestion.js +4 -1
- package/dist/esm/models/PostQuizAttemptQuestionsInner.d.ts +3 -0
- package/dist/esm/models/PostQuizAttemptQuestionsInner.js +4 -1
- package/dist/esm/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.d.ts +4 -1
- package/dist/esm/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +21 -0
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.d.ts +3 -0
- package/dist/esm/models/PostQuizCriteriaCriteriaInner.js +4 -1
- package/dist/esm/models/PutQuestion.d.ts +4 -1
- package/dist/esm/models/PutQuestion.js +4 -1
- package/dist/esm/models/PutQuizAnswerAnswer.d.ts +4 -1
- package/dist/esm/models/PutQuizAnswerAnswer.js +21 -0
- package/dist/esm/models/PutQuizAnswerGrade.d.ts +38 -0
- package/dist/esm/models/PutQuizAnswerGrade.js +45 -0
- package/dist/esm/models/ShortAnswer.d.ts +45 -0
- package/dist/esm/models/ShortAnswer.js +53 -0
- package/dist/esm/models/ShortAnswer1.d.ts +45 -0
- package/dist/esm/models/ShortAnswer1.js +53 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/CriteriaBasedSelectionCriteria.d.ts +3 -0
- package/dist/models/CriteriaBasedSelectionCriteria.js +4 -1
- package/dist/models/Essay.d.ts +45 -0
- package/dist/models/Essay.js +61 -0
- package/dist/models/Essay1.d.ts +45 -0
- package/dist/models/Essay1.js +61 -0
- package/dist/models/GetCourseExport.d.ts +19 -7
- package/dist/models/GetCourseExport.js +13 -5
- package/dist/models/GetQuestion.d.ts +4 -1
- package/dist/models/GetQuestion.js +4 -1
- package/dist/models/GetQuestionListFilters.d.ts +3 -0
- package/dist/models/GetQuestionListFilters.js +4 -1
- package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.d.ts +3 -0
- package/dist/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.js +4 -1
- package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.d.ts +3 -0
- package/dist/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.js +4 -1
- package/dist/models/GetQuizAttemptQuestionsInner.d.ts +3 -0
- package/dist/models/GetQuizAttemptQuestionsInner.js +4 -1
- package/dist/models/GetQuizCriteriaItem.d.ts +3 -0
- package/dist/models/GetQuizCriteriaItem.js +4 -1
- package/dist/models/GetQuizCriteriaListItemsInner.d.ts +3 -0
- package/dist/models/GetQuizCriteriaListItemsInner.js +4 -1
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.d.ts +3 -0
- package/dist/models/GetQuizQuestionsItemsInnerQuestionDetails.js +4 -1
- package/dist/models/GetQuizResultsQuestionsInner.d.ts +3 -0
- package/dist/models/GetQuizResultsQuestionsInner.js +4 -1
- package/dist/models/Matching.d.ts +46 -0
- package/dist/models/Matching.js +62 -0
- package/dist/models/Matching1.d.ts +46 -0
- package/dist/models/Matching1.js +62 -0
- package/dist/models/Matching1PairsInner.d.ts +38 -0
- package/dist/models/Matching1PairsInner.js +54 -0
- package/dist/models/MatchingPairsInner.d.ts +38 -0
- package/dist/models/MatchingPairsInner.js +54 -0
- package/dist/models/PostCourseExport.d.ts +12 -6
- package/dist/models/PostCourseExport.js +9 -5
- package/dist/models/PostQuestion.d.ts +4 -1
- package/dist/models/PostQuestion.js +4 -1
- package/dist/models/PostQuizAttemptQuestionsInner.d.ts +3 -0
- package/dist/models/PostQuizAttemptQuestionsInner.js +4 -1
- package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.d.ts +4 -1
- package/dist/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.js +21 -0
- package/dist/models/PostQuizCriteriaCriteriaInner.d.ts +3 -0
- package/dist/models/PostQuizCriteriaCriteriaInner.js +4 -1
- package/dist/models/PutQuestion.d.ts +4 -1
- package/dist/models/PutQuestion.js +4 -1
- package/dist/models/PutQuizAnswerAnswer.d.ts +4 -1
- package/dist/models/PutQuizAnswerAnswer.js +21 -0
- package/dist/models/PutQuizAnswerGrade.d.ts +38 -0
- package/dist/models/PutQuizAnswerGrade.js +52 -0
- package/dist/models/ShortAnswer.d.ts +45 -0
- package/dist/models/ShortAnswer.js +61 -0
- package/dist/models/ShortAnswer1.d.ts +45 -0
- package/dist/models/ShortAnswer1.js +61 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/Essay.md +36 -0
- package/docs/Essay1.md +36 -0
- package/docs/GetCourseExport.md +7 -3
- package/docs/Matching.md +36 -0
- package/docs/Matching1.md +36 -0
- package/docs/Matching1PairsInner.md +36 -0
- package/docs/MatchingPairsInner.md +36 -0
- package/docs/PostCourseExport.md +5 -3
- package/docs/PostQuizAttemptSubmitFinalAnswersInnerAnswer.md +2 -0
- package/docs/PutQuizAnswerAnswer.md +2 -0
- package/docs/PutQuizAnswerGrade.md +36 -0
- package/docs/QuizApi.md +77 -0
- package/docs/ShortAnswer.md +36 -0
- package/docs/ShortAnswer1.md +36 -0
- package/package.json +1 -1
- package/src/apis/QuizApi.ts +73 -0
- package/src/models/CriteriaBasedSelectionCriteria.ts +4 -1
- package/src/models/Essay.ts +85 -0
- package/src/models/Essay1.ts +85 -0
- package/src/models/GetCourseExport.ts +28 -10
- package/src/models/GetQuestion.ts +5 -2
- package/src/models/GetQuestionListFilters.ts +4 -1
- package/src/models/GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner.ts +4 -1
- package/src/models/GetQuizAttemptAnalyticsQuestionAnalysisInner.ts +4 -1
- package/src/models/GetQuizAttemptQuestionsInner.ts +4 -1
- package/src/models/GetQuizCriteriaItem.ts +4 -1
- package/src/models/GetQuizCriteriaListItemsInner.ts +4 -1
- package/src/models/GetQuizQuestionsItemsInnerQuestionDetails.ts +4 -1
- package/src/models/GetQuizResultsQuestionsInner.ts +4 -1
- package/src/models/Matching.ts +93 -0
- package/src/models/Matching1.ts +93 -0
- package/src/models/Matching1PairsInner.ts +75 -0
- package/src/models/MatchingPairsInner.ts +75 -0
- package/src/models/PostCourseExport.ts +18 -9
- package/src/models/PostQuestion.ts +5 -2
- package/src/models/PostQuizAttemptQuestionsInner.ts +4 -1
- package/src/models/PostQuizAttemptSubmitFinalAnswersInnerAnswer.ts +40 -1
- package/src/models/PostQuizCriteriaCriteriaInner.ts +4 -1
- package/src/models/PutQuestion.ts +5 -2
- package/src/models/PutQuizAnswerAnswer.ts +40 -1
- package/src/models/PutQuizAnswerGrade.ts +74 -0
- package/src/models/ShortAnswer.ts +85 -0
- package/src/models/ShortAnswer1.ts +85 -0
- package/src/models/index.ts +9 -0
|
@@ -64,7 +64,10 @@ export interface GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInner
|
|
|
64
64
|
export const GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInnerQuestionTypeEnum = {
|
|
65
65
|
SingleAnswer: 'single_answer',
|
|
66
66
|
MultipleAnswer: 'multiple_answer',
|
|
67
|
-
FillInBlank: 'fill_in_blank'
|
|
67
|
+
FillInBlank: 'fill_in_blank',
|
|
68
|
+
ShortAnswer: 'short_answer',
|
|
69
|
+
Matching: 'matching',
|
|
70
|
+
Essay: 'essay'
|
|
68
71
|
} as const;
|
|
69
72
|
export type GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInnerQuestionTypeEnum = typeof GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInnerQuestionTypeEnum[keyof typeof GetQuizAttemptAnalyticsPerformanceBreakdownByQuestionTypeInnerQuestionTypeEnum];
|
|
70
73
|
|
|
@@ -121,7 +121,10 @@ export interface GetQuizAttemptAnalyticsQuestionAnalysisInner {
|
|
|
121
121
|
export const GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnum = {
|
|
122
122
|
SingleAnswer: 'single_answer',
|
|
123
123
|
MultipleAnswer: 'multiple_answer',
|
|
124
|
-
FillInBlank: 'fill_in_blank'
|
|
124
|
+
FillInBlank: 'fill_in_blank',
|
|
125
|
+
ShortAnswer: 'short_answer',
|
|
126
|
+
Matching: 'matching',
|
|
127
|
+
Essay: 'essay'
|
|
125
128
|
} as const;
|
|
126
129
|
export type GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnum = typeof GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnum[keyof typeof GetQuizAttemptAnalyticsQuestionAnalysisInnerQuestionTypeEnum];
|
|
127
130
|
|
|
@@ -103,7 +103,10 @@ export interface GetQuizAttemptQuestionsInner {
|
|
|
103
103
|
export const GetQuizAttemptQuestionsInnerQuestionTypeEnum = {
|
|
104
104
|
SingleAnswer: 'single_answer',
|
|
105
105
|
MultipleAnswer: 'multiple_answer',
|
|
106
|
-
FillInBlank: 'fill_in_blank'
|
|
106
|
+
FillInBlank: 'fill_in_blank',
|
|
107
|
+
ShortAnswer: 'short_answer',
|
|
108
|
+
Matching: 'matching',
|
|
109
|
+
Essay: 'essay'
|
|
107
110
|
} as const;
|
|
108
111
|
export type GetQuizAttemptQuestionsInnerQuestionTypeEnum = typeof GetQuizAttemptQuestionsInnerQuestionTypeEnum[keyof typeof GetQuizAttemptQuestionsInnerQuestionTypeEnum];
|
|
109
112
|
|
|
@@ -116,7 +116,10 @@ export type GetQuizCriteriaItemDifficultyLevelEnum = typeof GetQuizCriteriaItemD
|
|
|
116
116
|
export const GetQuizCriteriaItemQuestionTypeEnum = {
|
|
117
117
|
SingleAnswer: 'single_answer',
|
|
118
118
|
MultipleAnswer: 'multiple_answer',
|
|
119
|
-
FillInBlank: 'fill_in_blank'
|
|
119
|
+
FillInBlank: 'fill_in_blank',
|
|
120
|
+
ShortAnswer: 'short_answer',
|
|
121
|
+
Matching: 'matching',
|
|
122
|
+
Essay: 'essay'
|
|
120
123
|
} as const;
|
|
121
124
|
export type GetQuizCriteriaItemQuestionTypeEnum = typeof GetQuizCriteriaItemQuestionTypeEnum[keyof typeof GetQuizCriteriaItemQuestionTypeEnum];
|
|
122
125
|
|
|
@@ -116,7 +116,10 @@ export type GetQuizCriteriaListItemsInnerDifficultyLevelEnum = typeof GetQuizCri
|
|
|
116
116
|
export const GetQuizCriteriaListItemsInnerQuestionTypeEnum = {
|
|
117
117
|
SingleAnswer: 'single_answer',
|
|
118
118
|
MultipleAnswer: 'multiple_answer',
|
|
119
|
-
FillInBlank: 'fill_in_blank'
|
|
119
|
+
FillInBlank: 'fill_in_blank',
|
|
120
|
+
ShortAnswer: 'short_answer',
|
|
121
|
+
Matching: 'matching',
|
|
122
|
+
Essay: 'essay'
|
|
120
123
|
} as const;
|
|
121
124
|
export type GetQuizCriteriaListItemsInnerQuestionTypeEnum = typeof GetQuizCriteriaListItemsInnerQuestionTypeEnum[keyof typeof GetQuizCriteriaListItemsInnerQuestionTypeEnum];
|
|
122
125
|
|
|
@@ -96,7 +96,10 @@ export interface GetQuizQuestionsItemsInnerQuestionDetails {
|
|
|
96
96
|
export const GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = {
|
|
97
97
|
SingleAnswer: 'single_answer',
|
|
98
98
|
MultipleAnswer: 'multiple_answer',
|
|
99
|
-
FillInBlank: 'fill_in_blank'
|
|
99
|
+
FillInBlank: 'fill_in_blank',
|
|
100
|
+
ShortAnswer: 'short_answer',
|
|
101
|
+
Matching: 'matching',
|
|
102
|
+
Essay: 'essay'
|
|
100
103
|
} as const;
|
|
101
104
|
export type GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum = typeof GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum[keyof typeof GetQuizQuestionsItemsInnerQuestionDetailsQuestionTypeEnum];
|
|
102
105
|
|
|
@@ -97,7 +97,10 @@ export interface GetQuizResultsQuestionsInner {
|
|
|
97
97
|
export const GetQuizResultsQuestionsInnerQuestionTypeEnum = {
|
|
98
98
|
SingleAnswer: 'single_answer',
|
|
99
99
|
MultipleAnswer: 'multiple_answer',
|
|
100
|
-
FillInBlank: 'fill_in_blank'
|
|
100
|
+
FillInBlank: 'fill_in_blank',
|
|
101
|
+
ShortAnswer: 'short_answer',
|
|
102
|
+
Matching: 'matching',
|
|
103
|
+
Essay: 'essay'
|
|
101
104
|
} as const;
|
|
102
105
|
export type GetQuizResultsQuestionsInnerQuestionTypeEnum = typeof GetQuizResultsQuestionsInnerQuestionTypeEnum[keyof typeof GetQuizResultsQuestionsInnerQuestionTypeEnum];
|
|
103
106
|
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { MatchingPairsInner } from './MatchingPairsInner';
|
|
17
|
+
import {
|
|
18
|
+
MatchingPairsInnerFromJSON,
|
|
19
|
+
MatchingPairsInnerFromJSONTyped,
|
|
20
|
+
MatchingPairsInnerToJSON,
|
|
21
|
+
MatchingPairsInnerToJSONTyped,
|
|
22
|
+
} from './MatchingPairsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Matching
|
|
28
|
+
*/
|
|
29
|
+
export interface Matching {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {MatchingTypeEnum}
|
|
33
|
+
* @memberof Matching
|
|
34
|
+
*/
|
|
35
|
+
type: MatchingTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* User's matching pair selections
|
|
38
|
+
* @type {Array<MatchingPairsInner>}
|
|
39
|
+
* @memberof Matching
|
|
40
|
+
*/
|
|
41
|
+
pairs: Array<MatchingPairsInner>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export const MatchingTypeEnum = {
|
|
49
|
+
Matching: 'matching'
|
|
50
|
+
} as const;
|
|
51
|
+
export type MatchingTypeEnum = typeof MatchingTypeEnum[keyof typeof MatchingTypeEnum];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the Matching interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfMatching(value: object): value is Matching {
|
|
58
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
59
|
+
if (!('pairs' in value) || value['pairs'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function MatchingFromJSON(json: any): Matching {
|
|
64
|
+
return MatchingFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function MatchingFromJSONTyped(json: any, ignoreDiscriminator: boolean): Matching {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'type': json['type'],
|
|
74
|
+
'pairs': ((json['pairs'] as Array<any>).map(MatchingPairsInnerFromJSON)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function MatchingToJSON(json: any): Matching {
|
|
79
|
+
return MatchingToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function MatchingToJSONTyped(value?: Matching | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'type': value['type'],
|
|
90
|
+
'pairs': ((value['pairs'] as Array<any>).map(MatchingPairsInnerToJSON)),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Matching1PairsInner } from './Matching1PairsInner';
|
|
17
|
+
import {
|
|
18
|
+
Matching1PairsInnerFromJSON,
|
|
19
|
+
Matching1PairsInnerFromJSONTyped,
|
|
20
|
+
Matching1PairsInnerToJSON,
|
|
21
|
+
Matching1PairsInnerToJSONTyped,
|
|
22
|
+
} from './Matching1PairsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Matching1
|
|
28
|
+
*/
|
|
29
|
+
export interface Matching1 {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Matching1TypeEnum}
|
|
33
|
+
* @memberof Matching1
|
|
34
|
+
*/
|
|
35
|
+
type: Matching1TypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Matching pair selections
|
|
38
|
+
* @type {Array<Matching1PairsInner>}
|
|
39
|
+
* @memberof Matching1
|
|
40
|
+
*/
|
|
41
|
+
pairs: Array<Matching1PairsInner>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export const Matching1TypeEnum = {
|
|
49
|
+
Matching: 'matching'
|
|
50
|
+
} as const;
|
|
51
|
+
export type Matching1TypeEnum = typeof Matching1TypeEnum[keyof typeof Matching1TypeEnum];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the Matching1 interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfMatching1(value: object): value is Matching1 {
|
|
58
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
59
|
+
if (!('pairs' in value) || value['pairs'] === undefined) return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function Matching1FromJSON(json: any): Matching1 {
|
|
64
|
+
return Matching1FromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function Matching1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Matching1 {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'type': json['type'],
|
|
74
|
+
'pairs': ((json['pairs'] as Array<any>).map(Matching1PairsInnerFromJSON)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function Matching1ToJSON(json: any): Matching1 {
|
|
79
|
+
return Matching1ToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function Matching1ToJSONTyped(value?: Matching1 | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'type': value['type'],
|
|
90
|
+
'pairs': ((value['pairs'] as Array<any>).map(Matching1PairsInnerToJSON)),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Matching1PairsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface Matching1PairsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof Matching1PairsInner
|
|
26
|
+
*/
|
|
27
|
+
premiseId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof Matching1PairsInner
|
|
32
|
+
*/
|
|
33
|
+
responseId: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the Matching1PairsInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfMatching1PairsInner(value: object): value is Matching1PairsInner {
|
|
40
|
+
if (!('premiseId' in value) || value['premiseId'] === undefined) return false;
|
|
41
|
+
if (!('responseId' in value) || value['responseId'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function Matching1PairsInnerFromJSON(json: any): Matching1PairsInner {
|
|
46
|
+
return Matching1PairsInnerFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function Matching1PairsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): Matching1PairsInner {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'premiseId': json['premise_id'],
|
|
56
|
+
'responseId': json['response_id'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function Matching1PairsInnerToJSON(json: any): Matching1PairsInner {
|
|
61
|
+
return Matching1PairsInnerToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function Matching1PairsInnerToJSONTyped(value?: Matching1PairsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'premise_id': value['premiseId'],
|
|
72
|
+
'response_id': value['responseId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MatchingPairsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface MatchingPairsInner {
|
|
22
|
+
/**
|
|
23
|
+
* ID of the premise (left side)
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof MatchingPairsInner
|
|
26
|
+
*/
|
|
27
|
+
premiseId: number;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the response (right side)
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof MatchingPairsInner
|
|
32
|
+
*/
|
|
33
|
+
responseId: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the MatchingPairsInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfMatchingPairsInner(value: object): value is MatchingPairsInner {
|
|
40
|
+
if (!('premiseId' in value) || value['premiseId'] === undefined) return false;
|
|
41
|
+
if (!('responseId' in value) || value['responseId'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function MatchingPairsInnerFromJSON(json: any): MatchingPairsInner {
|
|
46
|
+
return MatchingPairsInnerFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function MatchingPairsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchingPairsInner {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'premiseId': json['premise_id'],
|
|
56
|
+
'responseId': json['response_id'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function MatchingPairsInnerToJSON(json: any): MatchingPairsInner {
|
|
61
|
+
return MatchingPairsInnerToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function MatchingPairsInnerToJSONTyped(value?: MatchingPairsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'premise_id': value['premiseId'],
|
|
72
|
+
'response_id': value['responseId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -14,36 +14,43 @@
|
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
-
* Request to create a new
|
|
17
|
+
* Request to create a new export for a course
|
|
18
18
|
* @export
|
|
19
19
|
* @interface PostCourseExport
|
|
20
20
|
*/
|
|
21
21
|
export interface PostCourseExport {
|
|
22
22
|
/**
|
|
23
|
-
* The
|
|
24
|
-
* @type {
|
|
23
|
+
* The export format type
|
|
24
|
+
* @type {PostCourseExportExportTypeEnum}
|
|
25
25
|
* @memberof PostCourseExport
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
exportType: PostCourseExportExportTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
* IDs of the modules to include in the export
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof PostCourseExport
|
|
32
|
+
*/
|
|
33
|
+
moduleIds: Array<string>;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
|
|
31
37
|
/**
|
|
32
38
|
* @export
|
|
33
39
|
*/
|
|
34
|
-
export const
|
|
40
|
+
export const PostCourseExportExportTypeEnum = {
|
|
35
41
|
Scorm12: 'SCORM_1_2',
|
|
36
42
|
Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
|
|
37
43
|
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
|
|
38
44
|
} as const;
|
|
39
|
-
export type
|
|
45
|
+
export type PostCourseExportExportTypeEnum = typeof PostCourseExportExportTypeEnum[keyof typeof PostCourseExportExportTypeEnum];
|
|
40
46
|
|
|
41
47
|
|
|
42
48
|
/**
|
|
43
49
|
* Check if a given object implements the PostCourseExport interface.
|
|
44
50
|
*/
|
|
45
51
|
export function instanceOfPostCourseExport(value: object): value is PostCourseExport {
|
|
46
|
-
if (!('
|
|
52
|
+
if (!('exportType' in value) || value['exportType'] === undefined) return false;
|
|
53
|
+
if (!('moduleIds' in value) || value['moduleIds'] === undefined) return false;
|
|
47
54
|
return true;
|
|
48
55
|
}
|
|
49
56
|
|
|
@@ -57,7 +64,8 @@ export function PostCourseExportFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
57
64
|
}
|
|
58
65
|
return {
|
|
59
66
|
|
|
60
|
-
'
|
|
67
|
+
'exportType': json['export_type'],
|
|
68
|
+
'moduleIds': json['module_ids'],
|
|
61
69
|
};
|
|
62
70
|
}
|
|
63
71
|
|
|
@@ -72,7 +80,8 @@ export function PostCourseExportToJSONTyped(value?: PostCourseExport | null, ign
|
|
|
72
80
|
|
|
73
81
|
return {
|
|
74
82
|
|
|
75
|
-
'
|
|
83
|
+
'export_type': value['exportType'],
|
|
84
|
+
'module_ids': value['moduleIds'],
|
|
76
85
|
};
|
|
77
86
|
}
|
|
78
87
|
|
|
@@ -34,7 +34,7 @@ export interface PostQuestion {
|
|
|
34
34
|
*/
|
|
35
35
|
questionText: string;
|
|
36
36
|
/**
|
|
37
|
-
* Type of question
|
|
37
|
+
* Type of question
|
|
38
38
|
* @type {PostQuestionQuestionTypeEnum}
|
|
39
39
|
* @memberof PostQuestion
|
|
40
40
|
*/
|
|
@@ -96,7 +96,10 @@ export interface PostQuestion {
|
|
|
96
96
|
export const PostQuestionQuestionTypeEnum = {
|
|
97
97
|
SingleAnswer: 'single_answer',
|
|
98
98
|
MultipleAnswer: 'multiple_answer',
|
|
99
|
-
FillInBlank: 'fill_in_blank'
|
|
99
|
+
FillInBlank: 'fill_in_blank',
|
|
100
|
+
ShortAnswer: 'short_answer',
|
|
101
|
+
Matching: 'matching',
|
|
102
|
+
Essay: 'essay'
|
|
100
103
|
} as const;
|
|
101
104
|
export type PostQuestionQuestionTypeEnum = typeof PostQuestionQuestionTypeEnum[keyof typeof PostQuestionQuestionTypeEnum];
|
|
102
105
|
|
|
@@ -84,7 +84,10 @@ export interface PostQuizAttemptQuestionsInner {
|
|
|
84
84
|
export const PostQuizAttemptQuestionsInnerQuestionTypeEnum = {
|
|
85
85
|
SingleAnswer: 'single_answer',
|
|
86
86
|
MultipleAnswer: 'multiple_answer',
|
|
87
|
-
FillInBlank: 'fill_in_blank'
|
|
87
|
+
FillInBlank: 'fill_in_blank',
|
|
88
|
+
ShortAnswer: 'short_answer',
|
|
89
|
+
Matching: 'matching',
|
|
90
|
+
Essay: 'essay'
|
|
88
91
|
} as const;
|
|
89
92
|
export type PostQuizAttemptQuestionsInnerQuestionTypeEnum = typeof PostQuizAttemptQuestionsInnerQuestionTypeEnum[keyof typeof PostQuizAttemptQuestionsInnerQuestionTypeEnum];
|
|
90
93
|
|
|
@@ -12,6 +12,13 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
import type { Essay1 } from './Essay1';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfEssay1,
|
|
18
|
+
Essay1FromJSON,
|
|
19
|
+
Essay1FromJSONTyped,
|
|
20
|
+
Essay1ToJSON,
|
|
21
|
+
} from './Essay1';
|
|
15
22
|
import type { FillInBlank1 } from './FillInBlank1';
|
|
16
23
|
import {
|
|
17
24
|
instanceOfFillInBlank1,
|
|
@@ -19,6 +26,13 @@ import {
|
|
|
19
26
|
FillInBlank1FromJSONTyped,
|
|
20
27
|
FillInBlank1ToJSON,
|
|
21
28
|
} from './FillInBlank1';
|
|
29
|
+
import type { Matching1 } from './Matching1';
|
|
30
|
+
import {
|
|
31
|
+
instanceOfMatching1,
|
|
32
|
+
Matching1FromJSON,
|
|
33
|
+
Matching1FromJSONTyped,
|
|
34
|
+
Matching1ToJSON,
|
|
35
|
+
} from './Matching1';
|
|
22
36
|
import type { MultipleAnswer1 } from './MultipleAnswer1';
|
|
23
37
|
import {
|
|
24
38
|
instanceOfMultipleAnswer1,
|
|
@@ -33,6 +47,13 @@ import {
|
|
|
33
47
|
NoAnswerFromJSONTyped,
|
|
34
48
|
NoAnswerToJSON,
|
|
35
49
|
} from './NoAnswer';
|
|
50
|
+
import type { ShortAnswer1 } from './ShortAnswer1';
|
|
51
|
+
import {
|
|
52
|
+
instanceOfShortAnswer1,
|
|
53
|
+
ShortAnswer1FromJSON,
|
|
54
|
+
ShortAnswer1FromJSONTyped,
|
|
55
|
+
ShortAnswer1ToJSON,
|
|
56
|
+
} from './ShortAnswer1';
|
|
36
57
|
import type { SingleAnswer } from './SingleAnswer';
|
|
37
58
|
import {
|
|
38
59
|
instanceOfSingleAnswer,
|
|
@@ -46,7 +67,7 @@ import {
|
|
|
46
67
|
* Final answer for this question
|
|
47
68
|
* @export
|
|
48
69
|
*/
|
|
49
|
-
export type PostQuizAttemptSubmitFinalAnswersInnerAnswer = FillInBlank1 | MultipleAnswer1 | NoAnswer | SingleAnswer;
|
|
70
|
+
export type PostQuizAttemptSubmitFinalAnswersInnerAnswer = Essay1 | FillInBlank1 | Matching1 | MultipleAnswer1 | NoAnswer | ShortAnswer1 | SingleAnswer;
|
|
50
71
|
|
|
51
72
|
export function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSON(json: any): PostQuizAttemptSubmitFinalAnswersInnerAnswer {
|
|
52
73
|
return PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json, false);
|
|
@@ -59,15 +80,24 @@ export function PostQuizAttemptSubmitFinalAnswersInnerAnswerFromJSONTyped(json:
|
|
|
59
80
|
if (typeof json !== 'object') {
|
|
60
81
|
return json;
|
|
61
82
|
}
|
|
83
|
+
if (instanceOfEssay1(json)) {
|
|
84
|
+
return Essay1FromJSONTyped(json, true);
|
|
85
|
+
}
|
|
62
86
|
if (instanceOfFillInBlank1(json)) {
|
|
63
87
|
return FillInBlank1FromJSONTyped(json, true);
|
|
64
88
|
}
|
|
89
|
+
if (instanceOfMatching1(json)) {
|
|
90
|
+
return Matching1FromJSONTyped(json, true);
|
|
91
|
+
}
|
|
65
92
|
if (instanceOfMultipleAnswer1(json)) {
|
|
66
93
|
return MultipleAnswer1FromJSONTyped(json, true);
|
|
67
94
|
}
|
|
68
95
|
if (instanceOfNoAnswer(json)) {
|
|
69
96
|
return NoAnswerFromJSONTyped(json, true);
|
|
70
97
|
}
|
|
98
|
+
if (instanceOfShortAnswer1(json)) {
|
|
99
|
+
return ShortAnswer1FromJSONTyped(json, true);
|
|
100
|
+
}
|
|
71
101
|
if (instanceOfSingleAnswer(json)) {
|
|
72
102
|
return SingleAnswerFromJSONTyped(json, true);
|
|
73
103
|
}
|
|
@@ -85,15 +115,24 @@ export function PostQuizAttemptSubmitFinalAnswersInnerAnswerToJSONTyped(value?:
|
|
|
85
115
|
if (typeof value !== 'object') {
|
|
86
116
|
return value;
|
|
87
117
|
}
|
|
118
|
+
if (instanceOfEssay1(value)) {
|
|
119
|
+
return Essay1ToJSON(value as Essay1);
|
|
120
|
+
}
|
|
88
121
|
if (instanceOfFillInBlank1(value)) {
|
|
89
122
|
return FillInBlank1ToJSON(value as FillInBlank1);
|
|
90
123
|
}
|
|
124
|
+
if (instanceOfMatching1(value)) {
|
|
125
|
+
return Matching1ToJSON(value as Matching1);
|
|
126
|
+
}
|
|
91
127
|
if (instanceOfMultipleAnswer1(value)) {
|
|
92
128
|
return MultipleAnswer1ToJSON(value as MultipleAnswer1);
|
|
93
129
|
}
|
|
94
130
|
if (instanceOfNoAnswer(value)) {
|
|
95
131
|
return NoAnswerToJSON(value as NoAnswer);
|
|
96
132
|
}
|
|
133
|
+
if (instanceOfShortAnswer1(value)) {
|
|
134
|
+
return ShortAnswer1ToJSON(value as ShortAnswer1);
|
|
135
|
+
}
|
|
97
136
|
if (instanceOfSingleAnswer(value)) {
|
|
98
137
|
return SingleAnswerToJSON(value as SingleAnswer);
|
|
99
138
|
}
|
|
@@ -86,7 +86,10 @@ export type PostQuizCriteriaCriteriaInnerDifficultyLevelEnum = typeof PostQuizCr
|
|
|
86
86
|
export const PostQuizCriteriaCriteriaInnerQuestionTypeEnum = {
|
|
87
87
|
SingleAnswer: 'single_answer',
|
|
88
88
|
MultipleAnswer: 'multiple_answer',
|
|
89
|
-
FillInBlank: 'fill_in_blank'
|
|
89
|
+
FillInBlank: 'fill_in_blank',
|
|
90
|
+
ShortAnswer: 'short_answer',
|
|
91
|
+
Matching: 'matching',
|
|
92
|
+
Essay: 'essay'
|
|
90
93
|
} as const;
|
|
91
94
|
export type PostQuizCriteriaCriteriaInnerQuestionTypeEnum = typeof PostQuizCriteriaCriteriaInnerQuestionTypeEnum[keyof typeof PostQuizCriteriaCriteriaInnerQuestionTypeEnum];
|
|
92
95
|
|
|
@@ -34,7 +34,7 @@ export interface PutQuestion {
|
|
|
34
34
|
*/
|
|
35
35
|
questionText?: string;
|
|
36
36
|
/**
|
|
37
|
-
* Type of question
|
|
37
|
+
* Type of question
|
|
38
38
|
* @type {PutQuestionQuestionTypeEnum}
|
|
39
39
|
* @memberof PutQuestion
|
|
40
40
|
*/
|
|
@@ -96,7 +96,10 @@ export interface PutQuestion {
|
|
|
96
96
|
export const PutQuestionQuestionTypeEnum = {
|
|
97
97
|
SingleAnswer: 'single_answer',
|
|
98
98
|
MultipleAnswer: 'multiple_answer',
|
|
99
|
-
FillInBlank: 'fill_in_blank'
|
|
99
|
+
FillInBlank: 'fill_in_blank',
|
|
100
|
+
ShortAnswer: 'short_answer',
|
|
101
|
+
Matching: 'matching',
|
|
102
|
+
Essay: 'essay'
|
|
100
103
|
} as const;
|
|
101
104
|
export type PutQuestionQuestionTypeEnum = typeof PutQuestionQuestionTypeEnum[keyof typeof PutQuestionQuestionTypeEnum];
|
|
102
105
|
|