@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
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the LrsStatement interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfLrsStatement(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('stored' in value) || value['stored'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('verbId' in value) || value['verbId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('objectType' in value) || value['objectType'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('voided' in value) || value['voided'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('statement' in value) || value['statement'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function LrsStatementFromJSON(json) {
|
|
35
|
+
return LrsStatementFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function LrsStatementFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'stored': json['stored'],
|
|
44
|
+
'timestamp': json['timestamp'],
|
|
45
|
+
'verbId': json['verb_id'],
|
|
46
|
+
'verbDisplay': json['verb_display'] == null ? undefined : json['verb_display'],
|
|
47
|
+
'actorName': json['actor_name'] == null ? undefined : json['actor_name'],
|
|
48
|
+
'objectType': json['object_type'],
|
|
49
|
+
'objectId': json['object_id'] == null ? undefined : json['object_id'],
|
|
50
|
+
'objectName': json['object_name'] == null ? undefined : json['object_name'],
|
|
51
|
+
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
52
|
+
'registration': json['registration'] == null ? undefined : json['registration'],
|
|
53
|
+
'credentialId': json['credential_id'] == null ? undefined : json['credential_id'],
|
|
54
|
+
'voided': json['voided'],
|
|
55
|
+
'statement': json['statement'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function LrsStatementToJSON(json) {
|
|
59
|
+
return LrsStatementToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function LrsStatementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'stored': value['stored'],
|
|
68
|
+
'timestamp': value['timestamp'],
|
|
69
|
+
'verb_id': value['verbId'],
|
|
70
|
+
'verb_display': value['verbDisplay'],
|
|
71
|
+
'actor_name': value['actorName'],
|
|
72
|
+
'object_type': value['objectType'],
|
|
73
|
+
'object_id': value['objectId'],
|
|
74
|
+
'object_name': value['objectName'],
|
|
75
|
+
'user_id': value['userId'],
|
|
76
|
+
'registration': value['registration'],
|
|
77
|
+
'credential_id': value['credentialId'],
|
|
78
|
+
'voided': value['voided'],
|
|
79
|
+
'statement': value['statement'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -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
|
/**
|
|
@@ -19,7 +19,8 @@ import { HostedScormAccessPolicyFromJSON, HostedScormAccessPolicyToJSON, } from
|
|
|
19
19
|
export const PostCourseExportExportTypeEnum = {
|
|
20
20
|
Scorm12: 'SCORM_1_2',
|
|
21
21
|
Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
|
|
22
|
-
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
|
|
22
|
+
Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION',
|
|
23
|
+
Cmi5: 'CMI5'
|
|
23
24
|
};
|
|
24
25
|
/**
|
|
25
26
|
* @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;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PostDispatchCmi5Launch interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostDispatchCmi5Launch(value) {
|
|
18
|
+
if (!('dispatchId' in value) || value['dispatchId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('endpoint' in value) || value['endpoint'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('authToken' in value) || value['authToken'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('registration' in value) || value['registration'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('activityId' in value) || value['activityId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function PostDispatchCmi5LaunchFromJSON(json) {
|
|
33
|
+
return PostDispatchCmi5LaunchFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function PostDispatchCmi5LaunchFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'dispatchId': json['dispatch_id'],
|
|
41
|
+
'endpoint': json['endpoint'],
|
|
42
|
+
'authToken': json['auth_token'],
|
|
43
|
+
'actor': json['actor'],
|
|
44
|
+
'registration': json['registration'],
|
|
45
|
+
'activityId': json['activity_id'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function PostDispatchCmi5LaunchToJSON(json) {
|
|
49
|
+
return PostDispatchCmi5LaunchToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function PostDispatchCmi5LaunchToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'dispatch_id': value['dispatchId'],
|
|
57
|
+
'endpoint': value['endpoint'],
|
|
58
|
+
'auth_token': value['authToken'],
|
|
59
|
+
'actor': value['actor'],
|
|
60
|
+
'registration': value['registration'],
|
|
61
|
+
'activity_id': value['activityId'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 emitted by H5P content in the learner's browser.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostH5pStatement
|
|
16
|
+
*/
|
|
17
|
+
export interface PostH5pStatement {
|
|
18
|
+
/**
|
|
19
|
+
* Client-generated id that makes a retried request idempotent. It becomes the statement id.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostH5pStatement
|
|
22
|
+
*/
|
|
23
|
+
eventId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The statement as H5P produced it. The server replaces the actor with the session's learner, the object id with the resource's activity id, and adds the session as the registration.
|
|
26
|
+
* @type {{ [key: string]: any; }}
|
|
27
|
+
* @memberof PostH5pStatement
|
|
28
|
+
*/
|
|
29
|
+
statement: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PostH5pStatement interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPostH5pStatement(value: object): value is PostH5pStatement;
|
|
37
|
+
export declare function PostH5pStatementFromJSON(json: any): PostH5pStatement;
|
|
38
|
+
export declare function PostH5pStatementFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostH5pStatement;
|
|
39
|
+
export declare function PostH5pStatementToJSON(json: any): PostH5pStatement;
|
|
40
|
+
export declare function PostH5pStatementToJSONTyped(value?: PostH5pStatement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PostH5pStatement interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostH5pStatement(value) {
|
|
18
|
+
if (!('eventId' in value) || value['eventId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('statement' in value) || value['statement'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PostH5pStatementFromJSON(json) {
|
|
25
|
+
return PostH5pStatementFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PostH5pStatementFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'eventId': json['event_id'],
|
|
33
|
+
'statement': json['statement'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PostH5pStatementToJSON(json) {
|
|
37
|
+
return PostH5pStatementToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PostH5pStatementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'event_id': value['eventId'],
|
|
45
|
+
'statement': value['statement'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { QuestionSelectionMethod } from './QuestionSelectionMethod';
|
|
13
|
+
import type { QuizFeedbackTiming } from './QuizFeedbackTiming';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -41,13 +42,13 @@ export interface PostLibraryQuiz {
|
|
|
41
42
|
*/
|
|
42
43
|
maxQuestions?: number | null;
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
+
* Omit to use the portal's default passing score.
|
|
45
46
|
* @type {number}
|
|
46
47
|
* @memberof PostLibraryQuiz
|
|
47
48
|
*/
|
|
48
49
|
passingScore?: number;
|
|
49
50
|
/**
|
|
50
|
-
*
|
|
51
|
+
* Omit to use the portal's default time limit. Send null for no time limit.
|
|
51
52
|
* @type {number}
|
|
52
53
|
* @memberof PostLibraryQuiz
|
|
53
54
|
*/
|
|
@@ -88,6 +89,24 @@ export interface PostLibraryQuiz {
|
|
|
88
89
|
* @memberof PostLibraryQuiz
|
|
89
90
|
*/
|
|
90
91
|
requireAllQuestions?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Default number of attempts for this quiz. Zero means unlimited. Omit to use the portal's default. The value is copied to a course placement when the quiz is added to a course, where it can be overridden.
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof PostLibraryQuiz
|
|
96
|
+
*/
|
|
97
|
+
maxAttempts?: number;
|
|
98
|
+
/**
|
|
99
|
+
* Show each question's explanation alongside the learner's feedback.
|
|
100
|
+
* @type {boolean}
|
|
101
|
+
* @memberof PostLibraryQuiz
|
|
102
|
+
*/
|
|
103
|
+
showExplanations?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {QuizFeedbackTiming}
|
|
107
|
+
* @memberof PostLibraryQuiz
|
|
108
|
+
*/
|
|
109
|
+
feedbackTiming?: QuizFeedbackTiming;
|
|
91
110
|
/**
|
|
92
111
|
*
|
|
93
112
|
* @type {{ [key: string]: any; }}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { QuestionSelectionMethodFromJSON, QuestionSelectionMethodToJSON, } from './QuestionSelectionMethod';
|
|
15
|
+
import { QuizFeedbackTimingFromJSON, QuizFeedbackTimingToJSON, } from './QuizFeedbackTiming';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the PostLibraryQuiz interface.
|
|
17
18
|
*/
|
|
@@ -42,6 +43,9 @@ export function PostLibraryQuizFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
'showCorrectAnswers': json['show_correct_answers'] == null ? undefined : json['show_correct_answers'],
|
|
43
44
|
'allowReview': json['allow_review'] == null ? undefined : json['allow_review'],
|
|
44
45
|
'requireAllQuestions': json['require_all_questions'] == null ? undefined : json['require_all_questions'],
|
|
46
|
+
'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
|
|
47
|
+
'showExplanations': json['show_explanations'] == null ? undefined : json['show_explanations'],
|
|
48
|
+
'feedbackTiming': json['feedback_timing'] == null ? undefined : QuizFeedbackTimingFromJSON(json['feedback_timing']),
|
|
45
49
|
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
46
50
|
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
47
51
|
};
|
|
@@ -66,6 +70,9 @@ export function PostLibraryQuizToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
70
|
'show_correct_answers': value['showCorrectAnswers'],
|
|
67
71
|
'allow_review': value['allowReview'],
|
|
68
72
|
'require_all_questions': value['requireAllQuestions'],
|
|
73
|
+
'max_attempts': value['maxAttempts'],
|
|
74
|
+
'show_explanations': value['showExplanations'],
|
|
75
|
+
'feedback_timing': QuizFeedbackTimingToJSON(value['feedbackTiming']),
|
|
69
76
|
'settings': value['settings'],
|
|
70
77
|
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
71
78
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostLrsCredential
|
|
16
|
+
*/
|
|
17
|
+
export interface PostLrsCredential {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostLrsCredential
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Set<string>}
|
|
27
|
+
* @memberof PostLrsCredential
|
|
28
|
+
*/
|
|
29
|
+
scopes: Set<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PostLrsCredential interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPostLrsCredential(value: object): value is PostLrsCredential;
|
|
35
|
+
export declare function PostLrsCredentialFromJSON(json: any): PostLrsCredential;
|
|
36
|
+
export declare function PostLrsCredentialFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLrsCredential;
|
|
37
|
+
export declare function PostLrsCredentialToJSON(json: any): PostLrsCredential;
|
|
38
|
+
export declare function PostLrsCredentialToJSONTyped(value?: PostLrsCredential | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PostLrsCredential interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostLrsCredential(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('scopes' in value) || value['scopes'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PostLrsCredentialFromJSON(json) {
|
|
25
|
+
return PostLrsCredentialFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PostLrsCredentialFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'name': json['name'],
|
|
33
|
+
'scopes': new Set(json['scopes']),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PostLrsCredentialToJSON(json) {
|
|
37
|
+
return PostLrsCredentialToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PostLrsCredentialToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'scopes': Array.from(value['scopes']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LrsCredential } from './LrsCredential';
|
|
13
|
+
/**
|
|
14
|
+
* A newly created LRS credential. The secret is returned only once.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostLrsCredentialResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PostLrsCredentialResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {LrsCredential}
|
|
22
|
+
* @memberof PostLrsCredentialResponse
|
|
23
|
+
*/
|
|
24
|
+
credential: LrsCredential;
|
|
25
|
+
/**
|
|
26
|
+
* The HTTP Basic password. Shown once and stored only as a hash.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PostLrsCredentialResponse
|
|
29
|
+
*/
|
|
30
|
+
secret: string;
|
|
31
|
+
/**
|
|
32
|
+
* The xAPI endpoint external systems should be configured with.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PostLrsCredentialResponse
|
|
35
|
+
*/
|
|
36
|
+
endpoint: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PostLrsCredentialResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfPostLrsCredentialResponse(value: object): value is PostLrsCredentialResponse;
|
|
42
|
+
export declare function PostLrsCredentialResponseFromJSON(json: any): PostLrsCredentialResponse;
|
|
43
|
+
export declare function PostLrsCredentialResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLrsCredentialResponse;
|
|
44
|
+
export declare function PostLrsCredentialResponseToJSON(json: any): PostLrsCredentialResponse;
|
|
45
|
+
export declare function PostLrsCredentialResponseToJSONTyped(value?: PostLrsCredentialResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
import { LrsCredentialFromJSON, LrsCredentialToJSON, } from './LrsCredential';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PostLrsCredentialResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPostLrsCredentialResponse(value) {
|
|
19
|
+
if (!('credential' in value) || value['credential'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('secret' in value) || value['secret'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('endpoint' in value) || value['endpoint'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function PostLrsCredentialResponseFromJSON(json) {
|
|
28
|
+
return PostLrsCredentialResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function PostLrsCredentialResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'credential': LrsCredentialFromJSON(json['credential']),
|
|
36
|
+
'secret': json['secret'],
|
|
37
|
+
'endpoint': json['endpoint'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function PostLrsCredentialResponseToJSON(json) {
|
|
41
|
+
return PostLrsCredentialResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function PostLrsCredentialResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'credential': LrsCredentialToJSON(value['credential']),
|
|
49
|
+
'secret': value['secret'],
|
|
50
|
+
'endpoint': value['endpoint'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -28,6 +28,12 @@ export interface PostQuestionAnswerChoicesInner {
|
|
|
28
28
|
* @memberof PostQuestionAnswerChoicesInner
|
|
29
29
|
*/
|
|
30
30
|
isCorrect: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Keep this answer in its authored position when a quiz randomizes answers.
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof PostQuestionAnswerChoicesInner
|
|
35
|
+
*/
|
|
36
|
+
lockPosition?: boolean;
|
|
31
37
|
}
|
|
32
38
|
/**
|
|
33
39
|
* Check if a given object implements the PostQuestionAnswerChoicesInner interface.
|
|
@@ -32,6 +32,7 @@ export function PostQuestionAnswerChoicesInnerFromJSONTyped(json, ignoreDiscrimi
|
|
|
32
32
|
return {
|
|
33
33
|
'text': RichTextInputFromJSON(json['text']),
|
|
34
34
|
'isCorrect': json['is_correct'],
|
|
35
|
+
'lockPosition': json['lock_position'] == null ? undefined : json['lock_position'],
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
export function PostQuestionAnswerChoicesInnerToJSON(json) {
|
|
@@ -44,5 +45,6 @@ export function PostQuestionAnswerChoicesInnerToJSONTyped(value, ignoreDiscrimin
|
|
|
44
45
|
return {
|
|
45
46
|
'text': RichTextInputToJSON(value['text']),
|
|
46
47
|
'is_correct': value['isCorrect'],
|
|
48
|
+
'lock_position': value['lockPosition'],
|
|
47
49
|
};
|
|
48
50
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutLibraryQuizSessionQuestionFlag
|
|
16
|
+
*/
|
|
17
|
+
export interface PutLibraryQuizSessionQuestionFlag {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PutLibraryQuizSessionQuestionFlag
|
|
22
|
+
*/
|
|
23
|
+
flagged: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PutLibraryQuizSessionQuestionFlag interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPutLibraryQuizSessionQuestionFlag(value: object): value is PutLibraryQuizSessionQuestionFlag;
|
|
29
|
+
export declare function PutLibraryQuizSessionQuestionFlagFromJSON(json: any): PutLibraryQuizSessionQuestionFlag;
|
|
30
|
+
export declare function PutLibraryQuizSessionQuestionFlagFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizSessionQuestionFlag;
|
|
31
|
+
export declare function PutLibraryQuizSessionQuestionFlagToJSON(json: any): PutLibraryQuizSessionQuestionFlag;
|
|
32
|
+
export declare function PutLibraryQuizSessionQuestionFlagToJSONTyped(value?: PutLibraryQuizSessionQuestionFlag | null, ignoreDiscriminator?: boolean): any;
|