@easyedu/js-lsm-api 1.139.0 → 1.141.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 +40 -0
- package/README.md +41 -2
- package/dist/apis/ContentLibraryQuizApi.d.ts +86 -0
- package/dist/apis/ContentLibraryQuizApi.js +216 -0
- package/dist/apis/DispatchApi.d.ts +71 -0
- package/dist/apis/DispatchApi.js +178 -0
- package/dist/apis/LRSApi.d.ts +152 -0
- package/dist/apis/LRSApi.js +369 -0
- package/dist/apis/PlayerApi.d.ts +71 -0
- package/dist/apis/PlayerApi.js +177 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ContentLibraryQuizApi.d.ts +86 -0
- package/dist/esm/apis/ContentLibraryQuizApi.js +216 -0
- package/dist/esm/apis/DispatchApi.d.ts +71 -0
- package/dist/esm/apis/DispatchApi.js +178 -0
- package/dist/esm/apis/LRSApi.d.ts +152 -0
- package/dist/esm/apis/LRSApi.js +365 -0
- package/dist/esm/apis/PlayerApi.d.ts +71 -0
- package/dist/esm/apis/PlayerApi.js +177 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Cmi5Launch.d.ts +52 -0
- package/dist/esm/models/Cmi5Launch.js +58 -0
- package/dist/esm/models/DeleteLrsUserRecordsResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLrsUserRecordsResponse.js +47 -0
- package/dist/esm/models/GetAttemptAllowance.d.ts +9 -3
- package/dist/esm/models/GetAttemptAllowance.js +4 -0
- package/dist/esm/models/GetCourseExport.d.ts +2 -1
- package/dist/esm/models/GetCourseExport.js +2 -1
- package/dist/esm/models/GetCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/GetLibraryQuizResult.d.ts +30 -0
- package/dist/esm/models/GetLibraryQuizResult.js +20 -0
- package/dist/esm/models/GetLibraryQuizSession.d.ts +43 -0
- package/dist/esm/models/GetLibraryQuizSession.js +27 -0
- package/dist/esm/models/GetLibraryQuizVersion.d.ts +19 -0
- package/dist/esm/models/GetLibraryQuizVersion.js +13 -0
- package/dist/esm/models/GetLrsCredentials.d.ts +46 -0
- package/dist/esm/models/GetLrsCredentials.js +53 -0
- package/dist/esm/models/GetLrsStatementList.d.ts +57 -0
- package/dist/esm/models/GetLrsStatementList.js +60 -0
- package/dist/esm/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/esm/models/GetQuestionAnswerChoicesInner.js +4 -0
- package/dist/esm/models/GetQuizSettings.d.ts +56 -0
- package/dist/esm/models/GetQuizSettings.js +57 -0
- package/dist/esm/models/GetResourceSessionActivity.d.ts +2 -1
- package/dist/esm/models/GetResourceSessionActivity.js +2 -1
- package/dist/esm/models/H5pState.d.ts +34 -0
- package/dist/esm/models/H5pState.js +43 -0
- package/dist/esm/models/H5pStatementResult.d.ts +44 -0
- package/dist/esm/models/H5pStatementResult.js +49 -0
- package/dist/esm/models/HostedScormAccessPolicy.d.ts +1 -1
- package/dist/esm/models/HostedScormOutlineEntry.d.ts +1 -1
- package/dist/esm/models/LibraryQuizQuestionFeedback.d.ts +78 -0
- package/dist/esm/models/LibraryQuizQuestionFeedback.js +66 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
- package/dist/esm/models/LibraryQuizSessionAnswerChoice.js +2 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.d.ts +19 -0
- package/dist/esm/models/LibraryQuizSessionQuestion.js +11 -0
- package/dist/esm/models/LrsCredential.d.ts +74 -0
- package/dist/esm/models/LrsCredential.js +67 -0
- package/dist/esm/models/LrsScope.d.ts +38 -0
- package/dist/esm/models/LrsScope.js +47 -0
- package/dist/esm/models/LrsStatement.d.ts +112 -0
- package/dist/esm/models/LrsStatement.js +81 -0
- package/dist/esm/models/PostCourseExport.d.ts +2 -1
- package/dist/esm/models/PostCourseExport.js +2 -1
- package/dist/esm/models/PostCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/PostDispatchCmi5Launch.d.ts +64 -0
- package/dist/esm/models/PostDispatchCmi5Launch.js +63 -0
- package/dist/esm/models/PostH5pStatement.d.ts +40 -0
- package/dist/esm/models/PostH5pStatement.js +47 -0
- package/dist/esm/models/PostLibraryQuiz.d.ts +21 -2
- package/dist/esm/models/PostLibraryQuiz.js +7 -0
- package/dist/esm/models/PostLrsCredential.d.ts +38 -0
- package/dist/esm/models/PostLrsCredential.js +47 -0
- package/dist/esm/models/PostLrsCredentialResponse.d.ts +45 -0
- package/dist/esm/models/PostLrsCredentialResponse.js +52 -0
- package/dist/esm/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/esm/models/PostQuestionAnswerChoicesInner.js +2 -0
- package/dist/esm/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
- package/dist/esm/models/PutLibraryQuizSessionQuestionFlag.js +43 -0
- package/dist/esm/models/PutLibraryQuizVersion.d.ts +19 -0
- package/dist/esm/models/PutLibraryQuizVersion.js +7 -0
- package/dist/esm/models/PutLrsCredential.d.ts +38 -0
- package/dist/esm/models/PutLrsCredential.js +43 -0
- package/dist/esm/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/esm/models/PutQuestionAnswerChoicesInner.js +2 -0
- package/dist/esm/models/PutQuizSettings.d.ts +44 -0
- package/dist/esm/models/PutQuizSettings.js +51 -0
- package/dist/esm/models/QuizFeedbackTiming.d.ts +25 -0
- package/dist/esm/models/QuizFeedbackTiming.js +43 -0
- package/dist/esm/models/ResourceType.d.ts +2 -0
- package/dist/esm/models/ResourceType.js +3 -1
- package/dist/esm/models/index.d.ts +19 -0
- package/dist/esm/models/index.js +19 -0
- package/dist/models/Cmi5Launch.d.ts +52 -0
- package/dist/models/Cmi5Launch.js +66 -0
- package/dist/models/DeleteLrsUserRecordsResponse.d.ts +38 -0
- package/dist/models/DeleteLrsUserRecordsResponse.js +54 -0
- package/dist/models/GetAttemptAllowance.d.ts +9 -3
- package/dist/models/GetAttemptAllowance.js +4 -0
- package/dist/models/GetCourseExport.d.ts +2 -1
- package/dist/models/GetCourseExport.js +2 -1
- package/dist/models/GetCourseVersionItem.d.ts +1 -1
- package/dist/models/GetLibraryQuizResult.d.ts +30 -0
- package/dist/models/GetLibraryQuizResult.js +20 -0
- package/dist/models/GetLibraryQuizSession.d.ts +43 -0
- package/dist/models/GetLibraryQuizSession.js +27 -0
- package/dist/models/GetLibraryQuizVersion.d.ts +19 -0
- package/dist/models/GetLibraryQuizVersion.js +13 -0
- package/dist/models/GetLrsCredentials.d.ts +46 -0
- package/dist/models/GetLrsCredentials.js +60 -0
- package/dist/models/GetLrsStatementList.d.ts +57 -0
- package/dist/models/GetLrsStatementList.js +67 -0
- package/dist/models/GetQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/models/GetQuestionAnswerChoicesInner.js +4 -0
- package/dist/models/GetQuizSettings.d.ts +56 -0
- package/dist/models/GetQuizSettings.js +64 -0
- package/dist/models/GetResourceSessionActivity.d.ts +2 -1
- package/dist/models/GetResourceSessionActivity.js +2 -1
- package/dist/models/H5pState.d.ts +34 -0
- package/dist/models/H5pState.js +50 -0
- package/dist/models/H5pStatementResult.d.ts +44 -0
- package/dist/models/H5pStatementResult.js +56 -0
- package/dist/models/HostedScormAccessPolicy.d.ts +1 -1
- package/dist/models/HostedScormOutlineEntry.d.ts +1 -1
- package/dist/models/LibraryQuizQuestionFeedback.d.ts +78 -0
- package/dist/models/LibraryQuizQuestionFeedback.js +74 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.d.ts +6 -0
- package/dist/models/LibraryQuizSessionAnswerChoice.js +2 -0
- package/dist/models/LibraryQuizSessionQuestion.d.ts +19 -0
- package/dist/models/LibraryQuizSessionQuestion.js +11 -0
- package/dist/models/LrsCredential.d.ts +74 -0
- package/dist/models/LrsCredential.js +74 -0
- package/dist/models/LrsScope.d.ts +38 -0
- package/dist/models/LrsScope.js +54 -0
- package/dist/models/LrsStatement.d.ts +112 -0
- package/dist/models/LrsStatement.js +88 -0
- package/dist/models/PostCourseExport.d.ts +2 -1
- package/dist/models/PostCourseExport.js +2 -1
- package/dist/models/PostCourseVersionItem.d.ts +1 -1
- package/dist/models/PostDispatchCmi5Launch.d.ts +64 -0
- package/dist/models/PostDispatchCmi5Launch.js +70 -0
- package/dist/models/PostH5pStatement.d.ts +40 -0
- package/dist/models/PostH5pStatement.js +54 -0
- package/dist/models/PostLibraryQuiz.d.ts +21 -2
- package/dist/models/PostLibraryQuiz.js +7 -0
- package/dist/models/PostLrsCredential.d.ts +38 -0
- package/dist/models/PostLrsCredential.js +54 -0
- package/dist/models/PostLrsCredentialResponse.d.ts +45 -0
- package/dist/models/PostLrsCredentialResponse.js +59 -0
- package/dist/models/PostQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/models/PostQuestionAnswerChoicesInner.js +2 -0
- package/dist/models/PutCourseVersionItem.d.ts +1 -1
- package/dist/models/PutLibraryQuizSessionQuestionFlag.d.ts +32 -0
- package/dist/models/PutLibraryQuizSessionQuestionFlag.js +50 -0
- package/dist/models/PutLibraryQuizVersion.d.ts +19 -0
- package/dist/models/PutLibraryQuizVersion.js +7 -0
- package/dist/models/PutLrsCredential.d.ts +38 -0
- package/dist/models/PutLrsCredential.js +50 -0
- package/dist/models/PutQuestionAnswerChoicesInner.d.ts +6 -0
- package/dist/models/PutQuestionAnswerChoicesInner.js +2 -0
- package/dist/models/PutQuizSettings.d.ts +44 -0
- package/dist/models/PutQuizSettings.js +58 -0
- package/dist/models/QuizFeedbackTiming.d.ts +25 -0
- package/dist/models/QuizFeedbackTiming.js +51 -0
- package/dist/models/ResourceType.d.ts +2 -0
- package/dist/models/ResourceType.js +3 -1
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/docs/Cmi5Launch.md +39 -0
- package/docs/ContentLibraryApi.md +2 -2
- package/docs/ContentLibraryQuizApi.md +343 -0
- package/docs/DeleteLrsUserRecordsResponse.md +37 -0
- package/docs/DispatchApi.md +287 -0
- package/docs/GetAttemptAllowance.md +2 -0
- package/docs/GetLibraryQuizResult.md +10 -0
- package/docs/GetLibraryQuizSession.md +14 -0
- package/docs/GetLibraryQuizVersion.md +6 -0
- package/docs/GetLrsCredentials.md +38 -0
- package/docs/GetLrsStatementList.md +42 -0
- package/docs/GetQuestionAnswerChoicesInner.md +2 -0
- package/docs/GetQuizSettings.md +43 -0
- package/docs/H5pState.md +35 -0
- package/docs/H5pStatementResult.md +39 -0
- package/docs/LRSApi.md +531 -0
- package/docs/LibraryQuizQuestionFeedback.md +47 -0
- package/docs/LibraryQuizSessionAnswerChoice.md +2 -0
- package/docs/LibraryQuizSessionQuestion.md +6 -0
- package/docs/LrsCredential.md +49 -0
- package/docs/LrsScope.md +37 -0
- package/docs/LrsStatement.md +61 -0
- package/docs/PlayerApi.md +286 -1
- package/docs/PostDispatchCmi5Launch.md +45 -0
- package/docs/PostH5pStatement.md +37 -0
- package/docs/PostLibraryQuiz.md +6 -0
- package/docs/PostLrsCredential.md +36 -0
- package/docs/PostLrsCredentialResponse.md +39 -0
- package/docs/PostQuestionAnswerChoicesInner.md +2 -0
- package/docs/PutLibraryQuizSessionQuestionFlag.md +34 -0
- package/docs/PutLibraryQuizVersion.md +6 -0
- package/docs/PutLrsCredential.md +36 -0
- package/docs/PutQuestionAnswerChoicesInner.md +2 -0
- package/docs/PutQuizSettings.md +38 -0
- package/docs/QuizFeedbackTiming.md +33 -0
- package/package.json +1 -1
- package/src/apis/ContentLibraryQuizApi.ts +287 -0
- package/src/apis/DispatchApi.ts +243 -0
- package/src/apis/LRSApi.ts +486 -0
- package/src/apis/PlayerApi.ts +250 -0
- package/src/apis/index.ts +1 -0
- package/src/models/Cmi5Launch.ts +95 -0
- package/src/models/DeleteLrsUserRecordsResponse.ts +75 -0
- package/src/models/GetAttemptAllowance.ts +12 -3
- package/src/models/GetCourseExport.ts +3 -2
- package/src/models/GetCourseVersionItem.ts +1 -1
- package/src/models/GetLibraryQuizResult.ts +45 -0
- package/src/models/GetLibraryQuizSession.ts +69 -0
- package/src/models/GetLibraryQuizVersion.ts +34 -0
- package/src/models/GetLrsCredentials.ts +99 -0
- package/src/models/GetLrsStatementList.ts +110 -0
- package/src/models/GetQuestionAnswerChoicesInner.ts +9 -0
- package/src/models/GetQuizSettings.ts +101 -0
- package/src/models/GetResourceSessionActivity.ts +3 -2
- package/src/models/H5pState.ts +66 -0
- package/src/models/H5pStatementResult.ts +83 -0
- package/src/models/HostedScormAccessPolicy.ts +1 -1
- package/src/models/HostedScormOutlineEntry.ts +1 -1
- package/src/models/LibraryQuizQuestionFeedback.ts +135 -0
- package/src/models/LibraryQuizSessionAnswerChoice.ts +8 -0
- package/src/models/LibraryQuizSessionQuestion.ts +33 -0
- package/src/models/LrsCredential.ts +127 -0
- package/src/models/LrsScope.ts +75 -0
- package/src/models/LrsStatement.ts +176 -0
- package/src/models/PostCourseExport.ts +3 -2
- package/src/models/PostCourseVersionItem.ts +1 -1
- package/src/models/PostDispatchCmi5Launch.ts +111 -0
- package/src/models/PostH5pStatement.ts +75 -0
- package/src/models/PostLibraryQuiz.ts +33 -2
- package/src/models/PostLrsCredential.ts +75 -0
- package/src/models/PostLrsCredentialResponse.ts +92 -0
- package/src/models/PostQuestionAnswerChoicesInner.ts +8 -0
- package/src/models/PutCourseVersionItem.ts +1 -1
- package/src/models/PutLibraryQuizSessionQuestionFlag.ts +66 -0
- package/src/models/PutLibraryQuizVersion.ts +31 -0
- package/src/models/PutLrsCredential.ts +73 -0
- package/src/models/PutQuestionAnswerChoicesInner.ts +8 -0
- package/src/models/PutQuizSettings.ts +84 -0
- package/src/models/QuizFeedbackTiming.ts +53 -0
- package/src/models/ResourceType.ts +3 -1
- package/src/models/index.ts +19 -0
|
@@ -40,6 +40,12 @@ export interface LibraryQuizSessionAnswerChoice {
|
|
|
40
40
|
* @memberof LibraryQuizSessionAnswerChoice
|
|
41
41
|
*/
|
|
42
42
|
displayOrder: number;
|
|
43
|
+
/**
|
|
44
|
+
* This answer keeps its authored position when answers are randomized.
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof LibraryQuizSessionAnswerChoice
|
|
47
|
+
*/
|
|
48
|
+
lockPosition?: boolean;
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
45
51
|
* Check if a given object implements the LibraryQuizSessionAnswerChoice interface.
|
|
@@ -43,6 +43,7 @@ function LibraryQuizSessionAnswerChoiceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
43
43
|
'text': json['text'],
|
|
44
44
|
'textRich': json['text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['text_rich']),
|
|
45
45
|
'displayOrder': json['display_order'],
|
|
46
|
+
'lockPosition': json['lock_position'] == null ? undefined : json['lock_position'],
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
function LibraryQuizSessionAnswerChoiceToJSON(json) {
|
|
@@ -57,5 +58,6 @@ function LibraryQuizSessionAnswerChoiceToJSONTyped(value, ignoreDiscriminator =
|
|
|
57
58
|
'text': value['text'],
|
|
58
59
|
'text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['textRich']),
|
|
59
60
|
'display_order': value['displayOrder'],
|
|
61
|
+
'lock_position': value['lockPosition'],
|
|
60
62
|
};
|
|
61
63
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LibraryQuizQuestionFeedback } from './LibraryQuizQuestionFeedback';
|
|
12
13
|
import type { RichTextDocument } from './RichTextDocument';
|
|
13
14
|
import type { LibraryQuizSessionAnswerChoice } from './LibraryQuizSessionAnswerChoice';
|
|
14
15
|
/**
|
|
@@ -65,6 +66,24 @@ export interface LibraryQuizSessionQuestion {
|
|
|
65
66
|
* @memberof LibraryQuizSessionQuestion
|
|
66
67
|
*/
|
|
67
68
|
isAnswered: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* The learner flagged this question to come back to before submitting.
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
* @memberof LibraryQuizSessionQuestion
|
|
73
|
+
*/
|
|
74
|
+
isFlagged: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* The learner checked this answer for immediate feedback. A checked answer can no longer be changed.
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof LibraryQuizSessionQuestion
|
|
79
|
+
*/
|
|
80
|
+
isChecked: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Present once the answer has been checked for immediate feedback.
|
|
83
|
+
* @type {LibraryQuizQuestionFeedback}
|
|
84
|
+
* @memberof LibraryQuizSessionQuestion
|
|
85
|
+
*/
|
|
86
|
+
feedback?: LibraryQuizQuestionFeedback | null;
|
|
68
87
|
/**
|
|
69
88
|
*
|
|
70
89
|
* @type {{ [key: string]: any; }}
|
|
@@ -19,6 +19,7 @@ exports.LibraryQuizSessionQuestionFromJSON = LibraryQuizSessionQuestionFromJSON;
|
|
|
19
19
|
exports.LibraryQuizSessionQuestionFromJSONTyped = LibraryQuizSessionQuestionFromJSONTyped;
|
|
20
20
|
exports.LibraryQuizSessionQuestionToJSON = LibraryQuizSessionQuestionToJSON;
|
|
21
21
|
exports.LibraryQuizSessionQuestionToJSONTyped = LibraryQuizSessionQuestionToJSONTyped;
|
|
22
|
+
const LibraryQuizQuestionFeedback_1 = require("./LibraryQuizQuestionFeedback");
|
|
22
23
|
const RichTextDocument_1 = require("./RichTextDocument");
|
|
23
24
|
const LibraryQuizSessionAnswerChoice_1 = require("./LibraryQuizSessionAnswerChoice");
|
|
24
25
|
/**
|
|
@@ -50,6 +51,10 @@ function instanceOfLibraryQuizSessionQuestion(value) {
|
|
|
50
51
|
return false;
|
|
51
52
|
if (!('isAnswered' in value) || value['isAnswered'] === undefined)
|
|
52
53
|
return false;
|
|
54
|
+
if (!('isFlagged' in value) || value['isFlagged'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('isChecked' in value) || value['isChecked'] === undefined)
|
|
57
|
+
return false;
|
|
53
58
|
return true;
|
|
54
59
|
}
|
|
55
60
|
function LibraryQuizSessionQuestionFromJSON(json) {
|
|
@@ -68,6 +73,9 @@ function LibraryQuizSessionQuestionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
73
|
'questionTextRich': json['question_text_rich'] == null ? undefined : (0, RichTextDocument_1.RichTextDocumentFromJSON)(json['question_text_rich']),
|
|
69
74
|
'answerChoices': (json['answer_choices'].map(LibraryQuizSessionAnswerChoice_1.LibraryQuizSessionAnswerChoiceFromJSON)),
|
|
70
75
|
'isAnswered': json['is_answered'],
|
|
76
|
+
'isFlagged': json['is_flagged'],
|
|
77
|
+
'isChecked': json['is_checked'],
|
|
78
|
+
'feedback': json['feedback'] == null ? undefined : (0, LibraryQuizQuestionFeedback_1.LibraryQuizQuestionFeedbackFromJSON)(json['feedback']),
|
|
71
79
|
'answer': json['answer'] == null ? undefined : json['answer'],
|
|
72
80
|
};
|
|
73
81
|
}
|
|
@@ -87,6 +95,9 @@ function LibraryQuizSessionQuestionToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
87
95
|
'question_text_rich': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['questionTextRich']),
|
|
88
96
|
'answer_choices': (value['answerChoices'].map(LibraryQuizSessionAnswerChoice_1.LibraryQuizSessionAnswerChoiceToJSON)),
|
|
89
97
|
'is_answered': value['isAnswered'],
|
|
98
|
+
'is_flagged': value['isFlagged'],
|
|
99
|
+
'is_checked': value['isChecked'],
|
|
100
|
+
'feedback': (0, LibraryQuizQuestionFeedback_1.LibraryQuizQuestionFeedbackToJSON)(value['feedback']),
|
|
90
101
|
'answer': value['answer'],
|
|
91
102
|
};
|
|
92
103
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
* A portal-scoped credential for the xAPI Learning Record Store. External systems use the key and secret as HTTP Basic credentials. The secret is never included here.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LrsCredential
|
|
16
|
+
*/
|
|
17
|
+
export interface LrsCredential {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LrsCredential
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LrsCredential
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* The HTTP Basic user name. Not secret.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LrsCredential
|
|
34
|
+
*/
|
|
35
|
+
apiKey: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof LrsCredential
|
|
40
|
+
*/
|
|
41
|
+
scopes: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Unix epoch timestamp
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof LrsCredential
|
|
46
|
+
*/
|
|
47
|
+
createdAt: number;
|
|
48
|
+
/**
|
|
49
|
+
* Unix epoch timestamp
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof LrsCredential
|
|
52
|
+
*/
|
|
53
|
+
updatedAt: number;
|
|
54
|
+
/**
|
|
55
|
+
* Unix epoch timestamp, refreshed at most every few minutes
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof LrsCredential
|
|
58
|
+
*/
|
|
59
|
+
lastUsedAt?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
* Unix epoch timestamp
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof LrsCredential
|
|
64
|
+
*/
|
|
65
|
+
revokedAt?: number | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the LrsCredential interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfLrsCredential(value: object): value is LrsCredential;
|
|
71
|
+
export declare function LrsCredentialFromJSON(json: any): LrsCredential;
|
|
72
|
+
export declare function LrsCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): LrsCredential;
|
|
73
|
+
export declare function LrsCredentialToJSON(json: any): LrsCredential;
|
|
74
|
+
export declare function LrsCredentialToJSONTyped(value?: LrsCredential | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfLrsCredential = instanceOfLrsCredential;
|
|
17
|
+
exports.LrsCredentialFromJSON = LrsCredentialFromJSON;
|
|
18
|
+
exports.LrsCredentialFromJSONTyped = LrsCredentialFromJSONTyped;
|
|
19
|
+
exports.LrsCredentialToJSON = LrsCredentialToJSON;
|
|
20
|
+
exports.LrsCredentialToJSONTyped = LrsCredentialToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LrsCredential interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLrsCredential(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('apiKey' in value) || value['apiKey'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function LrsCredentialFromJSON(json) {
|
|
40
|
+
return LrsCredentialFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function LrsCredentialFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'apiKey': json['api_key'],
|
|
50
|
+
'scopes': json['scopes'],
|
|
51
|
+
'createdAt': json['created_at'],
|
|
52
|
+
'updatedAt': json['updated_at'],
|
|
53
|
+
'lastUsedAt': json['last_used_at'] == null ? undefined : json['last_used_at'],
|
|
54
|
+
'revokedAt': json['revoked_at'] == null ? undefined : json['revoked_at'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function LrsCredentialToJSON(json) {
|
|
58
|
+
return LrsCredentialToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function LrsCredentialToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'name': value['name'],
|
|
67
|
+
'api_key': value['apiKey'],
|
|
68
|
+
'scopes': value['scopes'],
|
|
69
|
+
'created_at': value['createdAt'],
|
|
70
|
+
'updated_at': value['updatedAt'],
|
|
71
|
+
'last_used_at': value['lastUsedAt'],
|
|
72
|
+
'revoked_at': value['revokedAt'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -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
|
+
* An xAPI authorization scope that can be granted to an LRS credential.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LrsScope
|
|
16
|
+
*/
|
|
17
|
+
export interface LrsScope {
|
|
18
|
+
/**
|
|
19
|
+
* The scope as defined by the xAPI specification, for example `statements/write`.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LrsScope
|
|
22
|
+
*/
|
|
23
|
+
key: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LrsScope
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LrsScope interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLrsScope(value: object): value is LrsScope;
|
|
35
|
+
export declare function LrsScopeFromJSON(json: any): LrsScope;
|
|
36
|
+
export declare function LrsScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): LrsScope;
|
|
37
|
+
export declare function LrsScopeToJSON(json: any): LrsScope;
|
|
38
|
+
export declare function LrsScopeToJSONTyped(value?: LrsScope | 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.instanceOfLrsScope = instanceOfLrsScope;
|
|
17
|
+
exports.LrsScopeFromJSON = LrsScopeFromJSON;
|
|
18
|
+
exports.LrsScopeFromJSONTyped = LrsScopeFromJSONTyped;
|
|
19
|
+
exports.LrsScopeToJSON = LrsScopeToJSON;
|
|
20
|
+
exports.LrsScopeToJSONTyped = LrsScopeToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LrsScope interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLrsScope(value) {
|
|
25
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function LrsScopeFromJSON(json) {
|
|
32
|
+
return LrsScopeFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function LrsScopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'key': json['key'],
|
|
40
|
+
'description': json['description'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function LrsScopeToJSON(json) {
|
|
44
|
+
return LrsScopeToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function LrsScopeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'key': value['key'],
|
|
52
|
+
'description': value['description'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
* An xAPI statement stored for the portal, with the fields administrators filter on.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LrsStatement
|
|
16
|
+
*/
|
|
17
|
+
export interface LrsStatement {
|
|
18
|
+
/**
|
|
19
|
+
* The statement id.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LrsStatement
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unix epoch timestamp of when the LRS stored the statement
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof LrsStatement
|
|
28
|
+
*/
|
|
29
|
+
stored: number;
|
|
30
|
+
/**
|
|
31
|
+
* Unix epoch timestamp of when the experience happened
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LrsStatement
|
|
34
|
+
*/
|
|
35
|
+
timestamp: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LrsStatement
|
|
40
|
+
*/
|
|
41
|
+
verbId: string;
|
|
42
|
+
/**
|
|
43
|
+
* A display label for the verb, when the statement supplies one.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof LrsStatement
|
|
46
|
+
*/
|
|
47
|
+
verbDisplay?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof LrsStatement
|
|
52
|
+
*/
|
|
53
|
+
actorName?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Activity, Agent, Group, SubStatement, or StatementRef.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof LrsStatement
|
|
58
|
+
*/
|
|
59
|
+
objectType: string;
|
|
60
|
+
/**
|
|
61
|
+
* The activity id or referenced statement id, when the object has one.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof LrsStatement
|
|
64
|
+
*/
|
|
65
|
+
objectId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof LrsStatement
|
|
70
|
+
*/
|
|
71
|
+
objectName?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* The LMS user the statement's actor identifies, when it is a member of this portal.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof LrsStatement
|
|
76
|
+
*/
|
|
77
|
+
userId?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof LrsStatement
|
|
82
|
+
*/
|
|
83
|
+
registration?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* The LRS credential that stored the statement, when it still exists.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof LrsStatement
|
|
88
|
+
*/
|
|
89
|
+
credentialId?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof LrsStatement
|
|
94
|
+
*/
|
|
95
|
+
voided: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* The complete statement exactly as stored.
|
|
98
|
+
* @type {{ [key: string]: any; }}
|
|
99
|
+
* @memberof LrsStatement
|
|
100
|
+
*/
|
|
101
|
+
statement: {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the LrsStatement interface.
|
|
107
|
+
*/
|
|
108
|
+
export declare function instanceOfLrsStatement(value: object): value is LrsStatement;
|
|
109
|
+
export declare function LrsStatementFromJSON(json: any): LrsStatement;
|
|
110
|
+
export declare function LrsStatementFromJSONTyped(json: any, ignoreDiscriminator: boolean): LrsStatement;
|
|
111
|
+
export declare function LrsStatementToJSON(json: any): LrsStatement;
|
|
112
|
+
export declare function LrsStatementToJSONTyped(value?: LrsStatement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,88 @@
|
|
|
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.instanceOfLrsStatement = instanceOfLrsStatement;
|
|
17
|
+
exports.LrsStatementFromJSON = LrsStatementFromJSON;
|
|
18
|
+
exports.LrsStatementFromJSONTyped = LrsStatementFromJSONTyped;
|
|
19
|
+
exports.LrsStatementToJSON = LrsStatementToJSON;
|
|
20
|
+
exports.LrsStatementToJSONTyped = LrsStatementToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LrsStatement interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLrsStatement(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('stored' in value) || value['stored'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('verbId' in value) || value['verbId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('objectType' in value) || value['objectType'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('voided' in value) || value['voided'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('statement' in value) || value['statement'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function LrsStatementFromJSON(json) {
|
|
42
|
+
return LrsStatementFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function LrsStatementFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'stored': json['stored'],
|
|
51
|
+
'timestamp': json['timestamp'],
|
|
52
|
+
'verbId': json['verb_id'],
|
|
53
|
+
'verbDisplay': json['verb_display'] == null ? undefined : json['verb_display'],
|
|
54
|
+
'actorName': json['actor_name'] == null ? undefined : json['actor_name'],
|
|
55
|
+
'objectType': json['object_type'],
|
|
56
|
+
'objectId': json['object_id'] == null ? undefined : json['object_id'],
|
|
57
|
+
'objectName': json['object_name'] == null ? undefined : json['object_name'],
|
|
58
|
+
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
59
|
+
'registration': json['registration'] == null ? undefined : json['registration'],
|
|
60
|
+
'credentialId': json['credential_id'] == null ? undefined : json['credential_id'],
|
|
61
|
+
'voided': json['voided'],
|
|
62
|
+
'statement': json['statement'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function LrsStatementToJSON(json) {
|
|
66
|
+
return LrsStatementToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function LrsStatementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'stored': value['stored'],
|
|
75
|
+
'timestamp': value['timestamp'],
|
|
76
|
+
'verb_id': value['verbId'],
|
|
77
|
+
'verb_display': value['verbDisplay'],
|
|
78
|
+
'actor_name': value['actorName'],
|
|
79
|
+
'object_type': value['objectType'],
|
|
80
|
+
'object_id': value['objectId'],
|
|
81
|
+
'object_name': value['objectName'],
|
|
82
|
+
'user_id': value['userId'],
|
|
83
|
+
'registration': value['registration'],
|
|
84
|
+
'credential_id': value['credentialId'],
|
|
85
|
+
'voided': value['voided'],
|
|
86
|
+
'statement': value['statement'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -24,7 +24,7 @@ export interface PostCourseExport {
|
|
|
24
24
|
*/
|
|
25
25
|
courseVersionId: string;
|
|
26
26
|
/**
|
|
27
|
-
* The export format type
|
|
27
|
+
* The export format type. CMI5 produces a cmi5 course structure that launches the hosted course and always uses hosted delivery.
|
|
28
28
|
* @type {PostCourseExportExportTypeEnum}
|
|
29
29
|
* @memberof PostCourseExport
|
|
30
30
|
*/
|
|
@@ -61,6 +61,7 @@ export declare const PostCourseExportExportTypeEnum: {
|
|
|
61
61
|
readonly Scorm12: "SCORM_1_2";
|
|
62
62
|
readonly Scorm20043RdEdition: "SCORM_2004_3RD_EDITION";
|
|
63
63
|
readonly Scorm20044ThEdition: "SCORM_2004_4TH_EDITION";
|
|
64
|
+
readonly Cmi5: "CMI5";
|
|
64
65
|
};
|
|
65
66
|
export type PostCourseExportExportTypeEnum = typeof PostCourseExportExportTypeEnum[keyof typeof PostCourseExportExportTypeEnum];
|
|
66
67
|
/**
|
|
@@ -27,7 +27,8 @@ const HostedScormAccessPolicy_1 = require("./HostedScormAccessPolicy");
|
|
|
27
27
|
exports.PostCourseExportExportTypeEnum = {
|
|
28
28
|
Scorm12: 'SCORM_1_2',
|
|
29
29
|
Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
|
|
30
|
-
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
|
|
30
|
+
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION',
|
|
31
|
+
Cmi5: 'CMI5'
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* @export
|
|
@@ -65,7 +65,7 @@ export interface PostCourseVersionItem {
|
|
|
65
65
|
*/
|
|
66
66
|
launchMode?: ContentLaunchMode;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Omit to inherit the quiz's attempt limit (resources default to 1). Zero means unlimited and is allowed for quiz placements only.
|
|
69
69
|
* @type {number}
|
|
70
70
|
* @memberof PostCourseVersionItem
|
|
71
71
|
*/
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
* The cmi5 launch a client's LMS handed to the launcher page of a cmi5 course export, with the LRS credentials the launcher obtained from the client's fetch URL.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostDispatchCmi5Launch
|
|
16
|
+
*/
|
|
17
|
+
export interface PostDispatchCmi5Launch {
|
|
18
|
+
/**
|
|
19
|
+
* The exported package the launch is for.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostDispatchCmi5Launch
|
|
22
|
+
*/
|
|
23
|
+
dispatchId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The client LRS endpoint from the launch URL.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostDispatchCmi5Launch
|
|
28
|
+
*/
|
|
29
|
+
endpoint: string;
|
|
30
|
+
/**
|
|
31
|
+
* The auth-token returned by the client's fetch URL. It is used once, to confirm the launch with the client LRS when the export restricts which LRS may launch it, and is not stored.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostDispatchCmi5Launch
|
|
34
|
+
*/
|
|
35
|
+
authToken: string;
|
|
36
|
+
/**
|
|
37
|
+
* The learner, as the Agent from the launch URL.
|
|
38
|
+
* @type {{ [key: string]: any; }}
|
|
39
|
+
* @memberof PostDispatchCmi5Launch
|
|
40
|
+
*/
|
|
41
|
+
actor: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PostDispatchCmi5Launch
|
|
48
|
+
*/
|
|
49
|
+
registration: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PostDispatchCmi5Launch
|
|
54
|
+
*/
|
|
55
|
+
activityId: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the PostDispatchCmi5Launch interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfPostDispatchCmi5Launch(value: object): value is PostDispatchCmi5Launch;
|
|
61
|
+
export declare function PostDispatchCmi5LaunchFromJSON(json: any): PostDispatchCmi5Launch;
|
|
62
|
+
export declare function PostDispatchCmi5LaunchFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDispatchCmi5Launch;
|
|
63
|
+
export declare function PostDispatchCmi5LaunchToJSON(json: any): PostDispatchCmi5Launch;
|
|
64
|
+
export declare function PostDispatchCmi5LaunchToJSONTyped(value?: PostDispatchCmi5Launch | null, ignoreDiscriminator?: boolean): any;
|