@easyedu/js-lsm-api 1.90.0 → 1.92.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 +70 -0
- package/README.md +65 -2
- package/dist/apis/ContentLibraryQuizApi.d.ts +451 -0
- package/dist/apis/ContentLibraryQuizApi.js +1162 -0
- package/dist/apis/PlayerApi.d.ts +130 -1
- package/dist/apis/PlayerApi.js +257 -1
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +451 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +1158 -0
- package/dist/esm/apis/PlayerApi.d.ts +130 -1
- package/dist/esm/apis/PlayerApi.js +256 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetCourseVersionItem.d.ts +14 -0
- package/dist/esm/models/GetCourseVersionItem.js +9 -0
- package/dist/esm/models/GetLibraryQuiz.d.ts +124 -0
- package/dist/esm/models/GetLibraryQuiz.js +100 -0
- package/dist/esm/models/GetLibraryQuizAnalytics.d.ts +68 -0
- package/dist/esm/models/GetLibraryQuizAnalytics.js +67 -0
- package/dist/esm/models/GetLibraryQuizList.d.ts +57 -0
- package/dist/esm/models/GetLibraryQuizList.js +60 -0
- package/dist/esm/models/GetLibraryQuizResult.d.ts +94 -0
- package/dist/esm/models/GetLibraryQuizResult.js +79 -0
- package/dist/esm/models/GetLibraryQuizSession.d.ts +177 -0
- package/dist/esm/models/GetLibraryQuizSession.js +129 -0
- package/dist/esm/models/GetLibraryQuizSessionList.d.ts +57 -0
- package/dist/esm/models/GetLibraryQuizSessionList.js +60 -0
- package/dist/esm/models/GetLibraryQuizUsage.d.ts +56 -0
- package/dist/esm/models/GetLibraryQuizUsage.js +59 -0
- package/dist/esm/models/GetLibraryQuizVersion.d.ts +170 -0
- package/dist/esm/models/GetLibraryQuizVersion.js +125 -0
- package/dist/esm/models/GetResourceSession.d.ts +30 -0
- package/dist/esm/models/GetResourceSession.js +16 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +76 -0
- package/dist/esm/models/GetResourceSessionDiagnostics.js +69 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.js +76 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsResource.js +56 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.js +59 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsUser.js +47 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
- package/dist/esm/models/GetResourceSessionDiagnosticsVersion.js +67 -0
- package/dist/esm/models/GetResourceSessionScormApiLogs.d.ts +57 -0
- package/dist/esm/models/GetResourceSessionScormApiLogs.js +60 -0
- package/dist/esm/models/GetResourceSessionScormData.d.ts +77 -0
- package/dist/esm/models/GetResourceSessionScormData.js +66 -0
- package/dist/esm/models/GetResourceSessionScormDataActivity.d.ts +44 -0
- package/dist/esm/models/GetResourceSessionScormDataActivity.js +45 -0
- package/dist/esm/models/LibraryQuizCriterion.d.ts +95 -0
- package/dist/esm/models/LibraryQuizCriterion.js +76 -0
- package/dist/esm/models/LibraryQuizQuestion.d.ts +70 -0
- package/dist/esm/models/LibraryQuizQuestion.js +63 -0
- package/dist/esm/models/LibraryQuizQuestionInput.d.ts +50 -0
- package/dist/esm/models/LibraryQuizQuestionInput.js +51 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +51 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +54 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +96 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.js +84 -0
- package/dist/esm/models/PostCourseLibraryQuizSession.d.ts +32 -0
- package/dist/esm/models/PostCourseLibraryQuizSession.js +41 -0
- package/dist/esm/models/PostLibraryQuiz.d.ts +107 -0
- package/dist/esm/models/PostLibraryQuiz.js +70 -0
- package/dist/esm/models/PostLibraryQuizSession.d.ts +32 -0
- package/dist/esm/models/PostLibraryQuizSession.js +41 -0
- package/dist/esm/models/PostLibraryQuizVersion.d.ts +32 -0
- package/dist/esm/models/PostLibraryQuizVersion.js +41 -0
- package/dist/esm/models/PutLibraryQuiz.d.ts +38 -0
- package/dist/esm/models/PutLibraryQuiz.js +43 -0
- package/dist/esm/models/PutLibraryQuizCriteria.d.ts +33 -0
- package/dist/esm/models/PutLibraryQuizCriteria.js +44 -0
- package/dist/esm/models/PutLibraryQuizQuestions.d.ts +33 -0
- package/dist/esm/models/PutLibraryQuizQuestions.js +44 -0
- package/dist/esm/models/PutLibraryQuizSessionAnswer.d.ts +40 -0
- package/dist/esm/models/PutLibraryQuizSessionAnswer.js +45 -0
- package/dist/esm/models/PutLibraryQuizSessionGrade.d.ts +38 -0
- package/dist/esm/models/PutLibraryQuizSessionGrade.js +45 -0
- package/dist/esm/models/PutLibraryQuizVersion.d.ts +101 -0
- package/dist/esm/models/PutLibraryQuizVersion.js +64 -0
- package/dist/esm/models/QuestionSelectionMethod.d.ts +25 -0
- package/dist/esm/models/QuestionSelectionMethod.js +43 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/esm/models/ResourceSessionScormApiLogItem.js +73 -0
- package/dist/esm/models/index.d.ts +34 -0
- package/dist/esm/models/index.js +34 -0
- package/dist/models/GetCourseVersionItem.d.ts +14 -0
- package/dist/models/GetCourseVersionItem.js +10 -1
- package/dist/models/GetLibraryQuiz.d.ts +124 -0
- package/dist/models/GetLibraryQuiz.js +108 -0
- package/dist/models/GetLibraryQuizAnalytics.d.ts +68 -0
- package/dist/models/GetLibraryQuizAnalytics.js +74 -0
- package/dist/models/GetLibraryQuizList.d.ts +57 -0
- package/dist/models/GetLibraryQuizList.js +67 -0
- package/dist/models/GetLibraryQuizResult.d.ts +94 -0
- package/dist/models/GetLibraryQuizResult.js +86 -0
- package/dist/models/GetLibraryQuizSession.d.ts +177 -0
- package/dist/models/GetLibraryQuizSession.js +137 -0
- package/dist/models/GetLibraryQuizSessionList.d.ts +57 -0
- package/dist/models/GetLibraryQuizSessionList.js +67 -0
- package/dist/models/GetLibraryQuizUsage.d.ts +56 -0
- package/dist/models/GetLibraryQuizUsage.js +66 -0
- package/dist/models/GetLibraryQuizVersion.d.ts +170 -0
- package/dist/models/GetLibraryQuizVersion.js +132 -0
- package/dist/models/GetResourceSession.d.ts +30 -0
- package/dist/models/GetResourceSession.js +16 -0
- package/dist/models/GetResourceSessionDiagnostics.d.ts +76 -0
- package/dist/models/GetResourceSessionDiagnostics.js +76 -0
- package/dist/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
- package/dist/models/GetResourceSessionDiagnosticsCourseContext.js +83 -0
- package/dist/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
- package/dist/models/GetResourceSessionDiagnosticsResource.js +63 -0
- package/dist/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
- package/dist/models/GetResourceSessionDiagnosticsScormSummary.js +66 -0
- package/dist/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
- package/dist/models/GetResourceSessionDiagnosticsUser.js +54 -0
- package/dist/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
- package/dist/models/GetResourceSessionDiagnosticsVersion.js +74 -0
- package/dist/models/GetResourceSessionScormApiLogs.d.ts +57 -0
- package/dist/models/GetResourceSessionScormApiLogs.js +67 -0
- package/dist/models/GetResourceSessionScormData.d.ts +77 -0
- package/dist/models/GetResourceSessionScormData.js +73 -0
- package/dist/models/GetResourceSessionScormDataActivity.d.ts +44 -0
- package/dist/models/GetResourceSessionScormDataActivity.js +52 -0
- package/dist/models/LibraryQuizCriterion.d.ts +95 -0
- package/dist/models/LibraryQuizCriterion.js +84 -0
- package/dist/models/LibraryQuizQuestion.d.ts +70 -0
- package/dist/models/LibraryQuizQuestion.js +70 -0
- package/dist/models/LibraryQuizQuestionInput.d.ts +50 -0
- package/dist/models/LibraryQuizQuestionInput.js +58 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +51 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.js +61 -0
- package/dist/models/LibraryQuizSessionQuestion.d.ts +96 -0
- package/dist/models/LibraryQuizSessionQuestion.js +92 -0
- package/dist/models/PostCourseLibraryQuizSession.d.ts +32 -0
- package/dist/models/PostCourseLibraryQuizSession.js +48 -0
- package/dist/models/PostLibraryQuiz.d.ts +107 -0
- package/dist/models/PostLibraryQuiz.js +77 -0
- package/dist/models/PostLibraryQuizSession.d.ts +32 -0
- package/dist/models/PostLibraryQuizSession.js +48 -0
- package/dist/models/PostLibraryQuizVersion.d.ts +32 -0
- package/dist/models/PostLibraryQuizVersion.js +48 -0
- package/dist/models/PutLibraryQuiz.d.ts +38 -0
- package/dist/models/PutLibraryQuiz.js +50 -0
- package/dist/models/PutLibraryQuizCriteria.d.ts +33 -0
- package/dist/models/PutLibraryQuizCriteria.js +51 -0
- package/dist/models/PutLibraryQuizQuestions.d.ts +33 -0
- package/dist/models/PutLibraryQuizQuestions.js +51 -0
- package/dist/models/PutLibraryQuizSessionAnswer.d.ts +40 -0
- package/dist/models/PutLibraryQuizSessionAnswer.js +52 -0
- package/dist/models/PutLibraryQuizSessionGrade.d.ts +38 -0
- package/dist/models/PutLibraryQuizSessionGrade.js +52 -0
- package/dist/models/PutLibraryQuizVersion.d.ts +101 -0
- package/dist/models/PutLibraryQuizVersion.js +71 -0
- package/dist/models/QuestionSelectionMethod.d.ts +25 -0
- package/dist/models/QuestionSelectionMethod.js +51 -0
- package/dist/models/ResourceSessionScormApiLogItem.d.ts +79 -0
- package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
- package/dist/models/index.d.ts +34 -0
- package/dist/models/index.js +34 -0
- package/docs/ContentLibraryQuizApi.md +1780 -0
- package/docs/GetCourseVersionItem.md +2 -0
- package/docs/GetLibraryQuiz.md +62 -0
- package/docs/GetLibraryQuizAnalytics.md +46 -0
- package/docs/GetLibraryQuizList.md +42 -0
- package/docs/GetLibraryQuizResult.md +54 -0
- package/docs/GetLibraryQuizSession.md +78 -0
- package/docs/GetLibraryQuizSessionList.md +42 -0
- package/docs/GetLibraryQuizUsage.md +42 -0
- package/docs/GetLibraryQuizVersion.md +78 -0
- package/docs/GetResourceSession.md +10 -0
- package/docs/GetResourceSessionDiagnostics.md +47 -0
- package/docs/GetResourceSessionDiagnosticsCourseContext.md +50 -0
- package/docs/GetResourceSessionDiagnosticsResource.md +40 -0
- package/docs/GetResourceSessionDiagnosticsScormSummary.md +48 -0
- package/docs/GetResourceSessionDiagnosticsUser.md +36 -0
- package/docs/GetResourceSessionDiagnosticsVersion.md +52 -0
- package/docs/GetResourceSessionScormApiLogs.md +43 -0
- package/docs/GetResourceSessionScormData.md +49 -0
- package/docs/GetResourceSessionScormDataActivity.md +38 -0
- package/docs/LibraryQuizCriterion.md +48 -0
- package/docs/LibraryQuizQuestion.md +46 -0
- package/docs/LibraryQuizQuestionInput.md +40 -0
- package/docs/LibraryQuizSessionAnswerChoice.md +40 -0
- package/docs/LibraryQuizSessionQuestion.md +50 -0
- package/docs/PlayerApi.md +320 -3
- package/docs/PostCourseLibraryQuizSession.md +34 -0
- package/docs/PostLibraryQuiz.md +58 -0
- package/docs/PostLibraryQuizSession.md +34 -0
- package/docs/PostLibraryQuizVersion.md +34 -0
- package/docs/PutLibraryQuiz.md +36 -0
- package/docs/PutLibraryQuizCriteria.md +34 -0
- package/docs/PutLibraryQuizQuestions.md +34 -0
- package/docs/PutLibraryQuizSessionAnswer.md +36 -0
- package/docs/PutLibraryQuizSessionGrade.md +36 -0
- package/docs/PutLibraryQuizVersion.md +56 -0
- package/docs/QuestionSelectionMethod.md +32 -0
- package/docs/ResourceSessionScormApiLogItem.md +47 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryQuizApi.ts +1624 -0
- package/src/apis/PlayerApi.ts +351 -1
- package/src/apis/index.ts +1 -0
- package/src/models/GetCourseVersionItem.ts +17 -0
- package/src/models/GetLibraryQuiz.ts +207 -0
- package/src/models/GetLibraryQuizAnalytics.ts +120 -0
- package/src/models/GetLibraryQuizList.ts +110 -0
- package/src/models/GetLibraryQuizResult.ts +154 -0
- package/src/models/GetLibraryQuizSession.ts +286 -0
- package/src/models/GetLibraryQuizSessionList.ts +110 -0
- package/src/models/GetLibraryQuizUsage.ts +102 -0
- package/src/models/GetLibraryQuizVersion.ts +290 -0
- package/src/models/GetResourceSession.ts +43 -0
- package/src/models/GetResourceSessionDiagnostics.ts +161 -0
- package/src/models/GetResourceSessionDiagnosticsCourseContext.ts +148 -0
- package/src/models/GetResourceSessionDiagnosticsResource.ts +103 -0
- package/src/models/GetResourceSessionDiagnosticsScormSummary.ts +123 -0
- package/src/models/GetResourceSessionDiagnosticsUser.ts +75 -0
- package/src/models/GetResourceSessionDiagnosticsVersion.ts +141 -0
- package/src/models/GetResourceSessionScormApiLogs.ts +110 -0
- package/src/models/GetResourceSessionScormData.ts +134 -0
- package/src/models/GetResourceSessionScormDataActivity.ts +81 -0
- package/src/models/LibraryQuizCriterion.ts +147 -0
- package/src/models/LibraryQuizQuestion.ts +118 -0
- package/src/models/LibraryQuizQuestionInput.ts +91 -0
- package/src/models/LibraryQuizSessionAnswerChoice.ts +100 -0
- package/src/models/LibraryQuizSessionQuestion.ts +166 -0
- package/src/models/PostCourseLibraryQuizSession.ts +65 -0
- package/src/models/PostLibraryQuiz.ts +173 -0
- package/src/models/PostLibraryQuizSession.ts +65 -0
- package/src/models/PostLibraryQuizVersion.ts +65 -0
- package/src/models/PutLibraryQuiz.ts +73 -0
- package/src/models/PutLibraryQuizCriteria.ts +74 -0
- package/src/models/PutLibraryQuizQuestions.ts +74 -0
- package/src/models/PutLibraryQuizSessionAnswer.ts +74 -0
- package/src/models/PutLibraryQuizSessionGrade.ts +74 -0
- package/src/models/PutLibraryQuizVersion.ts +163 -0
- package/src/models/QuestionSelectionMethod.ts +53 -0
- package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
- package/src/models/index.ts +34 -0
|
@@ -0,0 +1,163 @@
|
|
|
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 { QuestionSelectionMethod } from './QuestionSelectionMethod';
|
|
17
|
+
import {
|
|
18
|
+
QuestionSelectionMethodFromJSON,
|
|
19
|
+
QuestionSelectionMethodFromJSONTyped,
|
|
20
|
+
QuestionSelectionMethodToJSON,
|
|
21
|
+
QuestionSelectionMethodToJSONTyped,
|
|
22
|
+
} from './QuestionSelectionMethod';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PutLibraryQuizVersion
|
|
28
|
+
*/
|
|
29
|
+
export interface PutLibraryQuizVersion {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PutLibraryQuizVersion
|
|
34
|
+
*/
|
|
35
|
+
changeNotes?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {QuestionSelectionMethod}
|
|
39
|
+
* @memberof PutLibraryQuizVersion
|
|
40
|
+
*/
|
|
41
|
+
questionSelectionMethod?: QuestionSelectionMethod;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PutLibraryQuizVersion
|
|
46
|
+
*/
|
|
47
|
+
maxQuestions?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PutLibraryQuizVersion
|
|
52
|
+
*/
|
|
53
|
+
passingScore?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PutLibraryQuizVersion
|
|
58
|
+
*/
|
|
59
|
+
timeLimitMinutes?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof PutLibraryQuizVersion
|
|
64
|
+
*/
|
|
65
|
+
randomizeQuestions?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof PutLibraryQuizVersion
|
|
70
|
+
*/
|
|
71
|
+
randomizeAnswers?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof PutLibraryQuizVersion
|
|
76
|
+
*/
|
|
77
|
+
showResults?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof PutLibraryQuizVersion
|
|
82
|
+
*/
|
|
83
|
+
showCorrectAnswers?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof PutLibraryQuizVersion
|
|
88
|
+
*/
|
|
89
|
+
allowReview?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof PutLibraryQuizVersion
|
|
94
|
+
*/
|
|
95
|
+
requireAllQuestions?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {{ [key: string]: any; }}
|
|
99
|
+
* @memberof PutLibraryQuizVersion
|
|
100
|
+
*/
|
|
101
|
+
settings?: { [key: string]: any; };
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Check if a given object implements the PutLibraryQuizVersion interface.
|
|
108
|
+
*/
|
|
109
|
+
export function instanceOfPutLibraryQuizVersion(value: object): value is PutLibraryQuizVersion {
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function PutLibraryQuizVersionFromJSON(json: any): PutLibraryQuizVersion {
|
|
114
|
+
return PutLibraryQuizVersionFromJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function PutLibraryQuizVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizVersion {
|
|
118
|
+
if (json == null) {
|
|
119
|
+
return json;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
|
|
123
|
+
'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
|
|
124
|
+
'questionSelectionMethod': json['question_selection_method'] == null ? undefined : QuestionSelectionMethodFromJSON(json['question_selection_method']),
|
|
125
|
+
'maxQuestions': json['max_questions'] == null ? undefined : json['max_questions'],
|
|
126
|
+
'passingScore': json['passing_score'] == null ? undefined : json['passing_score'],
|
|
127
|
+
'timeLimitMinutes': json['time_limit_minutes'] == null ? undefined : json['time_limit_minutes'],
|
|
128
|
+
'randomizeQuestions': json['randomize_questions'] == null ? undefined : json['randomize_questions'],
|
|
129
|
+
'randomizeAnswers': json['randomize_answers'] == null ? undefined : json['randomize_answers'],
|
|
130
|
+
'showResults': json['show_results'] == null ? undefined : json['show_results'],
|
|
131
|
+
'showCorrectAnswers': json['show_correct_answers'] == null ? undefined : json['show_correct_answers'],
|
|
132
|
+
'allowReview': json['allow_review'] == null ? undefined : json['allow_review'],
|
|
133
|
+
'requireAllQuestions': json['require_all_questions'] == null ? undefined : json['require_all_questions'],
|
|
134
|
+
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function PutLibraryQuizVersionToJSON(json: any): PutLibraryQuizVersion {
|
|
139
|
+
return PutLibraryQuizVersionToJSONTyped(json, false);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function PutLibraryQuizVersionToJSONTyped(value?: PutLibraryQuizVersion | null, ignoreDiscriminator: boolean = false): any {
|
|
143
|
+
if (value == null) {
|
|
144
|
+
return value;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
|
|
149
|
+
'change_notes': value['changeNotes'],
|
|
150
|
+
'question_selection_method': QuestionSelectionMethodToJSON(value['questionSelectionMethod']),
|
|
151
|
+
'max_questions': value['maxQuestions'],
|
|
152
|
+
'passing_score': value['passingScore'],
|
|
153
|
+
'time_limit_minutes': value['timeLimitMinutes'],
|
|
154
|
+
'randomize_questions': value['randomizeQuestions'],
|
|
155
|
+
'randomize_answers': value['randomizeAnswers'],
|
|
156
|
+
'show_results': value['showResults'],
|
|
157
|
+
'show_correct_answers': value['showCorrectAnswers'],
|
|
158
|
+
'allow_review': value['allowReview'],
|
|
159
|
+
'require_all_questions': value['requireAllQuestions'],
|
|
160
|
+
'settings': value['settings'],
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
@@ -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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const QuestionSelectionMethod = {
|
|
21
|
+
Manual: 'manual',
|
|
22
|
+
CriteriaBased: 'criteria_based'
|
|
23
|
+
} as const;
|
|
24
|
+
export type QuestionSelectionMethod = typeof QuestionSelectionMethod[keyof typeof QuestionSelectionMethod];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfQuestionSelectionMethod(value: any): boolean {
|
|
28
|
+
for (const key in QuestionSelectionMethod) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(QuestionSelectionMethod, key)) {
|
|
30
|
+
if (QuestionSelectionMethod[key as keyof typeof QuestionSelectionMethod] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function QuestionSelectionMethodFromJSON(json: any): QuestionSelectionMethod {
|
|
39
|
+
return QuestionSelectionMethodFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function QuestionSelectionMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionSelectionMethod {
|
|
43
|
+
return json as QuestionSelectionMethod;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function QuestionSelectionMethodToJSON(value?: QuestionSelectionMethod | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function QuestionSelectionMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): QuestionSelectionMethod {
|
|
51
|
+
return value as QuestionSelectionMethod;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
* A recorded SCORM runtime call for a resource session.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ResourceSessionScormApiLogItem
|
|
20
|
+
*/
|
|
21
|
+
export interface ResourceSessionScormApiLogItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
32
|
+
*/
|
|
33
|
+
createdAt: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ResourceSessionScormApiLogItemMethodEnum}
|
|
37
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
38
|
+
*/
|
|
39
|
+
method: ResourceSessionScormApiLogItemMethodEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
44
|
+
*/
|
|
45
|
+
element?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
50
|
+
*/
|
|
51
|
+
value?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
56
|
+
*/
|
|
57
|
+
valueTruncated: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ResourceSessionScormApiLogItem
|
|
62
|
+
*/
|
|
63
|
+
errorCode: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const ResourceSessionScormApiLogItemMethodEnum = {
|
|
71
|
+
Initialize: 'Initialize',
|
|
72
|
+
GetValue: 'GetValue',
|
|
73
|
+
SetValue: 'SetValue',
|
|
74
|
+
Commit: 'Commit',
|
|
75
|
+
Terminate: 'Terminate'
|
|
76
|
+
} as const;
|
|
77
|
+
export type ResourceSessionScormApiLogItemMethodEnum = typeof ResourceSessionScormApiLogItemMethodEnum[keyof typeof ResourceSessionScormApiLogItemMethodEnum];
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the ResourceSessionScormApiLogItem interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfResourceSessionScormApiLogItem(value: object): value is ResourceSessionScormApiLogItem {
|
|
84
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
85
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
86
|
+
if (!('method' in value) || value['method'] === undefined) return false;
|
|
87
|
+
if (!('valueTruncated' in value) || value['valueTruncated'] === undefined) return false;
|
|
88
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined) return false;
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ResourceSessionScormApiLogItemFromJSON(json: any): ResourceSessionScormApiLogItem {
|
|
93
|
+
return ResourceSessionScormApiLogItemFromJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ResourceSessionScormApiLogItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceSessionScormApiLogItem {
|
|
97
|
+
if (json == null) {
|
|
98
|
+
return json;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': json['id'],
|
|
103
|
+
'createdAt': json['created_at'],
|
|
104
|
+
'method': json['method'],
|
|
105
|
+
'element': json['element'] == null ? undefined : json['element'],
|
|
106
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
107
|
+
'valueTruncated': json['value_truncated'],
|
|
108
|
+
'errorCode': json['error_code'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function ResourceSessionScormApiLogItemToJSON(json: any): ResourceSessionScormApiLogItem {
|
|
113
|
+
return ResourceSessionScormApiLogItemToJSONTyped(json, false);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function ResourceSessionScormApiLogItemToJSONTyped(value?: ResourceSessionScormApiLogItem | null, ignoreDiscriminator: boolean = false): any {
|
|
117
|
+
if (value == null) {
|
|
118
|
+
return value;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return {
|
|
122
|
+
|
|
123
|
+
'id': value['id'],
|
|
124
|
+
'created_at': value['createdAt'],
|
|
125
|
+
'method': value['method'],
|
|
126
|
+
'element': value['element'],
|
|
127
|
+
'value': value['value'],
|
|
128
|
+
'value_truncated': value['valueTruncated'],
|
|
129
|
+
'error_code': value['errorCode'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -102,6 +102,14 @@ export * from './GetEmailDeliveryList';
|
|
|
102
102
|
export * from './GetEmailTemplate';
|
|
103
103
|
export * from './GetEmailTemplateList';
|
|
104
104
|
export * from './GetEmailTemplatePreview';
|
|
105
|
+
export * from './GetLibraryQuiz';
|
|
106
|
+
export * from './GetLibraryQuizAnalytics';
|
|
107
|
+
export * from './GetLibraryQuizList';
|
|
108
|
+
export * from './GetLibraryQuizResult';
|
|
109
|
+
export * from './GetLibraryQuizSession';
|
|
110
|
+
export * from './GetLibraryQuizSessionList';
|
|
111
|
+
export * from './GetLibraryQuizUsage';
|
|
112
|
+
export * from './GetLibraryQuizVersion';
|
|
105
113
|
export * from './GetManualQuestionSelectionItem';
|
|
106
114
|
export * from './GetManualQuestionSelectionList';
|
|
107
115
|
export * from './GetModule';
|
|
@@ -183,7 +191,16 @@ export * from './GetQuizStatistics';
|
|
|
183
191
|
export * from './GetResource';
|
|
184
192
|
export * from './GetResourceList';
|
|
185
193
|
export * from './GetResourceSession';
|
|
194
|
+
export * from './GetResourceSessionDiagnostics';
|
|
195
|
+
export * from './GetResourceSessionDiagnosticsCourseContext';
|
|
196
|
+
export * from './GetResourceSessionDiagnosticsResource';
|
|
197
|
+
export * from './GetResourceSessionDiagnosticsScormSummary';
|
|
198
|
+
export * from './GetResourceSessionDiagnosticsUser';
|
|
199
|
+
export * from './GetResourceSessionDiagnosticsVersion';
|
|
186
200
|
export * from './GetResourceSessionList';
|
|
201
|
+
export * from './GetResourceSessionScormApiLogs';
|
|
202
|
+
export * from './GetResourceSessionScormData';
|
|
203
|
+
export * from './GetResourceSessionScormDataActivity';
|
|
187
204
|
export * from './GetResourceUsage';
|
|
188
205
|
export * from './GetResourceUsageCoursesInner';
|
|
189
206
|
export * from './GetResourceVersionUpload';
|
|
@@ -215,6 +232,11 @@ export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
|
215
232
|
export * from './GetUserQuizAttemptsAllOfFilters';
|
|
216
233
|
export * from './GetUserQuizAttemptsAllOfSummary';
|
|
217
234
|
export * from './GetUserRole';
|
|
235
|
+
export * from './LibraryQuizCriterion';
|
|
236
|
+
export * from './LibraryQuizQuestion';
|
|
237
|
+
export * from './LibraryQuizQuestionInput';
|
|
238
|
+
export * from './LibraryQuizSessionAnswerChoice';
|
|
239
|
+
export * from './LibraryQuizSessionQuestion';
|
|
218
240
|
export * from './LoginRes';
|
|
219
241
|
export * from './LoginResAuthData';
|
|
220
242
|
export * from './LoginResUserData';
|
|
@@ -259,6 +281,7 @@ export * from './PostCourseCatalog';
|
|
|
259
281
|
export * from './PostCourseDraft';
|
|
260
282
|
export * from './PostCourseEnrollment';
|
|
261
283
|
export * from './PostCourseExport';
|
|
284
|
+
export * from './PostCourseLibraryQuizSession';
|
|
262
285
|
export * from './PostCourseResume';
|
|
263
286
|
export * from './PostCourseVersionItem';
|
|
264
287
|
export * from './PostCourseVersionItemSession';
|
|
@@ -270,6 +293,9 @@ export * from './PostEmailAssetComplete';
|
|
|
270
293
|
export * from './PostEmailAssetUpload';
|
|
271
294
|
export * from './PostEmailTemplatePreview';
|
|
272
295
|
export * from './PostEmailTemplateTestSend';
|
|
296
|
+
export * from './PostLibraryQuiz';
|
|
297
|
+
export * from './PostLibraryQuizSession';
|
|
298
|
+
export * from './PostLibraryQuizVersion';
|
|
273
299
|
export * from './PostLogin';
|
|
274
300
|
export * from './PostManualQuestionSelection';
|
|
275
301
|
export * from './PostMessage';
|
|
@@ -328,6 +354,12 @@ export * from './PutCourseCatalog';
|
|
|
328
354
|
export * from './PutCourseEnrollment';
|
|
329
355
|
export * from './PutCourseVersionItem';
|
|
330
356
|
export * from './PutEmailTemplateDraft';
|
|
357
|
+
export * from './PutLibraryQuiz';
|
|
358
|
+
export * from './PutLibraryQuizCriteria';
|
|
359
|
+
export * from './PutLibraryQuizQuestions';
|
|
360
|
+
export * from './PutLibraryQuizSessionAnswer';
|
|
361
|
+
export * from './PutLibraryQuizSessionGrade';
|
|
362
|
+
export * from './PutLibraryQuizVersion';
|
|
331
363
|
export * from './PutModule';
|
|
332
364
|
export * from './PutModuleReorder';
|
|
333
365
|
export * from './PutPortalBranding';
|
|
@@ -350,10 +382,12 @@ export * from './PutRole';
|
|
|
350
382
|
export * from './PutRolePermissions';
|
|
351
383
|
export * from './PutSupportTicket';
|
|
352
384
|
export * from './PutUser';
|
|
385
|
+
export * from './QuestionSelectionMethod';
|
|
353
386
|
export * from './QuizContent';
|
|
354
387
|
export * from './QuizContentAssignment';
|
|
355
388
|
export * from './QuizContentSettings';
|
|
356
389
|
export * from './ResourceSessionEnvironment';
|
|
390
|
+
export * from './ResourceSessionScormApiLogItem';
|
|
357
391
|
export * from './ResourceType';
|
|
358
392
|
export * from './RichTextAsset';
|
|
359
393
|
export * from './RichTextDocument';
|